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 LTLIBICONV 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 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 set_gcc_lib_path 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 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search for libiconv in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page,zone} choose the garbage collection mechanism to use
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries in DIR LIBDIR
933 Some influential environment variables:
934 CC C compiler command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
937 nonstandard directory <lib dir>
938 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
939 headers in a nonstandard directory <include dir>
941 GMPLIBS How to link GMP
942 GMPINC How to find GMP include files
944 Use these variables to override the choices made by `configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
962 ac_dir_suffix= ac_top_builddir=
966 .) # No --srcdir option. We are building in place.
968 if test -z "$ac_top_builddir"; then
971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
984 .) ac_abs_builddir="$ac_dir";;
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1031 $ac_configure --help
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1114 ac_must_keep_next=false
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143 -* ) ac_must_keep_next=true ;;
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close' the trap.
1161 trap 'exit_status=$?
1162 # Save into config.log some information that might help in debugging.
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1172 # The following way of writing the cache mishandles newlines in values,
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1195 for ac_var in $ac_subst_vars
1197 eval ac_val=$`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1202 if test -n "$ac_subst_files"; then
1209 for ac_var in $ac_subst_files
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1217 if test -s confdefs.h; then
1224 sed "/^$/d" confdefs.h | sort
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1231 rm -f core *.core &&
1232 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's/^/| /' "$ac_site_file" >&5
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1307 # Check that the precious variables saved in the cache have kept the same
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1322 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386 #Set to 1 on a release branch
1389 # Determine the host, build, and target systems
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392 if test -f $ac_dir/install-sh; then
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1396 elif test -f $ac_dir/install.sh; then
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1400 elif test -f $ac_dir/shtool; then
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409 { (exit 1); exit 1; }; }
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428 ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432 { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1442 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454 ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1464 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476 ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1488 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494 test "$program_prefix$program_suffix$program_transform_name" = \
1496 program_prefix=${target_alias}-
1498 # Determine the noncanonical target name, for directory use.
1499 case ${build_alias} in
1500 "") build_noncanonical=${build} ;;
1501 *) build_noncanonical=${build_alias} ;;
1504 case ${host_alias} in
1505 "") host_noncanonical=${build_noncanonical} ;;
1506 *) host_noncanonical=${host_alias} ;;
1509 case ${target_alias} in
1510 "") target_noncanonical=${host_noncanonical} ;;
1511 *) target_noncanonical=${target_alias} ;;
1517 # Determine the target- and build-specific subdirectories
1518 # Prefix 'build-' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # Not really a subdirectory, but here for completeness.
1523 target_subdir=${target_noncanonical}
1526 # Set program_transform_name
1527 test "$program_prefix" != NONE &&
1528 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1529 # Use a double $ so make ignores it.
1530 test "$program_suffix" != NONE &&
1531 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1532 # Double any \ or $. echo might interpret backslashes.
1533 # By default was `s,x,x', remove it if useless.
1534 cat <<\_ACEOF >conftest.sed
1535 s/[\\$]/&&/g;s/;s,x,x,$//
1537 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1541 # Check for bogus environment variables.
1542 # Test if LIBRARY_PATH contains the notation for the current directory
1543 # since this would lead to problems installing/building glibc.
1544 # LIBRARY_PATH contains the current directory if one of the following
1546 # - one of the terminals (":" and ";") is the first or last sign
1547 # - two terminals occur directly after each other
1548 # - the path contains an element with a dot in it
1549 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1550 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1551 case ${LIBRARY_PATH} in
1552 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1553 library_path_setting="contains current directory"
1556 library_path_setting="ok"
1559 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1560 echo "${ECHO_T}$library_path_setting" >&6
1561 if test "$library_path_setting" != "ok"; then
1562 { { echo "$as_me:$LINENO: error:
1563 *** LIBRARY_PATH shouldn't contain the current directory when
1564 *** building gcc. Please change the environment variable
1565 *** and run configure again." >&5
1566 echo "$as_me: error:
1567 *** LIBRARY_PATH shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&2;}
1570 { (exit 1); exit 1; }; }
1573 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1574 # since this would lead to problems installing/building glibc.
1575 # GCC_EXEC_PREFIX contains the current directory if one of the following
1577 # - one of the terminals (":" and ";") is the first or last sign
1578 # - two terminals occur directly after each other
1579 # - the path contains an element with a dot in it
1580 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1581 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1582 case ${GCC_EXEC_PREFIX} in
1583 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1584 gcc_exec_prefix_setting="contains current directory"
1587 gcc_exec_prefix_setting="ok"
1590 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1591 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1592 if test "$gcc_exec_prefix_setting" != "ok"; then
1593 { { echo "$as_me:$LINENO: error:
1594 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1595 *** building gcc. Please change the environment variable
1596 *** and run configure again." >&5
1597 echo "$as_me: error:
1598 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1599 *** building gcc. Please change the environment variable
1600 *** and run configure again." >&2;}
1601 { (exit 1); exit 1; }; }
1608 # Specify the local prefix
1611 # Check whether --with-local-prefix or --without-local-prefix was given.
1612 if test "${with_local_prefix+set}" = set; then
1613 withval="$with_local_prefix"
1614 case "${withval}" in
1615 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1616 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1617 { (exit 1); exit 1; }; } ;;
1619 *) local_prefix=$with_local_prefix ;;
1623 # Default local prefix if it is empty
1624 if test x$local_prefix = x; then
1625 local_prefix=/usr/local
1628 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1629 # passed in by the toplevel make and thus we'd get different behavior
1630 # depending on where we built the sources.
1631 gcc_gxx_include_dir=
1632 # Specify the g++ header file directory
1634 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1635 if test "${with_gxx_include_dir+set}" = set; then
1636 withval="$with_gxx_include_dir"
1637 case "${withval}" in
1638 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1639 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1640 { (exit 1); exit 1; }; } ;;
1642 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1646 if test x${gcc_gxx_include_dir} = x; then
1647 if test x${enable_version_specific_runtime_libs} = xyes; then
1648 gcc_gxx_include_dir='${libsubdir}/include/c++'
1650 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1651 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1656 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1657 if test "${with_cpp_install_dir+set}" = set; then
1658 withval="$with_cpp_install_dir"
1659 if test x$withval = xyes; then
1660 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1661 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1662 { (exit 1); exit 1; }; }
1663 elif test x$withval != xno; then
1664 cpp_install_dir=$withval
1668 # We would like to our source tree to be readonly. However when releases or
1669 # pre-releases are generated, the flex/bison generated files as well as the
1670 # various formats of manuals need to be included along with the rest of the
1671 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1674 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1675 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1676 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1677 if test "${enable_generated_files_in_srcdir+set}" = set; then
1678 enableval="$enable_generated_files_in_srcdir"
1679 generated_files_in_srcdir=$enableval
1681 generated_files_in_srcdir=no
1684 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1685 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1687 if test "$generated_files_in_srcdir" = "yes"; then
1694 # -------------------
1695 # Find default linker
1696 # -------------------
1700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1701 if test "${with_gnu_ld+set}" = set; then
1702 withval="$with_gnu_ld"
1703 gnu_ld_flag="$with_gnu_ld"
1708 # With pre-defined ld
1710 # Check whether --with-ld or --without-ld was given.
1711 if test "${with_ld+set}" = set; then
1713 DEFAULT_LINKER="$with_ld"
1715 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1716 if test ! -x "$DEFAULT_LINKER"; then
1717 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1718 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1719 { (exit 1); exit 1; }; }
1720 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1724 cat >>confdefs.h <<_ACEOF
1725 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1730 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1731 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1732 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1733 if test x"$gnu_ld_flag" = x"no"; then
1734 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1735 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1737 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1738 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1745 # With demangler in GNU ld
1747 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1748 if test "${with_demangler_in_ld+set}" = set; then
1749 withval="$with_demangler_in_ld"
1750 demangler_in_ld="$with_demangler_in_ld"
1755 # ----------------------
1756 # Find default assembler
1757 # ----------------------
1761 # Check whether --with-gnu-as or --without-gnu-as was given.
1762 if test "${with_gnu_as+set}" = set; then
1763 withval="$with_gnu_as"
1764 gas_flag="$with_gnu_as"
1770 # Check whether --with-as or --without-as was given.
1771 if test "${with_as+set}" = set; then
1773 DEFAULT_ASSEMBLER="$with_as"
1775 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1776 if test ! -x "$DEFAULT_ASSEMBLER"; then
1777 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1778 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1779 { (exit 1); exit 1; }; }
1780 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1784 cat >>confdefs.h <<_ACEOF
1785 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1790 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1791 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1792 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1793 if test x"$gas_flag" = x"no"; then
1794 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1795 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1797 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1798 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1809 # If a non-executable a.out is present (e.g. created by GNU as above even if
1810 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1811 # file, even when creating an executable, so an execution test fails.
1812 # Remove possible default executable files to avoid this.
1814 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1815 # Autoconf includes it.
1816 rm -f a.out a.exe b.out
1818 # Find the native compiler
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824 if test -n "$ac_tool_prefix"; then
1825 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1826 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1861 if test -z "$ac_cv_prog_CC"; then
1863 # Extract the first word of "gcc", so it can be a program name with args.
1864 set dummy gcc; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="gcc"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1903 if test -z "$CC"; then
1904 if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}cc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_CC="${ac_tool_prefix}cc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 if test -n "$CC"; then
1933 echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1941 if test -z "$ac_cv_prog_CC"; then
1943 # Extract the first word of "cc", so it can be a program name with args.
1944 set dummy cc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="cc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1984 if test -z "$CC"; then
1985 # Extract the first word of "cc", so it can be a program name with args.
1986 set dummy cc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2004 ac_prog_rejected=yes
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 if test $ac_prog_rejected = yes; then
2015 # We found a bogon in the path, so make sure we never use it.
2016 set dummy $ac_cv_prog_CC
2018 if test $# != 0; then
2019 # We chose a different compiler from the bogus one.
2020 # However, it has the same basename, so the bogon will be chosen
2021 # first if we set CC to just the basename; use the full file name.
2023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2029 if test -n "$CC"; then
2030 echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2038 if test -z "$CC"; then
2039 if test -n "$ac_tool_prefix"; then
2042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 if test -n "$CC"; then
2070 echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6
2073 echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2077 test -n "$CC" && break
2080 if test -z "$CC"; then
2084 # Extract the first word of "$ac_prog", so it can be a program name with args.
2085 set dummy $ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101 ac_cv_prog_ac_ct_CC="$ac_prog"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111 if test -n "$ac_ct_CC"; then
2112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113 echo "${ECHO_T}$ac_ct_CC" >&6
2115 echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2119 test -n "$ac_ct_CC" && break
2128 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2129 See \`config.log' for more details." >&5
2130 echo "$as_me: error: no acceptable C compiler found in \$PATH
2131 See \`config.log' for more details." >&2;}
2132 { (exit 1); exit 1; }; }
2134 # Provide some information about the compiler.
2135 echo "$as_me:$LINENO:" \
2136 "checking for C compiler version" >&5
2137 ac_compiler=`set X $ac_compile; echo $2`
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2139 (eval $ac_compiler --version </dev/null >&5) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2144 (eval $ac_compiler -v </dev/null >&5) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2149 (eval $ac_compiler -V </dev/null >&5) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2154 cat >conftest.$ac_ext <<_ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2169 ac_clean_files_save=$ac_clean_files
2170 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2171 # Try to create an executable without -o first, disregard a.out.
2172 # It will help us diagnose broken compilers, and finding out an intuition
2174 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2175 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2178 (eval $ac_link_default) 2>&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; then
2182 # Find the output, starting from the most likely. This scheme is
2183 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2186 # Be careful to initialize this variable, since it used to be cached.
2187 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2189 # b.out is created by i960 compilers.
2190 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2192 test -f "$ac_file" || continue
2194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2197 # This is the source file.
2200 # We found the default executable, but exeext='' is most
2204 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205 # FIXME: I believe we export ac_cv_exeext for Libtool,
2206 # but it would be cool to find out if it's true. Does anybody
2207 # maintain Libtool? --akim.
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2218 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2219 See \`config.log' for more details." >&5
2220 echo "$as_me: error: C compiler cannot create executables
2221 See \`config.log' for more details." >&2;}
2222 { (exit 77); exit 77; }; }
2225 ac_exeext=$ac_cv_exeext
2226 echo "$as_me:$LINENO: result: $ac_file" >&5
2227 echo "${ECHO_T}$ac_file" >&6
2229 # Check the compiler produces executables we can run. If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2232 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2233 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2234 # If not cross compiling, check that we can run a simple program.
2235 if test "$cross_compiling" != yes; then
2236 if { ac_try='./$ac_file'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 if test "$cross_compiling" = maybe; then
2247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2257 echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check the compiler produces executables we can run. If not, either
2263 # the compiler is broken, or we cross compile.
2264 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2266 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6
2269 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2272 (eval $ac_link) 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; then
2276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2278 # work properly (i.e., refer to `conftest.exe'), while it won't with
2280 for ac_file in conftest.exe conftest conftest.*; do
2281 test -f "$ac_file" || continue
2283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2291 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2298 rm -f conftest$ac_cv_exeext
2299 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300 echo "${ECHO_T}$ac_cv_exeext" >&6
2302 rm -f conftest.$ac_ext
2303 EXEEXT=$ac_cv_exeext
2305 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2307 if test "${ac_cv_objext+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 cat >conftest.$ac_ext <<_ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2325 rm -f conftest.o conftest.obj
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; then
2331 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352 echo "${ECHO_T}$ac_cv_objext" >&6
2353 OBJEXT=$ac_cv_objext
2355 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 cat >conftest.$ac_ext <<_ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>conftest.er1
2382 grep -v '^ *+' conftest.er1 >conftest.err
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2411 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2412 GCC=`test $ac_compiler_gnu = yes && echo yes`
2413 ac_test_CFLAGS=${CFLAGS+set}
2414 ac_save_CFLAGS=$CFLAGS
2416 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2417 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2418 if test "${ac_cv_prog_cc_g+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 cat >conftest.$ac_ext <<_ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2436 rm -f conftest.$ac_objext
2437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438 (eval $ac_compile) 2>conftest.er1
2440 grep -v '^ *+' conftest.er1 >conftest.err
2442 cat conftest.err >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } &&
2445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2467 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2468 if test "$ac_test_CFLAGS" = set; then
2469 CFLAGS=$ac_save_CFLAGS
2470 elif test $ac_cv_prog_cc_g = yes; then
2471 if test "$GCC" = yes; then
2477 if test "$GCC" = yes; then
2483 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2484 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2485 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 ac_cv_prog_cc_stdc=no
2490 cat >conftest.$ac_ext <<_ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2498 #include <sys/types.h>
2499 #include <sys/stat.h>
2500 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2501 struct buf { int x; };
2502 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2503 static char *e (p, i)
2509 static char *f (char * (*g) (char **, int), char **p, ...)
2514 s = g (p, va_arg (v,int));
2519 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2520 function prototypes and stuff, but not '\xHH' hex character constants.
2521 These don't provoke an error unfortunately, instead are silently treated
2522 as 'x'. The following induces an error, until -std1 is added to get
2523 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2524 array size at least. It's necessary to write '\x00'==0 to get something
2525 that's true only with -std1. */
2526 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2528 int test (int i, double x);
2529 struct s1 {int (*f) (int a);};
2530 struct s2 {int (*f) (double a);};
2531 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2537 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2542 # Don't try gcc -ansi; that turns off useful extensions and
2543 # breaks some systems' header files.
2544 # AIX -qlanglvl=ansi
2545 # Ultrix and OSF/1 -std1
2546 # HP-UX 10.20 and later -Ae
2547 # HP-UX older versions -Aa -D_HPUX_SOURCE
2548 # SVR4 -Xc -D__EXTENSIONS__
2549 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2551 CC="$ac_save_CC $ac_arg"
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 for ac_declaration in \
2629 'extern "C" void std::exit (int) throw (); using std::exit;' \
2630 'extern "C" void std::exit (int); using std::exit;' \
2631 'extern "C" void exit (int) throw ();' \
2632 'extern "C" void exit (int);' \
2635 cat >conftest.$ac_ext <<_ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>conftest.er1
2655 grep -v '^ *+' conftest.er1 >conftest.err
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 cat >conftest.$ac_ext <<_ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 if test -n "$ac_declaration"; then
2726 echo '#ifdef __cplusplus' >>confdefs.h
2727 echo $ac_declaration >>confdefs.h
2728 echo '#endif' >>confdefs.h
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743 if test "x$CC" != xcc; then
2744 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2745 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2747 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2748 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2750 set dummy $CC; ac_cc=`echo $2 |
2751 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2752 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2770 # Make sure it works both with $CC and with simple cc.
2771 # We do the test twice because some compilers refuse to overwrite an
2772 # existing .o file with -o, though they will create one.
2773 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2774 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); };
2785 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2786 if test "x$CC" != xcc; then
2787 # Test first that cc exists at all.
2788 if { ac_try='cc -c conftest.$ac_ext >&5'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2795 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); };
2809 # cc exists but doesn't like -o.
2810 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2815 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2820 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2821 echo "$as_me:$LINENO: result: yes" >&5
2822 echo "${ECHO_T}yes" >&6
2824 echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6
2827 cat >>confdefs.h <<\_ACEOF
2828 #define NO_MINUS_C_MINUS_O 1
2833 # expand $ac_aux_dir to an absolute path
2834 am_aux_dir=`cd $ac_aux_dir && pwd`
2836 # FIXME: we rely on the cache variable name because
2837 # there is no other way.
2839 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2840 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2841 # Losing compiler, so override with the script.
2842 # FIXME: It is wrong to rewrite CC.
2843 # But if we don't then we get into trouble of one sort or another.
2844 # A longer-term fix would be to have automake use am__CC in this case,
2845 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2846 CC="$am_aux_dir/compile $CC"
2849 # autoconf is lame and doesn't give us any substitution variable for this.
2850 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2851 NO_MINUS_C_MINUS_O=yes
2853 OUTPUT_OPTION='-o $@'
2858 # -------------------------
2859 # Check C compiler features
2860 # -------------------------
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2868 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2869 # On Suns, sometimes $CPP names a directory.
2870 if test -n "$CPP" && test -d "$CPP"; then
2873 if test -z "$CPP"; then
2874 if test "${ac_cv_prog_CPP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 # Double quotes because CPP needs to be expanded
2878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2881 for ac_c_preproc_warn_flag in '' yes
2883 # Use a header file that comes with gcc, so configuring glibc
2884 # with a fresh cross-compiler works.
2885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886 # <limits.h> exists even on freestanding compilers.
2887 # On the NeXT, cc -E runs the code through the compiler's parser,
2888 # not just through cpp. "Syntax error" is here to catch this case.
2889 cat >conftest.$ac_ext <<_ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2896 # include <limits.h>
2898 # include <assert.h>
2902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } >/dev/null; then
2910 if test -s conftest.err; then
2911 ac_cpp_err=$ac_c_preproc_warn_flag
2912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2919 if test -z "$ac_cpp_err"; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 # Broken: fails on valid input.
2928 rm -f conftest.err conftest.$ac_ext
2930 # OK, works on sane cases. Now check whether non-existent headers
2931 # can be detected and how.
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2938 #include <ac_nonexistent.h>
2940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } >/dev/null; then
2948 if test -s conftest.err; then
2949 ac_cpp_err=$ac_c_preproc_warn_flag
2950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2957 if test -z "$ac_cpp_err"; then
2958 # Broken: success on invalid input.
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 # Passes both tests.
2968 rm -f conftest.err conftest.$ac_ext
2971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2972 rm -f conftest.err conftest.$ac_ext
2973 if $ac_preproc_ok; then
2985 echo "$as_me:$LINENO: result: $CPP" >&5
2986 echo "${ECHO_T}$CPP" >&6
2988 for ac_c_preproc_warn_flag in '' yes
2990 # Use a header file that comes with gcc, so configuring glibc
2991 # with a fresh cross-compiler works.
2992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993 # <limits.h> exists even on freestanding compilers.
2994 # On the NeXT, cc -E runs the code through the compiler's parser,
2995 # not just through cpp. "Syntax error" is here to catch this case.
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3003 # include <limits.h>
3005 # include <assert.h>
3009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } >/dev/null; then
3017 if test -s conftest.err; then
3018 ac_cpp_err=$ac_c_preproc_warn_flag
3019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3026 if test -z "$ac_cpp_err"; then
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3032 # Broken: fails on valid input.
3035 rm -f conftest.err conftest.$ac_ext
3037 # OK, works on sane cases. Now check whether non-existent headers
3038 # can be detected and how.
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3045 #include <ac_nonexistent.h>
3047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050 grep -v '^ *+' conftest.er1 >conftest.err
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } >/dev/null; then
3055 if test -s conftest.err; then
3056 ac_cpp_err=$ac_c_preproc_warn_flag
3057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3064 if test -z "$ac_cpp_err"; then
3065 # Broken: success on invalid input.
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 # Passes both tests.
3075 rm -f conftest.err conftest.$ac_ext
3078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079 rm -f conftest.err conftest.$ac_ext
3080 if $ac_preproc_ok; then
3083 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3086 See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 echo "$as_me:$LINENO: checking for inline" >&5
3098 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3099 if test "${ac_cv_c_inline+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 for ac_kw in inline __inline__ __inline; do
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3112 static $ac_kw foo_t static_foo () {return 0; }
3113 $ac_kw foo_t foo () {return 0; }
3117 rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119 (eval $ac_compile) 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3138 ac_cv_c_inline=$ac_kw; break
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3148 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3149 echo "${ECHO_T}$ac_cv_c_inline" >&6
3152 case $ac_cv_c_inline in
3155 case $ac_cv_c_inline in
3157 *) ac_val=$ac_cv_c_inline;;
3159 cat >>confdefs.h <<_ACEOF
3161 #define inline $ac_val
3168 echo "$as_me:$LINENO: checking for long long int" >&5
3169 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3170 if test "${ac_cv_c_long_long+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3209 ac_cv_c_long_long=yes
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 ac_cv_c_long_long=no
3216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3218 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3219 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3220 if test $ac_cv_c_long_long = yes; then
3222 cat >>confdefs.h <<\_ACEOF
3223 #define HAVE_LONG_LONG 1
3227 echo "$as_me:$LINENO: checking for __int64" >&5
3228 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3229 if test "${ac_cv_c___int64+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3247 rm -f conftest.$ac_objext
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>conftest.er1
3251 grep -v '^ *+' conftest.er1 >conftest.err
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; } &&
3262 { ac_try='test -s conftest.$ac_objext'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3278 echo "${ECHO_T}$ac_cv_c___int64" >&6
3279 if test $ac_cv_c___int64 = yes; then
3281 cat >>confdefs.h <<\_ACEOF
3282 #define HAVE___INT64 1
3288 # sizeof(char) is 1 by definition.
3290 echo "$as_me:$LINENO: checking for egrep" >&5
3291 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3292 if test "${ac_cv_prog_egrep+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3296 then ac_cv_prog_egrep='grep -E'
3297 else ac_cv_prog_egrep='egrep'
3300 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3301 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3302 EGREP=$ac_cv_prog_egrep
3305 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3307 if test "${ac_cv_header_stdc+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3329 rm -f conftest.$ac_objext
3330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3331 (eval $ac_compile) 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } &&
3338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_header_stdc=yes
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 ac_cv_header_stdc=no
3357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3359 if test $ac_cv_header_stdc = yes; then
3360 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3361 cat >conftest.$ac_ext <<_ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371 $EGREP "memchr" >/dev/null 2>&1; then
3374 ac_cv_header_stdc=no
3380 if test $ac_cv_header_stdc = yes; then
3381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3392 $EGREP "free" >/dev/null 2>&1; then
3395 ac_cv_header_stdc=no
3401 if test $ac_cv_header_stdc = yes; then
3402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3403 if test "$cross_compiling" = yes; then
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3413 #if ((' ' & 0x0FF) == 0x020)
3414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3417 # define ISLOWER(c) \
3418 (('a' <= (c) && (c) <= 'i') \
3419 || ('j' <= (c) && (c) <= 'r') \
3420 || ('s' <= (c) && (c) <= 'z'))
3421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3429 for (i = 0; i < 256; i++)
3430 if (XOR (islower (i), ISLOWER (i))
3431 || toupper (i) != TOUPPER (i))
3436 rm -f conftest$ac_exeext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438 (eval $ac_link) 2>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3449 echo "$as_me: program exited with status $ac_status" >&5
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3454 ac_cv_header_stdc=no
3456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3460 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3461 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3462 if test $ac_cv_header_stdc = yes; then
3464 cat >>confdefs.h <<\_ACEOF
3465 #define STDC_HEADERS 1
3470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3481 inttypes.h stdint.h unistd.h
3483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3484 echo "$as_me:$LINENO: checking for $ac_header" >&5
3485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 $ac_includes_default
3497 #include <$ac_header>
3499 rm -f conftest.$ac_objext
3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3503 grep -v '^ *+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 eval "$as_ac_Header=yes"
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 eval "$as_ac_Header=no"
3527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3532 cat >>confdefs.h <<_ACEOF
3533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3541 echo "$as_me:$LINENO: checking for void *" >&5
3542 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3543 if test "${ac_cv_type_void_p+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 cat >conftest.$ac_ext <<_ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 $ac_includes_default
3558 if (sizeof (void *))
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; } &&
3579 { ac_try='test -s conftest.$ac_objext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 ac_cv_type_void_p=yes
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 ac_cv_type_void_p=no
3592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3594 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3595 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3597 echo "$as_me:$LINENO: checking size of void *" >&5
3598 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3599 if test "${ac_cv_sizeof_void_p+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 if test "$ac_cv_type_void_p" = yes; then
3603 # The cast to unsigned long works around a bug in the HP C Compiler
3604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3606 # This bug is HP SR number 8606223364.
3607 if test "$cross_compiling" = yes; then
3608 # Depending upon the size, compute the lo and hi bounds.
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 $ac_includes_default
3619 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3626 rm -f conftest.$ac_objext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3630 grep -v '^ *+' conftest.er1 >conftest.err
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 $ac_includes_default
3659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3687 ac_hi=$ac_mid; break
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 ac_lo=`expr $ac_mid + 1`
3693 if test $ac_lo -le $ac_mid; then
3697 ac_mid=`expr 2 '*' $ac_mid + 1`
3699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3711 $ac_includes_default
3715 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3722 rm -f conftest.$ac_objext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3724 (eval $ac_compile) 2>conftest.er1
3726 grep -v '^ *+' conftest.er1 >conftest.err
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } &&
3731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; } &&
3737 { ac_try='test -s conftest.$ac_objext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3745 cat >conftest.$ac_ext <<_ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3751 $ac_includes_default
3755 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3762 rm -f conftest.$ac_objext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>conftest.er1
3766 grep -v '^ *+' conftest.er1 >conftest.err
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try='test -s conftest.$ac_objext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 ac_lo=$ac_mid; break
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 ac_hi=`expr '(' $ac_mid ')' - 1`
3789 if test $ac_mid -le $ac_hi; then
3793 ac_mid=`expr 2 '*' $ac_mid`
3795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3806 # Binary search between lo and hi bounds.
3807 while test "x$ac_lo" != "x$ac_hi"; do
3808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 $ac_includes_default
3819 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 ac_lo=`expr '(' $ac_mid ')' + 1`
3854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3858 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3859 See \`config.log' for more details." >&5
3860 echo "$as_me: error: cannot compute sizeof (void *), 77
3861 See \`config.log' for more details." >&2;}
3862 { (exit 1); exit 1; }; } ;;
3865 if test "$cross_compiling" = yes; then
3866 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3867 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3868 { (exit 1); exit 1; }; }
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 $ac_includes_default
3877 long longval () { return (long) (sizeof (void *)); }
3878 unsigned long ulongval () { return (long) (sizeof (void *)); }
3885 FILE *f = fopen ("conftest.val", "w");
3888 if (((long) (sizeof (void *))) < 0)
3890 long i = longval ();
3891 if (i != ((long) (sizeof (void *))))
3893 fprintf (f, "%ld\n", i);
3897 unsigned long i = ulongval ();
3898 if (i != ((long) (sizeof (void *))))
3900 fprintf (f, "%lu\n", i);
3902 exit (ferror (f) || fclose (f) != 0);
3908 rm -f conftest$ac_exeext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910 (eval $ac_link) 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_sizeof_void_p=`cat conftest.val`
3921 echo "$as_me: program exited with status $ac_status" >&5
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3927 See \`config.log' for more details." >&5
3928 echo "$as_me: error: cannot compute sizeof (void *), 77
3929 See \`config.log' for more details." >&2;}
3930 { (exit 1); exit 1; }; }
3932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3937 ac_cv_sizeof_void_p=0
3940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3941 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3942 cat >>confdefs.h <<_ACEOF
3943 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3947 echo "$as_me:$LINENO: checking for short" >&5
3948 echo $ECHO_N "checking for short... $ECHO_C" >&6
3949 if test "${ac_cv_type_short+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 $ac_includes_default
3970 rm -f conftest.$ac_objext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>conftest.er1
3974 grep -v '^ *+' conftest.er1 >conftest.err
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; } &&
3985 { ac_try='test -s conftest.$ac_objext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 ac_cv_type_short=yes
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4000 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4001 echo "${ECHO_T}$ac_cv_type_short" >&6
4003 echo "$as_me:$LINENO: checking size of short" >&5
4004 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4005 if test "${ac_cv_sizeof_short+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 if test "$ac_cv_type_short" = yes; then
4009 # The cast to unsigned long works around a bug in the HP C Compiler
4010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4012 # This bug is HP SR number 8606223364.
4013 if test "$cross_compiling" = yes; then
4014 # Depending upon the size, compute the lo and hi bounds.
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4021 $ac_includes_default
4025 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 $ac_includes_default
4065 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4072 rm -f conftest.$ac_objext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_hi=$ac_mid; break
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 ac_lo=`expr $ac_mid + 1`
4099 if test $ac_lo -le $ac_mid; then
4103 ac_mid=`expr 2 '*' $ac_mid + 1`
4105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 $ac_includes_default
4121 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4128 rm -f conftest.$ac_objext
4129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4130 (eval $ac_compile) 2>conftest.er1
4132 grep -v '^ *+' conftest.er1 >conftest.err
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest.$ac_objext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 $ac_includes_default
4161 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4168 rm -f conftest.$ac_objext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170 (eval $ac_compile) 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 ac_lo=$ac_mid; break
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 ac_hi=`expr '(' $ac_mid ')' - 1`
4195 if test $ac_mid -le $ac_hi; then
4199 ac_mid=`expr 2 '*' $ac_mid`
4201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4212 # Binary search between lo and hi bounds.
4213 while test "x$ac_lo" != "x$ac_hi"; do
4214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4215 cat >conftest.$ac_ext <<_ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 $ac_includes_default
4225 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4232 rm -f conftest.$ac_objext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4234 (eval $ac_compile) 2>conftest.er1
4236 grep -v '^ *+' conftest.er1 >conftest.err
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; } &&
4247 { ac_try='test -s conftest.$ac_objext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_lo=`expr '(' $ac_mid ')' + 1`
4260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4263 ?*) ac_cv_sizeof_short=$ac_lo;;
4264 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4265 See \`config.log' for more details." >&5
4266 echo "$as_me: error: cannot compute sizeof (short), 77
4267 See \`config.log' for more details." >&2;}
4268 { (exit 1); exit 1; }; } ;;
4271 if test "$cross_compiling" = yes; then
4272 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4273 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4274 { (exit 1); exit 1; }; }
4276 cat >conftest.$ac_ext <<_ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 $ac_includes_default
4283 long longval () { return (long) (sizeof (short)); }
4284 unsigned long ulongval () { return (long) (sizeof (short)); }
4291 FILE *f = fopen ("conftest.val", "w");
4294 if (((long) (sizeof (short))) < 0)
4296 long i = longval ();
4297 if (i != ((long) (sizeof (short))))
4299 fprintf (f, "%ld\n", i);
4303 unsigned long i = ulongval ();
4304 if (i != ((long) (sizeof (short))))
4306 fprintf (f, "%lu\n", i);
4308 exit (ferror (f) || fclose (f) != 0);
4314 rm -f conftest$ac_exeext
4315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4316 (eval $ac_link) 2>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 ac_cv_sizeof_short=`cat conftest.val`
4327 echo "$as_me: program exited with status $ac_status" >&5
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4332 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4333 See \`config.log' for more details." >&5
4334 echo "$as_me: error: cannot compute sizeof (short), 77
4335 See \`config.log' for more details." >&2;}
4336 { (exit 1); exit 1; }; }
4338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4343 ac_cv_sizeof_short=0
4346 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4347 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4348 cat >>confdefs.h <<_ACEOF
4349 #define SIZEOF_SHORT $ac_cv_sizeof_short
4353 echo "$as_me:$LINENO: checking for int" >&5
4354 echo $ECHO_N "checking for int... $ECHO_C" >&6
4355 if test "${ac_cv_type_int+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 cat >conftest.$ac_ext <<_ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 $ac_includes_default
4376 rm -f conftest.$ac_objext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4378 (eval $ac_compile) 2>conftest.er1
4380 grep -v '^ *+' conftest.er1 >conftest.err
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; } &&
4391 { ac_try='test -s conftest.$ac_objext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4406 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4407 echo "${ECHO_T}$ac_cv_type_int" >&6
4409 echo "$as_me:$LINENO: checking size of int" >&5
4410 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4411 if test "${ac_cv_sizeof_int+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 if test "$ac_cv_type_int" = yes; then
4415 # The cast to unsigned long works around a bug in the HP C Compiler
4416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4418 # This bug is HP SR number 8606223364.
4419 if test "$cross_compiling" = yes; then
4420 # Depending upon the size, compute the lo and hi bounds.
4421 cat >conftest.$ac_ext <<_ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 $ac_includes_default
4431 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4438 rm -f conftest.$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>conftest.er1
4442 grep -v '^ *+' conftest.er1 >conftest.err
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4461 cat >conftest.$ac_ext <<_ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 $ac_includes_default
4471 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4478 rm -f conftest.$ac_objext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>conftest.er1
4482 grep -v '^ *+' conftest.er1 >conftest.err
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_hi=$ac_mid; break
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 ac_lo=`expr $ac_mid + 1`
4505 if test $ac_lo -le $ac_mid; then
4509 ac_mid=`expr 2 '*' $ac_mid + 1`
4511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 $ac_includes_default
4527 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>conftest.er1
4538 grep -v '^ *+' conftest.er1 >conftest.err
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; } &&
4549 { ac_try='test -s conftest.$ac_objext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4557 cat >conftest.$ac_ext <<_ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 $ac_includes_default
4567 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4574 rm -f conftest.$ac_objext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576 (eval $ac_compile) 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; } &&
4589 { ac_try='test -s conftest.$ac_objext'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4595 ac_lo=$ac_mid; break
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 ac_hi=`expr '(' $ac_mid ')' - 1`
4601 if test $ac_mid -le $ac_hi; then
4605 ac_mid=`expr 2 '*' $ac_mid`
4607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618 # Binary search between lo and hi bounds.
4619 while test "x$ac_lo" != "x$ac_hi"; do
4620 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4621 cat >conftest.$ac_ext <<_ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4627 $ac_includes_default
4631 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4638 rm -f conftest.$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640 (eval $ac_compile) 2>conftest.er1
4642 grep -v '^ *+' conftest.er1 >conftest.err
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } &&
4647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4664 ac_lo=`expr '(' $ac_mid ')' + 1`
4666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ?*) ac_cv_sizeof_int=$ac_lo;;
4670 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4671 See \`config.log' for more details." >&5
4672 echo "$as_me: error: cannot compute sizeof (int), 77
4673 See \`config.log' for more details." >&2;}
4674 { (exit 1); exit 1; }; } ;;
4677 if test "$cross_compiling" = yes; then
4678 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4679 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4680 { (exit 1); exit 1; }; }
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 $ac_includes_default
4689 long longval () { return (long) (sizeof (int)); }
4690 unsigned long ulongval () { return (long) (sizeof (int)); }
4697 FILE *f = fopen ("conftest.val", "w");
4700 if (((long) (sizeof (int))) < 0)
4702 long i = longval ();
4703 if (i != ((long) (sizeof (int))))
4705 fprintf (f, "%ld\n", i);
4709 unsigned long i = ulongval ();
4710 if (i != ((long) (sizeof (int))))
4712 fprintf (f, "%lu\n", i);
4714 exit (ferror (f) || fclose (f) != 0);
4720 rm -f conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 ac_cv_sizeof_int=`cat conftest.val`
4733 echo "$as_me: program exited with status $ac_status" >&5
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4738 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4739 See \`config.log' for more details." >&5
4740 echo "$as_me: error: cannot compute sizeof (int), 77
4741 See \`config.log' for more details." >&2;}
4742 { (exit 1); exit 1; }; }
4744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4752 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4753 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4754 cat >>confdefs.h <<_ACEOF
4755 #define SIZEOF_INT $ac_cv_sizeof_int
4759 echo "$as_me:$LINENO: checking for long" >&5
4760 echo $ECHO_N "checking for long... $ECHO_C" >&6
4761 if test "${ac_cv_type_long+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 $ac_includes_default
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>conftest.er1
4786 grep -v '^ *+' conftest.er1 >conftest.err
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4812 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4813 echo "${ECHO_T}$ac_cv_type_long" >&6
4815 echo "$as_me:$LINENO: checking size of long" >&5
4816 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4817 if test "${ac_cv_sizeof_long+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 if test "$ac_cv_type_long" = yes; then
4821 # The cast to unsigned long works around a bug in the HP C Compiler
4822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4824 # This bug is HP SR number 8606223364.
4825 if test "$cross_compiling" = yes; then
4826 # Depending upon the size, compute the lo and hi bounds.
4827 cat >conftest.$ac_ext <<_ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 $ac_includes_default
4837 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest.$ac_objext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4867 cat >conftest.$ac_ext <<_ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 $ac_includes_default
4877 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 ac_hi=$ac_mid; break
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 ac_lo=`expr $ac_mid + 1`
4911 if test $ac_lo -le $ac_mid; then
4915 ac_mid=`expr 2 '*' $ac_mid + 1`
4917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 cat >conftest.$ac_ext <<_ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 $ac_includes_default
4933 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4940 rm -f conftest.$ac_objext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4942 (eval $ac_compile) 2>conftest.er1
4944 grep -v '^ *+' conftest.er1 >conftest.err
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4963 cat >conftest.$ac_ext <<_ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 $ac_includes_default
4973 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4984 grep -v '^ *+' conftest.er1 >conftest.err
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; } &&
4995 { ac_try='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 ac_lo=$ac_mid; break
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 ac_hi=`expr '(' $ac_mid ')' - 1`
5007 if test $ac_mid -le $ac_hi; then
5011 ac_mid=`expr 2 '*' $ac_mid`
5013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024 # Binary search between lo and hi bounds.
5025 while test "x$ac_lo" != "x$ac_hi"; do
5026 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5027 cat >conftest.$ac_ext <<_ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 $ac_includes_default
5037 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5044 rm -f conftest.$ac_objext
5045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5046 (eval $ac_compile) 2>conftest.er1
5048 grep -v '^ *+' conftest.er1 >conftest.err
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } &&
5053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; } &&
5059 { ac_try='test -s conftest.$ac_objext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5070 ac_lo=`expr '(' $ac_mid ')' + 1`
5072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5075 ?*) ac_cv_sizeof_long=$ac_lo;;
5076 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5077 See \`config.log' for more details." >&5
5078 echo "$as_me: error: cannot compute sizeof (long), 77
5079 See \`config.log' for more details." >&2;}
5080 { (exit 1); exit 1; }; } ;;
5083 if test "$cross_compiling" = yes; then
5084 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5085 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5086 { (exit 1); exit 1; }; }
5088 cat >conftest.$ac_ext <<_ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 $ac_includes_default
5095 long longval () { return (long) (sizeof (long)); }
5096 unsigned long ulongval () { return (long) (sizeof (long)); }
5103 FILE *f = fopen ("conftest.val", "w");
5106 if (((long) (sizeof (long))) < 0)
5108 long i = longval ();
5109 if (i != ((long) (sizeof (long))))
5111 fprintf (f, "%ld\n", i);
5115 unsigned long i = ulongval ();
5116 if (i != ((long) (sizeof (long))))
5118 fprintf (f, "%lu\n", i);
5120 exit (ferror (f) || fclose (f) != 0);
5126 rm -f conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_cv_sizeof_long=`cat conftest.val`
5139 echo "$as_me: program exited with status $ac_status" >&5
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5145 See \`config.log' for more details." >&5
5146 echo "$as_me: error: cannot compute sizeof (long), 77
5147 See \`config.log' for more details." >&2;}
5148 { (exit 1); exit 1; }; }
5150 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5158 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5159 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5160 cat >>confdefs.h <<_ACEOF
5161 #define SIZEOF_LONG $ac_cv_sizeof_long
5165 if test $ac_cv_c_long_long = yes; then
5166 echo "$as_me:$LINENO: checking for long long" >&5
5167 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5168 if test "${ac_cv_type_long_long+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 cat >conftest.$ac_ext <<_ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 $ac_includes_default
5181 if ((long long *) 0)
5183 if (sizeof (long long))
5189 rm -f conftest.$ac_objext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5191 (eval $ac_compile) 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; } &&
5204 { ac_try='test -s conftest.$ac_objext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 ac_cv_type_long_long=yes
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ac_cv_type_long_long=no
5217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5219 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5220 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5222 echo "$as_me:$LINENO: checking size of long long" >&5
5223 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5224 if test "${ac_cv_sizeof_long_long+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 if test "$ac_cv_type_long_long" = yes; then
5228 # The cast to unsigned long works around a bug in the HP C Compiler
5229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5231 # This bug is HP SR number 8606223364.
5232 if test "$cross_compiling" = yes; then
5233 # Depending upon the size, compute the lo and hi bounds.
5234 cat >conftest.$ac_ext <<_ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 $ac_includes_default
5244 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253 (eval $ac_compile) 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; } &&
5266 { ac_try='test -s conftest.$ac_objext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5274 cat >conftest.$ac_ext <<_ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 $ac_includes_default
5284 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 ac_hi=$ac_mid; break
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5317 ac_lo=`expr $ac_mid + 1`
5318 if test $ac_lo -le $ac_mid; then
5322 ac_mid=`expr 2 '*' $ac_mid + 1`
5324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 $ac_includes_default
5340 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5347 rm -f conftest.$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>conftest.er1
5351 grep -v '^ *+' conftest.er1 >conftest.err
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; } &&
5362 { ac_try='test -s conftest.$ac_objext'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; } &&
5402 { ac_try='test -s conftest.$ac_objext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_lo=$ac_mid; break
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_hi=`expr '(' $ac_mid ')' - 1`
5414 if test $ac_mid -le $ac_hi; then
5418 ac_mid=`expr 2 '*' $ac_mid`
5420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 # Binary search between lo and hi bounds.
5432 while test "x$ac_lo" != "x$ac_hi"; do
5433 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5434 cat >conftest.$ac_ext <<_ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 $ac_includes_default
5444 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest.$ac_objext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 ac_lo=`expr '(' $ac_mid ')' + 1`
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5483 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5484 See \`config.log' for more details." >&5
5485 echo "$as_me: error: cannot compute sizeof (long long), 77
5486 See \`config.log' for more details." >&2;}
5487 { (exit 1); exit 1; }; } ;;
5490 if test "$cross_compiling" = yes; then
5491 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5492 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5493 { (exit 1); exit 1; }; }
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 $ac_includes_default
5502 long longval () { return (long) (sizeof (long long)); }
5503 unsigned long ulongval () { return (long) (sizeof (long long)); }
5510 FILE *f = fopen ("conftest.val", "w");
5513 if (((long) (sizeof (long long))) < 0)
5515 long i = longval ();
5516 if (i != ((long) (sizeof (long long))))
5518 fprintf (f, "%ld\n", i);
5522 unsigned long i = ulongval ();
5523 if (i != ((long) (sizeof (long long))))
5525 fprintf (f, "%lu\n", i);
5527 exit (ferror (f) || fclose (f) != 0);
5533 rm -f conftest$ac_exeext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535 (eval $ac_link) 2>&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_sizeof_long_long=`cat conftest.val`
5546 echo "$as_me: program exited with status $ac_status" >&5
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5552 See \`config.log' for more details." >&5
5553 echo "$as_me: error: cannot compute sizeof (long long), 77
5554 See \`config.log' for more details." >&2;}
5555 { (exit 1); exit 1; }; }
5557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5562 ac_cv_sizeof_long_long=0
5565 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5566 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5567 cat >>confdefs.h <<_ACEOF
5568 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5573 if test $ac_cv_c___int64 = yes; then
5574 echo "$as_me:$LINENO: checking for __int64" >&5
5575 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5576 if test "${ac_cv_type___int64+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 cat >conftest.$ac_ext <<_ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 $ac_includes_default
5591 if (sizeof (__int64))
5597 rm -f conftest.$ac_objext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599 (eval $ac_compile) 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 ac_cv_type___int64=yes
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 ac_cv_type___int64=no
5625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5628 echo "${ECHO_T}$ac_cv_type___int64" >&6
5630 echo "$as_me:$LINENO: checking size of __int64" >&5
5631 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5632 if test "${ac_cv_sizeof___int64+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 if test "$ac_cv_type___int64" = yes; then
5636 # The cast to unsigned long works around a bug in the HP C Compiler
5637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5639 # This bug is HP SR number 8606223364.
5640 if test "$cross_compiling" = yes; then
5641 # Depending upon the size, compute the lo and hi bounds.
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5652 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5659 rm -f conftest.$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5682 cat >conftest.$ac_ext <<_ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 $ac_includes_default
5692 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>conftest.er1
5703 grep -v '^ *+' conftest.er1 >conftest.err
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest.$ac_objext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 ac_hi=$ac_mid; break
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 ac_lo=`expr $ac_mid + 1`
5726 if test $ac_lo -le $ac_mid; then
5730 ac_mid=`expr 2 '*' $ac_mid + 1`
5732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 cat >conftest.$ac_ext <<_ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5744 $ac_includes_default
5748 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5755 rm -f conftest.$ac_objext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757 (eval $ac_compile) 2>conftest.er1
5759 grep -v '^ *+' conftest.er1 >conftest.err
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } &&
5770 { ac_try='test -s conftest.$ac_objext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 $ac_includes_default
5788 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5795 rm -f conftest.$ac_objext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest.$ac_objext'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; }; then
5816 ac_lo=$ac_mid; break
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5821 ac_hi=`expr '(' $ac_mid ')' - 1`
5822 if test $ac_mid -le $ac_hi; then
5826 ac_mid=`expr 2 '*' $ac_mid`
5828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839 # Binary search between lo and hi bounds.
5840 while test "x$ac_lo" != "x$ac_hi"; do
5841 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 $ac_includes_default
5852 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_lo=`expr '(' $ac_mid ')' + 1`
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5890 ?*) ac_cv_sizeof___int64=$ac_lo;;
5891 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5892 See \`config.log' for more details." >&5
5893 echo "$as_me: error: cannot compute sizeof (__int64), 77
5894 See \`config.log' for more details." >&2;}
5895 { (exit 1); exit 1; }; } ;;
5898 if test "$cross_compiling" = yes; then
5899 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5900 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5901 { (exit 1); exit 1; }; }
5903 cat >conftest.$ac_ext <<_ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 $ac_includes_default
5910 long longval () { return (long) (sizeof (__int64)); }
5911 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5918 FILE *f = fopen ("conftest.val", "w");
5921 if (((long) (sizeof (__int64))) < 0)
5923 long i = longval ();
5924 if (i != ((long) (sizeof (__int64))))
5926 fprintf (f, "%ld\n", i);
5930 unsigned long i = ulongval ();
5931 if (i != ((long) (sizeof (__int64))))
5933 fprintf (f, "%lu\n", i);
5935 exit (ferror (f) || fclose (f) != 0);
5941 rm -f conftest$ac_exeext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5943 (eval $ac_link) 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 ac_cv_sizeof___int64=`cat conftest.val`
5954 echo "$as_me: program exited with status $ac_status" >&5
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5960 See \`config.log' for more details." >&5
5961 echo "$as_me: error: cannot compute sizeof (__int64), 77
5962 See \`config.log' for more details." >&2;}
5963 { (exit 1); exit 1; }; }
5965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5970 ac_cv_sizeof___int64=0
5973 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5974 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5975 cat >>confdefs.h <<_ACEOF
5976 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5982 # ---------------------
5983 # Warnings and checking
5984 # ---------------------
5986 # Check $CC warning features (if it's GCC).
5987 # We want to use -pedantic, but we don't want warnings about
5990 # So, we only use -pedantic if we can disable those warnings.
5992 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
5993 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
5994 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 save_CFLAGS="$CFLAGS"
5998 CFLAGS="-Wno-long-long"
5999 cat >conftest.$ac_ext <<_ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_prog_cc_w_no_long_long=yes
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 ac_cv_prog_cc_w_no_long_long=no
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036 CFLAGS="$save_CFLAGS"
6039 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6040 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6042 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6043 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6044 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 save_CFLAGS="$CFLAGS"
6048 CFLAGS="-Wno-variadic-macros"
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6061 grep -v '^ *+' conftest.er1 >conftest.err
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_cv_prog_cc_w_no_variadic_macros=yes
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 ac_cv_prog_cc_w_no_variadic_macros=no
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086 CFLAGS="$save_CFLAGS"
6089 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6090 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6093 if test $ac_cv_prog_cc_w_no_long_long = yes \
6094 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6095 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6099 # Add -Wold-style-definition if it's accepted
6100 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6101 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6102 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 save_CFLAGS="$CFLAGS"
6106 CFLAGS="-Wold-style-definition"
6107 cat >conftest.$ac_ext <<_ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6115 rm -f conftest.$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6119 grep -v '^ *+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag" || 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_old_style_definition=yes
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 ac_cv_prog_cc_w_old_style_definition=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_old_style_definition" >&5
6148 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6149 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6150 strict1_warn="${strict1_warn} -Wold-style-definition"
6153 # Enable -Werror, period.
6154 # Check whether --enable-werror_always or --disable-werror_always was given.
6155 if test "${enable_werror_always+set}" = set; then
6156 enableval="$enable_werror_always"
6159 enable_werror_always=no
6161 if test x${enable_werror_always} = xyes ; then
6162 strict1_warn="${strict1_warn} -Werror"
6166 # If the native compiler is GCC, we can enable warnings even in stage1.
6167 # That's useful for people building cross-compilers, or just running a
6170 if test "x$GCC" = "xyes"; then
6171 warn_cflags='$(GCC_WARN_CFLAGS)'
6175 # Enable -Werror in bootstrap stage2 and later.
6176 # Check whether --enable-werror or --disable-werror was given.
6177 if test "${enable_werror+set}" = set; then
6178 enableval="$enable_werror"
6181 if test x$is_release = x ; then
6182 # Default to "yes" on development branches.
6185 # Default to "no" on release branches.
6189 if test x$enable_werror = xyes ; then
6194 # Enable expensive internal checks
6195 # Check whether --enable-checking or --disable-checking was given.
6196 if test "${enable_checking+set}" = set; then
6197 enableval="$enable_checking"
6198 ac_checking_flags="${enableval}"
6201 # Determine the default checks.
6202 if test x$is_release = x ; then
6203 ac_checking_flags=yes
6205 ac_checking_flags=release
6208 ac_assert_checking=1
6212 ac_rtlflag_checking=
6214 ac_gc_always_collect=
6216 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6217 for check in $ac_checking_flags
6220 yes) ac_assert_checking=1 ; ac_checking=1 ;
6221 ac_tree_checking=1 ; ac_gc_checking=1 ;
6222 ac_rtlflag_checking=1 ;;
6223 no) ac_assert_checking= ; ac_checking= ;
6224 ac_tree_checking= ; ac_rtl_checking= ;
6225 ac_rtlflag_checking= ; ac_gc_checking= ;
6226 ac_gc_always_collect= ; ac_fold_checking= ;;
6227 all) ac_assert_checking=1 ; ac_checking=1 ;
6228 ac_tree_checking=1 ; ac_rtl_checking=1 ;
6229 ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6230 ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6231 release) ac_assert_checking=1 ;;
6232 assert) ac_assert_checking=1 ;;
6233 fold) ac_fold_checking=1 ;;
6234 gc) ac_gc_checking=1 ;;
6235 gcac) ac_gc_always_collect=1 ;;
6236 misc) ac_checking=1 ;;
6237 rtlflag) ac_rtlflag_checking=1 ;;
6238 rtl) ac_rtl_checking=1 ;;
6239 tree) ac_tree_checking=1 ;;
6240 valgrind) ac_checking_valgrind=1 ;;
6241 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6242 echo "$as_me: error: unknown check category $check" >&2;}
6243 { (exit 1); exit 1; }; } ;;
6249 if test x$ac_checking != x ; then
6251 cat >>confdefs.h <<\_ACEOF
6252 #define ENABLE_CHECKING 1
6255 nocommon_flag=-fno-common
6258 if test x$ac_assert_checking != x ; then
6260 cat >>confdefs.h <<\_ACEOF
6261 #define ENABLE_ASSERT_CHECKING 1
6265 if test x$ac_tree_checking != x ; then
6267 cat >>confdefs.h <<\_ACEOF
6268 #define ENABLE_TREE_CHECKING 1
6271 TREEBROWSER=tree-browser.o
6274 if test x$ac_rtl_checking != x ; then
6276 cat >>confdefs.h <<\_ACEOF
6277 #define ENABLE_RTL_CHECKING 1
6281 if test x$ac_rtlflag_checking != x ; then
6283 cat >>confdefs.h <<\_ACEOF
6284 #define ENABLE_RTL_FLAG_CHECKING 1
6288 if test x$ac_gc_checking != x ; then
6290 cat >>confdefs.h <<\_ACEOF
6291 #define ENABLE_GC_CHECKING 1
6295 if test x$ac_gc_always_collect != x ; then
6297 cat >>confdefs.h <<\_ACEOF
6298 #define ENABLE_GC_ALWAYS_COLLECT 1
6302 if test x$ac_fold_checking != x ; then
6304 cat >>confdefs.h <<\_ACEOF
6305 #define ENABLE_FOLD_CHECKING 1
6309 valgrind_path_defines=
6312 if test "${ac_cv_header_valgrind_h+set}" = set; then
6313 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6314 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6315 if test "${ac_cv_header_valgrind_h+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6319 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6321 # Is the header compilable?
6322 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6323 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 $ac_includes_default
6331 #include <valgrind.h>
6333 rm -f conftest.$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest.$ac_objext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_header_compiler=yes
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 ac_header_compiler=no
6361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363 echo "${ECHO_T}$ac_header_compiler" >&6
6365 # Is the header present?
6366 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6367 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 #include <valgrind.h>
6376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6379 grep -v '^ *+' conftest.er1 >conftest.err
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } >/dev/null; then
6384 if test -s conftest.err; then
6385 ac_cpp_err=$ac_c_preproc_warn_flag
6386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6393 if test -z "$ac_cpp_err"; then
6394 ac_header_preproc=yes
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 ac_header_preproc=no
6401 rm -f conftest.err conftest.$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403 echo "${ECHO_T}$ac_header_preproc" >&6
6405 # So? What about this header?
6406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6408 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6409 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6411 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6412 ac_header_preproc=yes
6415 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6416 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6418 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6420 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6422 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6424 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6426 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6429 ## ------------------------------------------ ##
6430 ## Report this to the AC_PACKAGE_NAME lists. ##
6431 ## ------------------------------------------ ##
6434 sed "s/^/$as_me: WARNING: /" >&2
6437 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6438 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6439 if test "${ac_cv_header_valgrind_h+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 ac_cv_header_valgrind_h=$ac_header_preproc
6444 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6445 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6448 if test $ac_cv_header_valgrind_h = yes; then
6456 if test x$ac_checking_valgrind != x ; then
6457 # It is certainly possible that there's valgrind but no valgrind.h.
6458 # GCC relies on making annotations so we must have both.
6459 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6460 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <valgrind/memcheck.h>
6468 #ifndef VALGRIND_DISCARD
6469 #error VALGRIND_DISCARD not defined
6472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6475 grep -v '^ *+' conftest.er1 >conftest.err
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev/null; then
6480 if test -s conftest.err; then
6481 ac_cpp_err=$ac_c_preproc_warn_flag
6482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6489 if test -z "$ac_cpp_err"; then
6490 gcc_cv_header_valgrind_memcheck_h=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 gcc_cv_header_valgrind_memcheck_h=no
6497 rm -f conftest.err conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6499 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6500 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6501 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6502 cat >conftest.$ac_ext <<_ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 #include <memcheck.h>
6509 #ifndef VALGRIND_DISCARD
6510 #error VALGRIND_DISCARD not defined
6513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6516 grep -v '^ *+' conftest.er1 >conftest.err
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } >/dev/null; then
6521 if test -s conftest.err; then
6522 ac_cpp_err=$ac_c_preproc_warn_flag
6523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6530 if test -z "$ac_cpp_err"; then
6531 gcc_cv_header_memcheck_h=yes
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 gcc_cv_header_memcheck_h=no
6538 rm -f conftest.err conftest.$ac_ext
6539 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6540 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6542 # Prepare PATH_SEPARATOR.
6543 # The user is always right.
6544 if test "${PATH_SEPARATOR+set}" != set; then
6545 echo "#! /bin/sh" >conf$$.sh
6546 echo "exit 0" >>conf$$.sh
6548 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6556 # Find out how to test for executable files. Don't use a zero-byte file,
6557 # as systems may use methods other than mode bits to determine executability.
6558 cat >conf$$.file <<_ASEOF
6562 chmod +x conf$$.file
6563 if test -x conf$$.file >/dev/null 2>&1; then
6564 ac_executable_p="test -x"
6566 ac_executable_p="test -f"
6570 # Extract the first word of "valgrind", so it can be a program name with args.
6571 set dummy valgrind; ac_word=$2
6572 echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6574 if test "${ac_cv_path_valgrind_path+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 case "$valgrind_path" in
6579 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6582 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6583 for ac_dir in $PATH; do
6585 test -z "$ac_dir" && ac_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6588 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6589 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6599 valgrind_path="$ac_cv_path_valgrind_path"
6600 if test -n "$valgrind_path"; then
6601 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6602 echo "${ECHO_T}$valgrind_path" >&6
6604 echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6
6608 if test "x$valgrind_path" = "x" \
6609 || (test $have_valgrind_h = no \
6610 && test $gcc_cv_header_memcheck_h = no \
6611 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6612 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6613 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6614 { (exit 1); exit 1; }; }
6616 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6617 valgrind_command="$valgrind_path -q"
6619 cat >>confdefs.h <<\_ACEOF
6620 #define ENABLE_VALGRIND_CHECKING 1
6623 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6625 cat >>confdefs.h <<\_ACEOF
6626 #define HAVE_VALGRIND_MEMCHECK_H 1
6630 if test $gcc_cv_header_memcheck_h = yes; then
6632 cat >>confdefs.h <<\_ACEOF
6633 #define HAVE_MEMCHECK_H 1
6641 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6642 if test "${enable_mapped_location+set}" = set; then
6643 enableval="$enable_mapped_location"
6646 enable_mapped_location=no
6649 if test "$enable_mapped_location" = yes ; then
6651 cat >>confdefs.h <<\_ACEOF
6652 #define USE_MAPPED_LOCATION 1
6657 # Enable code coverage collection
6658 # Check whether --enable-coverage or --disable-coverage was given.
6659 if test "${enable_coverage+set}" = set; then
6660 enableval="$enable_coverage"
6661 case "${enableval}" in
6663 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6666 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6669 # a.k.a. --disable-coverage
6673 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6674 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6675 { (exit 1); exit 1; }; }
6683 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6684 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6685 enableval="$enable_gather_detailed_mem_stats"
6688 enable_gather_detailed_mem_stats=no
6690 if test x$enable_gather_detailed_mem_stats = xyes ; then
6692 cat >>confdefs.h <<\_ACEOF
6693 #define GATHER_STATISTICS 1
6698 # -------------------------------
6699 # Miscenalleous configure options
6700 # -------------------------------
6704 # Check whether --with-stabs or --without-stabs was given.
6705 if test "${with_stabs+set}" = set; then
6706 withval="$with_stabs"
6712 # Determine whether or not multilibs are enabled.
6713 # Check whether --enable-multilib or --disable-multilib was given.
6714 if test "${enable_multilib+set}" = set; then
6715 enableval="$enable_multilib"
6722 # Enable __cxa_atexit for C++.
6723 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6724 if test "${enable___cxa_atexit+set}" = set; then
6725 enableval="$enable___cxa_atexit"
6730 # Pass with no value to take the default
6731 # Pass with a value to specify a thread package
6732 # Check whether --enable-threads or --disable-threads was given.
6733 if test "${enable_threads+set}" = set; then
6734 enableval="$enable_threads"
6740 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6741 if test "${enable_objc_gc+set}" = set; then
6742 enableval="$enable_objc_gc"
6743 if test x$enable_objc_gc = xno; then
6753 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6754 if test "${with_dwarf2+set}" = set; then
6755 withval="$with_dwarf2"
6756 dwarf2="$with_dwarf2"
6761 # Check whether --enable-shared or --disable-shared was given.
6762 if test "${enable_shared+set}" = set; then
6763 enableval="$enable_shared"
6765 case $enable_shared in
6769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6770 for pkg in $enableval; do
6771 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6785 # Check whether --with-sysroot or --without-sysroot was given.
6786 if test "${with_sysroot+set}" = set; then
6787 withval="$with_sysroot"
6789 case ${with_sysroot} in
6790 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6791 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6794 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6795 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6797 if test "x$exec_prefix" = xNONE; then
6798 if test "x$prefix" = xNONE; then
6799 test_prefix=/usr/local
6804 test_prefix=$exec_prefix
6806 case ${TARGET_SYSTEM_ROOT} in
6807 "${test_prefix}"|"${test_prefix}/"*|\
6808 '${exec_prefix}'|'${exec_prefix}/'*)
6809 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6810 TARGET_SYSTEM_ROOT_DEFINE="$t"
6817 TARGET_SYSTEM_ROOT_DEFINE=
6818 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6825 # Build with intermodule optimisations
6826 # Check whether --enable-intermodule or --disable-intermodule was given.
6827 if test "${enable_intermodule+set}" = set; then
6828 enableval="$enable_intermodule"
6829 case ${enable_intermodule} in
6830 yes) onestep="-onestep";;
6838 # Sanity check enable_languages in case someone does not run the toplevel
6839 # configure # script.
6840 # Check whether --enable-languages or --disable-languages was given.
6841 if test "${enable_languages+set}" = set; then
6842 enableval="$enable_languages"
6843 case ,${enable_languages}, in
6845 # go safe -- we cannot be much sure without the toplevel
6847 # analysis of which target libs are present and usable
6851 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6852 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6853 { (exit 1); exit 1; }; }
6858 enable_languages=c,${enable_languages}
6866 for lang in ${srcdir}/*/config-lang.in
6869 # The odd quoting in the next line works around
6870 # an apparent bug in bash 1.12 on linux.
6871 ${srcdir}/[*]/config-lang.in) ;;
6873 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6874 if test "x$lang_alias" = x
6876 echo "$lang doesn't set \$language." 1>&2
6879 case ",$enable_languages," in
6881 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6888 # -------------------------
6889 # Checks for other programs
6890 # -------------------------
6892 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6893 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6894 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6895 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 cat >conftest.make <<\_ACEOF
6900 @echo 'ac_maketemp="$(MAKE)"'
6902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6903 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6904 if test -n "$ac_maketemp"; then
6905 eval ac_cv_prog_make_${ac_make}_set=yes
6907 eval ac_cv_prog_make_${ac_make}_set=no
6911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6912 echo "$as_me:$LINENO: result: yes" >&5
6913 echo "${ECHO_T}yes" >&6
6916 echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6
6918 SET_MAKE="MAKE=${MAKE-make}"
6922 # Find some useful tools
6923 for ac_prog in gawk mawk nawk awk
6925 # Extract the first word of "$ac_prog", so it can be a program name with args.
6926 set dummy $ac_prog; ac_word=$2
6927 echo "$as_me:$LINENO: checking for $ac_word" >&5
6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6929 if test "${ac_cv_prog_AWK+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 if test -n "$AWK"; then
6933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_AWK="$ac_prog"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 if test -n "$AWK"; then
6953 echo "$as_me:$LINENO: result: $AWK" >&5
6954 echo "${ECHO_T}$AWK" >&6
6956 echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6
6960 test -n "$AWK" && break
6963 # We need awk to create options.c and options.h.
6964 # Bail out if it's missing.
6966 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
6967 echo "$as_me: error: can't build without awk, bailing out" >&2;}
6968 { (exit 1); exit 1; }; } ;;
6971 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6972 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6973 if test "${gcc_cv_prog_LN_S+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 rm -f conftestdata_t
6977 echo >conftestdata_f
6978 if ln -s conftestdata_f conftestdata_t 2>/dev/null
6980 gcc_cv_prog_LN_S="ln -s"
6982 if ln conftestdata_f conftestdata_t 2>/dev/null
6986 if cp -p conftestdata_f conftestdata_t 2>/dev/null
6994 rm -f conftestdata_f conftestdata_t
6997 LN_S="$gcc_cv_prog_LN_S"
6998 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
6999 echo "$as_me:$LINENO: result: yes" >&5
7000 echo "${ECHO_T}yes" >&6
7002 if test "$gcc_cv_prog_LN_S" = "ln"; then
7003 echo "$as_me:$LINENO: result: no, using ln" >&5
7004 echo "${ECHO_T}no, using ln" >&6
7006 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7007 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7011 echo "$as_me:$LINENO: checking whether ln works" >&5
7012 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7013 if test "${acx_cv_prog_LN+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 rm -f conftestdata_t
7017 echo >conftestdata_f
7018 if ln conftestdata_f conftestdata_t 2>/dev/null
7024 rm -f conftestdata_f conftestdata_t
7027 if test $acx_cv_prog_LN = no; then
7029 echo "$as_me:$LINENO: result: no, using $LN" >&5
7030 echo "${ECHO_T}no, using $LN" >&6
7032 LN="$acx_cv_prog_LN"
7033 echo "$as_me:$LINENO: result: yes" >&5
7034 echo "${ECHO_T}yes" >&6
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7040 echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7042 if test "${ac_cv_prog_RANLIB+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 if test -n "$RANLIB"; then
7046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 RANLIB=$ac_cv_prog_RANLIB
7065 if test -n "$RANLIB"; then
7066 echo "$as_me:$LINENO: result: $RANLIB" >&5
7067 echo "${ECHO_T}$RANLIB" >&6
7069 echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6
7074 if test -z "$ac_cv_prog_RANLIB"; then
7075 ac_ct_RANLIB=$RANLIB
7076 # Extract the first word of "ranlib", so it can be a program name with args.
7077 set dummy ranlib; ac_word=$2
7078 echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7080 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 if test -n "$ac_ct_RANLIB"; then
7084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_ac_ct_RANLIB="ranlib"
7094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7104 if test -n "$ac_ct_RANLIB"; then
7105 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7106 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7108 echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6
7112 RANLIB=$ac_ct_RANLIB
7114 RANLIB="$ac_cv_prog_RANLIB"
7119 # By default, the Darwin ranlib will not treat common symbols as
7120 # definitions when building the archive table of contents. Other
7121 # ranlibs do that; pass an option to the Darwin ranlib that makes
7122 # it behave similarly.
7130 # Find a good install program. We prefer a C program (faster),
7131 # so one script is as good as another. But avoid the broken or
7132 # incompatible versions:
7133 # SysV /etc/install, /usr/sbin/install
7134 # SunOS /usr/etc/install
7135 # IRIX /sbin/install
7137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7139 # ./install, which can be erroneously created by make from ./install.sh.
7140 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7141 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7142 if test -z "$INSTALL"; then
7143 if test "${ac_cv_path_install+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7147 for ac_dir in $PATH; do
7148 # Account for people who put trailing slashes in PATH elements.
7150 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7152 # OSF1 and SCO ODT 3.0 have their own names for install.
7153 for ac_prog in ginstall scoinst install; do
7154 if test -f $ac_dir/$ac_prog; then
7155 if test $ac_prog = install &&
7156 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7157 # AIX install. It has an incompatible calling convention.
7158 # OSF/1 installbsd also uses dspmsg, but is usable.
7161 ac_cv_path_install="$ac_dir/$ac_prog -c"
7172 if test "${ac_cv_path_install+set}" = set; then
7173 INSTALL="$ac_cv_path_install"
7175 # As a last resort, use the slow shell script. We don't cache a
7176 # path for INSTALL within a source directory, because that will
7177 # break other packages using the cache if that directory is
7178 # removed, or if the path is relative.
7179 INSTALL="$ac_install_sh"
7182 echo "$as_me:$LINENO: result: $INSTALL" >&5
7183 echo "${ECHO_T}$INSTALL" >&6
7185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7186 # It thinks the first close brace ends the variable substitution.
7187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7192 # See if cmp has --ignore-initial.
7193 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7194 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7195 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 gcc_cv_prog_cmp_skip=slowcompare
7201 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7202 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7205 gcc_cv_prog_cmp_skip=gnucompare
7208 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7209 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7210 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7213 gcc_cv_prog_cmp_skip=fastcompare
7220 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7221 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7222 make_compare_target=$gcc_cv_prog_cmp_skip
7226 # See if we have the mktemp command.
7227 # Extract the first word of "mktemp", so it can be a program name with args.
7228 set dummy mktemp; ac_word=$2
7229 echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7231 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 if test -n "$have_mktemp_command"; then
7235 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_have_mktemp_command="yes"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7254 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7255 if test -n "$have_mktemp_command"; then
7256 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7257 echo "${ECHO_T}$have_mktemp_command" >&6
7259 echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6
7264 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7266 # See if makeinfo has been installed and is modern enough
7267 # that we can use it.
7268 # Extract the first word of "makeinfo", so it can be a program name with args.
7269 set dummy makeinfo; ac_word=$2
7270 echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7272 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 if test -n "$MAKEINFO"; then
7276 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_MAKEINFO="makeinfo"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 MAKEINFO=$ac_cv_prog_MAKEINFO
7295 if test -n "$MAKEINFO"; then
7296 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7297 echo "${ECHO_T}$MAKEINFO" >&6
7299 echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6
7303 if test -n "$MAKEINFO"; then
7304 # Found it, now check the version.
7305 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7306 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7307 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 ac_prog_version=`$MAKEINFO --version 2>&1 |
7311 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7312 echo "configure:7312: version of makeinfo is $ac_prog_version" >&5
7313 case $ac_prog_version in
7314 '') gcc_cv_prog_makeinfo_modern=no;;
7316 gcc_cv_prog_makeinfo_modern=yes;;
7317 *) gcc_cv_prog_makeinfo_modern=no;;
7321 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7322 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7324 gcc_cv_prog_makeinfo_modern=no
7327 if test $gcc_cv_prog_makeinfo_modern = no; then
7328 MAKEINFO="$MISSING makeinfo"
7329 { echo "$as_me:$LINENO: WARNING:
7330 *** Makeinfo is missing or too old.
7331 *** Info documentation will not be built." >&5
7332 echo "$as_me: WARNING:
7333 *** Makeinfo is missing or too old.
7334 *** Info documentation will not be built." >&2;}
7341 # Is pod2man recent enough to regenerate manpages?
7342 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7343 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7344 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7345 echo "$as_me:$LINENO: result: yes" >&5
7346 echo "${ECHO_T}yes" >&6
7347 GENERATED_MANPAGES=generated-manpages
7349 echo "$as_me:$LINENO: result: no" >&5
7350 echo "${ECHO_T}no" >&6
7358 # Extract the first word of "$ac_prog", so it can be a program name with args.
7359 set dummy $ac_prog; ac_word=$2
7360 echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362 if test "${ac_cv_prog_FLEX+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 if test -n "$FLEX"; then
7366 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_FLEX="$ac_prog"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 FLEX=$ac_cv_prog_FLEX
7385 if test -n "$FLEX"; then
7386 echo "$as_me:$LINENO: result: $FLEX" >&5
7387 echo "${ECHO_T}$FLEX" >&6
7389 echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6
7393 test -n "$FLEX" && break
7395 test -n "$FLEX" || FLEX="$MISSING flex"
7399 for ac_prog in bison
7401 # Extract the first word of "$ac_prog", so it can be a program name with args.
7402 set dummy $ac_prog; ac_word=$2
7403 echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7405 if test "${ac_cv_prog_BISON+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 if test -n "$BISON"; then
7409 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_BISON="$ac_prog"
7419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 BISON=$ac_cv_prog_BISON
7428 if test -n "$BISON"; then
7429 echo "$as_me:$LINENO: result: $BISON" >&5
7430 echo "${ECHO_T}$BISON" >&6
7432 echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6
7436 test -n "$BISON" && break
7438 test -n "$BISON" || BISON="$MISSING bison"
7441 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7442 # check for build == host before using them.
7445 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7446 && test -d ../binutils ; then
7447 NM='$(objdir)/../binutils/nm-new'
7449 # Extract the first word of "nm", so it can be a program name with args.
7450 set dummy nm; ac_word=$2
7451 echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7453 if test "${ac_cv_prog_NM+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 if test -n "$NM"; then
7457 ac_cv_prog_NM="$NM" # Let the user override the test.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7477 if test -n "$NM"; then
7478 echo "$as_me:$LINENO: result: $NM" >&5
7479 echo "${ECHO_T}$NM" >&6
7481 echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6
7488 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7489 && test -d ../binutils ; then
7490 AR='$(objdir)/../binutils/ar'
7492 # Extract the first word of "ar", so it can be a program name with args.
7493 set dummy ar; ac_word=$2
7494 echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7496 if test "${ac_cv_prog_AR+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 if test -n "$AR"; then
7500 ac_cv_prog_AR="$AR" # Let the user override the test.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7520 if test -n "$AR"; then
7521 echo "$as_me:$LINENO: result: $AR" >&5
7522 echo "${ECHO_T}$AR" >&6
7524 echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6
7531 # --------------------
7532 # Checks for C headers
7533 # --------------------
7535 echo "$as_me:$LINENO: checking for GNU C library" >&5
7536 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7537 if test "${gcc_cv_glibc+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 cat >conftest.$ac_ext <<_ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7546 #include <features.h>
7551 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7552 #error Not a GNU C library system
7558 rm -f conftest.$ac_objext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7560 (eval $ac_compile) 2>conftest.er1
7562 grep -v '^ *+' conftest.er1 >conftest.err
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } &&
7567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; } &&
7573 { ac_try='test -s conftest.$ac_objext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7589 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7590 echo "${ECHO_T}$gcc_cv_glibc" >&6
7591 if test $gcc_cv_glibc = yes; then
7593 cat >>confdefs.h <<\_ACEOF
7594 #define _GNU_SOURCE 1
7599 # Need to reject headers which give warnings, so that the -Werror bootstrap
7600 # works later. *sigh* This needs to come before all header checks.
7602 ac_c_preproc_warn_flag=yes
7604 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7605 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7606 if test "${ac_cv_header_stdc+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 cat >conftest.$ac_ext <<_ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7628 rm -f conftest.$ac_objext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630 (eval $ac_compile) 2>conftest.er1
7632 grep -v '^ *+' conftest.er1 >conftest.err
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; } &&
7643 { ac_try='test -s conftest.$ac_objext'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; }; then
7649 ac_cv_header_stdc=yes
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7654 ac_cv_header_stdc=no
7656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7658 if test $ac_cv_header_stdc = yes; then
7659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7660 cat >conftest.$ac_ext <<_ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7670 $EGREP "memchr" >/dev/null 2>&1; then
7673 ac_cv_header_stdc=no
7679 if test $ac_cv_header_stdc = yes; then
7680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7681 cat >conftest.$ac_ext <<_ACEOF
7684 cat confdefs.h >>conftest.$ac_ext
7685 cat >>conftest.$ac_ext <<_ACEOF
7686 /* end confdefs.h. */
7690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7691 $EGREP "free" >/dev/null 2>&1; then
7694 ac_cv_header_stdc=no
7700 if test $ac_cv_header_stdc = yes; then
7701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7702 if test "$cross_compiling" = yes; then
7705 cat >conftest.$ac_ext <<_ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7712 #if ((' ' & 0x0FF) == 0x020)
7713 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7714 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7716 # define ISLOWER(c) \
7717 (('a' <= (c) && (c) <= 'i') \
7718 || ('j' <= (c) && (c) <= 'r') \
7719 || ('s' <= (c) && (c) <= 'z'))
7720 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7723 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7728 for (i = 0; i < 256; i++)
7729 if (XOR (islower (i), ISLOWER (i))
7730 || toupper (i) != TOUPPER (i))
7735 rm -f conftest$ac_exeext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737 (eval $ac_link) 2>&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7748 echo "$as_me: program exited with status $ac_status" >&5
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7753 ac_cv_header_stdc=no
7755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7759 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7760 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7761 if test $ac_cv_header_stdc = yes; then
7763 cat >>confdefs.h <<\_ACEOF
7764 #define STDC_HEADERS 1
7769 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7770 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7771 if test "${ac_cv_header_time+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.$ac_ext <<_ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 #include <sys/types.h>
7781 #include <sys/time.h>
7787 if ((struct tm *) 0)
7793 rm -f conftest.$ac_objext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795 (eval $ac_compile) 2>conftest.er1
7797 grep -v '^ *+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; } &&
7808 { ac_try='test -s conftest.$ac_objext'
7809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); }; }; then
7814 ac_cv_header_time=yes
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 ac_cv_header_time=no
7821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7823 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7824 echo "${ECHO_T}$ac_cv_header_time" >&6
7825 if test $ac_cv_header_time = yes; then
7827 cat >>confdefs.h <<\_ACEOF
7828 #define TIME_WITH_SYS_TIME 1
7833 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7834 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7835 if test "${gcc_cv_header_string+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7845 #include <strings.h>
7854 rm -f conftest.$ac_objext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856 (eval $ac_compile) 2>conftest.er1
7858 grep -v '^ *+' conftest.er1 >conftest.err
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
7863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; } &&
7869 { ac_try='test -s conftest.$ac_objext'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 gcc_cv_header_string=yes
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7880 gcc_cv_header_string=no
7882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7884 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7885 echo "${ECHO_T}$gcc_cv_header_string" >&6
7886 if test $gcc_cv_header_string = yes; then
7888 cat >>confdefs.h <<\_ACEOF
7889 #define STRING_WITH_STRINGS 1
7894 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7895 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7896 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 #include <sys/types.h>
7906 #include <sys/wait.h>
7908 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7911 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7919 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7924 rm -f conftest.$ac_objext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926 (eval $ac_compile) 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; } &&
7939 { ac_try='test -s conftest.$ac_objext'
7940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; }; then
7945 ac_cv_header_sys_wait_h=yes
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7950 ac_cv_header_sys_wait_h=no
7952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7954 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7955 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7956 if test $ac_cv_header_sys_wait_h = yes; then
7958 cat >>confdefs.h <<\_ACEOF
7959 #define HAVE_SYS_WAIT_H 1
7986 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7987 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7988 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7989 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7992 echo "$as_me:$LINENO: checking for $ac_header" >&5
7993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 cat >conftest.$ac_ext <<_ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <$ac_header>
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8022 if test -z "$ac_cpp_err"; then
8023 eval "$as_ac_Header=yes"
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 eval "$as_ac_Header=no"
8030 rm -f conftest.err conftest.$ac_ext
8032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8035 cat >>confdefs.h <<_ACEOF
8036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8043 # Check for thread headers.
8044 echo "$as_me:$LINENO: checking for thread.h" >&5
8045 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8046 if test "${ac_cv_header_thread_h+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 cat >conftest.$ac_ext <<_ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8060 grep -v '^ *+' conftest.er1 >conftest.err
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } >/dev/null; then
8065 if test -s conftest.err; then
8066 ac_cpp_err=$ac_c_preproc_warn_flag
8067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8074 if test -z "$ac_cpp_err"; then
8075 ac_cv_header_thread_h=yes
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8080 ac_cv_header_thread_h=no
8082 rm -f conftest.err conftest.$ac_ext
8084 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8085 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8086 if test $ac_cv_header_thread_h = yes; then
8092 echo "$as_me:$LINENO: checking for pthread.h" >&5
8093 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8094 if test "${ac_cv_header_pthread_h+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <pthread.h>
8105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8108 grep -v '^ *+' conftest.er1 >conftest.err
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } >/dev/null; then
8113 if test -s conftest.err; then
8114 ac_cpp_err=$ac_c_preproc_warn_flag
8115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8122 if test -z "$ac_cpp_err"; then
8123 ac_cv_header_pthread_h=yes
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_cv_header_pthread_h=no
8130 rm -f conftest.err conftest.$ac_ext
8132 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8133 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8134 if test $ac_cv_header_pthread_h = yes; then
8141 # These tests can't be done till we know if we have limits.h.
8142 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8143 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8144 if test "${gcc_cv_decl_char_bit+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 cat >conftest.$ac_ext <<_ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 #ifdef HAVE_LIMITS_H
8160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8161 $EGREP "found" >/dev/null 2>&1; then
8162 gcc_cv_decl_char_bit=yes
8164 gcc_cv_decl_char_bit=no
8170 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8171 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8172 if test $gcc_cv_decl_char_bit = no; then
8173 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8174 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8175 if test "${gcc_cv_c_nbby+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 while test $i -lt 65; do
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8192 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8193 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8199 rm -f conftest.$ac_objext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8201 (eval $ac_compile) 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 gcc_cv_c_nbby=$i; break
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8229 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8232 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8233 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8234 if test $gcc_cv_c_nbby = failed; then
8235 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8236 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8237 { (exit 1); exit 1; }; }
8240 cat >>confdefs.h <<_ACEOF
8241 #define CHAR_BIT $gcc_cv_c_nbby
8246 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8247 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8248 if test "${ac_cv_c_bigendian+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 ac_cv_c_bigendian=unknown
8252 # See if sys/param.h defines the BYTE_ORDER macro.
8253 cat >conftest.$ac_ext <<_ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8259 #include <sys/types.h>
8260 #include <sys/param.h>
8265 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8272 rm -f conftest.$ac_objext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274 (eval $ac_compile) 2>conftest.er1
8276 grep -v '^ *+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; } &&
8287 { ac_try='test -s conftest.$ac_objext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 # It does; now see whether it defined to BIG_ENDIAN or not.
8294 cat >conftest.$ac_ext <<_ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 #include <sys/types.h>
8301 #include <sys/param.h>
8306 #if BYTE_ORDER != BIG_ENDIAN
8313 rm -f conftest.$ac_objext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>conftest.er1
8317 grep -v '^ *+' conftest.er1 >conftest.err
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
8322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest.$ac_objext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_c_bigendian=yes
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 ac_cv_c_bigendian=no
8341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8348 if test $ac_cv_c_bigendian = unknown; then
8349 if test "$cross_compiling" = yes; then
8350 echo $ac_n "cross-compiling... " 2>&6
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8359 /* Are we little or big endian? From Harbison&Steele. */
8363 char c[sizeof (long)];
8366 exit (u.c[sizeof (long) - 1] == 1);
8369 rm -f conftest$ac_exeext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371 (eval $ac_link) 2>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 ac_cv_c_bigendian=no
8382 echo "$as_me: program exited with status $ac_status" >&5
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8387 ac_cv_c_bigendian=yes
8389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8393 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8394 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8395 if test $ac_cv_c_bigendian = unknown; then
8396 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8397 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8399 cat >conftest.c <<EOF
8400 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8401 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8402 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8403 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8404 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8405 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8406 int main() { _ascii (); _ebcdic (); return 0; }
8408 if test -f conftest.c ; then
8409 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8410 if test `grep -l BIGenDianSyS conftest.o` ; then
8411 echo $ac_n ' big endian probe OK, ' 1>&6
8412 ac_cv_c_bigendian=yes
8414 if test `grep -l LiTTleEnDian conftest.o` ; then
8415 echo $ac_n ' little endian probe OK, ' 1>&6
8416 if test $ac_cv_c_bigendian = yes ; then
8417 ac_cv_c_bigendian=unknown;
8419 ac_cv_c_bigendian=no
8422 echo $ac_n 'guessing bigendian ... ' >&6
8425 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8426 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8428 if test $ac_cv_c_bigendian = yes; then
8430 cat >>confdefs.h <<\_ACEOF
8431 #define WORDS_BIGENDIAN 1
8435 cat >>confdefs.h <<\_ACEOF
8436 #define HOST_WORDS_BIG_ENDIAN 1
8444 cat >>confdefs.h <<_ACEOF
8445 #define BYTEORDER $BYTEORDER
8448 if test $ac_cv_c_bigendian = unknown; then
8449 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8450 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8451 { (exit 1); exit 1; }; }
8459 # Stage specific cflags for build.
8463 if test x$GCC = xyes
8465 stage1_cflags="-Wa,-J"
8471 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8472 # sources; use -no-cpp-precomp to get to GNU cpp.
8473 # Apple's GCC has bugs in designated initializer handling, so disable
8475 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8480 # These libraries may be used by collect2.
8481 # We may need a special search path to get them linked.
8482 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8483 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8484 if test "${gcc_cv_collect2_libs+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 for libs in '' -lld -lmld \
8489 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8490 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8493 cat >conftest.$ac_ext <<_ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8500 /* Override any gcc2 internal prototype to avoid an error. */
8504 /* We use char because int might match the return type of a gcc2
8505 builtin and then its argument prototype would still apply. */
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 gcc_cv_collect2_libs="$libs"; break
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8542 rm -f conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8546 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8548 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8549 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8550 case $gcc_cv_collect2_libs in
8552 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8556 # When building Ada code on Alpha, we need exc_resume which is usually in
8557 # -lexc. So test for it.
8560 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8561 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8562 if test "${ac_cv_search_exc_resume+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 ac_func_search_save_LIBS=$LIBS
8566 ac_cv_search_exc_resume=no
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8574 /* Override any gcc2 internal prototype to avoid an error. */
8578 /* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591 (eval $ac_link) 2>conftest.er1
8593 grep -v '^ *+' conftest.er1 >conftest.err
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest$ac_exeext'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8610 ac_cv_search_exc_resume="none required"
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8616 rm -f conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8618 if test "$ac_cv_search_exc_resume" = no; then
8619 for ac_lib in exc; do
8620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8628 /* Override any gcc2 internal prototype to avoid an error. */
8632 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645 (eval $ac_link) 2>conftest.er1
8647 grep -v '^ *+' conftest.er1 >conftest.err
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest$ac_exeext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_search_exc_resume="-l$ac_lib"
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8671 rm -f conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8675 LIBS=$ac_func_search_save_LIBS
8677 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8678 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8679 if test "$ac_cv_search_exc_resume" != no; then
8680 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8688 # Some systems put ldexp and frexp in libm instead of libc; assume
8689 # they're both in the same place. jcf-dump needs them.
8692 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8693 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8694 if test "${ac_cv_search_ldexp+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 ac_func_search_save_LIBS=$LIBS
8698 ac_cv_search_ldexp=no
8699 cat >conftest.$ac_ext <<_ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8706 /* Override any gcc2 internal prototype to avoid an error. */
8710 /* We use char because int might match the return type of a gcc2
8711 builtin and then its argument prototype would still apply. */
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723 (eval $ac_link) 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_cv_search_ldexp="none required"
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8748 rm -f conftest.err conftest.$ac_objext \
8749 conftest$ac_exeext conftest.$ac_ext
8750 if test "$ac_cv_search_ldexp" = no; then
8752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8753 cat >conftest.$ac_ext <<_ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8760 /* Override any gcc2 internal prototype to avoid an error. */
8764 /* We use char because int might match the return type of a gcc2
8765 builtin and then its argument prototype would still apply. */
8775 rm -f conftest.$ac_objext conftest$ac_exeext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8777 (eval $ac_link) 2>conftest.er1
8779 grep -v '^ *+' conftest.er1 >conftest.err
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } &&
8784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest$ac_exeext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8796 ac_cv_search_ldexp="-l$ac_lib"
8799 echo "$as_me: failed program was:" >&5
8800 sed 's/^/| /' conftest.$ac_ext >&5
8803 rm -f conftest.err conftest.$ac_objext \
8804 conftest$ac_exeext conftest.$ac_ext
8807 LIBS=$ac_func_search_save_LIBS
8809 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8810 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8811 if test "$ac_cv_search_ldexp" != no; then
8812 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8820 # Use <inttypes.h> only if it exists,
8821 # doesn't clash with <sys/types.h>, and declares intmax_t.
8822 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8823 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8824 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 cat >conftest.$ac_ext <<_ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8833 #include <sys/types.h>
8834 #include <inttypes.h>
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest.$ac_objext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 gcc_cv_header_inttypes_h=yes
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 gcc_cv_header_inttypes_h=no
8871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8874 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8875 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8876 if test $gcc_cv_header_inttypes_h = yes; then
8878 cat >>confdefs.h <<\_ACEOF
8879 #define HAVE_INTTYPES_H 1
8910 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8911 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8912 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8913 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8917 echo "$as_me:$LINENO: checking for $ac_func" >&5
8918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8919 if eval "test \"\${$as_ac_var+set}\" = set"; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 cat >conftest.$ac_ext <<_ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8930 #define $ac_func innocuous_$ac_func
8932 /* System header to define __stub macros and hopefully few prototypes,
8933 which can conflict with char $ac_func (); below.
8934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8935 <limits.h> exists even on freestanding compilers. */
8938 # include <limits.h>
8940 # include <assert.h>
8945 /* Override any gcc2 internal prototype to avoid an error. */
8950 /* We use char because int might match the return type of a gcc2
8951 builtin and then its argument prototype would still apply. */
8953 /* The GNU C library defines this for functions which it implements
8954 to always fail with ENOSYS. Some functions are actually named
8955 something starting with __ and the normal name is an alias. */
8956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8959 char (*f) () = $ac_func;
8968 return f != $ac_func;
8973 rm -f conftest.$ac_objext conftest$ac_exeext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975 (eval $ac_link) 2>conftest.er1
8977 grep -v '^ *+' conftest.er1 >conftest.err
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 eval "$as_ac_var=yes"
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 eval "$as_ac_var=no"
9001 rm -f conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9006 if test `eval echo '${'$as_ac_var'}'` = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9015 if test x$ac_cv_func_mbstowcs = xyes; then
9016 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9017 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9018 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 if test "$cross_compiling" = yes; then
9022 gcc_cv_func_mbstowcs_works=yes
9024 cat >conftest.$ac_ext <<_ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9037 rm -f conftest$ac_exeext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039 (eval $ac_link) 2>&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 gcc_cv_func_mbstowcs_works=yes
9050 echo "$as_me: program exited with status $ac_status" >&5
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9055 gcc_cv_func_mbstowcs_works=no
9057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9060 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9061 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9062 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9064 cat >>confdefs.h <<\_ACEOF
9065 #define HAVE_WORKING_MBSTOWCS 1
9071 echo "$as_me:$LINENO: checking for ssize_t" >&5
9072 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9073 if test "${ac_cv_type_ssize_t+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 cat >conftest.$ac_ext <<_ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9082 $ac_includes_default
9088 if (sizeof (ssize_t))
9094 rm -f conftest.$ac_objext
9095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9096 (eval $ac_compile) 2>conftest.er1
9098 grep -v '^ *+' conftest.er1 >conftest.err
9100 cat conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; } &&
9109 { ac_try='test -s conftest.$ac_objext'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 ac_cv_type_ssize_t=yes
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 ac_cv_type_ssize_t=no
9122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9124 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9125 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9126 if test $ac_cv_type_ssize_t = yes; then
9130 cat >>confdefs.h <<_ACEOF
9137 # Try to determine the array type of the second argument of getgroups
9138 # for the target system (int or gid_t).
9139 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9140 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9141 if test "${ac_cv_type_uid_t+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 cat >conftest.$ac_ext <<_ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9150 #include <sys/types.h>
9153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9154 $EGREP "uid_t" >/dev/null 2>&1; then
9155 ac_cv_type_uid_t=yes
9162 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9163 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9164 if test $ac_cv_type_uid_t = no; then
9166 cat >>confdefs.h <<\_ACEOF
9171 cat >>confdefs.h <<\_ACEOF
9177 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9178 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9179 if test "${ac_cv_type_getgroups+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 if test "$cross_compiling" = yes; then
9183 ac_cv_type_getgroups=cross
9185 cat >conftest.$ac_ext <<_ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 /* Thanks to Mike Rendell for this test. */
9192 #include <sys/types.h>
9195 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9202 union { gid_t gval; long lval; } val;
9205 for (i = 0; i < NGID; i++)
9206 gidset[i] = val.gval;
9207 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9209 /* Exit non-zero if getgroups seems to require an array of ints. This
9210 happens when gid_t is short but getgroups modifies an array of ints. */
9211 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9214 rm -f conftest$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216 (eval $ac_link) 2>&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_cv_type_getgroups=gid_t
9227 echo "$as_me: program exited with status $ac_status" >&5
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9232 ac_cv_type_getgroups=int
9234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9236 if test $ac_cv_type_getgroups = cross; then
9237 cat >conftest.$ac_ext <<_ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9247 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9248 ac_cv_type_getgroups=gid_t
9250 ac_cv_type_getgroups=int
9256 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9257 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9259 cat >>confdefs.h <<_ACEOF
9260 #define GETGROUPS_T $ac_cv_type_getgroups
9264 if test "${target}" = "${build}"; then
9265 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9268 # This condition may need some tweaking. It should include all
9269 # targets where the array type of the second argument of getgroups
9270 # is int and the type of gid_t is not equivalent to int.
9271 *-*-sunos* | *-*-ultrix*)
9272 TARGET_GETGROUPS_T=int
9275 TARGET_GETGROUPS_T=gid_t
9281 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9282 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9283 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 if test "$cross_compiling" = yes; then
9287 gcc_cv_func_printf_ptr=no
9289 cat >conftest.$ac_ext <<_ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9300 char *p = buf, *q = NULL;
9301 sprintf(buf, "%p", p);
9302 sscanf(buf, "%p", &q);
9306 rm -f conftest$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308 (eval $ac_link) 2>&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 gcc_cv_func_printf_ptr=yes
9319 echo "$as_me: program exited with status $ac_status" >&5
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9324 gcc_cv_func_printf_ptr=no
9326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9328 rm -f core core.* *.core
9330 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9331 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9332 if test $gcc_cv_func_printf_ptr = yes ; then
9334 cat >>confdefs.h <<\_ACEOF
9335 #define HAVE_PRINTF_PTR 1
9341 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9342 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9343 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 cat >conftest.$ac_ext <<_ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 #include <sys/mman.h>
9354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } >/dev/null; then
9362 if test -s conftest.err; then
9363 ac_cpp_err=$ac_c_preproc_warn_flag
9364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9371 if test -z "$ac_cpp_err"; then
9372 ac_cv_header_sys_mman_h=yes
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 ac_cv_header_sys_mman_h=no
9379 rm -f conftest.err conftest.$ac_ext
9381 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9382 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9383 if test $ac_cv_header_sys_mman_h = yes; then
9384 gcc_header_sys_mman_h=yes
9386 gcc_header_sys_mman_h=no
9389 echo "$as_me:$LINENO: checking for mmap" >&5
9390 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9391 if test "${ac_cv_func_mmap+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 cat >conftest.$ac_ext <<_ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9402 #define mmap innocuous_mmap
9404 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char mmap (); below.
9406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 <limits.h> exists even on freestanding compilers. */
9410 # include <limits.h>
9412 # include <assert.h>
9417 /* Override any gcc2 internal prototype to avoid an error. */
9422 /* We use char because int might match the return type of a gcc2
9423 builtin and then its argument prototype would still apply. */
9425 /* The GNU C library defines this for functions which it implements
9426 to always fail with ENOSYS. Some functions are actually named
9427 something starting with __ and the normal name is an alias. */
9428 #if defined (__stub_mmap) || defined (__stub___mmap)
9431 char (*f) () = mmap;
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest$ac_exeext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9473 rm -f conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9476 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9477 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9478 if test $ac_cv_func_mmap = yes; then
9484 if test "$gcc_header_sys_mman_h" != yes \
9485 || test "$gcc_func_mmap" != yes; then
9486 gcc_cv_func_mmap_file=no
9487 gcc_cv_func_mmap_dev_zero=no
9488 gcc_cv_func_mmap_anon=no
9490 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9491 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9492 if test "${gcc_cv_func_mmap_file+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 # Add a system to this blacklist if
9496 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9497 # memory area containing the same data that you'd get if you applied
9498 # read() to the same fd. The only system known to have a problem here
9499 # is VMS, where text files have record structure.
9502 gcc_cv_func_mmap_file=no ;;
9504 gcc_cv_func_mmap_file=yes;;
9507 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9508 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9509 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9510 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9511 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 # Add a system to this blacklist if it has mmap() but /dev/zero
9515 # does not exist, or if mmapping /dev/zero does not give anonymous
9516 # zeroed pages with both the following properties:
9517 # 1. If you map N consecutive pages in with one call, and then
9518 # unmap any subset of those pages, the pages that were not
9519 # explicitly unmapped remain accessible.
9520 # 2. If you map two adjacent blocks of memory and then unmap them
9521 # both at once, they must both go away.
9522 # Systems known to be in this category are Windows (all variants),
9525 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9526 gcc_cv_func_mmap_dev_zero=no ;;
9528 gcc_cv_func_mmap_dev_zero=yes;;
9531 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9532 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9534 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9535 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9536 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9537 if test "${gcc_cv_decl_map_anon+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 cat >conftest.$ac_ext <<_ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 #include <sys/types.h>
9547 #include <sys/mman.h>
9550 #ifndef MAP_ANONYMOUS
9551 #define MAP_ANONYMOUS MAP_ANON
9557 int n = MAP_ANONYMOUS;
9562 rm -f conftest.$ac_objext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564 (eval $ac_compile) 2>conftest.er1
9566 grep -v '^ *+' conftest.er1 >conftest.err
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } &&
9577 { ac_try='test -s conftest.$ac_objext'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 gcc_cv_decl_map_anon=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 gcc_cv_decl_map_anon=no
9590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9593 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9595 if test $gcc_cv_decl_map_anon = no; then
9596 gcc_cv_func_mmap_anon=no
9598 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9599 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9600 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9604 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9605 # doesn't give anonymous zeroed pages with the same properties listed
9606 # above for use of /dev/zero.
9607 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9609 vms* | cygwin* | pe | mingw* | sco* | udk* )
9610 gcc_cv_func_mmap_anon=no ;;
9612 gcc_cv_func_mmap_anon=yes;;
9615 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9616 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9620 if test $gcc_cv_func_mmap_file = yes; then
9622 cat >>confdefs.h <<\_ACEOF
9623 #define HAVE_MMAP_FILE 1
9627 if test $gcc_cv_func_mmap_dev_zero = yes; then
9629 cat >>confdefs.h <<\_ACEOF
9630 #define HAVE_MMAP_DEV_ZERO 1
9634 if test $gcc_cv_func_mmap_anon = yes; then
9636 cat >>confdefs.h <<\_ACEOF
9637 #define HAVE_MMAP_ANON 1
9645 # Under VMS, vfork works very differently than on Unix. The standard test
9646 # won't work, and it isn't easily adaptable. It makes more sense to
9648 ac_cv_func_vfork_works=yes
9651 echo "$as_me:$LINENO: checking for pid_t" >&5
9652 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9653 if test "${ac_cv_type_pid_t+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9674 rm -f conftest.$ac_objext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9676 (eval $ac_compile) 2>conftest.er1
9678 grep -v '^ *+' conftest.er1 >conftest.err
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest.$ac_objext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_type_pid_t=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9705 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9706 if test $ac_cv_type_pid_t = yes; then
9710 cat >>confdefs.h <<_ACEOF
9718 for ac_header in unistd.h vfork.h
9720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9721 echo "$as_me:$LINENO: checking for $ac_header" >&5
9722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 #include <$ac_header>
9734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev/null; then
9742 if test -s conftest.err; then
9743 ac_cpp_err=$ac_c_preproc_warn_flag
9744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9751 if test -z "$ac_cpp_err"; then
9752 eval "$as_ac_Header=yes"
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 eval "$as_ac_Header=no"
9759 rm -f conftest.err conftest.$ac_ext
9761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9764 cat >>confdefs.h <<_ACEOF
9765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9773 for ac_func in fork vfork
9775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9776 echo "$as_me:$LINENO: checking for $ac_func" >&5
9777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9778 if eval "test \"\${$as_ac_var+set}\" = set"; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 cat >conftest.$ac_ext <<_ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9789 #define $ac_func innocuous_$ac_func
9791 /* System header to define __stub macros and hopefully few prototypes,
9792 which can conflict with char $ac_func (); below.
9793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9794 <limits.h> exists even on freestanding compilers. */
9797 # include <limits.h>
9799 # include <assert.h>
9804 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9812 /* The GNU C library defines this for functions which it implements
9813 to always fail with ENOSYS. Some functions are actually named
9814 something starting with __ and the normal name is an alias. */
9815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9818 char (*f) () = $ac_func;
9827 return f != $ac_func;
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834 (eval $ac_link) 2>conftest.er1
9836 grep -v '^ *+' conftest.er1 >conftest.err
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 eval "$as_ac_var=yes"
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 eval "$as_ac_var=no"
9860 rm -f conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9865 if test `eval echo '${'$as_ac_var'}'` = yes; then
9866 cat >>confdefs.h <<_ACEOF
9867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9873 if test "x$ac_cv_func_fork" = xyes; then
9874 echo "$as_me:$LINENO: checking for working fork" >&5
9875 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9876 if test "${ac_cv_func_fork_works+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 if test "$cross_compiling" = yes; then
9880 ac_cv_func_fork_works=cross
9882 cat >conftest.$ac_ext <<_ACEOF
9883 /* By Ruediger Kuhlmann. */
9884 #include <sys/types.h>
9886 # include <unistd.h>
9888 /* Some systems only have a dummy stub for fork() */
9896 rm -f conftest$ac_exeext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898 (eval $ac_link) 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_func_fork_works=yes
9909 echo "$as_me: program exited with status $ac_status" >&5
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_cv_func_fork_works=no
9916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9919 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9920 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9923 ac_cv_func_fork_works=$ac_cv_func_fork
9925 if test "x$ac_cv_func_fork_works" = xcross; then
9927 *-*-amigaos* | *-*-msdosdjgpp*)
9928 # Override, as these systems have only a dummy fork() stub
9929 ac_cv_func_fork_works=no
9932 ac_cv_func_fork_works=yes
9935 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9936 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9938 ac_cv_func_vfork_works=$ac_cv_func_vfork
9939 if test "x$ac_cv_func_vfork" = xyes; then
9940 echo "$as_me:$LINENO: checking for working vfork" >&5
9941 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9942 if test "${ac_cv_func_vfork_works+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 if test "$cross_compiling" = yes; then
9946 ac_cv_func_vfork_works=cross
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 /* Thanks to Paul Eggert for this test. */
9957 #include <sys/types.h>
9958 #include <sys/stat.h>
9959 #include <sys/wait.h>
9961 # include <unistd.h>
9966 /* On some sparc systems, changes by the child to local and incoming
9967 argument registers are propagated back to the parent. The compiler
9968 is told about this with #include <vfork.h>, but some compilers
9969 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9970 static variable whose address is put into a register that is
9971 clobbered by the vfork. */
9974 sparc_address_test (int arg)
9976 sparc_address_test (arg) int arg;
9997 pid_t parent = getpid ();
10000 sparc_address_test (0);
10005 /* Here is another test for sparc vfork register problems. This
10006 test uses lots of local variables, at least as many local
10007 variables as main has allocated so far including compiler
10008 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10009 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10010 reuse the register of parent for one of the local variables,
10011 since it will think that parent can't possibly be used any more
10012 in this routine. Assigning to the local variable will thus
10013 munge parent in the parent process. */
10015 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10016 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10017 /* Convince the compiler that p..p7 are live; otherwise, it might
10018 use the same hardware register for all 8 local variables. */
10019 if (p != p1 || p != p2 || p != p3 || p != p4
10020 || p != p5 || p != p6 || p != p7)
10023 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10024 from child file descriptors. If the child closes a descriptor
10025 before it execs or exits, this munges the parent's descriptor
10026 as well. Test for this by closing stdout in the child. */
10027 _exit(close(fileno(stdout)) != 0);
10032 while (wait(&status) != child)
10035 /* Was there some problem with vforking? */
10038 /* Did the child fail? (This shouldn't happen.) */
10041 /* Did the vfork/compiler bug occur? */
10042 || parent != getpid()
10044 /* Did the file descriptor bug occur? */
10045 || fstat(fileno(stdout), &st) != 0
10050 rm -f conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052 (eval $ac_link) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_func_vfork_works=yes
10063 echo "$as_me: program exited with status $ac_status" >&5
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ( exit $ac_status )
10068 ac_cv_func_vfork_works=no
10070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10073 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10074 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10077 if test "x$ac_cv_func_fork_works" = xcross; then
10078 ac_cv_func_vfork_works=$ac_cv_func_vfork
10079 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10080 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10083 if test "x$ac_cv_func_vfork_works" = xyes; then
10085 cat >>confdefs.h <<\_ACEOF
10086 #define HAVE_WORKING_VFORK 1
10091 cat >>confdefs.h <<\_ACEOF
10096 if test "x$ac_cv_func_fork_works" = xyes; then
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_WORKING_FORK 1
10106 if test "X$prefix" = "XNONE"; then
10107 acl_final_prefix="$ac_default_prefix"
10109 acl_final_prefix="$prefix"
10111 if test "X$exec_prefix" = "XNONE"; then
10112 acl_final_exec_prefix='${prefix}'
10114 acl_final_exec_prefix="$exec_prefix"
10116 acl_save_prefix="$prefix"
10117 prefix="$acl_final_prefix"
10118 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10119 prefix="$acl_save_prefix"
10122 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10123 if test "${with_gnu_ld+set}" = set; then
10124 withval="$with_gnu_ld"
10125 test "$withval" = no || with_gnu_ld=yes
10129 # Prepare PATH_SEPARATOR.
10130 # The user is always right.
10131 if test "${PATH_SEPARATOR+set}" != set; then
10132 echo "#! /bin/sh" >conf$$.sh
10133 echo "exit 0" >>conf$$.sh
10135 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10143 if test "$GCC" = yes; then
10144 # Check if gcc -print-prog-name=ld gives a path.
10145 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10146 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10149 # gcc leaves a trailing carriage return which upsets mingw
10150 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10152 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10155 # Accept absolute paths.
10156 [\\/]* | [A-Za-z]:[\\/]*)
10157 re_direlt='/[^/][^/]*/\.\./'
10158 # Canonicalize the path of ld
10159 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10160 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10161 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10163 test -z "$LD" && LD="$ac_prog"
10166 # If it fails, then pretend we aren't using GCC.
10170 # If it is relative, then search for the first ld in PATH.
10171 with_gnu_ld=unknown
10174 elif test "$with_gnu_ld" = yes; then
10175 echo "$as_me:$LINENO: checking for GNU ld" >&5
10176 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10178 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10179 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10181 if test "${acl_cv_path_LD+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 if test -z "$LD"; then
10185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10186 for ac_dir in $PATH; do
10187 test -z "$ac_dir" && ac_dir=.
10188 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10189 acl_cv_path_LD="$ac_dir/$ac_prog"
10190 # Check to see if the program is GNU ld. I'd rather use --version,
10191 # but apparently some GNU ld's only accept -v.
10192 # Break only if it was the GNU/non-GNU ld that we prefer.
10193 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10194 test "$with_gnu_ld" != no && break
10196 test "$with_gnu_ld" != yes && break
10202 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10206 LD="$acl_cv_path_LD"
10207 if test -n "$LD"; then
10208 echo "$as_me:$LINENO: result: $LD" >&5
10209 echo "${ECHO_T}$LD" >&6
10211 echo "$as_me:$LINENO: result: no" >&5
10212 echo "${ECHO_T}no" >&6
10214 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10215 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10216 { (exit 1); exit 1; }; }
10217 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10218 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10219 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10223 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10224 acl_cv_prog_gnu_ld=yes
10226 acl_cv_prog_gnu_ld=no
10229 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10230 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10231 with_gnu_ld=$acl_cv_prog_gnu_ld
10235 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10236 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10237 if test "${acl_cv_rpath+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10242 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10244 rm -f ./conftest.sh
10248 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10249 echo "${ECHO_T}$acl_cv_rpath" >&6
10251 libext="$acl_cv_libext"
10252 shlibext="$acl_cv_shlibext"
10253 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10254 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10255 hardcode_direct="$acl_cv_hardcode_direct"
10256 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10257 # Check whether --enable-rpath or --disable-rpath was given.
10258 if test "${enable_rpath+set}" = set; then
10259 enableval="$enable_rpath"
10273 acl_save_prefix="$prefix"
10274 prefix="$acl_final_prefix"
10275 acl_save_exec_prefix="$exec_prefix"
10276 exec_prefix="$acl_final_exec_prefix"
10278 eval additional_includedir=\"$includedir\"
10279 eval additional_libdir=\"$libdir\"
10281 exec_prefix="$acl_save_exec_prefix"
10282 prefix="$acl_save_prefix"
10285 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10286 if test "${with_libiconv_prefix+set}" = set; then
10287 withval="$with_libiconv_prefix"
10289 if test "X$withval" = "Xno"; then
10292 if test "X$withval" = "X"; then
10294 acl_save_prefix="$prefix"
10295 prefix="$acl_final_prefix"
10296 acl_save_exec_prefix="$exec_prefix"
10297 exec_prefix="$acl_final_exec_prefix"
10299 eval additional_includedir=\"$includedir\"
10300 eval additional_libdir=\"$libdir\"
10302 exec_prefix="$acl_save_exec_prefix"
10303 prefix="$acl_save_prefix"
10306 additional_includedir="$withval/include"
10307 additional_libdir="$withval/lib"
10317 names_already_handled=
10318 names_next_round='iconv '
10319 while test -n "$names_next_round"; do
10320 names_this_round="$names_next_round"
10322 for name in $names_this_round; do
10324 for n in $names_already_handled; do
10325 if test "$n" = "$name"; then
10326 already_handled=yes
10330 if test -z "$already_handled"; then
10331 names_already_handled="$names_already_handled $name"
10332 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10333 eval value=\"\$HAVE_LIB$uppername\"
10334 if test -n "$value"; then
10335 if test "$value" = yes; then
10336 eval value=\"\$LIB$uppername\"
10337 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10338 eval value=\"\$LTLIB$uppername\"
10339 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10348 if test $use_additional = yes; then
10349 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10350 found_dir="$additional_libdir"
10351 found_so="$additional_libdir/lib$name.$shlibext"
10352 if test -f "$additional_libdir/lib$name.la"; then
10353 found_la="$additional_libdir/lib$name.la"
10356 if test -f "$additional_libdir/lib$name.$libext"; then
10357 found_dir="$additional_libdir"
10358 found_a="$additional_libdir/lib$name.$libext"
10359 if test -f "$additional_libdir/lib$name.la"; then
10360 found_la="$additional_libdir/lib$name.la"
10365 if test "X$found_dir" = "X"; then
10366 for x in $LDFLAGS $LTLIBICONV; do
10368 acl_save_prefix="$prefix"
10369 prefix="$acl_final_prefix"
10370 acl_save_exec_prefix="$exec_prefix"
10371 exec_prefix="$acl_final_exec_prefix"
10373 exec_prefix="$acl_save_exec_prefix"
10374 prefix="$acl_save_prefix"
10378 dir=`echo "X$x" | sed -e 's/^X-L//'`
10379 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10381 found_so="$dir/lib$name.$shlibext"
10382 if test -f "$dir/lib$name.la"; then
10383 found_la="$dir/lib$name.la"
10386 if test -f "$dir/lib$name.$libext"; then
10388 found_a="$dir/lib$name.$libext"
10389 if test -f "$dir/lib$name.la"; then
10390 found_la="$dir/lib$name.la"
10396 if test "X$found_dir" != "X"; then
10401 if test "X$found_dir" != "X"; then
10402 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10403 if test "X$found_so" != "X"; then
10404 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10405 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10408 for x in $ltrpathdirs; do
10409 if test "X$x" = "X$found_dir"; then
10414 if test -z "$haveit"; then
10415 ltrpathdirs="$ltrpathdirs $found_dir"
10417 if test "$hardcode_direct" = yes; then
10418 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10420 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10421 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10423 for x in $rpathdirs; do
10424 if test "X$x" = "X$found_dir"; then
10429 if test -z "$haveit"; then
10430 rpathdirs="$rpathdirs $found_dir"
10434 for x in $LDFLAGS $LIBICONV; do
10436 acl_save_prefix="$prefix"
10437 prefix="$acl_final_prefix"
10438 acl_save_exec_prefix="$exec_prefix"
10439 exec_prefix="$acl_final_exec_prefix"
10441 exec_prefix="$acl_save_exec_prefix"
10442 prefix="$acl_save_prefix"
10444 if test "X$x" = "X-L$found_dir"; then
10449 if test -z "$haveit"; then
10450 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10452 if test "$hardcode_minus_L" != no; then
10453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10455 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10461 if test "X$found_a" != "X"; then
10462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10464 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10467 additional_includedir=
10468 case "$found_dir" in
10470 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10471 additional_includedir="$basedir/include"
10474 if test "X$additional_includedir" != "X"; then
10475 if test "X$additional_includedir" != "X/usr/include"; then
10477 if test "X$additional_includedir" = "X/usr/local/include"; then
10478 if test -n "$GCC"; then
10480 linux*) haveit=yes;;
10484 if test -z "$haveit"; then
10485 for x in $CPPFLAGS $INCICONV; do
10487 acl_save_prefix="$prefix"
10488 prefix="$acl_final_prefix"
10489 acl_save_exec_prefix="$exec_prefix"
10490 exec_prefix="$acl_final_exec_prefix"
10492 exec_prefix="$acl_save_exec_prefix"
10493 prefix="$acl_save_prefix"
10495 if test "X$x" = "X-I$additional_includedir"; then
10500 if test -z "$haveit"; then
10501 if test -d "$additional_includedir"; then
10502 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10508 if test -n "$found_la"; then
10509 save_libdir="$libdir"
10510 case "$found_la" in
10511 */* | *\\*) . "$found_la" ;;
10512 *) . "./$found_la" ;;
10514 libdir="$save_libdir"
10515 for dep in $dependency_libs; do
10518 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10519 if test "X$additional_libdir" != "X/usr/lib"; then
10521 if test "X$additional_libdir" = "X/usr/local/lib"; then
10522 if test -n "$GCC"; then
10524 linux*) haveit=yes;;
10528 if test -z "$haveit"; then
10530 for x in $LDFLAGS $LIBICONV; do
10532 acl_save_prefix="$prefix"
10533 prefix="$acl_final_prefix"
10534 acl_save_exec_prefix="$exec_prefix"
10535 exec_prefix="$acl_final_exec_prefix"
10537 exec_prefix="$acl_save_exec_prefix"
10538 prefix="$acl_save_prefix"
10540 if test "X$x" = "X-L$additional_libdir"; then
10545 if test -z "$haveit"; then
10546 if test -d "$additional_libdir"; then
10547 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10551 for x in $LDFLAGS $LTLIBICONV; do
10553 acl_save_prefix="$prefix"
10554 prefix="$acl_final_prefix"
10555 acl_save_exec_prefix="$exec_prefix"
10556 exec_prefix="$acl_final_exec_prefix"
10558 exec_prefix="$acl_save_exec_prefix"
10559 prefix="$acl_save_prefix"
10561 if test "X$x" = "X-L$additional_libdir"; then
10566 if test -z "$haveit"; then
10567 if test -d "$additional_libdir"; then
10568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10575 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10576 if test "$enable_rpath" != no; then
10578 for x in $rpathdirs; do
10579 if test "X$x" = "X$dir"; then
10584 if test -z "$haveit"; then
10585 rpathdirs="$rpathdirs $dir"
10588 for x in $ltrpathdirs; do
10589 if test "X$x" = "X$dir"; then
10594 if test -z "$haveit"; then
10595 ltrpathdirs="$ltrpathdirs $dir"
10600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10603 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10606 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10613 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10614 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10620 if test "X$rpathdirs" != "X"; then
10621 if test -n "$hardcode_libdir_separator"; then
10623 for found_dir in $rpathdirs; do
10624 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10626 acl_save_libdir="$libdir"
10628 eval flag=\"$hardcode_libdir_flag_spec\"
10629 libdir="$acl_save_libdir"
10630 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10632 for found_dir in $rpathdirs; do
10633 acl_save_libdir="$libdir"
10634 libdir="$found_dir"
10635 eval flag=\"$hardcode_libdir_flag_spec\"
10636 libdir="$acl_save_libdir"
10637 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10641 if test "X$ltrpathdirs" != "X"; then
10642 for found_dir in $ltrpathdirs; do
10643 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10653 am_save_CPPFLAGS="$CPPFLAGS"
10655 for element in $INCICONV; do
10657 for x in $CPPFLAGS; do
10659 acl_save_prefix="$prefix"
10660 prefix="$acl_final_prefix"
10661 acl_save_exec_prefix="$exec_prefix"
10662 exec_prefix="$acl_final_exec_prefix"
10664 exec_prefix="$acl_save_exec_prefix"
10665 prefix="$acl_save_prefix"
10667 if test "X$x" = "X$element"; then
10672 if test -z "$haveit"; then
10673 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10678 echo "$as_me:$LINENO: checking for iconv" >&5
10679 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10680 if test "${am_cv_func_iconv+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 am_cv_func_iconv="no, consider installing GNU libiconv"
10686 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include <stdlib.h>
10697 iconv_t cd = iconv_open("","");
10698 iconv(cd,NULL,NULL,NULL,NULL);
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706 (eval $ac_link) 2>conftest.er1
10708 grep -v '^ *+' conftest.er1 >conftest.err
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest$ac_exeext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 am_cv_func_iconv=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10731 rm -f conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733 if test "$am_cv_func_iconv" != yes; then
10734 am_save_LIBS="$LIBS"
10735 LIBS="$LIBS $LIBICONV"
10736 cat >conftest.$ac_ext <<_ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 #include <stdlib.h>
10747 iconv_t cd = iconv_open("","");
10748 iconv(cd,NULL,NULL,NULL,NULL);
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756 (eval $ac_link) 2>conftest.er1
10758 grep -v '^ *+' conftest.er1 >conftest.err
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } &&
10763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest$ac_exeext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 am_cv_lib_iconv=yes
10776 am_cv_func_iconv=yes
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10782 rm -f conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10784 LIBS="$am_save_LIBS"
10788 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10789 echo "${ECHO_T}$am_cv_func_iconv" >&6
10790 if test "$am_cv_func_iconv" = yes; then
10792 cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_ICONV 1
10797 if test "$am_cv_lib_iconv" = yes; then
10798 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10799 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10800 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10801 echo "${ECHO_T}$LIBICONV" >&6
10803 CPPFLAGS="$am_save_CPPFLAGS"
10810 if test "$am_cv_func_iconv" = yes; then
10811 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10812 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10813 if test "${am_cv_proto_iconv+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 cat >conftest.$ac_ext <<_ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10824 #include <stdlib.h>
10830 #if defined(__STDC__) || defined(__cplusplus)
10831 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10844 rm -f conftest.$ac_objext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10846 (eval $ac_compile) 2>conftest.er1
10848 grep -v '^ *+' conftest.er1 >conftest.err
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; } &&
10859 { ac_try='test -s conftest.$ac_objext'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; }; then
10865 am_cv_proto_iconv_arg1=""
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 am_cv_proto_iconv_arg1="const"
10872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10873 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);"
10876 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10877 echo "$as_me:$LINENO: result: ${ac_t:-
10878 }$am_cv_proto_iconv" >&5
10879 echo "${ECHO_T}${ac_t:-
10880 }$am_cv_proto_iconv" >&6
10882 cat >>confdefs.h <<_ACEOF
10883 #define ICONV_CONST $am_cv_proto_iconv_arg1
10888 # Until we have in-tree GNU iconv:
10893 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10894 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10895 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 #include <locale.h>
10913 rm -f conftest.$ac_objext conftest$ac_exeext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915 (eval $ac_link) 2>conftest.er1
10917 grep -v '^ *+' conftest.er1 >conftest.err
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest$ac_exeext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 am_cv_val_LC_MESSAGES=yes
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 am_cv_val_LC_MESSAGES=no
10941 rm -f conftest.err conftest.$ac_objext \
10942 conftest$ac_exeext conftest.$ac_ext
10944 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10945 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10946 if test $am_cv_val_LC_MESSAGES = yes; then
10948 cat >>confdefs.h <<\_ACEOF
10949 #define HAVE_LC_MESSAGES 1
10955 # We will need to find libiberty.h and ansidecl.h
10956 saved_CFLAGS="$CFLAGS"
10957 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10982 for ac_func in getenv atol sbrk abort atof getcwd getwd \
10983 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
10984 fprintf_unlocked strstr errno snprintf vasprintf \
10985 malloc realloc calloc free basename getopt clock getpagesize
10987 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10988 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10989 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10990 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11000 #define $ac_tr_decl 1
11002 #include "ansidecl.h"
11003 #include "system.h"
11009 char *(*pfn) = (char *(*)) $ac_func ;
11015 rm -f conftest.$ac_objext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11017 (eval $ac_compile) 2>conftest.er1
11019 grep -v '^ *+' conftest.er1 >conftest.err
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try='test -s conftest.$ac_objext'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 eval "gcc_cv_have_decl_$ac_func=yes"
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 eval "gcc_cv_have_decl_$ac_func=no"
11043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11046 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11047 echo "$as_me:$LINENO: result: yes" >&5
11048 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11049 #define $ac_tr_decl 1
11053 echo "$as_me:$LINENO: result: no" >&5
11054 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11055 #define $ac_tr_decl 0
11066 for ac_func in getrlimit setrlimit getrusage
11068 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11069 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11070 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11071 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11081 #define $ac_tr_decl 1
11083 #include "ansidecl.h"
11084 #include "system.h"
11085 #ifdef HAVE_SYS_RESOURCE_H
11086 #include <sys/resource.h>
11094 char *(*pfn) = (char *(*)) $ac_func ;
11100 rm -f conftest.$ac_objext
11101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102 (eval $ac_compile) 2>conftest.er1
11104 grep -v '^ *+' conftest.er1 >conftest.err
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11115 { ac_try='test -s conftest.$ac_objext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 eval "gcc_cv_have_decl_$ac_func=yes"
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 eval "gcc_cv_have_decl_$ac_func=no"
11128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11131 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11132 echo "$as_me:$LINENO: result: yes" >&5
11133 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11134 #define $ac_tr_decl 1
11138 echo "$as_me:$LINENO: result: no" >&5
11139 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11140 #define $ac_tr_decl 0
11148 cat >conftest.$ac_ext <<_ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11155 #include "ansidecl.h"
11156 #include "system.h"
11157 #ifdef HAVE_SYS_RESOURCE_H
11158 #include <sys/resource.h>
11169 rm -f conftest.$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171 (eval $ac_compile) 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; } &&
11184 { ac_try='test -s conftest.$ac_objext'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11196 cat >>confdefs.h <<\_ACEOF
11197 #define rlim_t long
11201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11204 for ac_func in ldgetname
11206 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11207 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11208 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11209 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11219 #define $ac_tr_decl 1
11221 #include "ansidecl.h"
11222 #include "system.h"
11223 #ifdef HAVE_LDFCN_H
11232 char *(*pfn) = (char *(*)) $ac_func ;
11238 rm -f conftest.$ac_objext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11240 (eval $ac_compile) 2>conftest.er1
11242 grep -v '^ *+' conftest.er1 >conftest.err
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; } &&
11253 { ac_try='test -s conftest.$ac_objext'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11259 eval "gcc_cv_have_decl_$ac_func=yes"
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11264 eval "gcc_cv_have_decl_$ac_func=no"
11266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11269 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11270 echo "$as_me:$LINENO: result: yes" >&5
11271 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11272 #define $ac_tr_decl 1
11276 echo "$as_me:$LINENO: result: no" >&5
11277 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11278 #define $ac_tr_decl 0
11287 for ac_func in times
11289 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11290 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11291 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11292 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 cat >conftest.$ac_ext <<_ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11302 #define $ac_tr_decl 1
11304 #include "ansidecl.h"
11305 #include "system.h"
11306 #ifdef HAVE_SYS_TIMES_H
11307 #include <sys/times.h>
11315 char *(*pfn) = (char *(*)) $ac_func ;
11321 rm -f conftest.$ac_objext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323 (eval $ac_compile) 2>conftest.er1
11325 grep -v '^ *+' conftest.er1 >conftest.err
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
11330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest.$ac_objext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 eval "gcc_cv_have_decl_$ac_func=yes"
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 eval "gcc_cv_have_decl_$ac_func=no"
11349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11352 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11353 echo "$as_me:$LINENO: result: yes" >&5
11354 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11355 #define $ac_tr_decl 1
11359 echo "$as_me:$LINENO: result: no" >&5
11360 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11361 #define $ac_tr_decl 0
11369 # More time-related stuff.
11370 echo "$as_me:$LINENO: checking for struct tms" >&5
11371 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11372 if test "${ac_cv_struct_tms+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11383 #include "ansidecl.h"
11384 #include "system.h"
11385 #ifdef HAVE_SYS_TIMES_H
11386 #include <sys/times.h>
11397 rm -f conftest.$ac_objext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11399 (eval $ac_compile) 2>conftest.er1
11401 grep -v '^ *+' conftest.er1 >conftest.err
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try='test -s conftest.$ac_objext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 ac_cv_struct_tms=yes
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 ac_cv_struct_tms=no
11425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11427 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11428 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11429 if test $ac_cv_struct_tms = yes; then
11431 cat >>confdefs.h <<\_ACEOF
11432 #define HAVE_STRUCT_TMS 1
11437 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11438 # revisit after autoconf 2.50.
11439 echo "$as_me:$LINENO: checking for clock_t" >&5
11440 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11441 if test "${gcc_cv_type_clock_t+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 cat >conftest.$ac_ext <<_ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11452 #include "ansidecl.h"
11453 #include "system.h"
11463 rm -f conftest.$ac_objext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11465 (eval $ac_compile) 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; } &&
11478 { ac_try='test -s conftest.$ac_objext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 gcc_cv_type_clock_t=yes
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11489 gcc_cv_type_clock_t=no
11491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11493 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11494 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11495 if test $gcc_cv_type_clock_t = yes; then
11497 cat >>confdefs.h <<\_ACEOF
11498 #define HAVE_CLOCK_T 1
11503 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11504 CFLAGS="$saved_CFLAGS"
11506 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11507 if test "${enable_initfini_array+set}" = set; then
11508 enableval="$enable_initfini_array"
11512 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11513 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11514 if test "${gcc_cv_initfini_array+set}" = set; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 if test "$cross_compiling" = yes; then
11518 gcc_cv_initfini_array=no
11520 cat >conftest.$ac_ext <<_ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11528 int main (void) { return x; }
11529 int foo (void) { x = 0; }
11530 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11532 rm -f conftest$ac_exeext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534 (eval $ac_link) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 gcc_cv_initfini_array=yes
11545 echo "$as_me: program exited with status $ac_status" >&5
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ( exit $ac_status )
11550 gcc_cv_initfini_array=no
11552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11555 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11556 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11557 enable_initfini_array=$gcc_cv_initfini_array
11560 if test $enable_initfini_array = yes; then
11562 cat >>confdefs.h <<\_ACEOF
11563 #define HAVE_INITFINI_ARRAY 1
11568 # mkdir takes a single argument on some systems.
11569 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11570 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11571 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 cat >conftest.$ac_ext <<_ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11581 #include <sys/types.h>
11582 #ifdef HAVE_SYS_STAT_H
11583 # include <sys/stat.h>
11585 #ifdef HAVE_UNISTD_H
11586 # include <unistd.h>
11588 #ifdef HAVE_DIRECT_H
11589 # include <direct.h>
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601 (eval $ac_compile) 2>conftest.er1
11603 grep -v '^ *+' conftest.er1 >conftest.err
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
11608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest.$ac_objext'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 gcc_cv_mkdir_takes_one_arg=no
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 gcc_cv_mkdir_takes_one_arg=yes
11627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11629 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11630 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11631 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11633 cat >>confdefs.h <<\_ACEOF
11634 #define MKDIR_TAKES_ONE_ARG 1
11646 # With Setjmp/Longjmp based exception handling.
11647 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11648 if test "${enable_sjlj_exceptions+set}" = set; then
11649 enableval="$enable_sjlj_exceptions"
11650 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11652 cat >>confdefs.h <<_ACEOF
11653 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11658 # For platforms with the unwind ABI which includes an unwind library,
11659 # libunwind, we can choose to use the system libunwind.
11661 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11662 if test "${with_system_libunwind+set}" = set; then
11663 withval="$with_system_libunwind"
11667 # --------------------------------------------------------
11668 # Build, host, and target specific configuration fragments
11669 # --------------------------------------------------------
11671 # Collect build-machine-specific information.
11672 . ${srcdir}/config.build
11674 # Collect host-machine-specific information.
11675 . ${srcdir}/config.host
11679 # Collect target-machine-specific information.
11680 . ${srcdir}/config.gcc
11682 extra_objs="${host_extra_objs} ${extra_objs}"
11683 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11685 # Default the target-machine variables that were not explicitly set.
11686 if test x"$tm_file" = x
11687 then tm_file=$cpu_type/$cpu_type.h; fi
11689 if test x"$extra_headers" = x
11690 then extra_headers=; fi
11692 if test x$md_file = x
11693 then md_file=$cpu_type/$cpu_type.md; fi
11695 if test x$out_file = x
11696 then out_file=$cpu_type/$cpu_type.c; fi
11698 if test x"$tmake_file" = x
11699 then tmake_file=$cpu_type/t-$cpu_type
11702 if test x"$dwarf2" = xyes
11703 then tm_file="$tm_file tm-dwarf2.h"
11706 # Say what files are being used for the output code and MD file.
11707 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11708 echo "Using \`$srcdir/config/$md_file' as machine description file."
11710 # If any of the xm_file variables contain nonexistent files, warn
11711 # about them and drop them.
11714 for x in $build_xm_file; do
11715 if test -f $srcdir/config/$x
11717 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11718 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11721 build_xm_file="$bx"
11724 for x in $host_xm_file; do
11725 if test -f $srcdir/config/$x
11727 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11728 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11734 for x in $xm_file; do
11735 if test -f $srcdir/config/$x
11737 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11738 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11744 for f in $tm_file; do
11747 if test $count = ax; then
11748 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11750 echo "Using the following target machine macro files:"
11751 for f in $tm_file; do
11752 echo " $srcdir/config/$f"
11756 if test x$need_64bit_hwint = xyes; then
11758 cat >>confdefs.h <<\_ACEOF
11759 #define NEED_64BIT_HOST_WIDE_INT 1
11764 if test x$use_long_long_for_widest_fast_int = xyes; then
11766 cat >>confdefs.h <<\_ACEOF
11767 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11773 for f in $host_xm_file; do
11776 if test $count = a; then
11778 elif test $count = ax; then
11779 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11781 echo "Using the following host machine macro files:"
11782 for f in $host_xm_file; do
11783 echo " $srcdir/config/$f"
11786 echo "Using ${out_host_hook_obj} for host machine hooks."
11788 if test "$host_xm_file" != "$build_xm_file"; then
11790 for f in $build_xm_file; do
11793 if test $count = a; then
11795 elif test $count = ax; then
11796 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11798 echo "Using the following build machine macro files:"
11799 for f in $build_xm_file; do
11800 echo " $srcdir/config/$f"
11809 # Check if a valid thread package
11810 case ${enable_threads} in
11813 target_thread_file='single'
11817 target_thread_file='single'
11819 aix | dce | gnat | irix | posix | rtems | \
11820 single | solaris | vxworks | win32 )
11821 target_thread_file=${enable_threads}
11824 echo "${enable_threads} is an unknown thread package" 1>&2
11829 if test x${thread_file} = x; then
11830 # No thread file set by target-specific clauses in config.gcc,
11831 # so use file chosen by default logic above
11832 thread_file=${target_thread_file}
11835 # Make gthr-default.h if we have a thread file.
11837 if test $thread_file != single; then
11838 rm -f gthr-default.h
11839 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11840 gthread_flags=-DHAVE_GTHR_DEFAULT
11848 if test x$enable___cxa_atexit = xyes || \
11849 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11850 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11851 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11852 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 cat >conftest.$ac_ext <<_ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11863 #define __cxa_atexit innocuous___cxa_atexit
11865 /* System header to define __stub macros and hopefully few prototypes,
11866 which can conflict with char __cxa_atexit (); below.
11867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11868 <limits.h> exists even on freestanding compilers. */
11871 # include <limits.h>
11873 # include <assert.h>
11876 #undef __cxa_atexit
11878 /* Override any gcc2 internal prototype to avoid an error. */
11883 /* We use char because int might match the return type of a gcc2
11884 builtin and then its argument prototype would still apply. */
11885 char __cxa_atexit ();
11886 /* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
11889 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11892 char (*f) () = __cxa_atexit;
11901 return f != __cxa_atexit;
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908 (eval $ac_link) 2>conftest.er1
11910 grep -v '^ *+' conftest.er1 >conftest.err
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; } &&
11921 { ac_try='test -s conftest$ac_exeext'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_cv_func___cxa_atexit=yes
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_cv_func___cxa_atexit=no
11934 rm -f conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
11937 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
11938 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
11939 if test $ac_cv_func___cxa_atexit = yes; then
11941 cat >>confdefs.h <<\_ACEOF
11942 #define DEFAULT_USE_CXA_ATEXIT 1
11946 echo "__cxa_atexit can't be enabled on this target"
11951 # Look for a file containing extra machine modes.
11952 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11953 extra_modes_file='$(srcdir)'/config/${extra_modes}
11956 cat >>confdefs.h <<_ACEOF
11957 #define EXTRA_MODES_FILE "config/$extra_modes"
11962 # auto-host.h is the file containing items generated by autoconf and is
11963 # the first file included by config.h.
11964 # If host=build, it is correct to have bconfig include auto-host.h
11965 # as well. If host!=build, we are in error and need to do more
11966 # work to find out the build config parameters.
11967 if test x$host = x$build
11969 build_auto=auto-host.h
11971 # We create a subdir, then run autoconf in the subdir.
11972 # To prevent recursion we set host and build for the new
11973 # invocation of configure to the build for this invocation
11980 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11981 *) realsrcdir=../${srcdir};;
11983 saved_CFLAGS="${CFLAGS}"
11984 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11985 ${realsrcdir}/configure \
11986 --enable-languages=${enable_languages-all} \
11987 --target=$target_alias --host=$build_alias --build=$build_alias
11988 CFLAGS="${saved_CFLAGS}"
11990 # We just finished tests for the build machine, so rename
11991 # the file auto-build.h in the gcc directory.
11992 mv auto-host.h ../auto-build.h
11995 build_auto=auto-build.h
11999 tm_file="${tm_file} defaults.h"
12000 tm_p_file="${tm_p_file} tm-preds.h"
12001 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12002 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12003 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12004 # put this back in temporarily.
12005 xm_file="ansidecl.h ${xm_file}"
12011 # Get the version trigger filename from the toplevel
12012 if test "${with_gcc_version_trigger+set}" = set; then
12013 gcc_version_trigger=$with_gcc_version_trigger
12015 gcc_version_trigger=${srcdir}/version.c
12017 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
12018 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
12020 # Compile in configure arguments.
12021 if test -f configargs.h ; then
12022 # Being re-configured.
12023 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12024 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12026 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12029 # Double all backslashes and backslash all quotes to turn
12030 # gcc_config_arguments into a C string.
12031 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12032 $gcc_config_arguments
12034 gcc_config_arguments_str=`cat conftest.out`
12037 cat > configargs.h <<EOF
12038 /* Generated automatically. */
12039 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12040 static const char thread_model[] = "$thread_file";
12042 static const struct {
12043 const char *name, *value;
12044 } configure_default_options[] = $configure_default_options;
12047 # Internationalization
12049 VERSION="$gcc_version"
12051 cat >>confdefs.h <<_ACEOF
12052 #define PACKAGE "$PACKAGE"
12058 # If we haven't got the data from the intl directory,
12059 # assume NLS is disabled.
12067 if test -f ../intl/config.intl; then
12068 . ../intl/config.intl
12070 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12071 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12072 if test x"$USE_NLS" != xyes; then
12073 echo "$as_me:$LINENO: result: no" >&5
12074 echo "${ECHO_T}no" >&6
12076 echo "$as_me:$LINENO: result: yes" >&5
12077 echo "${ECHO_T}yes" >&6
12079 cat >>confdefs.h <<\_ACEOF
12080 #define ENABLE_NLS 1
12084 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12085 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12086 # Look for .po and .gmo files in the source directory.
12089 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12090 # If there aren't any .gmo files the shell will give us the
12091 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12093 case "$cat" in *\**)
12096 # The quadruple backslash is collapsed to a double backslash
12097 # by the backticks, then collapsed again by the double quotes,
12098 # leaving us with one backslash in the sed expression (right
12099 # before the dot that mustn't act as a wildcard).
12100 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12101 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12102 # The user is allowed to set LINGUAS to a list of languages to
12103 # install catalogs for. If it's empty that means "all of them."
12104 if test "x$LINGUAS" = x; then
12105 CATALOGS="$CATALOGS $cat"
12106 XLINGUAS="$XLINGUAS $lang"
12108 case "$LINGUAS" in *$lang*)
12109 CATALOGS="$CATALOGS $cat"
12110 XLINGUAS="$XLINGUAS $lang"
12115 LINGUAS="$XLINGUAS"
12116 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12117 echo "${ECHO_T}$LINGUAS" >&6
12120 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12121 # -liconv on the link line twice.
12122 case "$LIBINTL" in *$LIBICONV*)
12126 # Windows32 Registry support for specifying GCC installation paths.
12127 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12128 if test "${enable_win32_registry+set}" = set; then
12129 enableval="$enable_win32_registry"
12133 win32 | pe | cygwin* | mingw32* | uwin*)
12134 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12135 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12136 if test "x$enable_win32_registry" != xno; then
12138 cat >>confdefs.h <<\_ACEOF
12139 #define ENABLE_WIN32_REGISTRY 1
12142 echo "$as_me:$LINENO: result: yes" >&5
12143 echo "${ECHO_T}yes" >&6
12144 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12145 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12146 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 ac_func_search_save_LIBS=$LIBS
12150 ac_cv_search_RegOpenKeyExA=no
12151 cat >conftest.$ac_ext <<_ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12158 /* Override any gcc2 internal prototype to avoid an error. */
12162 /* We use char because int might match the return type of a gcc2
12163 builtin and then its argument prototype would still apply. */
12164 char RegOpenKeyExA ();
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12175 (eval $ac_link) 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_search_RegOpenKeyExA="none required"
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12200 rm -f conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12203 for ac_lib in advapi32; do
12204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12205 cat >conftest.$ac_ext <<_ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12212 /* Override any gcc2 internal prototype to avoid an error. */
12216 /* We use char because int might match the return type of a gcc2
12217 builtin and then its argument prototype would still apply. */
12218 char RegOpenKeyExA ();
12227 rm -f conftest.$ac_objext conftest$ac_exeext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229 (eval $ac_link) 2>conftest.er1
12231 grep -v '^ *+' conftest.er1 >conftest.err
12233 cat conftest.err >&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest$ac_exeext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12255 rm -f conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12259 LIBS=$ac_func_search_save_LIBS
12261 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12262 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12263 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12264 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12269 echo "$as_me:$LINENO: result: no" >&5
12270 echo "${ECHO_T}no" >&6
12273 # Check if user specified a different registry key.
12274 case "x${enable_win32_registry}" in
12277 gcc_cv_win32_registry_key="$VERSION"
12280 # no registry lookup.
12281 gcc_cv_win32_registry_key=''
12284 # user-specified key.
12285 gcc_cv_win32_registry_key="$enable_win32_registry"
12289 if test "x$enable_win32_registry" != xno; then
12290 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12291 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12293 cat >>confdefs.h <<_ACEOF
12294 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12297 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12298 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12303 # Get an absolute path to the GCC top-level source directory
12304 holddir=`${PWDCMD-pwd}`
12306 topdir=`${PWDCMD-pwd}`
12309 # Conditionalize the makefile for this host machine.
12311 for f in ${host_xmake_file}
12313 if test -f ${srcdir}/config/$f
12315 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12319 # Conditionalize the makefile for this target machine.
12321 for f in ${tmake_file}
12323 if test -f ${srcdir}/config/$f
12325 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12328 tmake_file="${tmake_file_}"
12330 # If the host doesn't support symlinks, modify CC in
12331 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12332 # Otherwise, we can use "CC=$(CC)".
12336 cc_set_by_configure="\$(CC)"
12337 quoted_cc_set_by_configure="\$(CC)"
12338 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12339 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12342 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12343 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12344 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12345 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12349 out_object_file=`basename $out_file .c`.o
12353 for f in $tm_file; do
12356 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12357 tm_include_list="${tm_include_list} $f"
12360 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12361 tm_include_list="${tm_include_list} config/$f"
12368 for f in $tm_p_file; do
12371 tm_p_file_list="${tm_p_file_list} $f"
12372 tm_p_include_list="${tm_p_include_list} $f"
12375 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12376 tm_p_include_list="${tm_p_include_list} config/$f"
12382 for f in $xm_file; do
12385 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12386 xm_include_list="${xm_include_list} $f"
12389 xm_file_list="${xm_file_list} $f"
12390 xm_include_list="${xm_include_list} $f"
12393 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12394 xm_include_list="${xm_include_list} config/$f"
12400 host_xm_include_list=
12401 for f in $host_xm_file; do
12404 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12405 host_xm_include_list="${host_xm_include_list} $f"
12408 host_xm_file_list="${host_xm_file_list} $f"
12409 host_xm_include_list="${host_xm_include_list} $f"
12412 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12413 host_xm_include_list="${host_xm_include_list} config/$f"
12418 build_xm_file_list=
12419 for f in $build_xm_file; do
12422 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12423 build_xm_include_list="${build_xm_include_list} $f"
12425 auto-build.h | auto-host.h )
12426 build_xm_file_list="${build_xm_file_list} $f"
12427 build_xm_include_list="${build_xm_include_list} $f"
12430 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12431 build_xm_include_list="${build_xm_include_list} config/$f"
12436 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12437 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12440 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12441 if test x$host != x$target
12443 CROSS="-DCROSS_COMPILE"
12445 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12446 case "$host","$target" in
12447 # Darwin crosses can use the host system's libraries and headers,
12448 # because of the fat library support. Of course, it must be the
12449 # same version of Darwin on both sides. Allow the user to
12450 # just say --target=foo-darwin without a version number to mean
12451 # "the version on this system".
12452 *-*-darwin*,*-*-darwin*)
12453 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12454 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12455 if test $hostos = $targetos -o $targetos = darwin ; then
12457 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12462 i?86-*-*,x86_64-*-* \
12463 | powerpc*-*-*,powerpc64*-*-*)
12464 CROSS="$CROSS -DNATIVE_CROSS" ;;
12466 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12467 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12468 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12471 # If this is a cross-compiler that does not
12472 # have its own set of headers then define
12475 # If this is using newlib, without having the headers available now,
12476 # then define inhibit_libc in LIBGCC2_CFLAGS.
12477 # This prevents libgcc2 from containing any code which requires libc
12480 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12481 test x$with_newlib = xyes ; } &&
12482 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12483 inhibit_libc=-Dinhibit_libc
12487 # When building gcc with a cross-compiler, we need to adjust things so
12488 # that the generator programs are still built with the native compiler.
12489 # Also, we cannot run fixincludes or fix-header.
12491 # These are the normal (build=host) settings:
12492 CC_FOR_BUILD='$(CC)'
12493 BUILD_CFLAGS='$(ALL_CFLAGS)'
12494 STMP_FIXINC=stmp-fixinc
12496 # Possibly disable fixproto, on a per-target basis.
12497 case ${use_fixproto} in
12502 STMP_FIXPROTO=stmp-fixproto
12507 # And these apply if build != host, or we are generating coverage data
12508 if test x$build != x$host || test "x$coverage_flags" != x
12510 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12512 if test "x$TARGET_SYSTEM_ROOT" = x; then
12518 # When bootstrapping from the toplevel, only run fixincludes during stage1
12519 if test -d ../prev-gcc
12522 cp -R ../prev-gcc/include include
12525 # Expand extra_headers to include complete path.
12526 # This substitutes for lots of t-* files.
12527 extra_headers_list=
12528 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12529 for file in ${extra_headers} ; do
12530 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12533 # Define collect2 in Makefile.
12534 case $host_can_use_collect2 in
12536 *) collect2='collect2$(exeext)' ;;
12540 # Add a definition of USE_COLLECT2 if system wants one.
12541 case $use_collect2 in
12542 no) use_collect2= ;;
12545 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12546 xm_defines="${xm_defines} USE_COLLECT2"
12547 case $host_can_use_collect2 in
12549 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12550 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12551 { (exit 1); exit 1; }; }
12557 # ---------------------------
12558 # Assembler & linker features
12559 # ---------------------------
12561 # Identify the assembler which will work hand-in-glove with the newly
12562 # built GCC, so that we can examine its features. This is the assembler
12563 # which will be driven by the driver program.
12565 # If build != host, and we aren't building gas in-tree, we identify a
12566 # build->target assembler and hope that it will have the same features
12567 # as the host->target assembler we'll be using.
12568 echo "$as_me:$LINENO: checking what assembler to use" >&5
12569 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12572 gcc_cv_gas_major_version=
12573 gcc_cv_gas_minor_version=
12574 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12575 if test -x "$DEFAULT_ASSEMBLER"; then
12576 gcc_cv_as="$DEFAULT_ASSEMBLER"
12577 elif test -x as$host_exeext; then
12578 # Build using assembler in the current directory.
12579 gcc_cv_as=./as$host_exeext
12580 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12581 && test -f ../gas/Makefile \
12582 && test x$build = x$host; then
12583 # Single tree build which includes gas. We want to prefer it
12584 # over whatever linker top-level may have detected, since
12585 # we'll use what we're building after installation anyway.
12587 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12588 for f in $gcc_cv_as_bfd_srcdir/configure \
12589 $gcc_cv_as_gas_srcdir/configure \
12590 $gcc_cv_as_gas_srcdir/configure.in \
12591 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12592 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12593 if test x$gcc_cv_gas_version != x; then
12597 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12598 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12599 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12600 case $gcc_cv_gas_patch_version in
12601 "") gcc_cv_gas_patch_version="0" ;;
12603 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12604 + $gcc_cv_gas_minor_version \) \* 1000 \
12605 + $gcc_cv_gas_patch_version`
12607 rm -f as$host_exeext
12608 $LN ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
12609 in_tree_gas_is_elf=no
12610 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12611 || (grep 'obj_format = multi' ../gas/Makefile \
12612 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12614 in_tree_gas_is_elf=yes
12616 elif test -x "$AS_FOR_TARGET"; then
12617 gcc_cv_as="$AS_FOR_TARGET"
12618 elif test -x "$AS" && test x$host = x$target; then
12622 if test "x$gcc_cv_as" = x; then
12623 # Search the same directories that the installed compiler will
12624 # search. Else we may find the wrong assembler and lose. If we
12625 # do not find a suitable assembler binary, then try the user's
12628 # Also note we have to check MD_EXEC_PREFIX before checking the
12629 # user's path. Unfortunately, there is no good way to get at the
12630 # value of MD_EXEC_PREFIX here. So we do a brute force search
12631 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12632 # to be fixed as part of the make/configure rewrite too.
12634 if test "x$exec_prefix" = xNONE; then
12635 if test "x$prefix" = xNONE; then
12636 test_prefix=/usr/local
12638 test_prefix=$prefix
12641 test_prefix=$exec_prefix
12644 # If the loop below does not find an assembler, then use whatever
12645 # one we can find in the users's path.
12647 if test "x$program_prefix" != xNONE; then
12648 gcc_cv_as=${program_prefix}as$host_exeext
12650 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
12653 if test x$host = x$build; then
12654 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12655 $test_prefix/libexec/gcc/$target_noncanonical \
12656 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12657 /usr/lib/gcc/$target_noncanonical \
12658 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12659 $test_prefix/$target_noncanonical/bin"
12664 if test x$host = x$target; then
12665 test_dirs="$test_dirs \
12670 /bsd43/usr/lib/cmplrs/cc \
12671 /usr/cross64/usr/bin \
12672 /usr/lib/cmplrs/cc \
12673 /sysv/usr/lib/cmplrs/cc \
12674 /svr4/usr/lib/cmplrs/cc \
12678 for dir in $test_dirs; do
12679 if test -x $dir/as$host_exeext; then
12680 gcc_cv_as=$dir/as$host_exeext
12685 case $in_tree_gas in
12687 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12688 echo "${ECHO_T}\"newly built gas\"" >&6
12691 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12692 echo "${ECHO_T}$gcc_cv_as" >&6
12696 # Identify the linker which will work hand-in-glove with the newly
12697 # built GCC, so that we can examine its features. This is the linker
12698 # which will be driven by the driver program.
12700 # If build != host, and we aren't building gas in-tree, we identify a
12701 # build->target linker and hope that it will have the same features
12702 # as the host->target linker we'll be using.
12703 echo "$as_me:$LINENO: checking what linker to use" >&5
12704 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12707 gcc_cv_gld_major_version=
12708 gcc_cv_gld_minor_version=
12709 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12710 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12711 if test -x "$DEFAULT_LINKER"; then
12712 gcc_cv_ld="$DEFAULT_LINKER"
12713 elif test -x collect-ld$host_exeext; then
12714 # Build using linker in the current directory.
12715 gcc_cv_ld=./collect-ld$host_exeext
12716 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12717 && test -f ../ld/Makefile \
12718 && test x$build = x$host; then
12719 # Single tree build which includes ld. We want to prefer it
12720 # over whatever linker top-level may have detected, since
12721 # we'll use what we're building after installation anyway.
12723 in_tree_ld_is_elf=no
12724 if (grep 'EMUL = .*elf' ../ld/Makefile \
12725 || grep 'EMUL = .*linux' ../ld/Makefile \
12726 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12727 in_tree_ld_is_elf=yes
12729 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
12731 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12732 if test x$gcc_cv_gld_version != x; then
12736 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12737 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12738 rm -f collect-ld$host_exeext
12739 $LN ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
12740 elif test -x "$LD_FOR_TARGET"; then
12741 gcc_cv_ld="$LD_FOR_TARGET"
12742 elif test -x "$LD" && test x$host = x$target; then
12746 if test "x$gcc_cv_ld" = x; then
12747 # Search the same directories that the installed compiler will
12748 # search. Else we may find the wrong linker and lose. If we
12749 # do not find a suitable linker binary, then try the user's
12752 # Also note we have to check MD_EXEC_PREFIX before checking the
12753 # user's path. Unfortunately, there is no good way to get at the
12754 # value of MD_EXEC_PREFIX here. So we do a brute force search
12755 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12756 # to be fixed as part of the make/configure rewrite too.
12758 if test "x$exec_prefix" = xNONE; then
12759 if test "x$prefix" = xNONE; then
12760 test_prefix=/usr/local
12762 test_prefix=$prefix
12765 test_prefix=$exec_prefix
12768 # If the loop below does not find an linker, then use whatever
12769 # one we can find in the users's path.
12771 if test "x$program_prefix" != xNONE; then
12772 gcc_cv_ld=${program_prefix}ld$host_exeext
12774 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
12777 if test x$host = x$build; then
12778 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12779 $test_prefix/libexec/gcc/$target_noncanonical \
12780 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12781 /usr/lib/gcc/$target_noncanonical \
12782 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12783 $test_prefix/$target_noncanonical/bin"
12788 if test x$host = x$target; then
12789 test_dirs="$test_dirs \
12794 /bsd43/usr/lib/cmplrs/cc \
12795 /usr/cross64/usr/bin \
12796 /usr/lib/cmplrs/cc \
12797 /sysv/usr/lib/cmplrs/cc \
12798 /svr4/usr/lib/cmplrs/cc \
12802 for dir in $test_dirs; do
12803 if test -x $dir/ld$host_exeext; then
12804 gcc_cv_ld=$dir/ld$host_exeext
12809 case $in_tree_ld in
12811 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12812 echo "${ECHO_T}\"newly built ld\"" >&6
12815 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12816 echo "${ECHO_T}$gcc_cv_ld" >&6
12820 # Figure out what nm we will be using.
12821 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12822 echo "$as_me:$LINENO: checking what nm to use" >&5
12823 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12825 if test -x nm$host_exeext; then
12826 gcc_cv_nm=./nm$host_exeext
12827 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12828 && test -f ../binutils/Makefile; then
12829 # Single tree build which includes binutils.
12831 gcc_cv_nm=./nm$host_exeext
12832 rm -f nm$host_exeext
12833 $LN ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
12834 elif test "x$program_prefix" != xNONE; then
12835 gcc_cv_nm=${program_prefix}nm$host_exeext
12837 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
12839 case $in_tree_nm in
12840 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12841 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12842 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12843 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12846 # Figure out what objdump we will be using.
12847 echo "$as_me:$LINENO: checking what objdump to use" >&5
12848 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12850 if test -x objdump$host_exeext; then
12851 gcc_cv_objdump=./objdump$host_exeext
12852 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12853 && test -f ../binutils/Makefile; then
12854 # Single tree build which includes binutils.
12855 in_tree_objdump=yes
12856 gcc_cv_objdump=./objdump$host_exeext
12857 rm -f objdump$host_exeext
12858 $LN ../binutils/objdump$host_exeext objdump$host_exeext 2>/dev/null
12859 elif test "x$program_prefix" != xNONE; then
12860 gcc_cv_objdump=${program_prefix}objdump$host_exeext
12862 gcc_cv_objdump=`echo objdump | \
12863 sed "${program_transform_name}"`$host_exeext
12865 case $in_tree_objdump in
12866 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12867 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12868 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12869 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12872 # Figure out what assembler alignment features are present.
12873 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12874 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12875 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 gcc_cv_as_balign_and_p2align=no
12879 if test $in_tree_gas = yes; then
12880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12881 then gcc_cv_as_balign_and_p2align=yes
12883 elif test x$gcc_cv_as != x; then
12885 .p2align 2' > conftest.s
12886 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); }; }
12893 gcc_cv_as_balign_and_p2align=yes
12895 echo "configure: failed program was" >&5
12898 rm -f conftest.o conftest.s
12901 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
12902 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
12903 if test $gcc_cv_as_balign_and_p2align = yes; then
12905 cat >>confdefs.h <<\_ACEOF
12906 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12911 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
12912 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
12913 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 gcc_cv_as_max_skip_p2align=no
12917 if test $in_tree_gas = yes; then
12918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
12919 then gcc_cv_as_max_skip_p2align=yes
12921 elif test x$gcc_cv_as != x; then
12922 echo '.p2align 4,,7' > conftest.s
12923 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }
12930 gcc_cv_as_max_skip_p2align=yes
12932 echo "configure: failed program was" >&5
12935 rm -f conftest.o conftest.s
12938 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
12939 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
12940 if test $gcc_cv_as_max_skip_p2align = yes; then
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
12948 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
12949 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
12950 if test "${gcc_cv_as_subsection_m1+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 gcc_cv_as_subsection_m1=no
12954 if test $in_tree_gas = yes; then
12955 if test $in_tree_gas_is_elf = yes \
12956 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
12957 then gcc_cv_as_subsection_m1=yes
12959 elif test x$gcc_cv_as != x; then
12960 echo 'conftest_label1: .word 0
12962 conftest_label2: .word 0
12963 .previous' > conftest.s
12964 if { ac_try='$gcc_cv_as -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 if test x$gcc_cv_nm != x; then
12972 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
12973 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
12974 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
12976 else gcc_cv_as_subsection_m1=yes
12978 rm -f conftest.nm1 conftest.nm2
12981 echo "configure: failed program was" >&5
12984 rm -f conftest.o conftest.s
12987 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
12988 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
12989 if test $gcc_cv_as_subsection_m1 = yes; then
12991 cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_GAS_SUBSECTION_ORDERING 1
12997 echo "$as_me:$LINENO: checking assembler for .weak" >&5
12998 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
12999 if test "${gcc_cv_as_weak+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 if test $in_tree_gas = yes; then
13004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13005 then gcc_cv_as_weak=yes
13007 elif test x$gcc_cv_as != x; then
13008 echo ' .weak foobar' > conftest.s
13009 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }
13018 echo "configure: failed program was" >&5
13021 rm -f conftest.o conftest.s
13024 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13025 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13026 if test $gcc_cv_as_weak = yes; then
13028 cat >>confdefs.h <<\_ACEOF
13029 #define HAVE_GAS_WEAK 1
13034 # .hidden needs to be supported in both the assembler and the linker,
13035 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13036 # This is irritatingly difficult to feature test for; we have to check the
13037 # date string after the version number. If we've got an in-tree
13038 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13040 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13041 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13042 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13043 if test "${gcc_cv_as_hidden+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 gcc_cv_as_hidden=no
13047 if test $in_tree_gas = yes; then
13048 if test $in_tree_gas_is_elf = yes \
13049 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13050 then gcc_cv_as_hidden=yes
13052 elif test x$gcc_cv_as != x; then
13053 echo ' .hidden foobar
13054 foobar:' > conftest.s
13055 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }
13062 gcc_cv_as_hidden=yes
13064 echo "configure: failed program was" >&5
13067 rm -f conftest.o conftest.s
13070 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13071 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13074 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13075 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13076 if test "${gcc_cv_ld_hidden+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 if test $in_tree_ld = yes ; then
13080 gcc_cv_ld_hidden=no
13081 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 \
13082 && test $in_tree_ld_is_elf = yes; then
13083 gcc_cv_ld_hidden=yes
13086 gcc_cv_ld_hidden=yes
13087 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13088 if echo "$ld_ver" | grep GNU > /dev/null; then
13089 ld_vers=`echo $ld_ver | sed -n \
13090 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13091 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13092 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13093 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13094 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13095 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13096 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'`
13097 if test 0"$ld_date" -lt 20020404; then
13098 if test -n "$ld_date"; then
13099 # If there was date string, but was earlier than 2002-04-04, fail
13100 gcc_cv_ld_hidden=no
13101 elif test -z "$ld_vers"; then
13102 # If there was no date string nor ld version number, something is wrong
13103 gcc_cv_ld_hidden=no
13105 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13106 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13107 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13108 test -z "$ld_vers_patch" && ld_vers_patch=0
13109 if test "$ld_vers_major" -lt 2; then
13110 gcc_cv_ld_hidden=no
13111 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13112 gcc_cv_ld_hidden="no"
13113 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13114 gcc_cv_ld_hidden=no
13119 case "${target}" in
13120 hppa64*-*-hpux* | ia64*-*-hpux*)
13121 gcc_cv_ld_hidden=yes
13124 gcc_cv_ld_hidden=no
13130 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13131 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13132 libgcc_visibility=no
13134 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13135 libgcc_visibility=yes
13137 cat >>confdefs.h <<\_ACEOF
13138 #define HAVE_GAS_HIDDEN 1
13143 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13144 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13145 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13146 if test "${gcc_cv_as_leb128+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 gcc_cv_as_leb128=no
13150 if test $in_tree_gas = yes; then
13151 if test $in_tree_gas_is_elf = yes \
13152 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13153 then gcc_cv_as_leb128=yes
13155 elif test x$gcc_cv_as != x; then
13162 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }
13169 # GAS versions before 2.11 do not support uleb128,
13170 # despite appearing to.
13171 # ??? There exists an elf-specific test that will crash
13172 # the assembler. Perhaps it's better to figure out whether
13173 # arbitrary sections are supported and try the test.
13174 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13175 if echo "$as_ver" | grep GNU > /dev/null; then
13176 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13177 as_major=`echo $as_ver | sed 's/\..*//'`
13178 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13179 if test $as_major -eq 2 && test $as_minor -lt 11
13181 else gcc_cv_as_leb128=yes
13185 echo "configure: failed program was" >&5
13188 rm -f conftest.o conftest.s
13191 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13192 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13193 if test $gcc_cv_as_leb128 = yes; then
13195 cat >>confdefs.h <<\_ACEOF
13196 #define HAVE_AS_LEB128 1
13201 # GAS versions up to and including 2.11.0 may mis-optimize
13203 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13204 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13205 if test "${gcc_cv_as_eh_frame+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 gcc_cv_as_eh_frame=no
13209 if test $in_tree_gas = yes; then
13210 if test $in_tree_gas_is_elf = yes \
13211 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13212 then gcc_cv_as_eh_frame=yes
13214 elif test x$gcc_cv_as != x; then
13221 .section .eh_frame,"aw",@progbits
13223 .4byte .LECIE1-.LSCIE1
13237 .4byte .LEFDE1-.LASFDE1
13239 .4byte .LASFDE1-__FRAME_BEGIN__
13246 .LEFDE1:' > conftest.s
13247 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }
13254 cat > conftest.lit <<EOF
13255 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13256 0010 01000000 12000000 18000000 00000000 ................
13257 0020 08000000 04080000 0044 .........D
13259 cat > conftest.big <<EOF
13260 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13261 0010 00000001 00000012 00000018 00000000 ................
13262 0020 00000008 04000000 0844 .........D
13264 # If the assembler didn't choke, and we can objdump,
13265 # and we got the correct data, then succeed.
13266 if test x$gcc_cv_objdump != x \
13267 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13268 | tail -3 > conftest.got \
13269 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13270 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13272 gcc_cv_as_eh_frame=yes
13273 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 gcc_cv_as_eh_frame=buggy
13281 # Uh oh, what do we do now?
13282 gcc_cv_as_eh_frame=no
13285 echo "configure: failed program was" >&5
13288 rm -f conftest.o conftest.s
13291 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13292 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13295 if test $gcc_cv_as_eh_frame = buggy; then
13297 cat >>confdefs.h <<\_ACEOF
13298 #define USE_AS_TRADITIONAL_FORMAT 1
13303 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13304 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13305 if test "${gcc_cv_as_shf_merge+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 gcc_cv_as_shf_merge=no
13309 if test $in_tree_gas = yes; then
13310 if test $in_tree_gas_is_elf = yes \
13311 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13312 then gcc_cv_as_shf_merge=yes
13314 elif test x$gcc_cv_as != x; then
13315 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13316 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }
13323 gcc_cv_as_shf_merge=yes
13325 echo "configure: failed program was" >&5
13328 rm -f conftest.o conftest.s
13331 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13332 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13334 if test $gcc_cv_as_shf_merge = no; then
13335 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13336 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13337 if test "${gcc_cv_as_shf_merge+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 gcc_cv_as_shf_merge=no
13341 if test $in_tree_gas = yes; then
13342 if test $in_tree_gas_is_elf = yes \
13343 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13344 then gcc_cv_as_shf_merge=yes
13346 elif test x$gcc_cv_as != x; then
13347 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13348 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }
13355 gcc_cv_as_shf_merge=yes
13357 echo "configure: failed program was" >&5
13360 rm -f conftest.o conftest.s
13363 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13364 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13368 cat >>confdefs.h <<_ACEOF
13369 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13373 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13374 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13375 if test "${gcc_cv_as_comdat_group+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 gcc_cv_as_comdat_group=no
13379 if test $in_tree_gas = yes; then
13380 if test $in_tree_gas_is_elf = yes \
13381 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13382 then gcc_cv_as_comdat_group=yes
13384 elif test x$gcc_cv_as != x; then
13385 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13386 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }
13393 gcc_cv_as_comdat_group=yes
13395 echo "configure: failed program was" >&5
13398 rm -f conftest.o conftest.s
13401 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13402 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13404 if test $gcc_cv_as_comdat_group = yes; then
13405 gcc_cv_as_comdat_group_percent=no
13407 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13408 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13409 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 gcc_cv_as_comdat_group_percent=no
13413 if test $in_tree_gas = yes; then
13414 if test $in_tree_gas_is_elf = yes \
13415 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13416 then gcc_cv_as_comdat_group_percent=yes
13418 elif test x$gcc_cv_as != x; then
13419 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13420 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }
13427 gcc_cv_as_comdat_group_percent=yes
13429 echo "configure: failed program was" >&5
13432 rm -f conftest.o conftest.s
13435 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13436 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13440 cat >>confdefs.h <<_ACEOF
13441 #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`
13445 # Thread-local storage - the check is heavily parametrized.
13453 .section ".tdata","awT",@progbits
13456 ldq $27,__tls_get_addr($29) !literal!1
13457 lda $16,foo($29) !tlsgd!1
13458 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13459 ldq $27,__tls_get_addr($29) !literal!2
13460 lda $16,foo($29) !tlsldm!2
13461 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13462 ldq $1,foo($29) !gotdtprel
13463 ldah $2,foo($29) !dtprelhi
13464 lda $3,foo($2) !dtprello
13465 lda $4,foo($29) !dtprel
13466 ldq $1,foo($29) !gottprel
13467 ldah $2,foo($29) !tprelhi
13468 lda $3,foo($2) !tprello
13469 lda $4,foo($29) !tprel'
13472 tls_as_opt=--fatal-warnings
13476 .section ".tdata","awT",@progbits
13480 leal foo@TLSGD(,%ebx,1), %eax
13481 leal foo@TLSLDM(%ebx), %eax
13482 leal foo@DTPOFF(%eax), %edx
13483 movl foo@GOTTPOFF(%ebx), %eax
13484 subl foo@GOTTPOFF(%ebx), %eax
13485 addl foo@GOTNTPOFF(%ebx), %eax
13486 movl foo@INDNTPOFF, %eax
13487 movl $foo@TPOFF, %eax
13488 subl $foo@TPOFF, %eax
13489 leal foo@NTPOFF(%ecx), %eax'
13492 tls_as_opt=--fatal-warnings
13496 .section ".tdata","awT",@progbits
13500 leaq foo@TLSGD(%rip), %rdi
13501 leaq foo@TLSLD(%rip), %rdi
13502 leaq foo@DTPOFF(%rax), %rdx
13503 movq foo@GOTTPOFF(%rip), %rax
13504 movq $foo@TPOFF, %rax'
13507 tls_as_opt=--fatal-warnings
13511 .section ".tdata","awT",@progbits
13514 addl r16 = @ltoff(@dtpmod(foo#)), gp
13515 addl r17 = @ltoff(@dtprel(foo#)), gp
13516 addl r18 = @ltoff(@tprel(foo#)), gp
13517 addl r19 = @dtprel(foo#), gp
13518 adds r21 = @dtprel(foo#), r13
13519 movl r23 = @dtprel(foo#)
13520 addl r20 = @tprel(foo#), gp
13521 adds r22 = @tprel(foo#), r13
13522 movl r24 = @tprel(foo#)'
13525 tls_as_opt=--fatal-warnings
13529 .section ".tdata","awT",@progbits
13537 addi 3,31,ld0@got@tlsgd
13539 addi 3,31,x1@got@tlsld
13542 addis 9,3,x2@dtprel@ha
13543 addi 9,9,x2@dtprel@l
13544 lwz 9,x3@got@tprel(31)
13547 addis 9,2,x2@tprel@ha
13548 addi 9,9,x2@tprel@l'
13551 tls_as_opt="-a32 --fatal-warnings"
13555 .section ".tdata","awT",@progbits
13563 addi 3,2,ld0@got@tlsgd
13569 addi 3,2,x1@got@tlsld
13575 addis 9,3,x2@dtprel@ha
13576 addi 9,9,x2@dtprel@l
13579 ld 9,x3@got@dtprel(2)
13585 tls_as_opt="-a64 --fatal-warnings"
13589 .section ".tdata","awT",@progbits
13596 .long foo@GOTNTPOFF
13597 .long foo@INDNTPOFF
13598 l %r1,foo@GOTNTPOFF(%r12)
13599 l %r1,0(%r1):tls_load:foo
13600 bas %r14,0(%r1,%r13):tls_gdcall:foo
13601 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13604 tls_as_opt="-m31 --fatal-warnings"
13608 .section ".tdata","awT",@progbits
13615 .quad foo@GOTNTPOFF
13616 lg %r1,foo@GOTNTPOFF(%r12)
13617 larl %r1,foo@INDNTPOFF
13618 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13619 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13622 tls_as_opt="-m64 -Aesame --fatal-warnings"
13624 sh-*-* | sh[34]-*-*)
13626 .section ".tdata","awT",@progbits
13636 tls_as_opt=--fatal-warnings
13640 sparc*-sun-solaris2.*)
13647 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13649 .section ".tdata",#alloc,#write,#tls
13652 sethi %tgd_hi22(foo), %o0
13653 add %o0, %tgd_lo10(foo), %o1
13654 add %l7, %o1, %o0, %tgd_add(foo)
13655 call __tls_get_addr, %tgd_call(foo)
13656 sethi %tldm_hi22(foo), %l1
13657 add %l1, %tldm_lo10(foo), %l2
13658 add %l7, %l2, %o0, %tldm_add(foo)
13659 call __tls_get_addr, %tldm_call(foo)
13660 sethi %tldo_hix22(foo), %l3
13661 xor %l3, %tldo_lox10(foo), %l4
13662 add %o0, %l4, %l5, %tldo_add(foo)
13663 sethi %tie_hi22(foo), %o3
13664 add %o3, %tie_lo10(foo), %o3
13665 ld [%l7 + %o3], %o2, %tie_ld(foo)
13666 add %g7, %o2, %o4, %tie_add(foo)
13667 sethi %tle_hix22(foo), %l1
13668 xor %l1, %tle_lox10(foo), %o5
13669 ld [%g7 + %o5], %o1'
13674 .section ".tdata","awT",@progbits
13677 sethi %tgd_hi22(foo), %o0
13678 add %o0, %tgd_lo10(foo), %o1
13679 add %l7, %o1, %o0, %tgd_add(foo)
13680 call __tls_get_addr, %tgd_call(foo)
13681 sethi %tldm_hi22(foo), %l1
13682 add %l1, %tldm_lo10(foo), %l2
13683 add %l7, %l2, %o0, %tldm_add(foo)
13684 call __tls_get_addr, %tldm_call(foo)
13685 sethi %tldo_hix22(foo), %l3
13686 xor %l3, %tldo_lox10(foo), %l4
13687 add %o0, %l4, %l5, %tldo_add(foo)
13688 sethi %tie_hi22(foo), %o3
13689 add %o3, %tie_lo10(foo), %o3
13690 ld [%l7 + %o3], %o2, %tie_ld(foo)
13691 add %g7, %o2, %o4, %tie_add(foo)
13692 sethi %tle_hix22(foo), %l1
13693 xor %l1, %tle_lox10(foo), %o5
13694 ld [%g7 + %o5], %o1'
13697 tls_as_opt="-32 --fatal-warnings"
13701 if test -z "$tls_first_major"; then
13702 : # If we don't have a check, assume no support.
13704 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13705 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13706 if test "${gcc_cv_as_tls+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 if test $in_tree_gas = yes; then
13711 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13712 then gcc_cv_as_tls=yes
13714 elif test x$gcc_cv_as != x; then
13715 echo "$conftest_s" > conftest.s
13716 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }
13725 echo "configure: failed program was" >&5
13728 rm -f conftest.o conftest.s
13731 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13732 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13733 if test $gcc_cv_as_tls = yes; then
13735 cat >>confdefs.h <<\_ACEOF
13736 #define HAVE_AS_TLS 1
13742 # Target-specific assembler checks.
13744 if test x"$demangler_in_ld" = xyes; then
13745 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13746 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13747 gcc_cv_ld_demangle=no
13748 if test $in_tree_ld = yes; then
13749 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 \
13750 gcc_cv_ld_demangle=yes
13752 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13753 # Check if the GNU linker supports --demangle option
13754 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13755 gcc_cv_ld_demangle=yes
13758 if test x"$gcc_cv_ld_demangle" = xyes; then
13760 cat >>confdefs.h <<\_ACEOF
13761 #define HAVE_LD_DEMANGLE 1
13765 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13766 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13770 # All TARGET_ABI_OSF targets.
13771 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
13772 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13773 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13774 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 gcc_cv_as_alpha_explicit_relocs=no
13778 if test $in_tree_gas = yes; then
13779 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13780 then gcc_cv_as_alpha_explicit_relocs=yes
13782 elif test x$gcc_cv_as != x; then
13783 echo ' .set nomacro
13785 extbl $3, $2, $3 !lituse_bytoff!1
13786 ldq $2, a($29) !literal!1
13787 ldq $4, b($29) !literal!2
13788 ldq_u $3, 0($2) !lituse_base!1
13789 ldq $27, f($29) !literal!5
13790 jsr $26, ($27), f !lituse_jsr!5
13791 ldah $29, 0($26) !gpdisp!3
13792 lda $0, c($29) !gprel
13793 ldah $1, d($29) !gprelhigh
13794 lda $1, d($1) !gprellow
13795 lda $29, 0($29) !gpdisp!3' > conftest.s
13796 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }
13803 gcc_cv_as_alpha_explicit_relocs=yes
13805 echo "configure: failed program was" >&5
13808 rm -f conftest.o conftest.s
13811 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13812 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13813 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13815 cat >>confdefs.h <<\_ACEOF
13816 #define HAVE_AS_EXPLICIT_RELOCS 1
13823 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13824 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
13825 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 gcc_cv_as_cris_no_mul_bug=no
13829 if test $in_tree_gas = yes; then
13830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13831 then gcc_cv_as_cris_no_mul_bug=yes
13833 elif test x$gcc_cv_as != x; then
13834 echo '.text' > conftest.s
13835 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }
13842 gcc_cv_as_cris_no_mul_bug=yes
13844 echo "configure: failed program was" >&5
13847 rm -f conftest.o conftest.s
13850 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
13851 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
13852 if test $gcc_cv_as_cris_no_mul_bug = yes; then
13854 cat >>confdefs.h <<\_ACEOF
13855 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
13862 echo "$as_me:$LINENO: checking assembler for .register" >&5
13863 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
13864 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 gcc_cv_as_sparc_register_op=no
13868 if test x$gcc_cv_as != x; then
13869 echo '.register %g2, #scratch' > 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_sparc_register_op=yes
13879 echo "configure: failed program was" >&5
13882 rm -f conftest.o conftest.s
13885 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
13886 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
13887 if test $gcc_cv_as_sparc_register_op = yes; then
13889 cat >>confdefs.h <<\_ACEOF
13890 #define HAVE_AS_REGISTER_PSEUDO_OP 1
13895 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
13896 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
13897 if test "${gcc_cv_as_sparc_relax+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 gcc_cv_as_sparc_relax=no
13901 if test x$gcc_cv_as != x; then
13902 echo '.text' > conftest.s
13903 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }
13910 gcc_cv_as_sparc_relax=yes
13912 echo "configure: failed program was" >&5
13915 rm -f conftest.o conftest.s
13918 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
13919 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
13920 if test $gcc_cv_as_sparc_relax = yes; then
13922 cat >>confdefs.h <<\_ACEOF
13923 #define HAVE_AS_RELAX_OPTION 1
13928 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
13929 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
13930 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 gcc_cv_as_sparc_ua_pcrel=no
13934 if test x$gcc_cv_as != x; then
13941 .uaword %r_disp32(foo)' > conftest.s
13942 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }
13949 if test x$gcc_cv_ld != x \
13950 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
13951 gcc_cv_as_sparc_ua_pcrel=yes
13955 echo "configure: failed program was" >&5
13958 rm -f conftest.o conftest.s
13961 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
13962 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
13963 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
13965 cat >>confdefs.h <<\_ACEOF
13966 #define HAVE_AS_SPARC_UA_PCREL 1
13970 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
13971 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
13972 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 gcc_cv_as_sparc_ua_pcrel_hidden=no
13976 if test x$gcc_cv_as != x; then
13980 .uaword %r_disp32(foo)
13981 .byte 0x32, 0x33, 0x34
13985 .skip 4' > conftest.s
13986 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }
13993 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
13994 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
13995 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
13996 | grep ' 31000000 07323334' > /dev/null 2>&1; then
13997 if $gcc_cv_objdump -R conftest 2> /dev/null \
13998 | grep 'DISP32' > /dev/null 2>&1; then
14001 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14006 echo "configure: failed program was" >&5
14009 rm -f conftest.o conftest.s
14012 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14013 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14014 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14016 cat >>confdefs.h <<\_ACEOF
14017 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14022 fi # unaligned pcrel relocs
14024 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14025 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14026 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 gcc_cv_as_sparc_offsetable_lo10=no
14030 if test x$gcc_cv_as != x; then
14032 or %g1, %lo(ab) + 12, %g1
14033 or %g1, %lo(ab + 12), %g1' > conftest.s
14034 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }
14041 if test x$gcc_cv_objdump != x \
14042 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14043 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14044 gcc_cv_as_offsetable_lo10=yes
14047 echo "configure: failed program was" >&5
14050 rm -f conftest.o conftest.s
14053 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14054 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14055 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14057 cat >>confdefs.h <<\_ACEOF
14058 #define HAVE_AS_OFFSETABLE_LO10 1
14064 i[34567]86-*-* | x86_64-*-*)
14066 cygwin* | pe | mingw32*)
14067 # Used for DWARF 2 in PE
14068 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14069 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14070 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 gcc_cv_as_ix86_pe_secrel32=no
14074 if test $in_tree_gas = yes; then
14075 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14076 then gcc_cv_as_ix86_pe_secrel32=yes
14078 elif test x$gcc_cv_as != x; then
14082 .secrel32 foo' > conftest.s
14083 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }
14090 if test x$gcc_cv_ld != x \
14091 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14092 gcc_cv_as_ix86_pe_secrel32=yes
14096 echo "configure: failed program was" >&5
14099 rm -f conftest.o conftest.s
14102 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14103 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14104 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_GAS_PE_SECREL32_RELOC 1
14114 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14115 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14116 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 gcc_cv_as_ix86_filds_fists=no
14120 if test $in_tree_gas = yes; then
14121 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14122 then gcc_cv_as_ix86_filds_fists=yes
14124 elif test x$gcc_cv_as != x; then
14125 echo 'filds mem; fists mem' > conftest.s
14126 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }
14133 gcc_cv_as_ix86_filds_fists=yes
14135 echo "configure: failed program was" >&5
14138 rm -f conftest.o conftest.s
14141 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14142 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14143 if test $gcc_cv_as_ix86_filds_fists = yes; then
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_GAS_FILDS_FISTS 1
14151 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14152 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14153 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 gcc_cv_as_ix86_cmov_sun_syntax=no
14157 if test x$gcc_cv_as != x; then
14158 echo 'cmovl.l %edx, %eax' > conftest.s
14159 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }
14166 gcc_cv_as_ix86_cmov_sun_syntax=yes
14168 echo "configure: failed program was" >&5
14171 rm -f conftest.o conftest.s
14174 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14175 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14176 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14178 cat >>confdefs.h <<\_ACEOF
14179 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14184 # This one is used unconditionally by i386.[ch]; it is to be defined
14185 # to 1 if the feature is present, 0 otherwise.
14186 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14187 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14188 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 gcc_cv_as_ix86_gotoff_in_data=no
14192 if test $in_tree_gas = yes; then
14193 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14194 then gcc_cv_as_ix86_gotoff_in_data=yes
14196 elif test x$gcc_cv_as != x; then
14201 .long .L0@GOTOFF' > conftest.s
14202 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }
14209 gcc_cv_as_ix86_gotoff_in_data=yes
14211 echo "configure: failed program was" >&5
14214 rm -f conftest.o conftest.s
14217 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14218 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14221 cat >>confdefs.h <<_ACEOF
14222 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14228 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14229 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14230 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14234 if test $in_tree_gas = yes; then
14235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14236 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14238 elif test x$gcc_cv_as != x; then
14240 addl r15 = @ltoffx(x#), gp
14242 ld8.mov r16 = [r15], x#' > conftest.s
14243 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }
14250 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14252 echo "configure: failed program was" >&5
14255 rm -f conftest.o conftest.s
14258 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14259 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14260 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14262 cat >>confdefs.h <<\_ACEOF
14263 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14272 *-*-aix*) conftest_s=' .csect .text[PR]
14274 *-*-darwin*) conftest_s=' .text
14276 *) conftest_s=' .text
14280 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14281 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14282 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 gcc_cv_as_powerpc_mfcrf=no
14286 if test $in_tree_gas = yes; then
14287 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14288 then gcc_cv_as_powerpc_mfcrf=yes
14290 elif test x$gcc_cv_as != x; then
14291 echo "$conftest_s" > conftest.s
14292 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }
14299 gcc_cv_as_powerpc_mfcrf=yes
14301 echo "configure: failed program was" >&5
14304 rm -f conftest.o conftest.s
14307 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14308 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14309 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14311 cat >>confdefs.h <<\_ACEOF
14312 #define HAVE_AS_MFCRF 1
14319 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14320 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14321 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 gcc_cv_as_mips_explicit_relocs=no
14325 if test $in_tree_gas = yes; then
14326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14327 then gcc_cv_as_mips_explicit_relocs=yes
14329 elif test x$gcc_cv_as != x; then
14330 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14331 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }
14338 gcc_cv_as_mips_explicit_relocs=yes
14340 echo "configure: failed program was" >&5
14343 rm -f conftest.o conftest.s
14346 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14347 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14348 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14349 if test x$target_cpu_default = x
14350 then target_cpu_default=MASK_EXPLICIT_RELOCS
14351 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14355 if test x$gas_flag = xyes \
14356 || test x"$host" != x"$build" \
14357 || test ! -x "$gcc_cv_as" \
14358 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14361 echo "*** This configuration requires the GNU assembler" >&2
14366 # ??? Not all targets support dwarf2 debug_line, even within a version
14367 # of gas. Moreover, we need to emit a valid instruction to trigger any
14368 # info to the output file. So, as supported targets are added to gas 2.11,
14369 # add some instruction here to (also) show we expect this might work.
14370 # ??? Once 2.11 is released, probably need to add first known working
14371 # version to the per-target configury.
14373 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14374 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14375 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14378 ia64*-*-* | s390*-*-*)
14385 if test x"$insn" != x; then
14387 .file 1 \"conftest.s\"
14390 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14391 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14392 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 gcc_cv_as_dwarf2_debug_line=no
14396 if test $in_tree_gas = yes; then
14397 if test $in_tree_gas_is_elf = yes \
14398 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14399 then gcc_cv_as_dwarf2_debug_line=yes
14401 elif test x$gcc_cv_as != x; then
14402 echo "$conftest_s" > conftest.s
14403 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }
14410 # ??? This fails with non-gnu grep. Maybe use objdump?
14411 if grep debug_line conftest.o > /dev/null 2>&1; then
14412 gcc_cv_as_dwarf2_debug_line=yes
14415 echo "configure: failed program was" >&5
14418 rm -f conftest.o conftest.s
14421 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14422 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14425 # The .debug_line file table must be in the exact order that
14426 # we specified the files, since these indices are also used
14427 # by DW_AT_decl_file. Approximate this test by testing if
14428 # the assembler bitches if the same index is assigned twice.
14429 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14430 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14431 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 gcc_cv_as_dwarf2_file_buggy=no
14435 if test x$gcc_cv_as != x; then
14436 echo ' .file 1 "foo.s"
14437 .file 1 "bar.s"' > conftest.s
14438 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }
14445 gcc_cv_as_dwarf2_file_buggy=yes
14447 echo "configure: failed program was" >&5
14450 rm -f conftest.o conftest.s
14453 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14454 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14457 if test $gcc_cv_as_dwarf2_debug_line = yes \
14458 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14460 cat >>confdefs.h <<\_ACEOF
14461 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14466 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14467 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14468 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 gcc_cv_as_gdwarf2_flag=no
14472 if test $in_tree_gas = yes; then
14473 if test $in_tree_gas_is_elf = yes \
14474 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14475 then gcc_cv_as_gdwarf2_flag=yes
14477 elif test x$gcc_cv_as != x; then
14478 echo "$insn" > conftest.s
14479 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }
14486 gcc_cv_as_gdwarf2_flag=yes
14488 echo "configure: failed program was" >&5
14491 rm -f conftest.o conftest.s
14494 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14495 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14496 if test $gcc_cv_as_gdwarf2_flag = yes; then
14498 cat >>confdefs.h <<\_ACEOF
14499 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14504 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14505 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14506 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 gcc_cv_as_gstabs_flag=no
14510 if test $in_tree_gas = yes; then
14511 if test $in_tree_gas_is_elf = yes \
14512 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14513 then gcc_cv_as_gstabs_flag=yes
14515 elif test x$gcc_cv_as != x; then
14516 echo "$insn" > conftest.s
14517 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }
14524 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14525 # and warns about it, but still exits successfully. So check for
14527 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }
14534 else gcc_cv_as_gstabs_flag=yes
14537 echo "configure: failed program was" >&5
14540 rm -f conftest.o conftest.s
14543 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14544 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14545 if test $gcc_cv_as_gstabs_flag = yes; then
14547 cat >>confdefs.h <<\_ACEOF
14548 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14554 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14555 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14556 gcc_cv_ld_ro_rw_mix=unknown
14557 if test $in_tree_ld = yes ; then
14558 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 \
14559 && test $in_tree_ld_is_elf = yes; then
14560 gcc_cv_ld_ro_rw_mix=read-write
14562 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14563 echo '.section myfoosect, "a"' > conftest1.s
14564 echo '.section myfoosect, "aw"' > conftest2.s
14565 echo '.byte 1' >> conftest2.s
14566 echo '.section myfoosect, "a"' > conftest3.s
14567 echo '.byte 0' >> conftest3.s
14568 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14569 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14570 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14571 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14572 conftest2.o conftest3.o > /dev/null 2>&1; then
14573 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14574 | sed -e '/myfoosect/!d' -e N`
14575 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14576 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14577 gcc_cv_ld_ro_rw_mix=read-only
14579 gcc_cv_ld_ro_rw_mix=read-write
14583 rm -f conftest.* conftest[123].*
14585 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14587 cat >>confdefs.h <<\_ACEOF
14588 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14592 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14593 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14595 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14596 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14597 gcc_cv_ld_eh_frame_hdr=no
14598 if test $in_tree_ld = yes ; then
14599 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 \
14600 && test $in_tree_ld_is_elf = yes; then
14601 gcc_cv_ld_eh_frame_hdr=yes
14603 elif test x$gcc_cv_ld != x; then
14604 # Check if linker supports --eh-frame-hdr option
14605 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14606 gcc_cv_ld_eh_frame_hdr=yes
14609 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14611 cat >>confdefs.h <<\_ACEOF
14612 #define HAVE_LD_EH_FRAME_HDR 1
14616 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14617 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14619 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14620 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14622 if test $in_tree_ld = yes ; then
14623 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 \
14624 && test $in_tree_ld_is_elf = yes; then
14627 elif test x$gcc_cv_ld != x; then
14628 # Check if linker supports -pie option
14629 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14633 if test x"$gcc_cv_ld_pie" = xyes; then
14635 cat >>confdefs.h <<\_ACEOF
14636 #define HAVE_LD_PIE 1
14640 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14641 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14647 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14648 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14649 if test "${gcc_cv_ld_as_needed+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 gcc_cv_ld_as_needed=no
14653 if test $in_tree_ld = yes ; then
14654 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 \
14655 && test $in_tree_ld_is_elf = yes; then
14656 gcc_cv_ld_as_needed=yes
14658 elif test x$gcc_cv_ld != x; then
14659 # Check if linker supports --as-needed and --no-as-needed options
14660 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14661 gcc_cv_ld_as_needed=yes
14666 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14667 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14668 if test x"$gcc_cv_ld_as_needed" = xyes; then
14670 cat >>confdefs.h <<\_ACEOF
14671 #define HAVE_LD_AS_NEEDED 1
14677 powerpc64*-*-linux*)
14678 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14679 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14680 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 gcc_cv_ld_no_dot_syms=no
14684 if test $in_tree_ld = yes ; then
14685 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
14686 gcc_cv_ld_no_dot_syms=yes
14688 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14689 cat > conftest1.s <<EOF
14693 cat > conftest2.s <<EOF
14694 .section ".opd","aw"
14697 .type foo,@function
14699 .quad .LEfoo,.TOC.@tocbase,0
14705 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14706 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14707 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14708 gcc_cv_ld_no_dot_syms=yes
14710 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14714 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14715 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14716 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
14718 cat >>confdefs.h <<\_ACEOF
14719 #define HAVE_LD_NO_DOT_SYMS 1
14726 if test x$with_sysroot = x && test x$host = x$target \
14727 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14729 cat >>confdefs.h <<_ACEOF
14730 #define PREFIX_INCLUDE_DIR "$prefix/include"
14735 # Find out what GC implementation we want, or may, use.
14737 # Check whether --with-gc or --without-gc was given.
14738 if test "${with_gc+set}" = set; then
14745 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14746 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14747 { (exit 1); exit 1; }; }
14754 echo "Using $GGC for garbage collection."
14756 # Use the system's zlib library.
14758 zlibinc="-I\$(srcdir)/../zlib"
14760 # Check whether --with-system-zlib or --without-system-zlib was given.
14761 if test "${with_system_zlib+set}" = set; then
14762 withval="$with_system_zlib"
14771 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14772 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14773 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14774 if test "${enable_maintainer_mode+set}" = set; then
14775 enableval="$enable_maintainer_mode"
14776 maintainer_mode=$enableval
14781 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14782 echo "${ECHO_T}$maintainer_mode" >&6
14784 if test "$maintainer_mode" = "yes"; then
14794 # Make empty files to contain the specs and options for each language.
14795 # Then add #include lines to for a compiler that has specs and/or options.
14800 for subdir in . $subdirs
14802 if test -f $srcdir/$subdir/lang.opt; then
14803 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
14805 if test -f $srcdir/$subdir/lang-specs.h; then
14806 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
14808 if test -f $srcdir/$subdir/$subdir-tree.def; then
14809 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
14813 # These (without "all_") are set in each config-lang.in.
14814 # `language' must be a single word so is spelled singularly.
14816 all_boot_languages=
14819 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
14820 # List of language makefile fragments.
14821 all_lang_makefrags=
14822 # List of language subdirectory makefiles. Deprecated.
14823 all_lang_makefiles=
14824 # Files for gengtype
14825 all_gtfiles="$target_gtfiles"
14826 # Files for gengtype with language
14827 all_gtfiles_files_langs=
14828 all_gtfiles_files_files=
14830 # Add the language fragments.
14831 # Languages are added via two mechanisms. Some information must be
14832 # recorded in makefile variables, these are defined in config-lang.in.
14833 # We accumulate them and plug them into the main Makefile.
14834 # The other mechanism is a set of hooks for each of the main targets
14835 # like `clean', `install', etc.
14837 language_hooks="Make-hooks"
14847 . ${srcdir}/$s/config-lang.in
14848 if test "x$language" = x
14850 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
14853 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
14854 if test -f ${srcdir}/$s/Makefile.in
14855 then all_lang_makefiles="$s/Makefile"
14857 all_languages="$all_languages $language"
14858 if test "x$boot_language" = xyes
14860 all_boot_languages="$all_boot_languages $language"
14862 all_compilers="$all_compilers $compilers"
14863 all_stagestuff="$all_stagestuff $stagestuff"
14864 all_outputs="$all_outputs $outputs"
14865 all_gtfiles="$all_gtfiles $gtfiles"
14868 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14869 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14873 # Pick up gtfiles for c
14876 . ${srcdir}/c-config-lang.in
14877 all_gtfiles="$all_gtfiles $gtfiles"
14880 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14881 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14885 for language in $all_languages
14887 check_languages="$check_languages check-$language"
14890 # We link each language in with a set of hooks, reached indirectly via
14895 target_list="all.build all.cross start.encap rest.encap tags \
14896 install-normal install-common install-man \
14897 uninstall info man srcextra srcman srcinfo \
14898 mostlyclean clean distclean maintainer-clean \
14899 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
14900 for t in $target_list
14903 for lang in $all_languages
14907 echo "lang.$t: $x" >> Make-hooks
14916 echo "dir ." > .gdbinit
14917 echo "dir ${srcdir}" >> .gdbinit
14918 if test x$gdb_needs_out_file_path = xyes
14920 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
14922 if test "x$subdirs" != x; then
14925 echo "dir ${srcdir}/$s" >> .gdbinit
14928 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
14930 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
14931 # absolute path for gcc_tooldir based on inserting the number of up-directory
14932 # movements required to get from $(exec_prefix) to $(prefix) into the basic
14933 # $(libsubdir)/@(unlibsubdir) based path.
14934 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
14935 # make and thus we'd get different behavior depending on where we built the
14937 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
14938 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
14940 # An explanation of the sed strings:
14941 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
14942 # -e 's|/$||' match a trailing forward slash and eliminates it
14943 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
14944 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
14946 # (*) Note this pattern overwrites the first character of the string
14947 # with a forward slash if one is not already present. This is not a
14948 # problem because the exact names of the sub-directories concerned is
14949 # unimportant, just the number of them matters.
14951 # The practical upshot of these patterns is like this:
14953 # prefix exec_prefix result
14954 # ------ ----------- ------
14955 # /foo /foo/bar ../
14956 # /foo/ /foo/bar ../
14957 # /foo /foo/bar/ ../
14958 # /foo/ /foo/bar/ ../
14959 # /foo /foo/bar/ugg ../../
14962 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
14967 # Find a directory in which to install a shared libgcc.
14969 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
14970 if test "${enable_version_specific_runtime_libs+set}" = set; then
14971 enableval="$enable_version_specific_runtime_libs"
14976 # Check whether --with-slibdir or --without-slibdir was given.
14977 if test "${with_slibdir+set}" = set; then
14978 withval="$with_slibdir"
14979 slibdir="$with_slibdir"
14981 if test "${enable_version_specific_runtime_libs+set}" = set; then
14982 slibdir='$(libsubdir)'
14983 elif test "$host" != "$target"; then
14984 slibdir='$(build_tooldir)/lib'
14986 slibdir='$(libdir)'
14991 objdir=`${PWDCMD-pwd}`
14994 # Substitute configuration variables
15062 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15063 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15065 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15067 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15068 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15069 set_gcc_lib_path="export $set_gcc_lib_path"
15077 if test x${build} = x${host} ; then
15078 if test x${host} = x${target} ; then
15079 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15081 echo "Links are now set up to build a cross-compiler" 1>&2
15082 echo " from ${host} to ${target}." 1>&2
15085 if test x${host} = x${target} ; then
15086 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15087 echo " for ${target}." 1>&2
15089 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15090 echo " from ${host} to ${target}." 1>&2
15097 # Configure the subdirectories
15098 # AC_CONFIG_SUBDIRS($subdirs)
15100 # Create the Makefile
15101 # and configure language subdirectories
15102 ac_config_files="$ac_config_files $all_outputs"
15105 ac_config_commands="$ac_config_commands default"
15107 cat >confcache <<\_ACEOF
15108 # This file is a shell script that caches the results of configure
15109 # tests run on this system so they can be shared between configure
15110 # scripts and configure runs, see configure's option --config-cache.
15111 # It is not useful on other systems. If it contains results you don't
15112 # want to keep, you may remove or edit it.
15114 # config.status only pays attention to the cache file if you give it
15115 # the --recheck option to rerun configure.
15117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15119 # following values.
15123 # The following way of writing the cache mishandles newlines in values,
15124 # but we know of no workaround that is simple, portable, and efficient.
15125 # So, don't put newlines in cache variables' values.
15126 # Ultrix sh set writes to stderr and can't be redirected directly,
15127 # and sets the high bit in the cache file unless we assign to the vars.
15130 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15132 # `set' does not quote correctly, so add quotes (double-quote
15133 # substitution turns \\\\ into \\, and sed turns \\ into \).
15136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15139 # `set' quotes correctly as required by POSIX, so do not add quotes.
15141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15150 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15152 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15153 if test -w $cache_file; then
15154 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15155 cat confcache >$cache_file
15157 echo "not updating unwritable cache $cache_file"
15162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15163 # Let make expand exec_prefix.
15164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15166 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15167 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15168 # trailing colons and then remove the whole line if VPATH becomes empty
15169 # (actually we leave an empty line to preserve line numbers).
15170 if test "x$srcdir" = x.; then
15171 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15172 s/:*\$(srcdir):*/:/;
15173 s/:*\${srcdir}:*/:/;
15175 s/^\([^=]*=[ ]*\):*/\1/;
15181 DEFS=-DHAVE_CONFIG_H
15185 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15186 # 1. Remove the extension, and $U if already installed.
15187 ac_i=`echo "$ac_i" |
15188 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15190 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15191 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15193 LIBOBJS=$ac_libobjs
15195 LTLIBOBJS=$ac_ltlibobjs
15199 : ${CONFIG_STATUS=./config.status}
15200 ac_clean_files_save=$ac_clean_files
15201 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15202 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15203 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15204 cat >$CONFIG_STATUS <<_ACEOF
15206 # Generated by $as_me.
15207 # Run this file to recreate the current configuration.
15208 # Compiler output produced by configure, useful for debugging
15209 # configure, is in config.log if it exists.
15212 ac_cs_recheck=false
15214 SHELL=\${CONFIG_SHELL-$SHELL}
15217 cat >>$CONFIG_STATUS <<\_ACEOF
15218 ## --------------------- ##
15219 ## M4sh Initialization. ##
15220 ## --------------------- ##
15222 # Be Bourne compatible
15223 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15226 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15227 # is contrary to our usage. Disable this feature.
15228 alias -g '${1+"$@"}'='"$@"'
15229 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15232 DUALCASE=1; export DUALCASE # for MKS sh
15234 # Support unset when possible.
15235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15242 # Work around bugs in pre-3.0 UWIN ksh.
15243 $as_unset ENV MAIL MAILPATH
15250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15252 LC_TELEPHONE LC_TIME
15254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15255 eval $as_var=C; export $as_var
15261 # Required to use basename.
15262 if expr a : '\(a\)' >/dev/null 2>&1; then
15268 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15269 as_basename=basename
15275 # Name of the executable.
15276 as_me=`$as_basename "$0" ||
15277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15278 X"$0" : 'X\(//\)$' \| \
15279 X"$0" : 'X\(/\)$' \| \
15280 . : '\(.\)' 2>/dev/null ||
15282 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15283 /^X\/\(\/\/\)$/{ s//\1/; q; }
15284 /^X\/\(\/\).*/{ s//\1/; q; }
15288 # PATH needs CR, and LINENO needs CR and PATH.
15289 # Avoid depending upon Character Ranges.
15290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15293 as_cr_digits='0123456789'
15294 as_cr_alnum=$as_cr_Letters$as_cr_digits
15296 # The user is always right.
15297 if test "${PATH_SEPARATOR+set}" != set; then
15298 echo "#! /bin/sh" >conf$$.sh
15299 echo "exit 0" >>conf$$.sh
15301 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15310 as_lineno_1=$LINENO
15311 as_lineno_2=$LINENO
15312 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15313 test "x$as_lineno_1" != "x$as_lineno_2" &&
15314 test "x$as_lineno_3" = "x$as_lineno_2" || {
15315 # Find who we are. Look in the path if we contain no path at all
15318 *[\\/]* ) as_myself=$0 ;;
15319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15320 for as_dir in $PATH
15323 test -z "$as_dir" && as_dir=.
15324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15329 # We did not find ourselves, most probably we were run as `sh COMMAND'
15330 # in which case we are not to be found in the path.
15331 if test "x$as_myself" = x; then
15334 if test ! -f "$as_myself"; then
15335 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15336 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15337 { (exit 1); exit 1; }; }
15339 case $CONFIG_SHELL in
15341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15342 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15345 test -z "$as_dir" && as_dir=.
15346 for as_base in sh bash ksh sh5; do
15349 if ("$as_dir/$as_base" -c '
15350 as_lineno_1=$LINENO
15351 as_lineno_2=$LINENO
15352 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15353 test "x$as_lineno_1" != "x$as_lineno_2" &&
15354 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15355 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15356 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15357 CONFIG_SHELL=$as_dir/$as_base
15358 export CONFIG_SHELL
15359 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15368 # uniformly replaced by the line number. The first 'sed' inserts a
15369 # line-number line before each line; the second 'sed' does the real
15370 # work. The second script uses 'N' to pair each line-number line
15371 # with the numbered line, and appends trailing '-' during
15372 # substitution so that $LINENO is not a special case at line end.
15373 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15374 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15375 sed '=' <$as_myself |
15380 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15383 s,^['$as_cr_digits']*\n,,
15384 ' >$as_me.lineno &&
15385 chmod +x $as_me.lineno ||
15386 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15387 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15388 { (exit 1); exit 1; }; }
15390 # Don't try to exec as it changes $[0], causing all sort of problems
15391 # (the dirname of $[0] is not the place where we might find the
15392 # original and so on. Autoconf is especially sensible to this).
15394 # Exit status is that of the last command.
15399 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15400 *c*,-n*) ECHO_N= ECHO_C='
15402 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15403 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15406 if expr a : '\(a\)' >/dev/null 2>&1; then
15412 rm -f conf$$ conf$$.exe conf$$.file
15414 if ln -s conf$$.file conf$$ 2>/dev/null; then
15415 # We could just check for DJGPP; but this test a) works b) is more generic
15416 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15417 if test -f conf$$.exe; then
15418 # Don't use ln at all; we don't have any links
15423 elif ln conf$$.file conf$$ 2>/dev/null; then
15428 rm -f conf$$ conf$$.exe conf$$.file
15430 if mkdir -p . 2>/dev/null; then
15433 test -d ./-p && rmdir ./-p
15437 as_executable_p="test -f"
15439 # Sed expression to map a string onto a valid CPP name.
15440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15442 # Sed expression to map a string onto a valid variable name.
15443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15447 # We need space, tab and new line, in precisely that order.
15457 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15458 # report actual input values of CONFIG_FILES etc. instead of their
15459 # values after options handling. Logging --version etc. is OK.
15463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15464 ## Running $as_me. ##
15469 This file was extended by $as_me, which was
15470 generated by GNU Autoconf 2.59. Invocation command line was
15472 CONFIG_FILES = $CONFIG_FILES
15473 CONFIG_HEADERS = $CONFIG_HEADERS
15474 CONFIG_LINKS = $CONFIG_LINKS
15475 CONFIG_COMMANDS = $CONFIG_COMMANDS
15479 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15483 # Files that config.status was made for.
15484 if test -n "$ac_config_files"; then
15485 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15488 if test -n "$ac_config_headers"; then
15489 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15492 if test -n "$ac_config_links"; then
15493 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15496 if test -n "$ac_config_commands"; then
15497 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15500 cat >>$CONFIG_STATUS <<\_ACEOF
15503 \`$as_me' instantiates files from templates according to the
15504 current configuration.
15506 Usage: $0 [OPTIONS] [FILE]...
15508 -h, --help print this help, then exit
15509 -V, --version print version number, then exit
15510 -q, --quiet do not print progress messages
15511 -d, --debug don't remove temporary files
15512 --recheck update $as_me by reconfiguring in the same conditions
15513 --file=FILE[:TEMPLATE]
15514 instantiate the configuration file FILE
15515 --header=FILE[:TEMPLATE]
15516 instantiate the configuration header FILE
15518 Configuration files:
15521 Configuration headers:
15524 Configuration commands:
15527 Report bugs to <bug-autoconf@gnu.org>."
15530 cat >>$CONFIG_STATUS <<_ACEOF
15533 configured by $0, generated by GNU Autoconf 2.59,
15534 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15536 Copyright (C) 2003 Free Software Foundation, Inc.
15537 This config.status script is free software; the Free Software Foundation
15538 gives unlimited permission to copy, distribute and modify it."
15542 cat >>$CONFIG_STATUS <<\_ACEOF
15543 # If no file are specified by the user, then we need to provide default
15544 # value. By we need to know if files were specified by the user.
15550 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15551 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15559 *) # This is not an option, so the user has probably given explicit
15562 ac_need_defaults=false;;
15566 # Handling of the options.
15568 cat >>$CONFIG_STATUS <<\_ACEOF
15569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15571 --version | --vers* | -V )
15572 echo "$ac_cs_version"; exit 0 ;;
15574 # Conflict between --help and --header
15575 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15576 Try \`$0 --help' for more information." >&5
15577 echo "$as_me: error: ambiguous option: $1
15578 Try \`$0 --help' for more information." >&2;}
15579 { (exit 1); exit 1; }; };;
15580 --help | --hel | -h )
15581 echo "$ac_cs_usage"; exit 0 ;;
15582 --debug | --d* | -d )
15584 --file | --fil | --fi | --f )
15586 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15587 ac_need_defaults=false;;
15588 --header | --heade | --head | --hea )
15590 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15591 ac_need_defaults=false;;
15592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15593 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15596 # This is an error.
15597 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15598 Try \`$0 --help' for more information." >&5
15599 echo "$as_me: error: unrecognized option: $1
15600 Try \`$0 --help' for more information." >&2;}
15601 { (exit 1); exit 1; }; } ;;
15603 *) ac_config_targets="$ac_config_targets $1" ;;
15609 ac_configure_extra_args=
15611 if $ac_cs_silent; then
15613 ac_configure_extra_args="$ac_configure_extra_args --silent"
15617 cat >>$CONFIG_STATUS <<_ACEOF
15618 if \$ac_cs_recheck; then
15619 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15620 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15625 cat >>$CONFIG_STATUS <<_ACEOF
15627 # INIT-COMMANDS section.
15636 cat >>$CONFIG_STATUS <<\_ACEOF
15637 for ac_config_target in $ac_config_targets
15639 case "$ac_config_target" in
15640 # Handling of arguments.
15641 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15642 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15643 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15644 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15645 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15646 { (exit 1); exit 1; }; };;
15650 # If the user did not use the arguments to specify the items to instantiate,
15651 # then the envvar interface is used. Set only those that are not.
15652 # We use the long form for the default assignment because of an extremely
15653 # bizarre bug on SunOS 4.1.3.
15654 if $ac_need_defaults; then
15655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15660 # Have a temporary directory for convenience. Make it in the build tree
15661 # simply because there is no reason to put it here, and in addition,
15662 # creating and moving files from /tmp can sometimes cause problems.
15663 # Create a temporary directory, and hook for its removal unless debugging.
15666 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15667 trap '{ (exit 1); exit 1; }' 1 2 13 15
15670 # Create a (secure) tmp directory for tmp files.
15673 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15674 test -n "$tmp" && test -d "$tmp"
15677 tmp=./confstat$$-$RANDOM
15678 (umask 077 && mkdir $tmp)
15681 echo "$me: cannot create a temporary directory in ." >&2
15682 { (exit 1); exit 1; }
15687 cat >>$CONFIG_STATUS <<_ACEOF
15690 # CONFIG_FILES section.
15693 # No need to generate the scripts if there are no CONFIG_FILES.
15694 # This happens for instance when ./config.status config.h
15695 if test -n "\$CONFIG_FILES"; then
15696 # Protect against being on the right side of a sed subst in config.status.
15697 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15698 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15699 s,@SHELL@,$SHELL,;t t
15700 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15701 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15702 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15703 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15704 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15705 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15706 s,@exec_prefix@,$exec_prefix,;t t
15707 s,@prefix@,$prefix,;t t
15708 s,@program_transform_name@,$program_transform_name,;t t
15709 s,@bindir@,$bindir,;t t
15710 s,@sbindir@,$sbindir,;t t
15711 s,@libexecdir@,$libexecdir,;t t
15712 s,@datadir@,$datadir,;t t
15713 s,@sysconfdir@,$sysconfdir,;t t
15714 s,@sharedstatedir@,$sharedstatedir,;t t
15715 s,@localstatedir@,$localstatedir,;t t
15716 s,@libdir@,$libdir,;t t
15717 s,@includedir@,$includedir,;t t
15718 s,@oldincludedir@,$oldincludedir,;t t
15719 s,@infodir@,$infodir,;t t
15720 s,@mandir@,$mandir,;t t
15721 s,@build_alias@,$build_alias,;t t
15722 s,@host_alias@,$host_alias,;t t
15723 s,@target_alias@,$target_alias,;t t
15724 s,@DEFS@,$DEFS,;t t
15725 s,@ECHO_C@,$ECHO_C,;t t
15726 s,@ECHO_N@,$ECHO_N,;t t
15727 s,@ECHO_T@,$ECHO_T,;t t
15728 s,@LIBS@,$LIBS,;t t
15729 s,@build@,$build,;t t
15730 s,@build_cpu@,$build_cpu,;t t
15731 s,@build_vendor@,$build_vendor,;t t
15732 s,@build_os@,$build_os,;t t
15733 s,@host@,$host,;t t
15734 s,@host_cpu@,$host_cpu,;t t
15735 s,@host_vendor@,$host_vendor,;t t
15736 s,@host_os@,$host_os,;t t
15737 s,@target@,$target,;t t
15738 s,@target_cpu@,$target_cpu,;t t
15739 s,@target_vendor@,$target_vendor,;t t
15740 s,@target_os@,$target_os,;t t
15741 s,@target_noncanonical@,$target_noncanonical,;t t
15742 s,@build_subdir@,$build_subdir,;t t
15743 s,@host_subdir@,$host_subdir,;t t
15744 s,@target_subdir@,$target_subdir,;t t
15745 s,@GENINSRC@,$GENINSRC,;t t
15747 s,@CFLAGS@,$CFLAGS,;t t
15748 s,@LDFLAGS@,$LDFLAGS,;t t
15749 s,@CPPFLAGS@,$CPPFLAGS,;t t
15750 s,@ac_ct_CC@,$ac_ct_CC,;t t
15751 s,@EXEEXT@,$EXEEXT,;t t
15752 s,@OBJEXT@,$OBJEXT,;t t
15753 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15754 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15756 s,@EGREP@,$EGREP,;t t
15757 s,@strict1_warn@,$strict1_warn,;t t
15758 s,@warn_cflags@,$warn_cflags,;t t
15759 s,@WERROR@,$WERROR,;t t
15760 s,@nocommon_flag@,$nocommon_flag,;t t
15761 s,@TREEBROWSER@,$TREEBROWSER,;t t
15762 s,@valgrind_path@,$valgrind_path,;t t
15763 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15764 s,@valgrind_command@,$valgrind_command,;t t
15765 s,@coverage_flags@,$coverage_flags,;t t
15766 s,@enable_multilib@,$enable_multilib,;t t
15767 s,@enable_shared@,$enable_shared,;t t
15768 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15769 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15770 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15771 s,@onestep@,$onestep,;t t
15772 s,@SET_MAKE@,$SET_MAKE,;t t
15774 s,@LN_S@,$LN_S,;t t
15776 s,@RANLIB@,$RANLIB,;t t
15777 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15778 s,@ranlib_flags@,$ranlib_flags,;t t
15779 s,@INSTALL@,$INSTALL,;t t
15780 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15781 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15782 s,@make_compare_target@,$make_compare_target,;t t
15783 s,@have_mktemp_command@,$have_mktemp_command,;t t
15784 s,@MAKEINFO@,$MAKEINFO,;t t
15785 s,@BUILD_INFO@,$BUILD_INFO,;t t
15786 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15787 s,@FLEX@,$FLEX,;t t
15788 s,@BISON@,$BISON,;t t
15791 s,@stage1_cflags@,$stage1_cflags,;t t
15792 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15793 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15794 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15795 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
15796 s,@LIBICONV@,$LIBICONV,;t t
15797 s,@LTLIBICONV@,$LTLIBICONV,;t t
15798 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
15799 s,@manext@,$manext,;t t
15800 s,@objext@,$objext,;t t
15801 s,@gthread_flags@,$gthread_flags,;t t
15802 s,@extra_modes_file@,$extra_modes_file,;t t
15803 s,@PACKAGE@,$PACKAGE,;t t
15804 s,@VERSION@,$VERSION,;t t
15805 s,@USE_NLS@,$USE_NLS,;t t
15806 s,@LIBINTL@,$LIBINTL,;t t
15807 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15808 s,@INCINTL@,$INCINTL,;t t
15809 s,@XGETTEXT@,$XGETTEXT,;t t
15810 s,@GMSGFMT@,$GMSGFMT,;t t
15811 s,@POSUB@,$POSUB,;t t
15812 s,@CATALOGS@,$CATALOGS,;t t
15813 s,@CROSS@,$CROSS,;t t
15815 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
15816 s,@inhibit_libc@,$inhibit_libc,;t t
15817 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15818 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15819 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
15820 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
15821 s,@collect2@,$collect2,;t t
15822 s,@libgcc_visibility@,$libgcc_visibility,;t t
15824 s,@zlibdir@,$zlibdir,;t t
15825 s,@zlibinc@,$zlibinc,;t t
15826 s,@MAINT@,$MAINT,;t t
15827 s,@gcc_tooldir@,$gcc_tooldir,;t t
15828 s,@dollar@,$dollar,;t t
15829 s,@slibdir@,$slibdir,;t t
15830 s,@objdir@,$objdir,;t t
15831 s,@subdirs@,$subdirs,;t t
15832 s,@srcdir@,$srcdir,;t t
15833 s,@all_boot_languages@,$all_boot_languages,;t t
15834 s,@all_compilers@,$all_compilers,;t t
15835 s,@all_gtfiles@,$all_gtfiles,;t t
15836 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
15837 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
15838 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
15839 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
15840 s,@all_languages@,$all_languages,;t t
15841 s,@all_stagestuff@,$all_stagestuff,;t t
15842 s,@build_exeext@,$build_exeext,;t t
15843 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
15844 s,@build_xm_file_list@,$build_xm_file_list,;t t
15845 s,@build_xm_include_list@,$build_xm_include_list,;t t
15846 s,@build_xm_defines@,$build_xm_defines,;t t
15847 s,@check_languages@,$check_languages,;t t
15848 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
15849 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
15850 s,@cpp_install_dir@,$cpp_install_dir,;t t
15851 s,@xmake_file@,$xmake_file,;t t
15852 s,@tmake_file@,$tmake_file,;t t
15853 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
15854 s,@extra_headers_list@,$extra_headers_list,;t t
15855 s,@extra_objs@,$extra_objs,;t t
15856 s,@extra_parts@,$extra_parts,;t t
15857 s,@extra_passes@,$extra_passes,;t t
15858 s,@extra_programs@,$extra_programs,;t t
15859 s,@float_h_file@,$float_h_file,;t t
15860 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
15861 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
15862 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
15863 s,@gcc_version@,$gcc_version,;t t
15864 s,@gcc_version_full@,$gcc_version_full,;t t
15865 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15866 s,@host_exeext@,$host_exeext,;t t
15867 s,@host_xm_file_list@,$host_xm_file_list,;t t
15868 s,@host_xm_include_list@,$host_xm_include_list,;t t
15869 s,@host_xm_defines@,$host_xm_defines,;t t
15870 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
15871 s,@install@,$install,;t t
15872 s,@lang_opt_files@,$lang_opt_files,;t t
15873 s,@lang_specs_files@,$lang_specs_files,;t t
15874 s,@lang_tree_files@,$lang_tree_files,;t t
15875 s,@local_prefix@,$local_prefix,;t t
15876 s,@md_file@,$md_file,;t t
15877 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
15878 s,@out_file@,$out_file,;t t
15879 s,@out_object_file@,$out_object_file,;t t
15880 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
15881 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
15882 s,@thread_file@,$thread_file,;t t
15883 s,@tm_file_list@,$tm_file_list,;t t
15884 s,@tm_include_list@,$tm_include_list,;t t
15885 s,@tm_defines@,$tm_defines,;t t
15886 s,@tm_p_file_list@,$tm_p_file_list,;t t
15887 s,@tm_p_include_list@,$tm_p_include_list,;t t
15888 s,@xm_file_list@,$xm_file_list,;t t
15889 s,@xm_include_list@,$xm_include_list,;t t
15890 s,@xm_defines@,$xm_defines,;t t
15891 s,@c_target_objs@,$c_target_objs,;t t
15892 s,@cxx_target_objs@,$cxx_target_objs,;t t
15893 s,@target_cpu_default@,$target_cpu_default,;t t
15894 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
15895 s,@GMPLIBS@,$GMPLIBS,;t t
15896 s,@GMPINC@,$GMPINC,;t t
15897 s,@LIBOBJS@,$LIBOBJS,;t t
15898 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15899 /@language_hooks@/r $language_hooks
15900 s,@language_hooks@,,;t t
15905 cat >>$CONFIG_STATUS <<\_ACEOF
15906 # Split the substitutions into bite-sized pieces for seds with
15907 # small command number limits, like on Digital OSF/1 and HP-UX.
15908 ac_max_sed_lines=48
15909 ac_sed_frag=1 # Number of current file.
15910 ac_beg=1 # First line for current file.
15911 ac_end=$ac_max_sed_lines # Line after last line for current file.
15914 while $ac_more_lines; do
15915 if test $ac_beg -gt 1; then
15916 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15918 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15920 if test ! -s $tmp/subs.frag; then
15921 ac_more_lines=false
15923 # The purpose of the label and of the branching condition is to
15924 # speed up the sed processing (if there are no `@' at all, there
15925 # is no need to browse any of the substitutions).
15926 # These are the two extra sed commands mentioned above.
15928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15929 if test -z "$ac_sed_cmds"; then
15930 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15932 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15934 ac_sed_frag=`expr $ac_sed_frag + 1`
15936 ac_end=`expr $ac_end + $ac_max_sed_lines`
15939 if test -z "$ac_sed_cmds"; then
15942 fi # test -n "$CONFIG_FILES"
15945 cat >>$CONFIG_STATUS <<\_ACEOF
15946 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15949 - | *:- | *:-:* ) # input from stdin
15951 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15953 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15955 * ) ac_file_in=$ac_file.in ;;
15958 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15959 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15961 X"$ac_file" : 'X\(//\)[^/]' \| \
15962 X"$ac_file" : 'X\(//\)$' \| \
15963 X"$ac_file" : 'X\(/\)' \| \
15964 . : '\(.\)' 2>/dev/null ||
15966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15968 /^X\(\/\/\)$/{ s//\1/; q; }
15969 /^X\(\/\).*/{ s//\1/; q; }
15971 { if $as_mkdir_p; then
15976 while test ! -d "$as_dir"; do
15977 as_dirs="$as_dir $as_dirs"
15978 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15980 X"$as_dir" : 'X\(//\)[^/]' \| \
15981 X"$as_dir" : 'X\(//\)$' \| \
15982 X"$as_dir" : 'X\(/\)' \| \
15983 . : '\(.\)' 2>/dev/null ||
15985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15987 /^X\(\/\/\)$/{ s//\1/; q; }
15988 /^X\(\/\).*/{ s//\1/; q; }
15991 test ! -n "$as_dirs" || mkdir $as_dirs
15992 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15993 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15994 { (exit 1); exit 1; }; }; }
15998 if test "$ac_dir" != .; then
15999 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16000 # A "../" for each directory in $ac_dir_suffix.
16001 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16003 ac_dir_suffix= ac_top_builddir=
16007 .) # No --srcdir option. We are building in place.
16009 if test -z "$ac_top_builddir"; then
16012 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16014 [\\/]* | ?:[\\/]* ) # Absolute path.
16015 ac_srcdir=$srcdir$ac_dir_suffix;
16016 ac_top_srcdir=$srcdir ;;
16017 *) # Relative path.
16018 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16019 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16022 # Do not use `cd foo && pwd` to compute absolute paths, because
16023 # the directories may not exist.
16025 .) ac_abs_builddir="$ac_dir";;
16028 .) ac_abs_builddir=`pwd`;;
16029 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16030 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16033 case $ac_abs_builddir in
16034 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16036 case ${ac_top_builddir}. in
16037 .) ac_abs_top_builddir=$ac_abs_builddir;;
16038 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16039 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16042 case $ac_abs_builddir in
16043 .) ac_abs_srcdir=$ac_srcdir;;
16046 .) ac_abs_srcdir=$ac_abs_builddir;;
16047 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16048 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16051 case $ac_abs_builddir in
16052 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16054 case $ac_top_srcdir in
16055 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16056 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16057 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16063 # Let's still pretend it is `configure' which instantiates (i.e., don't
16064 # use $as_me), people would be surprised to read:
16065 # /* config.h. Generated by config.status. */
16066 if test x"$ac_file" = x-; then
16069 configure_input="$ac_file. "
16071 configure_input=$configure_input"Generated from `echo $ac_file_in |
16072 sed 's,.*/,,'` by configure."
16074 # First look for the input files in the build tree, otherwise in the
16076 ac_file_inputs=`IFS=:
16077 for f in $ac_file_in; do
16079 -) echo $tmp/stdin ;;
16081 # Absolute (can't be DOS-style, as IFS=:)
16082 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16083 echo "$as_me: error: cannot find input file: $f" >&2;}
16084 { (exit 1); exit 1; }; }
16087 if test -f "$f"; then
16090 elif test -f "$srcdir/$f"; then
16095 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16096 echo "$as_me: error: cannot find input file: $f" >&2;}
16097 { (exit 1); exit 1; }; }
16100 done` || { (exit 1); exit 1; }
16102 if test x"$ac_file" != x-; then
16103 { echo "$as_me:$LINENO: creating $ac_file" >&5
16104 echo "$as_me: creating $ac_file" >&6;}
16108 cat >>$CONFIG_STATUS <<_ACEOF
16112 cat >>$CONFIG_STATUS <<\_ACEOF
16114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16115 s,@configure_input@,$configure_input,;t t
16116 s,@srcdir@,$ac_srcdir,;t t
16117 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16118 s,@top_srcdir@,$ac_top_srcdir,;t t
16119 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16120 s,@builddir@,$ac_builddir,;t t
16121 s,@abs_builddir@,$ac_abs_builddir,;t t
16122 s,@top_builddir@,$ac_top_builddir,;t t
16123 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16124 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16126 if test x"$ac_file" != x-; then
16127 mv $tmp/out $ac_file
16135 cat >>$CONFIG_STATUS <<\_ACEOF
16138 # CONFIG_HEADER section.
16141 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16142 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16144 # ac_d sets the value in "#define NAME VALUE" lines.
16145 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16146 ac_dB='[ ].*$,\1#\2'
16149 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16150 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16151 ac_uB='$,\1#\2define\3'
16155 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16156 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16158 - | *:- | *:-:* ) # input from stdin
16160 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16161 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16162 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16164 * ) ac_file_in=$ac_file.in ;;
16167 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16168 echo "$as_me: creating $ac_file" >&6;}
16170 # First look for the input files in the build tree, otherwise in the
16172 ac_file_inputs=`IFS=:
16173 for f in $ac_file_in; do
16175 -) echo $tmp/stdin ;;
16177 # Absolute (can't be DOS-style, as IFS=:)
16178 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16179 echo "$as_me: error: cannot find input file: $f" >&2;}
16180 { (exit 1); exit 1; }; }
16181 # Do quote $f, to prevent DOS paths from being IFS'd.
16184 if test -f "$f"; then
16187 elif test -f "$srcdir/$f"; then
16192 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16193 echo "$as_me: error: cannot find input file: $f" >&2;}
16194 { (exit 1); exit 1; }; }
16197 done` || { (exit 1); exit 1; }
16198 # Remove the trailing spaces.
16199 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16203 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16204 # `conftest.undefs', that substitutes the proper values into
16205 # config.h.in to produce config.h. The first handles `#define'
16206 # templates, and the second `#undef' templates.
16207 # And first: Protect against being on the right side of a sed subst in
16208 # config.status. Protect against being in an unquoted here document
16209 # in config.status.
16210 rm -f conftest.defines conftest.undefs
16211 # Using a here document instead of a string reduces the quoting nightmare.
16212 # Putting comments in sed scripts is not portable.
16214 # `end' is used to avoid that the second main sed command (meant for
16215 # 0-ary CPP macros) applies to n-ary macro definitions.
16216 # See the Autoconf documentation for `clear'.
16217 cat >confdef2sed.sed <<\_ACEOF
16222 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16224 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16227 # If some macros were called several times there might be several times
16228 # the same #defines, which is useless. Nevertheless, we may not want to
16229 # sort them, since we want the *last* AC-DEFINE to be honored.
16230 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16231 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16232 rm -f confdef2sed.sed
16234 # This sed command replaces #undef with comments. This is necessary, for
16235 # example, in the case of _POSIX_SOURCE, which is predefined and required
16236 # on some systems where configure will not decide to define it.
16237 cat >>conftest.undefs <<\_ACEOF
16238 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16241 # Break up conftest.defines because some shells have a limit on the size
16242 # of here documents, and old seds have small limits too (100 cmds).
16243 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16244 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16245 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16246 echo ' :' >>$CONFIG_STATUS
16247 rm -f conftest.tail
16248 while grep . conftest.defines >/dev/null
16250 # Write a limited-size here document to $tmp/defines.sed.
16251 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16252 # Speed up: don't consider the non `#define' lines.
16253 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16254 # Work around the forget-to-reset-the-flag bug.
16255 echo 't clr' >>$CONFIG_STATUS
16256 echo ': clr' >>$CONFIG_STATUS
16257 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16259 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16261 mv $tmp/out $tmp/in
16263 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16264 rm -f conftest.defines
16265 mv conftest.tail conftest.defines
16267 rm -f conftest.defines
16268 echo ' fi # grep' >>$CONFIG_STATUS
16269 echo >>$CONFIG_STATUS
16271 # Break up conftest.undefs because some shells have a limit on the size
16272 # of here documents, and old seds have small limits too (100 cmds).
16273 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16274 rm -f conftest.tail
16275 while grep . conftest.undefs >/dev/null
16277 # Write a limited-size here document to $tmp/undefs.sed.
16278 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16279 # Speed up: don't consider the non `#undef'
16280 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16281 # Work around the forget-to-reset-the-flag bug.
16282 echo 't clr' >>$CONFIG_STATUS
16283 echo ': clr' >>$CONFIG_STATUS
16284 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16286 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16288 mv $tmp/out $tmp/in
16290 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16291 rm -f conftest.undefs
16292 mv conftest.tail conftest.undefs
16294 rm -f conftest.undefs
16296 cat >>$CONFIG_STATUS <<\_ACEOF
16297 # Let's still pretend it is `configure' which instantiates (i.e., don't
16298 # use $as_me), people would be surprised to read:
16299 # /* config.h. Generated by config.status. */
16300 if test x"$ac_file" = x-; then
16301 echo "/* Generated by configure. */" >$tmp/config.h
16303 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16305 cat $tmp/in >>$tmp/config.h
16307 if test x"$ac_file" != x-; then
16308 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16309 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16310 echo "$as_me: $ac_file is unchanged" >&6;}
16312 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16314 X"$ac_file" : 'X\(//\)[^/]' \| \
16315 X"$ac_file" : 'X\(//\)$' \| \
16316 X"$ac_file" : 'X\(/\)' \| \
16317 . : '\(.\)' 2>/dev/null ||
16319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16321 /^X\(\/\/\)$/{ s//\1/; q; }
16322 /^X\(\/\).*/{ s//\1/; q; }
16324 { if $as_mkdir_p; then
16329 while test ! -d "$as_dir"; do
16330 as_dirs="$as_dir $as_dirs"
16331 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16333 X"$as_dir" : 'X\(//\)[^/]' \| \
16334 X"$as_dir" : 'X\(//\)$' \| \
16335 X"$as_dir" : 'X\(/\)' \| \
16336 . : '\(.\)' 2>/dev/null ||
16338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16340 /^X\(\/\/\)$/{ s//\1/; q; }
16341 /^X\(\/\).*/{ s//\1/; q; }
16344 test ! -n "$as_dirs" || mkdir $as_dirs
16345 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16346 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16347 { (exit 1); exit 1; }; }; }
16350 mv $tmp/config.h $ac_file
16354 rm -f $tmp/config.h
16358 cat >>$CONFIG_STATUS <<\_ACEOF
16361 # CONFIG_COMMANDS section.
16363 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16364 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16365 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16366 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16367 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16368 X"$ac_dest" : 'X\(//\)[^/]' \| \
16369 X"$ac_dest" : 'X\(//\)$' \| \
16370 X"$ac_dest" : 'X\(/\)' \| \
16371 . : '\(.\)' 2>/dev/null ||
16373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16375 /^X\(\/\/\)$/{ s//\1/; q; }
16376 /^X\(\/\).*/{ s//\1/; q; }
16378 { if $as_mkdir_p; then
16383 while test ! -d "$as_dir"; do
16384 as_dirs="$as_dir $as_dirs"
16385 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16387 X"$as_dir" : 'X\(//\)[^/]' \| \
16388 X"$as_dir" : 'X\(//\)$' \| \
16389 X"$as_dir" : 'X\(/\)' \| \
16390 . : '\(.\)' 2>/dev/null ||
16392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16394 /^X\(\/\/\)$/{ s//\1/; q; }
16395 /^X\(\/\).*/{ s//\1/; q; }
16398 test ! -n "$as_dirs" || mkdir $as_dirs
16399 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16400 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16401 { (exit 1); exit 1; }; }; }
16405 if test "$ac_dir" != .; then
16406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16407 # A "../" for each directory in $ac_dir_suffix.
16408 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16410 ac_dir_suffix= ac_top_builddir=
16414 .) # No --srcdir option. We are building in place.
16416 if test -z "$ac_top_builddir"; then
16419 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16421 [\\/]* | ?:[\\/]* ) # Absolute path.
16422 ac_srcdir=$srcdir$ac_dir_suffix;
16423 ac_top_srcdir=$srcdir ;;
16424 *) # Relative path.
16425 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16426 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16429 # Do not use `cd foo && pwd` to compute absolute paths, because
16430 # the directories may not exist.
16432 .) ac_abs_builddir="$ac_dir";;
16435 .) ac_abs_builddir=`pwd`;;
16436 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16437 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16440 case $ac_abs_builddir in
16441 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16443 case ${ac_top_builddir}. in
16444 .) ac_abs_top_builddir=$ac_abs_builddir;;
16445 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16446 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16449 case $ac_abs_builddir in
16450 .) ac_abs_srcdir=$ac_srcdir;;
16453 .) ac_abs_srcdir=$ac_abs_builddir;;
16454 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16455 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16458 case $ac_abs_builddir in
16459 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16461 case $ac_top_srcdir in
16462 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16463 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16464 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16469 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16470 echo "$as_me: executing $ac_dest commands" >&6;}
16473 case ${CONFIG_HEADERS} in
16474 *auto-host.h:config.in*)
16477 # Make sure all the subdirs exist.
16478 for d in $subdirs doc build
16480 test -d $d || mkdir $d
16482 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16483 # bootstrapping and the installation procedure can still use
16484 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16485 # FLAGS_TO_PASS has been modified to solve the problem there.
16486 # This is virtually a duplicate of what happens in configure.lang; we do
16487 # an extra check to make sure this only happens if ln -s can be used.
16490 for d in ${subdirs} ; do
16491 STARTDIR=`${PWDCMD-pwd}`
16493 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16496 $LN_S ../$t $t 2>/dev/null
16507 cat >>$CONFIG_STATUS <<\_ACEOF
16509 { (exit 0); exit 0; }
16511 chmod +x $CONFIG_STATUS
16512 ac_clean_files=$ac_clean_files_save
16515 # configure is writing to config.log, and then calls config.status.
16516 # config.status does its own redirection, appending to config.log.
16517 # Unfortunately, on DOS this fails, as config.log is still kept open
16518 # by configure, so config.status won't be able to write to it; its
16519 # output is simply discarded. So we exec the FD to /dev/null,
16520 # effectively closing config.log, so it can be properly (re)opened and
16521 # appended to by config.status. When coming back to configure, we
16522 # need to make the FD available again.
16523 if test "$no_create" != yes; then
16525 ac_config_status_args=
16526 test "$silent" = yes &&
16527 ac_config_status_args="$ac_config_status_args --quiet"
16529 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16531 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16532 # would make configure fail if this is the last instruction.
16533 $ac_cs_success || { (exit 1); exit 1; }