2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default
="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP GNATBIND ac_ct_GNATBIND strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files
='language_hooks'
314 # Initialize some variables set by options.
316 ac_init_version
=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name
=s
,x
,x
,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir
='${exec_prefix}/bin'
340 sbindir
='${exec_prefix}/sbin'
341 libexecdir
='${exec_prefix}/libexec'
342 datadir
='${prefix}/share'
343 sysconfdir
='${prefix}/etc'
344 sharedstatedir
='${prefix}/com'
345 localstatedir
='${prefix}/var'
346 libdir
='${exec_prefix}/lib'
347 includedir
='${prefix}/include'
348 oldincludedir
='/usr/include'
349 infodir
='${prefix}/info'
350 mandir
='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
370 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
373 -build |
--build |
--buil |
--bui |
--bu)
374 ac_prev
=build_alias
;;
375 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
376 build_alias
=$ac_optarg ;;
378 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
379 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
380 ac_prev
=cache_file
;;
381 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
382 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
383 cache_file
=$ac_optarg ;;
386 cache_file
=config.cache
;;
388 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
390 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
392 datadir
=$ac_optarg ;;
394 -disable-* |
--disable-*)
395 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* |
--enable-*)
404 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
417 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
418 |
--exec |
--exe |
--ex)
419 ac_prev
=exec_prefix
;;
420 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
421 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
422 |
--exec=* |
--exe=* |
--ex=*)
423 exec_prefix
=$ac_optarg ;;
425 -gas |
--gas |
--ga |
--g)
426 # Obsolete; use --with-gas.
429 -help |
--help |
--hel |
--he |
-h)
431 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
432 ac_init_help
=recursive
;;
433 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
434 ac_init_help
=short
;;
436 -host |
--host |
--hos |
--ho)
437 ac_prev
=host_alias
;;
438 -host=* |
--host=* |
--hos=* |
--ho=*)
439 host_alias
=$ac_optarg ;;
441 -includedir |
--includedir |
--includedi |
--included |
--include \
442 |
--includ |
--inclu |
--incl |
--inc)
443 ac_prev
=includedir
;;
444 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
445 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
446 includedir
=$ac_optarg ;;
448 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
450 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
451 infodir
=$ac_optarg ;;
453 -libdir |
--libdir |
--libdi |
--libd)
455 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
458 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
459 |
--libexe |
--libex |
--libe)
460 ac_prev
=libexecdir
;;
461 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
462 |
--libexe=* |
--libex=* |
--libe=*)
463 libexecdir
=$ac_optarg ;;
465 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
466 |
--localstate |
--localstat |
--localsta |
--localst \
467 |
--locals |
--local |
--loca |
--loc |
--lo)
468 ac_prev
=localstatedir
;;
469 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
470 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
471 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
472 localstatedir
=$ac_optarg ;;
474 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
476 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
480 # Obsolete; use --without-fp.
483 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
484 |
--no-cr |
--no-c |
-n)
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
491 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
492 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
493 |
--oldin |
--oldi |
--old |
--ol |
--o)
494 ac_prev
=oldincludedir
;;
495 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
496 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
497 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
498 oldincludedir
=$ac_optarg ;;
500 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
502 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
505 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
506 |
--program-pre |
--program-pr |
--program-p)
507 ac_prev
=program_prefix
;;
508 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
509 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
510 program_prefix
=$ac_optarg ;;
512 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
513 |
--program-suf |
--program-su |
--program-s)
514 ac_prev
=program_suffix
;;
515 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
516 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
517 program_suffix
=$ac_optarg ;;
519 -program-transform-name |
--program-transform-name \
520 |
--program-transform-nam |
--program-transform-na \
521 |
--program-transform-n |
--program-transform- \
522 |
--program-transform |
--program-transfor \
523 |
--program-transfo |
--program-transf \
524 |
--program-trans |
--program-tran \
525 |
--progr-tra |
--program-tr |
--program-t)
526 ac_prev
=program_transform_name
;;
527 -program-transform-name=* |
--program-transform-name=* \
528 |
--program-transform-nam=* |
--program-transform-na=* \
529 |
--program-transform-n=* |
--program-transform-=* \
530 |
--program-transform=* |
--program-transfor=* \
531 |
--program-transfo=* |
--program-transf=* \
532 |
--program-trans=* |
--program-tran=* \
533 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
534 program_transform_name
=$ac_optarg ;;
536 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
537 |
-silent |
--silent |
--silen |
--sile |
--sil)
540 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
542 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
544 sbindir
=$ac_optarg ;;
546 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
547 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
548 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
550 ac_prev
=sharedstatedir
;;
551 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
552 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
553 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
555 sharedstatedir
=$ac_optarg ;;
557 -site |
--site |
--sit)
559 -site=* |
--site=* |
--sit=*)
562 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
564 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
567 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
568 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
569 ac_prev
=sysconfdir
;;
570 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
571 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
572 sysconfdir
=$ac_optarg ;;
574 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
575 ac_prev
=target_alias
;;
576 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
577 target_alias
=$ac_optarg ;;
579 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
582 -version |
--version |
--versio |
--versi |
--vers |
-V)
586 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package
=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* |
--without-*)
599 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package
=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
612 |
--x-incl |
--x-inc |
--x-in |
--x-i)
613 ac_prev
=x_includes
;;
614 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
615 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
616 x_includes
=$ac_optarg ;;
618 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
619 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
620 ac_prev
=x_libraries
;;
621 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
622 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
623 x_libraries
=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var
in exec_prefix prefix
660 eval ac_val
=$
`echo $ac_var`
662 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val
=$
`echo $ac_var`
674 [\\/$
]* | ?
:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x
; then
689 if test "x$build_alias" = x
; then
690 cross_compiling
=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
701 test "$silent" = yes && exec 6>/dev
/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted
=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir
=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted
=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set
=${build_alias+set}
741 ac_env_build_alias_value
=$build_alias
742 ac_cv_env_build_alias_set
=${build_alias+set}
743 ac_cv_env_build_alias_value
=$build_alias
744 ac_env_host_alias_set
=${host_alias+set}
745 ac_env_host_alias_value
=$host_alias
746 ac_cv_env_host_alias_set
=${host_alias+set}
747 ac_cv_env_host_alias_value
=$host_alias
748 ac_env_target_alias_set
=${target_alias+set}
749 ac_env_target_alias_value
=$target_alias
750 ac_cv_env_target_alias_set
=${target_alias+set}
751 ac_cv_env_target_alias_value
=$target_alias
752 ac_env_CC_set
=${CC+set}
754 ac_cv_env_CC_set
=${CC+set}
755 ac_cv_env_CC_value
=$CC
756 ac_env_CFLAGS_set
=${CFLAGS+set}
757 ac_env_CFLAGS_value
=$CFLAGS
758 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value
=$CFLAGS
760 ac_env_LDFLAGS_set
=${LDFLAGS+set}
761 ac_env_LDFLAGS_value
=$LDFLAGS
762 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value
=$LDFLAGS
764 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value
=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_env_CPP_set
=${CPP+set}
769 ac_env_CPP_value
=$CPP
770 ac_cv_env_CPP_set
=${CPP+set}
771 ac_cv_env_CPP_value
=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
839 --build=BUILD configure
for building on BUILD
[guessed
]
840 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
841 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-generated-files-in-srcdir
853 put copies of generated files
in source dir
854 intended
for creating
source tarballs
for users
855 without texinfo bison or flex.
856 --enable-werror enable -Werror in bootstrap stage2 and later
857 --enable-checking=LIST
858 enable expensive run-time checks. With LIST
,
859 enable only specific categories of checks.
860 Categories are
: misc
,tree
,rtl
,rtlflag
,gc
,gcac
,fold;
861 default is misc
,tree
,gc
,rtlflag
862 --enable-coverage=LEVEL
863 enable compiler
\'s code coverage collection.
864 Use to measure compiler performance and
locate
865 unused parts of the compiler. With LEVEL
, specify
866 optimization. Values are opt
, noopt
,
868 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
869 --enable-multilib enable library support
for multiple ABIs
870 --enable-__cxa_atexit enable __cxa_atexit
for C
++
871 --enable-threads enable thread usage
for target GCC
872 --enable-threads=LIB use LIB thread package
for target GCC
873 --enable-objc-gc enable the use of Boehm
's garbage collector with
874 the GNU Objective-C runtime
875 --disable-shared don't provide a shared libgcc
876 --enable-intermodule build the compiler
in one step
877 --enable-initfini-array use .init_array
/.fini_array sections
878 --enable-sjlj-exceptions
879 arrange to use setjmp
/longjmp exception handling
880 --enable-libunwind-exceptions force use libunwind
for exceptions
881 --disable-win32-registry
882 disable lookup of installation paths
in the
883 Registry on Windows hosts
884 --enable-win32-registry enable registry lookup
(default
)
885 --enable-win32-registry=KEY
886 use KEY instead of GCC version as the last portion
888 --enable-maintainer-mode
889 enable make rules and dependencies not useful
890 (and sometimes confusing
) to the casual installer
891 --enable-version-specific-runtime-libs
892 specify that runtime libraries should be
893 installed
in a compiler-specific directory
896 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
897 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
898 --with-local-prefix=DIR specifies directory to put
local include
899 --with-gxx-include-dir=DIR
900 specifies directory to put g
++ header files
901 --with-cpp-install-dir=DIR
902 install the user visible C preprocessor
in DIR
903 (relative to PREFIX
) as well as PREFIX
/bin
904 --with-gnu-ld arrange to work with GNU ld.
905 --with-ld arrange to use the specified ld
(full pathname
)
906 --with-gnu-as arrange to work with GNU as
907 --with-as arrange to use the specified as
(full pathname
)
908 --with-stabs arrange to use stabs instead of
host debug format
909 --with-dwarf2 force the default debug format to be DWARF
2
910 --with-sysroot=DIR Search
for usr
/lib
, usr
/include
, et al
, within DIR.
911 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
912 --with-gc={page
,zone
} choose the garbage collection mechanism to use
914 --with-system-zlib use installed libz
915 --with-slibdir=DIR shared libraries
in DIR LIBDIR
917 Some influential environment variables
:
918 CC C compiler
command
919 CFLAGS C compiler flags
920 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
921 nonstandard directory
<lib dir
>
922 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
923 headers
in a nonstandard directory
<include dir
>
926 Use these variables to override the choices made by
`configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
932 if test "$ac_init_help" = "recursive"; then
933 # If there are subdirs, report their specific --help.
935 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936 test -d $ac_dir || continue
939 if test "$ac_dir" != .; then
940 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
941 # A "../" for each directory in $ac_dir_suffix.
942 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
944 ac_dir_suffix= ac_top_builddir=
948 .) # No --srcdir option. We are building in place.
950 if test -z "$ac_top_builddir"; then
953 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
955 [\\/]* | ?:[\\/]* ) # Absolute path.
956 ac_srcdir=$srcdir$ac_dir_suffix;
957 ac_top_srcdir=$srcdir ;;
959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57. Invocation command line was
1016 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1017 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1018 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1019 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1020 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1022 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1023 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1025 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1027 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1028 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1029 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1031 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_must_keep_next=false
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 -* ) ac_must_keep_next=true ;;
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close
' the trap.
1111 trap 'exit_status
=$?
1112 # Save into config.log some information that might help in debugging.
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1122 # The following way of writing the cache mishandles newlines in values,
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1145 for ac_var
in $ac_subst_vars
1147 eval ac_val
=$
`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -n "$ac_subst_files"; then
1159 for ac_var
in $ac_subst_files
1161 eval ac_val
=$
`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -s confdefs.h
; then
1174 sed "/^$/d" confdefs.h |
sort
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1181 rm -f core
*.core
&&
1182 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's
/^
/|
/' "$ac_site_file" >&5
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1257 # Check that the precious variables saved in the cache have kept the same
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1270 ac_cache_corrupted=: ;;
1272 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1279 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1304 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1311 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1336 # Determine the host, build, and target systems
1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339 if test -f $ac_dir/install-sh; then
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 elif test -f $ac_dir/install.sh; then
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 elif test -f $ac_dir/shtool; then
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356 { (exit 1); exit 1; }; }
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362 # Make sure we can run config.sub.
1363 $ac_config_sub sun4 >/dev/null 2>&1 ||
1364 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1365 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1366 { (exit 1); exit 1; }; }
1368 echo "$as_me:$LINENO: checking build system type" >&5
1369 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1370 if test "${ac_cv_build+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 ac_cv_build_alias=$build_alias
1374 test -z "$ac_cv_build_alias" &&
1375 ac_cv_build_alias=`$ac_config_guess`
1376 test -z "$ac_cv_build_alias" &&
1377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1378 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1379 { (exit 1); exit 1; }; }
1380 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1382 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1383 { (exit 1); exit 1; }; }
1386 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1387 echo "${ECHO_T}$ac_cv_build" >&6
1389 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1390 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1391 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1394 echo "$as_me:$LINENO: checking host system type" >&5
1395 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1396 if test "${ac_cv_host+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 ac_cv_host_alias=$host_alias
1400 test -z "$ac_cv_host_alias" &&
1401 ac_cv_host_alias=$ac_cv_build_alias
1402 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1403 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1404 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1405 { (exit 1); exit 1; }; }
1408 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1409 echo "${ECHO_T}$ac_cv_host" >&6
1411 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1412 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1413 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1416 echo "$as_me:$LINENO: checking target system type" >&5
1417 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1418 if test "${ac_cv_target+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 ac_cv_target_alias=$target_alias
1422 test "x$ac_cv_target_alias" = "x" &&
1423 ac_cv_target_alias=$ac_cv_host_alias
1424 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1426 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1427 { (exit 1); exit 1; }; }
1430 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1431 echo "${ECHO_T}$ac_cv_target" >&6
1432 target=$ac_cv_target
1433 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1434 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1435 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1438 # The aliases save the names the user supplied, while $host etc.
1439 # will get canonicalized.
1440 test -n "$target_alias" &&
1441 test "$program_prefix$program_suffix$program_transform_name" = \
1443 program_prefix=${target_alias}-
1445 # Determine the noncanonical target name, for directory use.
1446 case ${build_alias} in
1447 "") build_noncanonical=${build} ;;
1448 *) build_noncanonical=${build_alias} ;;
1451 case ${host_alias} in
1452 "") host_noncanonical=${build_noncanonical} ;;
1453 *) host_noncanonical=${host_alias} ;;
1456 case ${target_alias} in
1457 "") target_noncanonical=${host_noncanonical} ;;
1458 *) target_noncanonical=${target_alias} ;;
1462 # Determine the target- and build-specific subdirectories
1463 # Prefix 'build-
' so this never conflicts with target_subdir.
1464 build_subdir="build-${build_noncanonical}"
1465 # Not really a subdirectory, but here for completeness.
1468 target_subdir=${target_noncanonical}
1471 # Set program_transform_name
1472 test "$program_prefix" != NONE &&
1473 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1474 # Use a double $ so make ignores it.
1475 test "$program_suffix" != NONE &&
1476 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1477 # Double any \ or $. echo might interpret backslashes.
1478 # By default was `s,x,x', remove it
if useless.
1479 cat <<\_ACEOF
>conftest.
sed
1480 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1482 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1486 # Check for bogus environment variables.
1487 # Test if LIBRARY_PATH contains the notation for the current directory
1488 # since this would lead to problems installing/building glibc.
1489 # LIBRARY_PATH contains the current directory if one of the following
1491 # - one of the terminals (":" and ";") is the first or last sign
1492 # - two terminals occur directly after each other
1493 # - the path contains an element with a dot in it
1494 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1495 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1496 case ${LIBRARY_PATH} in
1497 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1498 library_path_setting
="contains current directory"
1501 library_path_setting
="ok"
1504 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1505 echo "${ECHO_T}$library_path_setting" >&6
1506 if test "$library_path_setting" != "ok"; then
1507 { { echo "$as_me:$LINENO: error:
1508 *** LIBRARY_PATH shouldn't contain the current directory when
1509 *** building gcc. Please change the environment variable
1510 *** and run configure again." >&5
1511 echo "$as_me: error:
1512 *** LIBRARY_PATH shouldn't contain the current directory when
1513 *** building gcc. Please change the environment variable
1514 *** and run configure again." >&2;}
1515 { (exit 1); exit 1; }; }
1518 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1519 # since this would lead to problems installing/building glibc.
1520 # GCC_EXEC_PREFIX contains the current directory if one of the following
1522 # - one of the terminals (":" and ";") is the first or last sign
1523 # - two terminals occur directly after each other
1524 # - the path contains an element with a dot in it
1525 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1526 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1527 case ${GCC_EXEC_PREFIX} in
1528 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1529 gcc_exec_prefix_setting
="contains current directory"
1532 gcc_exec_prefix_setting
="ok"
1535 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1536 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1537 if test "$gcc_exec_prefix_setting" != "ok"; then
1538 { { echo "$as_me:$LINENO: error:
1539 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1540 *** building gcc. Please change the environment variable
1541 *** and run configure again." >&5
1542 echo "$as_me: error:
1543 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1544 *** building gcc. Please change the environment variable
1545 *** and run configure again." >&2;}
1546 { (exit 1); exit 1; }; }
1553 # Specify the local prefix
1556 # Check whether --with-local-prefix or --without-local-prefix was given.
1557 if test "${with_local_prefix+set}" = set; then
1558 withval
="$with_local_prefix"
1559 case "${withval}" in
1560 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1561 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1562 { (exit 1); exit 1; }; } ;;
1564 *) local_prefix
=$with_local_prefix ;;
1568 # Default local prefix if it is empty
1569 if test x
$local_prefix = x
; then
1570 local_prefix
=/usr
/local
1573 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1574 # passed in by the toplevel make and thus we'd get different behavior
1575 # depending on where we built the sources.
1576 gcc_gxx_include_dir
=
1577 # Specify the g++ header file directory
1579 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1580 if test "${with_gxx_include_dir+set}" = set; then
1581 withval
="$with_gxx_include_dir"
1582 case "${withval}" in
1583 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1584 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1585 { (exit 1); exit 1; }; } ;;
1587 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1591 if test x
${gcc_gxx_include_dir} = x
; then
1592 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1593 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1595 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
1596 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1601 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1602 if test "${with_cpp_install_dir+set}" = set; then
1603 withval
="$with_cpp_install_dir"
1604 if test x
$withval = xyes
; then
1605 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1606 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1607 { (exit 1); exit 1; }; }
1608 elif test x
$withval != xno
; then
1609 cpp_install_dir
=$withval
1613 # We would like to our source tree to be readonly. However when releases or
1614 # pre-releases are generated, the flex/bison generated files as well as the
1615 # various formats of manuals need to be included along with the rest of the
1616 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1619 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1620 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1621 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1622 if test "${enable_generated_files_in_srcdir+set}" = set; then
1623 enableval
="$enable_generated_files_in_srcdir"
1624 generated_files_in_srcdir
=$enableval
1626 generated_files_in_srcdir
=no
1629 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1630 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1632 if test "$generated_files_in_srcdir" = "yes"; then
1639 # -------------------
1640 # Find default linker
1641 # -------------------
1645 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1646 if test "${with_gnu_ld+set}" = set; then
1647 withval
="$with_gnu_ld"
1648 gnu_ld_flag
="$with_gnu_ld"
1653 # With pre-defined ld
1655 # Check whether --with-ld or --without-ld was given.
1656 if test "${with_ld+set}" = set; then
1658 DEFAULT_LINKER
="$with_ld"
1660 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1661 if test ! -x "$DEFAULT_LINKER"; then
1662 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1663 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1664 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1668 cat >>confdefs.h
<<_ACEOF
1669 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1674 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1675 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1676 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1677 if test x
"$gnu_ld_flag" = x
"no"; then
1678 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1679 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1681 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1682 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 # ----------------------
1690 # Find default assembler
1691 # ----------------------
1695 # Check whether --with-gnu-as or --without-gnu-as was given.
1696 if test "${with_gnu_as+set}" = set; then
1697 withval
="$with_gnu_as"
1698 gas_flag
="$with_gnu_as"
1704 # Check whether --with-as or --without-as was given.
1705 if test "${with_as+set}" = set; then
1707 DEFAULT_ASSEMBLER
="$with_as"
1709 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1710 if test ! -x "$DEFAULT_ASSEMBLER"; then
1711 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1712 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1713 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1717 cat >>confdefs.h
<<_ACEOF
1718 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1723 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1724 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1725 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1726 if test x
"$gas_flag" = x
"no"; then
1727 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1728 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1730 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1731 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1742 # If a non-executable a.out is present (e.g. created by GNU as above even if
1743 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1744 # file, even when creating an executable, so an execution test fails.
1745 # Remove possible default executable files to avoid this.
1747 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1748 # Autoconf includes it.
1749 rm -f a.out a.exe b.out
1751 # Find the native compiler
1753 ac_cpp
='$CPP $CPPFLAGS'
1754 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1757 if test -n "$ac_tool_prefix"; then
1758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1759 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC
="$CC" # Let the user override the test.
1768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1772 test -z "$as_dir" && as_dir
=.
1773 for ac_exec_ext
in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 if test -n "$CC"; then
1786 echo "$as_me:$LINENO: result: $CC" >&5
1787 echo "${ECHO_T}$CC" >&6
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1794 if test -z "$ac_cv_prog_CC"; then
1796 # Extract the first word of "gcc", so it can be a program name with args.
1797 set dummy gcc
; ac_word
=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 if test -n "$ac_ct_CC"; then
1804 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir
=.
1811 for ac_exec_ext
in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 ac_cv_prog_ac_ct_CC
="gcc"
1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1823 if test -n "$ac_ct_CC"; then
1824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1825 echo "${ECHO_T}$ac_ct_CC" >&6
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1836 if test -z "$CC"; then
1837 if test -n "$ac_tool_prefix"; then
1838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1839 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_CC+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC
="$CC" # Let the user override the test.
1848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1852 test -z "$as_dir" && as_dir
=.
1853 for ac_exec_ext
in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 if test -n "$CC"; then
1866 echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1874 if test -z "$ac_cv_prog_CC"; then
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc
; ac_word
=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$ac_ct_CC"; then
1884 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir
=.
1891 for ac_exec_ext
in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_ac_ct_CC
="cc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1903 if test -n "$ac_ct_CC"; then
1904 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1905 echo "${ECHO_T}$ac_ct_CC" >&6
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1917 if test -z "$CC"; then
1918 # Extract the first word of "cc", so it can be a program name with args.
1919 set dummy cc
; ac_word
=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC
="$CC" # Let the user override the test.
1929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir
=.
1934 for ac_exec_ext
in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1937 ac_prog_rejected
=yes
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 if test $ac_prog_rejected = yes; then
1948 # We found a bogon in the path, so make sure we never use it.
1949 set dummy
$ac_cv_prog_CC
1951 if test $# != 0; then
1952 # We chose a different compiler from the bogus one.
1953 # However, it has the same basename, so the bogon will be chosen
1954 # first if we set CC to just the basename; use the full file name.
1956 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1962 if test -n "$CC"; then
1963 echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1971 if test -z "$CC"; then
1972 if test -n "$ac_tool_prefix"; then
1975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC
="$CC" # Let the user override the test.
1985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir
=.
1990 for ac_exec_ext
in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 if test -n "$CC"; then
2003 echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2010 test -n "$CC" && break
2013 if test -z "$CC"; then
2017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2018 set dummy
$ac_prog; ac_word
=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 if test -n "$ac_ct_CC"; then
2025 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2031 test -z "$as_dir" && as_dir
=.
2032 for ac_exec_ext
in '' $ac_executable_extensions; do
2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034 ac_cv_prog_ac_ct_CC
="$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2052 test -n "$ac_ct_CC" && break
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO:" \
2069 "checking for C compiler version" >&5
2070 ac_compiler
=`set X $ac_compile; echo $2`
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2072 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2076 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2077 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2082 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2087 cat >conftest.
$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2091 cat confdefs.h
>>conftest.
$ac_ext
2092 cat >>conftest.
$ac_ext <<_ACEOF
2093 /* end confdefs.h. */
2103 ac_clean_files_save
=$ac_clean_files
2104 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2105 # Try to create an executable without -o first, disregard a.out.
2106 # It will help us diagnose broken compilers, and finding out an intuition
2108 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2109 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2110 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2111 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2112 (eval $ac_link_default) 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; then
2116 # Find the output, starting from the most likely. This scheme is
2117 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2120 # Be careful to initialize this variable, since it used to be cached.
2121 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2123 # b.out is created by i960 compilers.
2124 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2126 test -f "$ac_file" ||
continue
2128 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2131 # This is the source file.
2134 # We found the default executable, but exeext='' is most
2138 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139 # FIXME: I believe we export ac_cv_exeext for Libtool,
2140 # but it would be cool to find out if it's true. Does anybody
2141 # maintain Libtool? --akim.
2149 echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.
$ac_ext >&5
2152 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: C compiler cannot create executables
2155 See \`config.log' for more details." >&2;}
2156 { (exit 77); exit 77; }; }
2159 ac_exeext
=$ac_cv_exeext
2160 echo "$as_me:$LINENO: result: $ac_file" >&5
2161 echo "${ECHO_T}$ac_file" >&6
2163 # Check the compiler produces executables we can run. If not, either
2164 # the compiler is broken, or we cross compile.
2165 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2166 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2168 # If not cross compiling, check that we can run a simple program.
2169 if test "$cross_compiling" != yes; then
2170 if { ac_try
='./$ac_file'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
2178 if test "$cross_compiling" = maybe
; then
2181 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2182 If you meant to cross compile, use \`--host'.
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot run C compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&2;}
2187 { (exit 1); exit 1; }; }
2191 echo "$as_me:$LINENO: result: yes" >&5
2192 echo "${ECHO_T}yes" >&6
2194 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2195 ac_clean_files
=$ac_clean_files_save
2196 # Check the compiler produces executables we can run. If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2199 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2200 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2201 echo "${ECHO_T}$cross_compiling" >&6
2203 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2204 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2206 (eval $ac_link) 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2212 # work properly (i.e., refer to `conftest.exe'), while it won't with
2214 for ac_file
in conftest.exe conftest conftest.
*; do
2215 test -f "$ac_file" ||
continue
2217 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2218 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2232 rm -f conftest
$ac_cv_exeext
2233 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234 echo "${ECHO_T}$ac_cv_exeext" >&6
2236 rm -f conftest.
$ac_ext
2237 EXEEXT
=$ac_cv_exeext
2239 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241 if test "${ac_cv_objext+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 cat >conftest.
$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2248 cat confdefs.h
>>conftest.
$ac_ext
2249 cat >>conftest.
$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2260 rm -f conftest.o conftest.obj
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2268 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2269 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.
$ac_ext >&5
2277 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2280 See \`config.log' for more details." >&2;}
2281 { (exit 1); exit 1; }; }
2284 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2286 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2287 echo "${ECHO_T}$ac_cv_objext" >&6
2288 OBJEXT
=$ac_cv_objext
2290 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2291 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2292 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 cat >conftest.
$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2299 cat confdefs.h
>>conftest.
$ac_ext
2300 cat >>conftest.
$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2314 rm -f conftest.
$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try
='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.
$ac_ext >&5
2333 rm -f conftest.
$ac_objext conftest.
$ac_ext
2334 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2339 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2340 ac_test_CFLAGS
=${CFLAGS+set}
2341 ac_save_CFLAGS
=$CFLAGS
2343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2345 if test "${ac_cv_prog_cc_g+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.
$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2352 cat confdefs.h
>>conftest.
$ac_ext
2353 cat >>conftest.
$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2364 rm -f conftest.
$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 { ac_try
='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.
$ac_ext >&5
2383 rm -f conftest.
$ac_objext conftest.
$ac_ext
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387 if test "$ac_test_CFLAGS" = set; then
2388 CFLAGS
=$ac_save_CFLAGS
2389 elif test $ac_cv_prog_cc_g = yes; then
2390 if test "$GCC" = yes; then
2396 if test "$GCC" = yes; then
2402 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2403 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 ac_cv_prog_cc_stdc
=no
2409 cat >conftest.
$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2413 cat confdefs.h
>>conftest.
$ac_ext
2414 cat >>conftest.
$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2418 #include <sys/types.h>
2419 #include <sys/stat.h>
2420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2421 struct buf { int x; };
2422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2423 static char *e (p, i)
2429 static char *f (char * (*g) (char **, int), char **p, ...)
2434 s = g (p, va_arg (v,int));
2438 int test (int i, double x);
2439 struct s1 {int (*f) (int a);};
2440 struct s2 {int (*f) (double a);};
2441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2447 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2452 # Don't try gcc -ansi; that turns off useful extensions and
2453 # breaks some systems' header files.
2454 # AIX -qlanglvl=ansi
2455 # Ultrix and OSF/1 -std1
2456 # HP-UX 10.20 and later -Ae
2457 # HP-UX older versions -Aa -D_HPUX_SOURCE
2458 # SVR4 -Xc -D__EXTENSIONS__
2459 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2461 CC
="$ac_save_CC $ac_arg"
2462 rm -f conftest.
$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try
='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_prog_cc_stdc
=$ac_arg
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.
$ac_ext >&5
2481 rm -f conftest.
$ac_objext
2483 rm -f conftest.
$ac_ext conftest.
$ac_objext
2488 case "x$ac_cv_prog_cc_stdc" in
2490 echo "$as_me:$LINENO: result: none needed" >&5
2491 echo "${ECHO_T}none needed" >&6 ;;
2493 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2495 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2498 # Some people use a C++ compiler to compile C. Since we use `exit',
2499 # in C++ we need to declare it. In case someone uses the same compiler
2500 # for both compiling C and C++ we need to have the C++ compiler decide
2501 # the declaration of exit, since it's the most demanding environment.
2502 cat >conftest.
$ac_ext <<_ACEOF
2507 rm -f conftest.
$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try
='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 for ac_declaration
in \
2521 'extern "C" void std::exit (int) throw (); using std::exit;' \
2522 'extern "C" void std::exit (int); using std::exit;' \
2523 'extern "C" void exit (int) throw ();' \
2524 'extern "C" void exit (int);' \
2527 cat >conftest.
$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2531 cat confdefs.h
>>conftest.
$ac_ext
2532 cat >>conftest.
$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2544 rm -f conftest.
$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try
='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.
$ac_ext >&5
2563 rm -f conftest.
$ac_objext conftest.
$ac_ext
2564 cat >conftest.
$ac_ext <<_ACEOF
2565 #line $LINENO "configure"
2568 cat confdefs.h
>>conftest.
$ac_ext
2569 cat >>conftest.
$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2580 rm -f conftest.
$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try
='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.
$ac_ext >&5
2598 rm -f conftest.
$ac_objext conftest.
$ac_ext
2601 if test -n "$ac_declaration"; then
2602 echo '#ifdef __cplusplus' >>confdefs.h
2603 echo $ac_declaration >>confdefs.h
2604 echo '#endif' >>confdefs.h
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.
$ac_ext >&5
2612 rm -f conftest.
$ac_objext conftest.
$ac_ext
2614 ac_cpp
='$CPP $CPPFLAGS'
2615 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2619 if test "x$CC" != xcc
; then
2620 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2621 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2623 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2624 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2626 set dummy
$CC; ac_cc
=`echo $2 |
2627 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2628 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 cat >conftest.
$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2635 cat confdefs.h
>>conftest.
$ac_ext
2636 cat >>conftest.
$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2647 # Make sure it works both with $CC and with simple cc.
2648 # We do the test twice because some compilers refuse to overwrite an
2649 # existing .o file with -o, though they will create one.
2650 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2651 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); };
2662 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2663 if test "x$CC" != xcc
; then
2664 # Test first that cc exists at all.
2665 if { ac_try
='cc -c conftest.$ac_ext >&5'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2672 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); };
2686 # cc exists but doesn't like -o.
2687 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2692 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2697 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2698 echo "$as_me:$LINENO: result: yes" >&5
2699 echo "${ECHO_T}yes" >&6
2701 echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6
2704 cat >>confdefs.h
<<\_ACEOF
2705 #define NO_MINUS_C_MINUS_O 1
2710 # autoconf is lame and doesn't give us any substitution variable for this.
2711 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2712 NO_MINUS_C_MINUS_O
=yes
2714 OUTPUT_OPTION
='-o $@'
2719 # -------------------------
2720 # Check C compiler features
2721 # -------------------------
2724 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2725 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2726 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 save_CFLAGS
="$CFLAGS"
2730 CFLAGS
="-Wno-long-long"
2731 cat >conftest.
$ac_ext <<_ACEOF
2732 #line $LINENO "configure"
2735 cat confdefs.h
>>conftest.
$ac_ext
2736 cat >>conftest.
$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2747 rm -f conftest.
$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try
='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_cv_prog_cc_no_long_long
=yes
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.
$ac_ext >&5
2764 ac_cv_prog_cc_no_long_long
=no
2766 rm -f conftest.
$ac_objext conftest.
$ac_ext
2767 CFLAGS
="$save_CFLAGS"
2769 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2773 ac_cpp
='$CPP $CPPFLAGS'
2774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2777 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2778 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2779 # On Suns, sometimes $CPP names a directory.
2780 if test -n "$CPP" && test -d "$CPP"; then
2783 if test -z "$CPP"; then
2784 if test "${ac_cv_prog_CPP+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 # Double quotes because CPP needs to be expanded
2788 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2791 for ac_c_preproc_warn_flag
in '' yes
2793 # Use a header file that comes with gcc, so configuring glibc
2794 # with a fresh cross-compiler works.
2795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2796 # <limits.h> exists even on freestanding compilers.
2797 # On the NeXT, cc -E runs the code through the compiler's parser,
2798 # not just through cpp. "Syntax error" is here to catch this case.
2799 cat >conftest.
$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2803 cat confdefs.h
>>conftest.
$ac_ext
2804 cat >>conftest.
$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2807 # include <limits.h>
2809 # include <assert.h>
2813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2814 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2816 grep -v '^ *+' conftest.er1
>conftest.err
2818 cat conftest.err
>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } >/dev
/null
; then
2821 if test -s conftest.err
; then
2822 ac_cpp_err
=$ac_c_preproc_warn_flag
2829 if test -z "$ac_cpp_err"; then
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.
$ac_ext >&5
2835 # Broken: fails on valid input.
2838 rm -f conftest.err conftest.
$ac_ext
2840 # OK, works on sane cases. Now check whether non-existent headers
2841 # can be detected and how.
2842 cat >conftest.
$ac_ext <<_ACEOF
2843 #line $LINENO "configure"
2846 cat confdefs.h
>>conftest.
$ac_ext
2847 cat >>conftest.
$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2849 #include <ac_nonexistent.h>
2851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2852 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2854 grep -v '^ *+' conftest.er1
>conftest.err
2856 cat conftest.err
>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } >/dev
/null
; then
2859 if test -s conftest.err
; then
2860 ac_cpp_err
=$ac_c_preproc_warn_flag
2867 if test -z "$ac_cpp_err"; then
2868 # Broken: success on invalid input.
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.
$ac_ext >&5
2874 # Passes both tests.
2878 rm -f conftest.err conftest.
$ac_ext
2881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2882 rm -f conftest.err conftest.
$ac_ext
2883 if $ac_preproc_ok; then
2895 echo "$as_me:$LINENO: result: $CPP" >&5
2896 echo "${ECHO_T}$CPP" >&6
2898 for ac_c_preproc_warn_flag
in '' yes
2900 # Use a header file that comes with gcc, so configuring glibc
2901 # with a fresh cross-compiler works.
2902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903 # <limits.h> exists even on freestanding compilers.
2904 # On the NeXT, cc -E runs the code through the compiler's parser,
2905 # not just through cpp. "Syntax error" is here to catch this case.
2906 cat >conftest.
$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2910 cat confdefs.h
>>conftest.
$ac_ext
2911 cat >>conftest.
$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2914 # include <limits.h>
2916 # include <assert.h>
2920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2921 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2923 grep -v '^ *+' conftest.er1
>conftest.err
2925 cat conftest.err
>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } >/dev
/null
; then
2928 if test -s conftest.err
; then
2929 ac_cpp_err
=$ac_c_preproc_warn_flag
2936 if test -z "$ac_cpp_err"; then
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.
$ac_ext >&5
2942 # Broken: fails on valid input.
2945 rm -f conftest.err conftest.
$ac_ext
2947 # OK, works on sane cases. Now check whether non-existent headers
2948 # can be detected and how.
2949 cat >conftest.
$ac_ext <<_ACEOF
2950 #line $LINENO "configure"
2953 cat confdefs.h
>>conftest.
$ac_ext
2954 cat >>conftest.
$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #include <ac_nonexistent.h>
2958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2959 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2961 grep -v '^ *+' conftest.er1
>conftest.err
2963 cat conftest.err
>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } >/dev
/null
; then
2966 if test -s conftest.err
; then
2967 ac_cpp_err
=$ac_c_preproc_warn_flag
2974 if test -z "$ac_cpp_err"; then
2975 # Broken: success on invalid input.
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.
$ac_ext >&5
2981 # Passes both tests.
2985 rm -f conftest.err conftest.
$ac_ext
2988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989 rm -f conftest.err conftest.
$ac_ext
2990 if $ac_preproc_ok; then
2993 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2994 See \`config.log' for more details." >&5
2995 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
3001 ac_cpp
='$CPP $CPPFLAGS'
3002 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3006 echo "$as_me:$LINENO: checking for inline" >&5
3007 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3008 if test "${ac_cv_c_inline+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 for ac_kw
in inline __inline__ __inline
; do
3013 cat >conftest.
$ac_ext <<_ACEOF
3014 #line $LINENO "configure"
3017 cat confdefs.h
>>conftest.
$ac_ext
3018 cat >>conftest.
$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3022 static $ac_kw foo_t static_foo () {return 0; }
3023 $ac_kw foo_t foo () {return 0; }
3027 rm -f conftest.
$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try
='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_c_inline
=$ac_kw; break
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.
$ac_ext >&5
3045 rm -f conftest.
$ac_objext conftest.
$ac_ext
3049 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3050 echo "${ECHO_T}$ac_cv_c_inline" >&6
3051 case $ac_cv_c_inline in
3054 cat >>confdefs.h
<<\_ACEOF
3058 *) cat >>confdefs.h
<<_ACEOF
3059 #define inline $ac_cv_c_inline
3065 echo "$as_me:$LINENO: checking for long long int" >&5
3066 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3067 if test "${ac_cv_c_long_long+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 cat >conftest.
$ac_ext <<_ACEOF
3071 #line $LINENO "configure"
3074 cat confdefs.h
>>conftest.
$ac_ext
3075 cat >>conftest.
$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3086 rm -f conftest.
$ac_objext
3087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088 (eval $ac_compile) 2>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try
='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_c_long_long
=yes
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.
$ac_ext >&5
3103 ac_cv_c_long_long
=no
3105 rm -f conftest.
$ac_objext conftest.
$ac_ext
3107 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3108 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3109 if test $ac_cv_c_long_long = yes; then
3111 cat >>confdefs.h
<<\_ACEOF
3112 #define HAVE_LONG_LONG 1
3116 echo "$as_me:$LINENO: checking for __int64" >&5
3117 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3118 if test "${ac_cv_c___int64+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 cat >conftest.
$ac_ext <<_ACEOF
3122 #line $LINENO "configure"
3125 cat confdefs.h
>>conftest.
$ac_ext
3126 cat >>conftest.
$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 rm -f conftest.
$ac_objext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try
='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.
$ac_ext >&5
3156 rm -f conftest.
$ac_objext conftest.
$ac_ext
3158 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3159 echo "${ECHO_T}$ac_cv_c___int64" >&6
3160 if test $ac_cv_c___int64 = yes; then
3162 cat >>confdefs.h
<<\_ACEOF
3163 #define HAVE___INT64 1
3168 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3169 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3170 if test "${gcc_cv_c__bool+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 cat >conftest.
$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3177 cat confdefs.h
>>conftest.
$ac_ext
3178 cat >>conftest.
$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3189 rm -f conftest.
$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try
='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.
$ac_ext >&5
3208 rm -f conftest.
$ac_objext conftest.
$ac_ext
3211 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3212 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3213 if test $gcc_cv_c__bool = yes; then
3215 cat >>confdefs.h
<<\_ACEOF
3216 #define HAVE__BOOL 1
3222 # sizeof(char) is 1 by definition.
3223 echo "$as_me:$LINENO: checking size of void *" >&5
3224 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3225 if test "${ac_cv_sizeof_void_p+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3229 cat >conftest.
$ac_ext <<_ACEOF
3230 #line $LINENO "configure"
3233 cat confdefs.h
>>conftest.
$ac_ext
3234 cat >>conftest.
$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236 #include "confdefs.h"
3237 #include <sys/types.h>
3243 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3248 rm -f conftest.
$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try
='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_sizeof_void_p
=$ac_size
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.
$ac_ext >&5
3266 rm -f conftest.
$ac_objext conftest.
$ac_ext
3267 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3272 if test x
$ac_cv_sizeof_void_p = x
; then
3273 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3274 echo "$as_me: error: cannot determine a size for void *" >&2;}
3275 { (exit 1); exit 1; }; }
3277 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3278 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3280 cat >>confdefs.h
<<_ACEOF
3281 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3285 echo "$as_me:$LINENO: checking size of short" >&5
3286 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3287 if test "${ac_cv_sizeof_short+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3291 cat >conftest.
$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3295 cat confdefs.h
>>conftest.
$ac_ext
3296 cat >>conftest.
$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298 #include "confdefs.h"
3299 #include <sys/types.h>
3305 switch (0) case 0: case (sizeof (short) == $ac_size):;
3310 rm -f conftest.
$ac_objext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312 (eval $ac_compile) 2>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try
='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_cv_sizeof_short
=$ac_size
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.
$ac_ext >&5
3328 rm -f conftest.
$ac_objext conftest.
$ac_ext
3329 if test x
$ac_cv_sizeof_short != x
; then break; fi
3334 if test x
$ac_cv_sizeof_short = x
; then
3335 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3336 echo "$as_me: error: cannot determine a size for short" >&2;}
3337 { (exit 1); exit 1; }; }
3339 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3340 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3342 cat >>confdefs.h
<<_ACEOF
3343 #define SIZEOF_SHORT $ac_cv_sizeof_short
3347 echo "$as_me:$LINENO: checking size of int" >&5
3348 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3349 if test "${ac_cv_sizeof_int+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3353 cat >conftest.
$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3357 cat confdefs.h
>>conftest.
$ac_ext
3358 cat >>conftest.
$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3367 switch (0) case 0: case (sizeof (int) == $ac_size):;
3372 rm -f conftest.
$ac_objext
3373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3374 (eval $ac_compile) 2>&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try
='test -s conftest.$ac_objext'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
3384 ac_cv_sizeof_int
=$ac_size
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.
$ac_ext >&5
3390 rm -f conftest.
$ac_objext conftest.
$ac_ext
3391 if test x
$ac_cv_sizeof_int != x
; then break; fi
3396 if test x
$ac_cv_sizeof_int = x
; then
3397 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3398 echo "$as_me: error: cannot determine a size for int" >&2;}
3399 { (exit 1); exit 1; }; }
3401 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3402 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3404 cat >>confdefs.h
<<_ACEOF
3405 #define SIZEOF_INT $ac_cv_sizeof_int
3409 echo "$as_me:$LINENO: checking size of long" >&5
3410 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3411 if test "${ac_cv_sizeof_long+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3415 cat >conftest.
$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3419 cat confdefs.h
>>conftest.
$ac_ext
3420 cat >>conftest.
$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 #include "confdefs.h"
3423 #include <sys/types.h>
3429 switch (0) case 0: case (sizeof (long) == $ac_size):;
3434 rm -f conftest.
$ac_objext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3436 (eval $ac_compile) 2>&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try
='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 ac_cv_sizeof_long
=$ac_size
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.
$ac_ext >&5
3452 rm -f conftest.
$ac_objext conftest.
$ac_ext
3453 if test x
$ac_cv_sizeof_long != x
; then break; fi
3458 if test x
$ac_cv_sizeof_long = x
; then
3459 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3460 echo "$as_me: error: cannot determine a size for long" >&2;}
3461 { (exit 1); exit 1; }; }
3463 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3464 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3466 cat >>confdefs.h
<<_ACEOF
3467 #define SIZEOF_LONG $ac_cv_sizeof_long
3471 if test $ac_cv_c_long_long = yes; then
3472 echo "$as_me:$LINENO: checking size of long long" >&5
3473 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3474 if test "${ac_cv_sizeof_long_long+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3478 cat >conftest.
$ac_ext <<_ACEOF
3479 #line $LINENO "configure"
3482 cat confdefs.h
>>conftest.
$ac_ext
3483 cat >>conftest.
$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 #include "confdefs.h"
3486 #include <sys/types.h>
3492 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3497 rm -f conftest.
$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try
='test -s conftest.$ac_objext'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3509 ac_cv_sizeof_long_long
=$ac_size
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.
$ac_ext >&5
3515 rm -f conftest.
$ac_objext conftest.
$ac_ext
3516 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3521 if test x
$ac_cv_sizeof_long_long = x
; then
3522 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3523 echo "$as_me: error: cannot determine a size for long long" >&2;}
3524 { (exit 1); exit 1; }; }
3526 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3527 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3529 cat >>confdefs.h
<<_ACEOF
3530 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3535 if test $ac_cv_c___int64 = yes; then
3536 echo "$as_me:$LINENO: checking size of __int64" >&5
3537 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3538 if test "${ac_cv_sizeof___int64+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3542 cat >conftest.
$ac_ext <<_ACEOF
3543 #line $LINENO "configure"
3546 cat confdefs.h
>>conftest.
$ac_ext
3547 cat >>conftest.
$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include "confdefs.h"
3550 #include <sys/types.h>
3556 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3561 rm -f conftest.
$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try
='test -s conftest.$ac_objext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3573 ac_cv_sizeof___int64
=$ac_size
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.
$ac_ext >&5
3579 rm -f conftest.
$ac_objext conftest.
$ac_ext
3580 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3585 if test x
$ac_cv_sizeof___int64 = x
; then
3586 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3587 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3588 { (exit 1); exit 1; }; }
3590 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3591 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3593 cat >>confdefs.h
<<_ACEOF
3594 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3604 # See if GNAT has been installed
3608 if test -n "$ac_tool_prefix"; then
3609 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3610 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 if test -n "$GNATBIND"; then
3617 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3623 test -z "$as_dir" && as_dir
=.
3624 for ac_exec_ext
in '' $ac_executable_extensions; do
3625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 GNATBIND
=$ac_cv_prog_GNATBIND
3636 if test -n "$GNATBIND"; then
3637 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3638 echo "${ECHO_T}$GNATBIND" >&6
3640 echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3645 if test -z "$ac_cv_prog_GNATBIND"; then
3646 ac_ct_GNATBIND
=$GNATBIND
3647 # Extract the first word of "gnatbind", so it can be a program name with args.
3648 set dummy gnatbind
; ac_word
=$2
3649 echo "$as_me:$LINENO: checking for $ac_word" >&5
3650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 if test -n "$ac_ct_GNATBIND"; then
3655 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3661 test -z "$as_dir" && as_dir
=.
3662 for ac_exec_ext
in '' $ac_executable_extensions; do
3663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3674 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3675 if test -n "$ac_ct_GNATBIND"; then
3676 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3677 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3683 GNATBIND
=$ac_ct_GNATBIND
3685 GNATBIND
="$ac_cv_prog_GNATBIND"
3688 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3689 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3690 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 cat >conftest.adb
<<EOF
3694 procedure conftest is begin null; end conftest;
3696 gcc_cv_cc_supports_ada
=no
3697 # There is a bug in old released versions of GCC which causes the
3698 # driver to exit successfully when the appropriate language module
3699 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3700 # Therefore we must check for the error message as well as an
3701 # unsuccessful exit.
3702 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3703 if test x
"$errors" = x
; then
3704 gcc_cv_cc_supports_ada
=yes
3709 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3710 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3712 if test x
$GNATBIND != xno
&& test x
$gcc_cv_supports_ada != xno
; then
3719 # ---------------------
3720 # Warnings and checking
3721 # ---------------------
3724 if test $ac_cv_prog_cc_no_long_long = yes ; then
3725 strict1_warn
="-pedantic -Wno-long-long"
3729 # If the native compiler is GCC, we can enable warnings even in stage1.
3730 # That's useful for people building cross-compilers, or just running a
3733 if test "x$GCC" = "xyes"; then
3734 warn_cflags
='$(GCC_WARN_CFLAGS)'
3738 # Enable -Werror in bootstrap stage2 and later.
3739 # Change the default to "no" on release branches.
3740 # Check whether --enable-werror or --disable-werror was given.
3741 if test "${enable_werror+set}" = set; then
3742 enableval
="$enable_werror"
3747 if test x
$enable_werror = xyes
; then
3752 # Enable expensive internal checks
3753 # Check whether --enable-checking or --disable-checking was given.
3754 if test "${enable_checking+set}" = set; then
3755 enableval
="$enable_checking"
3759 ac_rtlflag_checking
=
3761 ac_gc_always_collect
=
3763 case "${enableval}" in
3764 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3765 ac_rtlflag_checking
=1 ;;
3767 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3768 set fnord
$enableval; shift
3773 misc
) ac_checking
=1 ;;
3774 tree
) ac_tree_checking
=1 ;;
3775 rtlflag
) ac_rtlflag_checking
=1 ;;
3776 rtl
) ac_rtl_checking
=1 ;;
3777 gc
) ac_gc_checking
=1 ;;
3778 gcac
) ac_gc_always_collect
=1 ;;
3779 fold) ac_fold_checking
=1 ;;
3780 valgrind
) ac_checking_valgrind
=1 ;;
3781 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3782 echo "$as_me: error: unknown check category $check" >&2;}
3783 { (exit 1); exit 1; }; } ;;
3790 # Enable some checks by default for development versions of GCC
3791 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
3794 if test x
$ac_checking != x
; then
3796 cat >>confdefs.h
<<\_ACEOF
3797 #define ENABLE_CHECKING 1
3800 nocommon_flag
=-fno-common
3803 if test x
$ac_tree_checking != x
; then
3805 cat >>confdefs.h
<<\_ACEOF
3806 #define ENABLE_TREE_CHECKING 1
3810 if test x
$ac_rtl_checking != x
; then
3812 cat >>confdefs.h
<<\_ACEOF
3813 #define ENABLE_RTL_CHECKING 1
3817 if test x
$ac_rtlflag_checking != x
; then
3819 cat >>confdefs.h
<<\_ACEOF
3820 #define ENABLE_RTL_FLAG_CHECKING 1
3824 if test x
$ac_gc_checking != x
; then
3826 cat >>confdefs.h
<<\_ACEOF
3827 #define ENABLE_GC_CHECKING 1
3831 if test x
$ac_gc_always_collect != x
; then
3833 cat >>confdefs.h
<<\_ACEOF
3834 #define ENABLE_GC_ALWAYS_COLLECT 1
3838 if test x
$ac_fold_checking != x
; then
3840 cat >>confdefs.h
<<\_ACEOF
3841 #define ENABLE_FOLD_CHECKING 1
3845 valgrind_path_defines
=
3849 echo "$as_me:$LINENO: checking for egrep" >&5
3850 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3851 if test "${ac_cv_prog_egrep+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3855 then ac_cv_prog_egrep
='grep -E'
3856 else ac_cv_prog_egrep
='egrep'
3859 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3860 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3861 EGREP
=$ac_cv_prog_egrep
3864 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3866 if test "${ac_cv_header_stdc+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 cat >conftest.
$ac_ext <<_ACEOF
3870 #line $LINENO "configure"
3873 cat confdefs.h
>>conftest.
$ac_ext
3874 cat >>conftest.
$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3889 rm -f conftest.
$ac_objext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891 (eval $ac_compile) 2>&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try
='test -s conftest.$ac_objext'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3901 ac_cv_header_stdc
=yes
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.
$ac_ext >&5
3906 ac_cv_header_stdc
=no
3908 rm -f conftest.
$ac_objext conftest.
$ac_ext
3910 if test $ac_cv_header_stdc = yes; then
3911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3912 cat >conftest.
$ac_ext <<_ACEOF
3913 #line $LINENO "configure"
3916 cat confdefs.h
>>conftest.
$ac_ext
3917 cat >>conftest.
$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923 $EGREP "memchr" >/dev
/null
2>&1; then
3926 ac_cv_header_stdc
=no
3932 if test $ac_cv_header_stdc = yes; then
3933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3934 cat >conftest.
$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3938 cat confdefs.h
>>conftest.
$ac_ext
3939 cat >>conftest.
$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "free" >/dev
/null
2>&1; then
3948 ac_cv_header_stdc
=no
3954 if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then
3959 cat >conftest.
$ac_ext <<_ACEOF
3960 #line $LINENO "configure"
3963 cat confdefs.h
>>conftest.
$ac_ext
3964 cat >>conftest.
$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3967 #if ((' ' & 0x0FF) == 0x020)
3968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3971 # define ISLOWER(c) \
3972 (('a' <= (c) && (c) <= 'i') \
3973 || ('j' <= (c) && (c) <= 'r') \
3974 || ('s' <= (c) && (c) <= 'z'))
3975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3983 for (i = 0; i < 256; i++)
3984 if (XOR (islower (i), ISLOWER (i))
3985 || toupper (i) != TOUPPER (i))
3990 rm -f conftest
$ac_exeext
3991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3992 (eval $ac_link) 2>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4003 echo "$as_me: program exited with status $ac_status" >&5
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.
$ac_ext >&5
4008 ac_cv_header_stdc
=no
4010 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4014 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4015 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4016 if test $ac_cv_header_stdc = yes; then
4018 cat >>confdefs.h
<<\_ACEOF
4019 #define STDC_HEADERS 1
4024 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4034 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4035 inttypes.h stdint.h unistd.h
4037 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038 echo "$as_me:$LINENO: checking for $ac_header" >&5
4039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 cat >conftest.
$ac_ext <<_ACEOF
4044 #line $LINENO "configure"
4047 cat confdefs.h
>>conftest.
$ac_ext
4048 cat >>conftest.
$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 $ac_includes_default
4052 #include <$ac_header>
4054 rm -f conftest.
$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try
='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 eval "$as_ac_Header=yes"
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.
$ac_ext >&5
4071 eval "$as_ac_Header=no"
4073 rm -f conftest.
$ac_objext conftest.
$ac_ext
4075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4078 cat >>confdefs.h
<<_ACEOF
4079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4087 if test "${ac_cv_header_valgrind_h+set}" = set; then
4088 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4089 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4090 if test "${ac_cv_header_valgrind_h+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4094 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4096 # Is the header compilable?
4097 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4098 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4099 cat >conftest.
$ac_ext <<_ACEOF
4100 #line $LINENO "configure"
4103 cat confdefs.h
>>conftest.
$ac_ext
4104 cat >>conftest.
$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 $ac_includes_default
4107 #include <valgrind.h>
4109 rm -f conftest.
$ac_objext
4110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try
='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_header_compiler
=yes
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.
$ac_ext >&5
4126 ac_header_compiler
=no
4128 rm -f conftest.
$ac_objext conftest.
$ac_ext
4129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4130 echo "${ECHO_T}$ac_header_compiler" >&6
4132 # Is the header present?
4133 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4134 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4135 cat >conftest.
$ac_ext <<_ACEOF
4136 #line $LINENO "configure"
4139 cat confdefs.h
>>conftest.
$ac_ext
4140 cat >>conftest.
$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <valgrind.h>
4144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4145 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4147 grep -v '^ *+' conftest.er1
>conftest.err
4149 cat conftest.err
>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } >/dev
/null
; then
4152 if test -s conftest.err
; then
4153 ac_cpp_err
=$ac_c_preproc_warn_flag
4160 if test -z "$ac_cpp_err"; then
4161 ac_header_preproc
=yes
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.
$ac_ext >&5
4166 ac_header_preproc
=no
4168 rm -f conftest.err conftest.
$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4170 echo "${ECHO_T}$ac_header_preproc" >&6
4172 # So? What about this header?
4173 case $ac_header_compiler:$ac_header_preproc in
4175 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4176 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4177 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4178 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4181 ## ------------------------------------ ##
4182 ## Report this to bug-autoconf@gnu.org. ##
4183 ## ------------------------------------ ##
4186 sed "s/^/$as_me: WARNING: /" >&2
4189 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4190 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4192 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4193 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4194 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4197 ## ------------------------------------ ##
4198 ## Report this to bug-autoconf@gnu.org. ##
4199 ## ------------------------------------ ##
4202 sed "s/^/$as_me: WARNING: /" >&2
4205 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4206 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4207 if test "${ac_cv_header_valgrind_h+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 ac_cv_header_valgrind_h
=$ac_header_preproc
4212 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4213 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4216 if test $ac_cv_header_valgrind_h = yes; then
4224 if test x
$ac_checking_valgrind != x
; then
4225 # It is certainly possible that there's valgrind but no valgrind.h.
4226 # GCC relies on making annotations so we must have both.
4227 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4228 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4229 cat >conftest.
$ac_ext <<_ACEOF
4230 #line $LINENO "configure"
4233 cat confdefs.h
>>conftest.
$ac_ext
4234 cat >>conftest.
$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 #include <valgrind/memcheck.h>
4237 #ifndef VALGRIND_DISCARD
4238 #error VALGRIND_DISCARD not defined
4241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4242 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4244 grep -v '^ *+' conftest.er1
>conftest.err
4246 cat conftest.err
>&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev
/null
; then
4249 if test -s conftest.err
; then
4250 ac_cpp_err
=$ac_c_preproc_warn_flag
4257 if test -z "$ac_cpp_err"; then
4258 gcc_cv_header_valgrind_memcheck_h
=yes
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.
$ac_ext >&5
4263 gcc_cv_header_valgrind_memcheck_h
=no
4265 rm -f conftest.err conftest.
$ac_ext
4266 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4267 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4268 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4269 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4270 cat >conftest.
$ac_ext <<_ACEOF
4271 #line $LINENO "configure"
4274 cat confdefs.h
>>conftest.
$ac_ext
4275 cat >>conftest.
$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <memcheck.h>
4278 #ifndef VALGRIND_DISCARD
4279 #error VALGRIND_DISCARD not defined
4282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4285 grep -v '^ *+' conftest.er1
>conftest.err
4287 cat conftest.err
>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev
/null
; then
4290 if test -s conftest.err
; then
4291 ac_cpp_err
=$ac_c_preproc_warn_flag
4298 if test -z "$ac_cpp_err"; then
4299 gcc_cv_header_memcheck_h
=yes
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.
$ac_ext >&5
4304 gcc_cv_header_memcheck_h
=no
4306 rm -f conftest.err conftest.
$ac_ext
4307 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4308 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4310 # Prepare PATH_SEPARATOR.
4311 # The user is always right.
4312 if test "${PATH_SEPARATOR+set}" != set; then
4313 echo "#! /bin/sh" >conf$$.sh
4314 echo "exit 0" >>conf$$.sh
4316 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4324 # Find out how to test for executable files. Don't use a zero-byte file,
4325 # as systems may use methods other than mode bits to determine executability.
4326 cat >conf$$.
file <<_ASEOF
4330 chmod +x conf$$.
file
4331 if test -x conf$$.
file >/dev
/null
2>&1; then
4332 ac_executable_p
="test -x"
4334 ac_executable_p
="test -f"
4338 # Extract the first word of "valgrind", so it can be a program name with args.
4339 set dummy valgrind
; ac_word
=$2
4340 echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4342 if test "${ac_cv_path_valgrind_path+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 case "$valgrind_path" in
4347 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4350 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4351 for ac_dir
in $PATH; do
4353 test -z "$ac_dir" && ac_dir
=.
4354 for ac_exec_ext
in '' $ac_executable_extensions; do
4355 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4356 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4357 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
4367 valgrind_path
="$ac_cv_path_valgrind_path"
4368 if test -n "$valgrind_path"; then
4369 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4370 echo "${ECHO_T}$valgrind_path" >&6
4372 echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4376 if test "x$valgrind_path" = "x" \
4377 ||
(test $have_valgrind_h = no \
4378 && test $gcc_cv_header_memcheck_h = no \
4379 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
4380 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4381 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4382 { (exit 1); exit 1; }; }
4384 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4385 valgrind_command
="$valgrind_path -q"
4387 cat >>confdefs.h
<<\_ACEOF
4388 #define ENABLE_VALGRIND_CHECKING 1
4391 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4393 cat >>confdefs.h
<<\_ACEOF
4394 #define HAVE_VALGRIND_MEMCHECK_H 1
4398 if test $gcc_cv_header_memcheck_h = yes; then
4400 cat >>confdefs.h
<<\_ACEOF
4401 #define HAVE_MEMCHECK_H 1
4409 # Enable code coverage collection
4410 # Check whether --enable-coverage or --disable-coverage was given.
4411 if test "${enable_coverage+set}" = set; then
4412 enableval
="$enable_coverage"
4413 case "${enableval}" in
4415 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4418 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4421 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4422 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4423 { (exit 1); exit 1; }; }
4431 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4432 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4433 enableval
="$enable_gather_detailed_mem_stats"
4436 enable_gather_detailed_mem_stats
=no
4438 if test x
$enable_gather_detailed_mem_stats = xyes
; then
4440 cat >>confdefs.h
<<\_ACEOF
4441 #define GATHER_STATISTICS 1
4446 # -------------------------------
4447 # Miscenalleous configure options
4448 # -------------------------------
4452 # Check whether --with-stabs or --without-stabs was given.
4453 if test "${with_stabs+set}" = set; then
4454 withval
="$with_stabs"
4460 # Determine whether or not multilibs are enabled.
4461 # Check whether --enable-multilib or --disable-multilib was given.
4462 if test "${enable_multilib+set}" = set; then
4463 enableval
="$enable_multilib"
4470 # Enable __cxa_atexit for C++.
4471 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4472 if test "${enable___cxa_atexit+set}" = set; then
4473 enableval
="$enable___cxa_atexit"
4478 # Pass with no value to take the default
4479 # Pass with a value to specify a thread package
4480 # Check whether --enable-threads or --disable-threads was given.
4481 if test "${enable_threads+set}" = set; then
4482 enableval
="$enable_threads"
4487 # Save in case it gets overwritten in config.gcc
4488 enable_threads_flag
=$enable_threads
4490 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4491 if test "${enable_objc_gc+set}" = set; then
4492 enableval
="$enable_objc_gc"
4493 if test x
$enable_objc_gc = xno
; then
4503 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4504 if test "${with_dwarf2+set}" = set; then
4505 withval
="$with_dwarf2"
4506 dwarf2
="$with_dwarf2"
4511 # Check whether --enable-shared or --disable-shared was given.
4512 if test "${enable_shared+set}" = set; then
4513 enableval
="$enable_shared"
4515 case $enable_shared in
4519 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4520 for pkg
in $enableval; do
4521 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4535 # Check whether --with-sysroot or --without-sysroot was given.
4536 if test "${with_sysroot+set}" = set; then
4537 withval
="$with_sysroot"
4539 case ${with_sysroot} in
4540 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4541 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4544 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4545 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4547 if test "x$exec_prefix" = xNONE
; then
4548 if test "x$prefix" = xNONE
; then
4549 test_prefix
=/usr
/local
4554 test_prefix
=$exec_prefix
4556 case ${TARGET_SYSTEM_ROOT} in
4557 "${test_prefix}"|
"${test_prefix}/"*|\
4558 '${exec_prefix}'|
'${exec_prefix}/'*)
4559 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4560 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4567 TARGET_SYSTEM_ROOT_DEFINE
=
4568 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4575 # Build with intermodule optimisations
4576 # Check whether --enable-intermodule or --disable-intermodule was given.
4577 if test "${enable_intermodule+set}" = set; then
4578 enableval
="$enable_intermodule"
4579 case ${enable_intermodule} in
4580 yes) onestep
="-onestep";;
4588 # -------------------------
4589 # Checks for other programs
4590 # -------------------------
4592 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4593 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4594 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
4595 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 cat >conftest.
make <<\_ACEOF
4600 @
echo 'ac_maketemp="$(MAKE)"'
4602 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4603 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4604 if test -n "$ac_maketemp"; then
4605 eval ac_cv_prog_make_
${ac_make}_set
=yes
4607 eval ac_cv_prog_make_
${ac_make}_set
=no
4611 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613 echo "${ECHO_T}yes" >&6
4616 echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4618 SET_MAKE
="MAKE=${MAKE-make}"
4622 # Find some useful tools
4623 for ac_prog
in gawk mawk nawk
awk
4625 # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy
$ac_prog; ac_word
=$2
4627 echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629 if test "${ac_cv_prog_AWK+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 if test -n "$AWK"; then
4633 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir
=.
4640 for ac_exec_ext
in '' $ac_executable_extensions; do
4641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_AWK
="$ac_prog"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 if test -n "$AWK"; then
4653 echo "$as_me:$LINENO: result: $AWK" >&5
4654 echo "${ECHO_T}$AWK" >&6
4656 echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6
4660 test -n "$AWK" && break
4663 # We need awk to run opts.sh (to create options.c and options.h).
4664 # Bail out if it's missing.
4666 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4667 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4668 { (exit 1); exit 1; }; } ;;
4671 echo "$as_me:$LINENO: checking whether ln works" >&5
4672 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4673 if test "${gcc_cv_prog_LN+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 rm -f conftestdata_t
4677 echo >conftestdata_f
4678 if ln conftestdata_f conftestdata_t
2>/dev
/null
4682 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4684 gcc_cv_prog_LN
="ln -s"
4689 rm -f conftestdata_f conftestdata_t
4692 LN
="$gcc_cv_prog_LN"
4693 if test "$gcc_cv_prog_LN" = "ln"; then
4694 echo "$as_me:$LINENO: result: yes" >&5
4695 echo "${ECHO_T}yes" >&6
4697 if test "$gcc_cv_prog_LN" = "ln -s"; then
4698 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4699 echo "${ECHO_T}no, using ln -s" >&6
4701 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4702 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4706 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4708 if test "${gcc_cv_prog_LN_S+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 rm -f conftestdata_t
4712 echo >conftestdata_f
4713 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4715 gcc_cv_prog_LN_S
="ln -s"
4717 if ln conftestdata_f conftestdata_t
2>/dev
/null
4724 rm -f conftestdata_f conftestdata_t
4727 LN_S
="$gcc_cv_prog_LN_S"
4728 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4729 echo "$as_me:$LINENO: result: yes" >&5
4730 echo "${ECHO_T}yes" >&6
4732 if test "$gcc_cv_prog_LN_S" = "ln"; then
4733 echo "$as_me:$LINENO: result: no, using ln" >&5
4734 echo "${ECHO_T}no, using ln" >&6
4736 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4737 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4741 if test -n "$ac_tool_prefix"; then
4742 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4743 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4744 echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746 if test "${ac_cv_prog_RANLIB+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 if test -n "$RANLIB"; then
4750 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir
=.
4757 for ac_exec_ext
in '' $ac_executable_extensions; do
4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 RANLIB
=$ac_cv_prog_RANLIB
4769 if test -n "$RANLIB"; then
4770 echo "$as_me:$LINENO: result: $RANLIB" >&5
4771 echo "${ECHO_T}$RANLIB" >&6
4773 echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4778 if test -z "$ac_cv_prog_RANLIB"; then
4779 ac_ct_RANLIB
=$RANLIB
4780 # Extract the first word of "ranlib", so it can be a program name with args.
4781 set dummy ranlib
; ac_word
=$2
4782 echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 if test -n "$ac_ct_RANLIB"; then
4788 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir
=.
4795 for ac_exec_ext
in '' $ac_executable_extensions; do
4796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4807 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4808 if test -n "$ac_ct_RANLIB"; then
4809 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4810 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4812 echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6
4816 RANLIB
=$ac_ct_RANLIB
4818 RANLIB
="$ac_cv_prog_RANLIB"
4821 # Find a good install program. We prefer a C program (faster),
4822 # so one script is as good as another. But avoid the broken or
4823 # incompatible versions:
4824 # SysV /etc/install, /usr/sbin/install
4825 # SunOS /usr/etc/install
4826 # IRIX /sbin/install
4828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4830 # ./install, which can be erroneously created by make from ./install.sh.
4831 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4832 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4833 if test -z "$INSTALL"; then
4834 if test "${ac_cv_path_install+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
4838 for ac_dir
in $PATH; do
4839 # Account for people who put trailing slashes in PATH elements.
4841 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4843 # OSF1 and SCO ODT 3.0 have their own names for install.
4844 for ac_prog
in ginstall scoinst
install; do
4845 if test -f $ac_dir/$ac_prog; then
4846 if test $ac_prog = install &&
4847 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4848 # AIX install. It has an incompatible calling convention.
4849 # OSF/1 installbsd also uses dspmsg, but is usable.
4852 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4863 if test "${ac_cv_path_install+set}" = set; then
4864 INSTALL
="$ac_cv_path_install"
4866 # As a last resort, use the slow shell script. We don't cache a
4867 # path for INSTALL within a source directory, because that will
4868 # break other packages using the cache if that directory is
4869 # removed, or if the path is relative.
4870 INSTALL
="$ac_install_sh"
4873 echo "$as_me:$LINENO: result: $INSTALL" >&5
4874 echo "${ECHO_T}$INSTALL" >&6
4876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4877 # It thinks the first close brace ends the variable substitution.
4878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4880 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4883 # See if cmp has --ignore-initial.
4884 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4885 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4886 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 gcc_cv_prog_cmp_skip
=slowcompare
4892 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
4893 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
4896 gcc_cv_prog_cmp_skip
=gnucompare
4899 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
4900 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
4901 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
4904 gcc_cv_prog_cmp_skip
=fastcompare
4911 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4912 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4913 make_compare_target
=$gcc_cv_prog_cmp_skip
4917 # See if we have the mktemp command.
4918 # Extract the first word of "mktemp", so it can be a program name with args.
4919 set dummy mktemp
; ac_word
=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 if test -n "$have_mktemp_command"; then
4926 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
4928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4932 test -z "$as_dir" && as_dir
=.
4933 for ac_exec_ext
in '' $ac_executable_extensions; do
4934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_have_mktemp_command
="yes"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
4945 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
4946 if test -n "$have_mktemp_command"; then
4947 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4948 echo "${ECHO_T}$have_mktemp_command" >&6
4950 echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4955 # Do we have a single-tree copy of texinfo?
4956 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
4957 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
4958 gcc_cv_prog_makeinfo_modern
=yes
4959 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4960 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4962 # See if makeinfo has been installed and is modern enough
4963 # that we can use it.
4964 # Extract the first word of "makeinfo", so it can be a program name with args.
4965 set dummy makeinfo
; ac_word
=$2
4966 echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4968 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 if test -n "$MAKEINFO"; then
4972 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir
=.
4979 for ac_exec_ext
in '' $ac_executable_extensions; do
4980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_MAKEINFO
="makeinfo"
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 MAKEINFO
=$ac_cv_prog_MAKEINFO
4991 if test -n "$MAKEINFO"; then
4992 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4993 echo "${ECHO_T}$MAKEINFO" >&6
4995 echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6
4999 if test -n "$MAKEINFO"; then
5000 # Found it, now check the version.
5001 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5002 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5003 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 ac_prog_version
=`$MAKEINFO --version 2>&1 |
5007 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5008 echo "configure:5008: version of makeinfo is $ac_prog_version" >&5
5009 case $ac_prog_version in
5010 '') gcc_cv_prog_makeinfo_modern
=no
;;
5012 gcc_cv_prog_makeinfo_modern
=yes;;
5013 *) gcc_cv_prog_makeinfo_modern
=no
;;
5017 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5018 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5020 gcc_cv_prog_makeinfo_modern
=no
5025 if test $gcc_cv_prog_makeinfo_modern = no
; then
5026 { echo "$as_me:$LINENO: WARNING:
5027 *** Makeinfo is missing or too old.
5028 *** Info documentation will not be built." >&5
5029 echo "$as_me: WARNING:
5030 *** Makeinfo is missing or too old.
5031 *** Info documentation will not be built." >&2;}
5037 # Is pod2man recent enough to regenerate manpages?
5038 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5039 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5040 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5041 echo "$as_me:$LINENO: result: yes" >&5
5042 echo "${ECHO_T}yes" >&6
5043 GENERATED_MANPAGES
=generated-manpages
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5051 if test -f $srcdir/..
/flex
/skel.c
; then
5052 FLEX
='$(objdir)/../flex/flex'
5054 # Extract the first word of "flex", so it can be a program name with args.
5055 set dummy flex
; ac_word
=$2
5056 echo "$as_me:$LINENO: checking for $ac_word" >&5
5057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058 if test "${ac_cv_prog_FLEX+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 if test -n "$FLEX"; then
5062 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir
=.
5069 for ac_exec_ext
in '' $ac_executable_extensions; do
5070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_FLEX
="flex"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5081 FLEX
=$ac_cv_prog_FLEX
5082 if test -n "$FLEX"; then
5083 echo "$as_me:$LINENO: result: $FLEX" >&5
5084 echo "${ECHO_T}$FLEX" >&6
5086 echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5093 # The -L switch is so bison can find its skeleton file.
5094 if test -f $srcdir/..
/bison
/bison.simple
; then
5095 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5097 # Extract the first word of "bison", so it can be a program name with args.
5098 set dummy bison
; ac_word
=$2
5099 echo "$as_me:$LINENO: checking for $ac_word" >&5
5100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5101 if test "${ac_cv_prog_BISON+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 if test -n "$BISON"; then
5105 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5111 test -z "$as_dir" && as_dir
=.
5112 for ac_exec_ext
in '' $ac_executable_extensions; do
5113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_BISON
="bison"
5115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5124 BISON
=$ac_cv_prog_BISON
5125 if test -n "$BISON"; then
5126 echo "$as_me:$LINENO: result: $BISON" >&5
5127 echo "${ECHO_T}$BISON" >&6
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5135 # --------------------
5136 # Checks for C headers
5137 # --------------------
5139 echo "$as_me:$LINENO: checking for GNU C library" >&5
5140 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5141 if test "${gcc_cv_glibc+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 cat >conftest.
$ac_ext <<_ACEOF
5145 #line $LINENO "configure"
5148 cat confdefs.h
>>conftest.
$ac_ext
5149 cat >>conftest.
$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 #include <features.h>
5156 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5157 #error Not a GNU C library system
5163 rm -f conftest.
$ac_objext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5165 (eval $ac_compile) 2>&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try
='test -s conftest.$ac_objext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.
$ac_ext >&5
5182 rm -f conftest.
$ac_objext conftest.
$ac_ext
5185 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5186 echo "${ECHO_T}$gcc_cv_glibc" >&6
5187 if test $gcc_cv_glibc = yes; then
5189 cat >>confdefs.h
<<\_ACEOF
5190 #define _GNU_SOURCE 1
5195 # Need to reject headers which give warnings, so that the -Werror bootstrap
5196 # works later. *sigh* This needs to come before all header checks.
5198 ac_c_preproc_warn_flag
=yes
5200 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5202 if test "${ac_cv_header_stdc+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 cat >conftest.
$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5209 cat confdefs.h
>>conftest.
$ac_ext
5210 cat >>conftest.
$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5225 rm -f conftest.
$ac_objext
5226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5227 (eval $ac_compile) 2>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try
='test -s conftest.$ac_objext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_header_stdc
=yes
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.
$ac_ext >&5
5242 ac_cv_header_stdc
=no
5244 rm -f conftest.
$ac_objext conftest.
$ac_ext
5246 if test $ac_cv_header_stdc = yes; then
5247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5248 cat >conftest.
$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5252 cat confdefs.h
>>conftest.
$ac_ext
5253 cat >>conftest.
$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev
/null
2>&1; then
5262 ac_cv_header_stdc
=no
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat >conftest.
$ac_ext <<_ACEOF
5271 #line $LINENO "configure"
5274 cat confdefs.h
>>conftest.
$ac_ext
5275 cat >>conftest.
$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 $EGREP "free" >/dev
/null
2>&1; then
5284 ac_cv_header_stdc
=no
5290 if test $ac_cv_header_stdc = yes; then
5291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5292 if test "$cross_compiling" = yes; then
5295 cat >conftest.
$ac_ext <<_ACEOF
5296 #line $LINENO "configure"
5299 cat confdefs.h
>>conftest.
$ac_ext
5300 cat >>conftest.
$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5303 #if ((' ' & 0x0FF) == 0x020)
5304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5307 # define ISLOWER(c) \
5308 (('a' <= (c) && (c) <= 'i') \
5309 || ('j' <= (c) && (c) <= 'r') \
5310 || ('s' <= (c) && (c) <= 'z'))
5311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5319 for (i = 0; i < 256; i++)
5320 if (XOR (islower (i), ISLOWER (i))
5321 || toupper (i) != TOUPPER (i))
5326 rm -f conftest
$ac_exeext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328 (eval $ac_link) 2>&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5339 echo "$as_me: program exited with status $ac_status" >&5
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.
$ac_ext >&5
5344 ac_cv_header_stdc
=no
5346 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5352 if test $ac_cv_header_stdc = yes; then
5354 cat >>confdefs.h
<<\_ACEOF
5355 #define STDC_HEADERS 1
5360 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5361 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5362 if test "${ac_cv_header_time+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 cat >conftest.
$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5369 cat confdefs.h
>>conftest.
$ac_ext
5370 cat >>conftest.
$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 #include <sys/types.h>
5373 #include <sys/time.h>
5379 if ((struct tm *) 0)
5385 rm -f conftest.
$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try
='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_cv_header_time
=yes
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.
$ac_ext >&5
5402 ac_cv_header_time
=no
5404 rm -f conftest.
$ac_objext conftest.
$ac_ext
5406 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5407 echo "${ECHO_T}$ac_cv_header_time" >&6
5408 if test $ac_cv_header_time = yes; then
5410 cat >>confdefs.h
<<\_ACEOF
5411 #define TIME_WITH_SYS_TIME 1
5416 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5417 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5418 if test "${ac_cv_header_stdbool_h+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 cat >conftest.
$ac_ext <<_ACEOF
5422 #line $LINENO "configure"
5425 cat confdefs.h
>>conftest.
$ac_ext
5426 cat >>conftest.
$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #include <stdbool.h>
5437 rm -f conftest.
$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try
='test -s conftest.$ac_objext'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5449 ac_cv_header_stdbool_h
=yes
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.
$ac_ext >&5
5454 ac_cv_header_stdbool_h
=no
5456 rm -f conftest.
$ac_objext conftest.
$ac_ext
5458 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5459 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5460 if test $ac_cv_header_stdbool_h = yes; then
5462 cat >>confdefs.h
<<\_ACEOF
5463 #define HAVE_STDBOOL_H 1
5468 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5469 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5470 if test "${gcc_cv_header_string+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 cat >conftest.
$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5477 cat confdefs.h
>>conftest.
$ac_ext
5478 cat >>conftest.
$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5481 #include <strings.h>
5490 rm -f conftest.
$ac_objext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492 (eval $ac_compile) 2>&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
5496 { ac_try
='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 gcc_cv_header_string
=yes
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.
$ac_ext >&5
5507 gcc_cv_header_string
=no
5509 rm -f conftest.
$ac_objext conftest.
$ac_ext
5511 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5512 echo "${ECHO_T}$gcc_cv_header_string" >&6
5513 if test $gcc_cv_header_string = yes; then
5515 cat >>confdefs.h
<<\_ACEOF
5516 #define STRING_WITH_STRINGS 1
5521 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5522 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5523 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 cat >conftest.
$ac_ext <<_ACEOF
5527 #line $LINENO "configure"
5530 cat confdefs.h
>>conftest.
$ac_ext
5531 cat >>conftest.
$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <sys/types.h>
5534 #include <sys/wait.h>
5536 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5539 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5547 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5552 rm -f conftest.
$ac_objext
5553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554 (eval $ac_compile) 2>&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } &&
5558 { ac_try
='test -s conftest.$ac_objext'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5564 ac_cv_header_sys_wait_h
=yes
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.
$ac_ext >&5
5569 ac_cv_header_sys_wait_h
=no
5571 rm -f conftest.
$ac_objext conftest.
$ac_ext
5573 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5574 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5575 if test $ac_cv_header_sys_wait_h = yes; then
5577 cat >>confdefs.h
<<\_ACEOF
5578 #define HAVE_SYS_WAIT_H 1
5604 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5605 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
5606 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5607 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5609 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5610 echo "$as_me:$LINENO: checking for $ac_header" >&5
5611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 cat >conftest.
$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5619 cat confdefs.h
>>conftest.
$ac_ext
5620 cat >>conftest.
$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <$ac_header>
5624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5625 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5627 grep -v '^ *+' conftest.er1
>conftest.err
5629 cat conftest.err
>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } >/dev
/null
; then
5632 if test -s conftest.err
; then
5633 ac_cpp_err
=$ac_c_preproc_warn_flag
5640 if test -z "$ac_cpp_err"; then
5641 eval "$as_ac_Header=yes"
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.
$ac_ext >&5
5646 eval "$as_ac_Header=no"
5648 rm -f conftest.err conftest.
$ac_ext
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5653 cat >>confdefs.h
<<_ACEOF
5654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5661 # Check for thread headers.
5662 echo "$as_me:$LINENO: checking for thread.h" >&5
5663 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5664 if test "${ac_cv_header_thread_h+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 cat >conftest.
$ac_ext <<_ACEOF
5668 #line $LINENO "configure"
5671 cat confdefs.h
>>conftest.
$ac_ext
5672 cat >>conftest.
$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5677 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5679 grep -v '^ *+' conftest.er1
>conftest.err
5681 cat conftest.err
>&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } >/dev
/null
; then
5684 if test -s conftest.err
; then
5685 ac_cpp_err
=$ac_c_preproc_warn_flag
5692 if test -z "$ac_cpp_err"; then
5693 ac_cv_header_thread_h
=yes
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.
$ac_ext >&5
5698 ac_cv_header_thread_h
=no
5700 rm -f conftest.err conftest.
$ac_ext
5702 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5703 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5704 if test $ac_cv_header_thread_h = yes; then
5710 echo "$as_me:$LINENO: checking for pthread.h" >&5
5711 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5712 if test "${ac_cv_header_pthread_h+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 cat >conftest.
$ac_ext <<_ACEOF
5716 #line $LINENO "configure"
5719 cat confdefs.h
>>conftest.
$ac_ext
5720 cat >>conftest.
$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 #include <pthread.h>
5724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5725 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5727 grep -v '^ *+' conftest.er1
>conftest.err
5729 cat conftest.err
>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev
/null
; then
5732 if test -s conftest.err
; then
5733 ac_cpp_err
=$ac_c_preproc_warn_flag
5740 if test -z "$ac_cpp_err"; then
5741 ac_cv_header_pthread_h
=yes
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.
$ac_ext >&5
5746 ac_cv_header_pthread_h
=no
5748 rm -f conftest.err conftest.
$ac_ext
5750 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5751 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5752 if test $ac_cv_header_pthread_h = yes; then
5759 # These tests can't be done till we know if we have limits.h.
5760 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5761 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5762 if test "${gcc_cv_decl_char_bit+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 cat >conftest.
$ac_ext <<_ACEOF
5766 #line $LINENO "configure"
5769 cat confdefs.h
>>conftest.
$ac_ext
5770 cat >>conftest.
$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 #ifdef HAVE_LIMITS_H
5779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5780 $EGREP "found" >/dev
/null
2>&1; then
5781 gcc_cv_decl_char_bit
=yes
5783 gcc_cv_decl_char_bit
=no
5789 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5790 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5791 if test $gcc_cv_decl_char_bit = no
; then
5792 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5793 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5794 if test "${gcc_cv_c_nbby+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 while test $i -lt 65; do
5800 cat >conftest.
$ac_ext <<_ACEOF
5801 #line $LINENO "configure"
5804 cat confdefs.h
>>conftest.
$ac_ext
5805 cat >>conftest.
$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5812 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5813 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5819 rm -f conftest.
$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try
='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 gcc_cv_c_nbby
=$i; break
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.
$ac_ext >&5
5837 rm -f conftest.
$ac_objext conftest.
$ac_ext
5840 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
5843 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5844 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
5845 if test $gcc_cv_c_nbby = failed
; then
5846 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5847 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5848 { (exit 1); exit 1; }; }
5851 cat >>confdefs.h
<<_ACEOF
5852 #define CHAR_BIT $gcc_cv_c_nbby
5857 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5858 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5859 if test "${ac_cv_c_bigendian+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 ac_cv_c_bigendian
=unknown
5863 # See if sys/param.h defines the BYTE_ORDER macro.
5864 cat >conftest.
$ac_ext <<_ACEOF
5865 #line $LINENO "configure"
5868 cat confdefs.h
>>conftest.
$ac_ext
5869 cat >>conftest.
$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 #include <sys/types.h>
5872 #include <sys/param.h>
5877 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5884 rm -f conftest.
$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886 (eval $ac_compile) 2>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try
='test -s conftest.$ac_objext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5896 # It does; now see whether it defined to BIG_ENDIAN or not.
5897 cat >conftest.
$ac_ext <<_ACEOF
5898 #line $LINENO "configure"
5901 cat confdefs.h
>>conftest.
$ac_ext
5902 cat >>conftest.
$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 #include <sys/types.h>
5905 #include <sys/param.h>
5910 #if BYTE_ORDER != BIG_ENDIAN
5917 rm -f conftest.
$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919 (eval $ac_compile) 2>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try
='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_c_bigendian
=yes
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.
$ac_ext >&5
5934 ac_cv_c_bigendian
=no
5936 rm -f conftest.
$ac_objext conftest.
$ac_ext
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.
$ac_ext >&5
5942 rm -f conftest.
$ac_objext conftest.
$ac_ext
5943 if test $ac_cv_c_bigendian = unknown
; then
5944 if test "$cross_compiling" = yes; then
5945 echo $ac_n "cross-compiling... " 2>&6
5947 cat >conftest.
$ac_ext <<_ACEOF
5948 #line $LINENO "configure"
5951 cat confdefs.h
>>conftest.
$ac_ext
5952 cat >>conftest.
$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5955 /* Are we little or big endian? From Harbison&Steele. */
5959 char c[sizeof (long)];
5962 exit (u.c[sizeof (long) - 1] == 1);
5965 rm -f conftest
$ac_exeext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5967 (eval $ac_link) 2>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_c_bigendian
=no
5978 echo "$as_me: program exited with status $ac_status" >&5
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.
$ac_ext >&5
5983 ac_cv_c_bigendian
=yes
5985 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5989 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5990 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5991 if test $ac_cv_c_bigendian = unknown
; then
5992 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5993 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5995 cat >conftest.c
<<EOF
5996 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5997 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5998 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
5999 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6000 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6001 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6002 int main() { _ascii (); _ebcdic (); return 0; }
6004 if test -f conftest.c
; then
6005 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
6006 if test `grep -l BIGenDianSyS conftest.o` ; then
6007 echo $ac_n ' big endian probe OK, ' 1>&6
6008 ac_cv_c_bigendian
=yes
6010 if test `grep -l LiTTleEnDian conftest.o` ; then
6011 echo $ac_n ' little endian probe OK, ' 1>&6
6012 if test $ac_cv_c_bigendian = yes ; then
6013 ac_cv_c_bigendian
=unknown
;
6015 ac_cv_c_bigendian
=no
6018 echo $ac_n 'guessing bigendian ... ' >&6
6021 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6022 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6024 if test $ac_cv_c_bigendian = yes; then
6026 cat >>confdefs.h
<<\_ACEOF
6027 #define WORDS_BIGENDIAN 1
6031 cat >>confdefs.h
<<\_ACEOF
6032 #define HOST_WORDS_BIG_ENDIAN 1
6040 cat >>confdefs.h
<<_ACEOF
6041 #define BYTEORDER $BYTEORDER
6044 if test $ac_cv_c_bigendian = unknown
; then
6045 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6046 echo "$as_me: error: unknown endianess - sorry" >&2;}
6047 { (exit please pre-set ac_cv_c_bigendian
); exit please pre-set ac_cv_c_bigendian
; }; }
6055 # Stage specific cflags for build.
6059 if test x
$GCC = xyes
6061 stage1_cflags
="-Wa,-J"
6067 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6068 # sources; use -no-cpp-precomp to get to GNU cpp.
6069 # Apple's GCC has bugs in designated initializer handling, so disable
6071 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6076 # These libraries may be used by collect2.
6077 # We may need a special search path to get them linked.
6078 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6079 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6080 if test "${gcc_cv_collect2_libs+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 for libs
in '' -lld -lmld \
6085 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6086 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6089 cat >conftest.
$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6093 cat confdefs.h
>>conftest.
$ac_ext
6094 cat >>conftest.
$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6097 /* Override any gcc2 internal prototype to avoid an error. */
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6112 rm -f conftest.
$ac_objext conftest
$ac_exeext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114 (eval $ac_link) 2>&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try
='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 gcc_cv_collect2_libs
="$libs"; break
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.
$ac_ext >&5
6130 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6133 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6135 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6136 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6137 case $gcc_cv_collect2_libs in
6139 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6143 # When building Ada code on Alpha, we need exc_resume which is usually in
6144 # -lexc. So test for it.
6147 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6148 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6149 if test "${ac_cv_search_exc_resume+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 ac_func_search_save_LIBS
=$LIBS
6153 ac_cv_search_exc_resume
=no
6154 cat >conftest.
$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6158 cat confdefs.h
>>conftest.
$ac_ext
6159 cat >>conftest.
$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6162 /* Override any gcc2 internal prototype to avoid an error. */
6166 /* We use char because int might match the return type of a gcc2
6167 builtin and then its argument prototype would still apply. */
6177 rm -f conftest.
$ac_objext conftest
$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try
='test -s conftest$ac_exeext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_cv_search_exc_resume
="none required"
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.
$ac_ext >&5
6195 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6196 if test "$ac_cv_search_exc_resume" = no
; then
6197 for ac_lib
in exc
; do
6198 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6199 cat >conftest.
$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6203 cat confdefs.h
>>conftest.
$ac_ext
6204 cat >>conftest.
$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6207 /* Override any gcc2 internal prototype to avoid an error. */
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6222 rm -f conftest.
$ac_objext conftest
$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try
='test -s conftest$ac_exeext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_search_exc_resume
="-l$ac_lib"
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.
$ac_ext >&5
6241 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6244 LIBS
=$ac_func_search_save_LIBS
6246 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6247 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6248 if test "$ac_cv_search_exc_resume" != no
; then
6249 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6257 # Some systems put ldexp and frexp in libm instead of libc; assume
6258 # they're both in the same place. jcf-dump needs them.
6261 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6262 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6263 if test "${ac_cv_search_ldexp+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_func_search_save_LIBS
=$LIBS
6267 ac_cv_search_ldexp
=no
6268 cat >conftest.
$ac_ext <<_ACEOF
6269 #line $LINENO "configure"
6272 cat confdefs.h
>>conftest.
$ac_ext
6273 cat >>conftest.
$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6276 /* Override any gcc2 internal prototype to avoid an error. */
6280 /* We use char because int might match the return type of a gcc2
6281 builtin and then its argument prototype would still apply. */
6291 rm -f conftest.
$ac_objext conftest
$ac_exeext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6293 (eval $ac_link) 2>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try
='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_search_ldexp
="none required"
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.
$ac_ext >&5
6309 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6310 if test "$ac_cv_search_ldexp" = no
; then
6312 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6313 cat >conftest.
$ac_ext <<_ACEOF
6314 #line $LINENO "configure"
6317 cat confdefs.h
>>conftest.
$ac_ext
6318 cat >>conftest.
$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6321 /* Override any gcc2 internal prototype to avoid an error. */
6325 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6336 rm -f conftest.
$ac_objext conftest
$ac_exeext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338 (eval $ac_link) 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try
='test -s conftest$ac_exeext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 ac_cv_search_ldexp
="-l$ac_lib"
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.
$ac_ext >&5
6355 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6358 LIBS
=$ac_func_search_save_LIBS
6360 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6361 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6362 if test "$ac_cv_search_ldexp" != no
; then
6363 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6371 # Use <inttypes.h> only if it exists,
6372 # doesn't clash with <sys/types.h>, and declares intmax_t.
6373 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6374 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6375 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 cat >conftest.
$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6382 cat confdefs.h
>>conftest.
$ac_ext
6383 cat >>conftest.
$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 #include <sys/types.h>
6386 #include <inttypes.h>
6395 rm -f conftest.
$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try
='test -s conftest.$ac_objext'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 gcc_cv_header_inttypes_h
=yes
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.
$ac_ext >&5
6412 gcc_cv_header_inttypes_h
=no
6414 rm -f conftest.
$ac_objext conftest.
$ac_ext
6417 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6418 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6419 if test $gcc_cv_header_inttypes_h = yes; then
6421 cat >>confdefs.h
<<\_ACEOF
6422 #define HAVE_INTTYPES_H 1
6453 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6454 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6455 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6456 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6459 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6460 echo "$as_me:$LINENO: checking for $ac_func" >&5
6461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6462 if eval "test \"\${$as_ac_var+set}\" = set"; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 cat >conftest.
$ac_ext <<_ACEOF
6466 #line $LINENO "configure"
6469 cat confdefs.h
>>conftest.
$ac_ext
6470 cat >>conftest.
$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 /* System header to define __stub macros and hopefully few prototypes,
6473 which can conflict with char $ac_func (); below.
6474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6475 <limits.h> exists even on freestanding compilers. */
6477 # include <limits.h>
6479 # include <assert.h>
6481 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6489 /* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
6492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6495 char (*f) () = $ac_func;
6504 return f != $ac_func;
6509 rm -f conftest.
$ac_objext conftest
$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try
='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 eval "$as_ac_var=yes"
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.
$ac_ext >&5
6526 eval "$as_ac_var=no"
6528 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6532 if test `eval echo '${'$as_ac_var'}'` = yes; then
6533 cat >>confdefs.h
<<_ACEOF
6534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6541 if test x
$ac_cv_func_mbstowcs = xyes
; then
6542 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6543 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6544 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 if test "$cross_compiling" = yes; then
6548 gcc_cv_func_mbstowcs_works
=yes
6550 cat >conftest.
$ac_ext <<_ACEOF
6551 #line $LINENO "configure"
6554 cat confdefs.h
>>conftest.
$ac_ext
6555 cat >>conftest.
$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6564 rm -f conftest
$ac_exeext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566 (eval $ac_link) 2>&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 gcc_cv_func_mbstowcs_works
=yes
6577 echo "$as_me: program exited with status $ac_status" >&5
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.
$ac_ext >&5
6582 gcc_cv_func_mbstowcs_works
=no
6584 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6587 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6588 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6589 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
6591 cat >>confdefs.h
<<\_ACEOF
6592 #define HAVE_WORKING_MBSTOWCS 1
6598 echo "$as_me:$LINENO: checking for ssize_t" >&5
6599 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6600 if test "${ac_cv_type_ssize_t+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 cat >conftest.
$ac_ext <<_ACEOF
6604 #line $LINENO "configure"
6607 cat confdefs.h
>>conftest.
$ac_ext
6608 cat >>conftest.
$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 $ac_includes_default
6616 if (sizeof (ssize_t))
6622 rm -f conftest.
$ac_objext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6624 (eval $ac_compile) 2>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try
='test -s conftest.$ac_objext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_type_ssize_t
=yes
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.
$ac_ext >&5
6639 ac_cv_type_ssize_t
=no
6641 rm -f conftest.
$ac_objext conftest.
$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6644 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6645 if test $ac_cv_type_ssize_t = yes; then
6649 cat >>confdefs.h
<<_ACEOF
6656 # Try to determine the array type of the second argument of getgroups
6657 # for the target system (int or gid_t).
6658 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6659 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6660 if test "${ac_cv_type_uid_t+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 cat >conftest.
$ac_ext <<_ACEOF
6664 #line $LINENO "configure"
6667 cat confdefs.h
>>conftest.
$ac_ext
6668 cat >>conftest.
$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <sys/types.h>
6673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6674 $EGREP "uid_t" >/dev
/null
2>&1; then
6675 ac_cv_type_uid_t
=yes
6682 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6683 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6684 if test $ac_cv_type_uid_t = no
; then
6686 cat >>confdefs.h
<<\_ACEOF
6691 cat >>confdefs.h
<<\_ACEOF
6697 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6698 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6699 if test "${ac_cv_type_getgroups+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 if test "$cross_compiling" = yes; then
6703 ac_cv_type_getgroups
=cross
6705 cat >conftest.
$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6709 cat confdefs.h
>>conftest.
$ac_ext
6710 cat >>conftest.
$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 /* Thanks to Mike Rendell for this test. */
6713 #include <sys/types.h>
6716 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6723 union { gid_t gval; long lval; } val;
6726 for (i = 0; i < NGID; i++)
6727 gidset[i] = val.gval;
6728 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6730 /* Exit non-zero if getgroups seems to require an array of ints. This
6731 happens when gid_t is short but getgroups modifies an array of ints. */
6732 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6735 rm -f conftest
$ac_exeext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6737 (eval $ac_link) 2>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6746 ac_cv_type_getgroups
=gid_t
6748 echo "$as_me: program exited with status $ac_status" >&5
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.
$ac_ext >&5
6753 ac_cv_type_getgroups
=int
6755 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6757 if test $ac_cv_type_getgroups = cross
; then
6758 cat >conftest.
$ac_ext <<_ACEOF
6759 #line $LINENO "configure"
6762 cat confdefs.h
>>conftest.
$ac_ext
6763 cat >>conftest.
$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6769 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
6770 ac_cv_type_getgroups
=gid_t
6772 ac_cv_type_getgroups
=int
6778 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6779 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6781 cat >>confdefs.h
<<_ACEOF
6782 #define GETGROUPS_T $ac_cv_type_getgroups
6786 if test "${target}" = "${build}"; then
6787 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
6790 # This condition may need some tweaking. It should include all
6791 # targets where the array type of the second argument of getgroups
6792 # is int and the type of gid_t is not equivalent to int.
6793 *-*-sunos* |
*-*-ultrix*)
6794 TARGET_GETGROUPS_T
=int
6797 TARGET_GETGROUPS_T
=gid_t
6803 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
6804 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
6805 if test "${gcc_cv_func_printf_ptr+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 if test "$cross_compiling" = yes; then
6809 gcc_cv_func_printf_ptr
=no
6811 cat >conftest.
$ac_ext <<_ACEOF
6812 #line $LINENO "configure"
6815 cat confdefs.h
>>conftest.
$ac_ext
6816 cat >>conftest.
$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6823 char *p = buf, *q = NULL;
6824 sprintf(buf, "%p", p);
6825 sscanf(buf, "%p", &q);
6829 rm -f conftest
$ac_exeext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6831 (eval $ac_link) 2>&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 gcc_cv_func_printf_ptr
=yes
6842 echo "$as_me: program exited with status $ac_status" >&5
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.
$ac_ext >&5
6847 gcc_cv_func_printf_ptr
=no
6849 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6851 rm -f core core.
* *.core
6853 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
6854 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
6855 if test $gcc_cv_func_printf_ptr = yes ; then
6857 cat >>confdefs.h
<<\_ACEOF
6858 #define HAVE_PRINTF_PTR 1
6863 if test $ac_cv_header_sys_mman_h != yes \
6864 ||
test $ac_cv_func_mmap != yes; then
6865 gcc_cv_func_mmap_file
=no
6866 gcc_cv_func_mmap_dev_zero
=no
6867 gcc_cv_func_mmap_anon
=no
6869 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
6870 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
6871 if test "${gcc_cv_func_mmap_file+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 # Add a system to this blacklist if
6875 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
6876 # memory area containing the same data that you'd get if you applied
6877 # read() to the same fd. The only system known to have a problem here
6878 # is VMS, where text files have record structure.
6881 gcc_cv_func_mmap_file
=no
;;
6883 gcc_cv_func_mmap_file
=yes;;
6886 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
6887 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
6888 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
6889 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
6890 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 # Add a system to this blacklist if it has mmap() but /dev/zero
6894 # does not exist, or if mmapping /dev/zero does not give anonymous
6895 # zeroed pages with both the following properties:
6896 # 1. If you map N consecutive pages in with one call, and then
6897 # unmap any subset of those pages, the pages that were not
6898 # explicitly unmapped remain accessible.
6899 # 2. If you map two adjacent blocks of memory and then unmap them
6900 # both at once, they must both go away.
6901 # Systems known to be in this category are Windows (all variants),
6904 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
6905 gcc_cv_func_mmap_dev_zero
=no
;;
6907 gcc_cv_func_mmap_dev_zero
=yes;;
6910 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
6911 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
6913 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
6914 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
6915 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
6916 if test "${gcc_cv_decl_map_anon+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 cat >conftest.
$ac_ext <<_ACEOF
6920 #line $LINENO "configure"
6923 cat confdefs.h
>>conftest.
$ac_ext
6924 cat >>conftest.
$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 #include <sys/types.h>
6927 #include <sys/mman.h>
6930 #ifndef MAP_ANONYMOUS
6931 #define MAP_ANONYMOUS MAP_ANON
6937 int n = MAP_ANONYMOUS;
6942 rm -f conftest.
$ac_objext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6944 (eval $ac_compile) 2>&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try
='test -s conftest.$ac_objext'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 gcc_cv_decl_map_anon
=yes
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.
$ac_ext >&5
6959 gcc_cv_decl_map_anon
=no
6961 rm -f conftest.
$ac_objext conftest.
$ac_ext
6963 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6964 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6966 if test $gcc_cv_decl_map_anon = no
; then
6967 gcc_cv_func_mmap_anon
=no
6969 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6970 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6971 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 # Add a system to this blacklist if it has mmap() and MAP_ANON or
6975 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6976 # doesn't give anonymous zeroed pages with the same properties listed
6977 # above for use of /dev/zero.
6978 # Systems known to be in this category are Windows, VMS, and SCO Unix.
6980 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
6981 gcc_cv_func_mmap_anon
=no
;;
6983 gcc_cv_func_mmap_anon
=yes;;
6986 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6987 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6991 if test $gcc_cv_func_mmap_file = yes; then
6993 cat >>confdefs.h
<<\_ACEOF
6994 #define HAVE_MMAP_FILE 1
6998 if test $gcc_cv_func_mmap_dev_zero = yes; then
7000 cat >>confdefs.h
<<\_ACEOF
7001 #define HAVE_MMAP_DEV_ZERO 1
7005 if test $gcc_cv_func_mmap_anon = yes; then
7007 cat >>confdefs.h
<<\_ACEOF
7008 #define HAVE_MMAP_ANON 1
7016 # Under VMS, vfork works very differently than on Unix. The standard test
7017 # won't work, and it isn't easily adaptable. It makes more sense to
7019 ac_cv_func_vfork_works
=yes
7022 echo "$as_me:$LINENO: checking for pid_t" >&5
7023 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7024 if test "${ac_cv_type_pid_t+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 cat >conftest.
$ac_ext <<_ACEOF
7028 #line $LINENO "configure"
7031 cat confdefs.h
>>conftest.
$ac_ext
7032 cat >>conftest.
$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 $ac_includes_default
7046 rm -f conftest.
$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048 (eval $ac_compile) 2>&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try
='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_cv_type_pid_t
=yes
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.
$ac_ext >&5
7065 rm -f conftest.
$ac_objext conftest.
$ac_ext
7067 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7068 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7069 if test $ac_cv_type_pid_t = yes; then
7073 cat >>confdefs.h
<<_ACEOF
7081 for ac_header
in unistd.h vfork.h
7083 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 echo "$as_me:$LINENO: checking for $ac_header" >&5
7085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 cat >conftest.
$ac_ext <<_ACEOF
7090 #line $LINENO "configure"
7093 cat confdefs.h
>>conftest.
$ac_ext
7094 cat >>conftest.
$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 #include <$ac_header>
7098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7099 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7101 grep -v '^ *+' conftest.er1
>conftest.err
7103 cat conftest.err
>&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } >/dev
/null
; then
7106 if test -s conftest.err
; then
7107 ac_cpp_err
=$ac_c_preproc_warn_flag
7114 if test -z "$ac_cpp_err"; then
7115 eval "$as_ac_Header=yes"
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.
$ac_ext >&5
7120 eval "$as_ac_Header=no"
7122 rm -f conftest.err conftest.
$ac_ext
7124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7127 cat >>confdefs.h
<<_ACEOF
7128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7136 for ac_func
in fork vfork
7138 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7139 echo "$as_me:$LINENO: checking for $ac_func" >&5
7140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7141 if eval "test \"\${$as_ac_var+set}\" = set"; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 cat >conftest.
$ac_ext <<_ACEOF
7145 #line $LINENO "configure"
7148 cat confdefs.h
>>conftest.
$ac_ext
7149 cat >>conftest.
$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 /* System header to define __stub macros and hopefully few prototypes,
7152 which can conflict with char $ac_func (); below.
7153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7154 <limits.h> exists even on freestanding compilers. */
7156 # include <limits.h>
7158 # include <assert.h>
7160 /* Override any gcc2 internal prototype to avoid an error. */
7165 /* We use char because int might match the return type of a gcc2
7166 builtin and then its argument prototype would still apply. */
7168 /* The GNU C library defines this for functions which it implements
7169 to always fail with ENOSYS. Some functions are actually named
7170 something starting with __ and the normal name is an alias. */
7171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7174 char (*f) () = $ac_func;
7183 return f != $ac_func;
7188 rm -f conftest.
$ac_objext conftest
$ac_exeext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7190 (eval $ac_link) 2>&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try
='test -s conftest$ac_exeext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 eval "$as_ac_var=yes"
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.
$ac_ext >&5
7205 eval "$as_ac_var=no"
7207 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7211 if test `eval echo '${'$as_ac_var'}'` = yes; then
7212 cat >>confdefs.h
<<_ACEOF
7213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7219 if test "x$ac_cv_func_fork" = xyes
; then
7220 echo "$as_me:$LINENO: checking for working fork" >&5
7221 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7222 if test "${ac_cv_func_fork_works+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 if test "$cross_compiling" = yes; then
7226 ac_cv_func_fork_works
=cross
7228 cat >conftest.
$ac_ext <<_ACEOF
7229 /* By Ruediger Kuhlmann. */
7230 #include <sys/types.h>
7232 # include <unistd.h>
7234 /* Some systems only have a dummy stub for fork() */
7242 rm -f conftest
$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7253 ac_cv_func_fork_works
=yes
7255 echo "$as_me: program exited with status $ac_status" >&5
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.
$ac_ext >&5
7260 ac_cv_func_fork_works
=no
7262 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7265 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7266 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7269 ac_cv_func_fork_works
=$ac_cv_func_fork
7271 if test "x$ac_cv_func_fork_works" = xcross
; then
7273 *-*-amigaos* |
*-*-msdosdjgpp*)
7274 # Override, as these systems have only a dummy fork() stub
7275 ac_cv_func_fork_works
=no
7278 ac_cv_func_fork_works
=yes
7281 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7282 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7284 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7285 if test "x$ac_cv_func_vfork" = xyes
; then
7286 echo "$as_me:$LINENO: checking for working vfork" >&5
7287 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7288 if test "${ac_cv_func_vfork_works+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 if test "$cross_compiling" = yes; then
7292 ac_cv_func_vfork_works
=cross
7294 cat >conftest.
$ac_ext <<_ACEOF
7295 #line $LINENO "configure"
7298 cat confdefs.h
>>conftest.
$ac_ext
7299 cat >>conftest.
$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 /* Thanks to Paul Eggert for this test. */
7304 #include <sys/types.h>
7305 #include <sys/stat.h>
7306 #include <sys/wait.h>
7308 # include <unistd.h>
7313 /* On some sparc systems, changes by the child to local and incoming
7314 argument registers are propagated back to the parent. The compiler
7315 is told about this with #include <vfork.h>, but some compilers
7316 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7317 static variable whose address is put into a register that is
7318 clobbered by the vfork. */
7321 sparc_address_test (int arg)
7323 sparc_address_test (arg) int arg;
7344 pid_t parent = getpid ();
7347 sparc_address_test (0);
7352 /* Here is another test for sparc vfork register problems. This
7353 test uses lots of local variables, at least as many local
7354 variables as main has allocated so far including compiler
7355 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7356 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7357 reuse the register of parent for one of the local variables,
7358 since it will think that parent can't possibly be used any more
7359 in this routine. Assigning to the local variable will thus
7360 munge parent in the parent process. */
7362 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7363 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7364 /* Convince the compiler that p..p7 are live; otherwise, it might
7365 use the same hardware register for all 8 local variables. */
7366 if (p != p1 || p != p2 || p != p3 || p != p4
7367 || p != p5 || p != p6 || p != p7)
7370 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7371 from child file descriptors. If the child closes a descriptor
7372 before it execs or exits, this munges the parent's descriptor
7373 as well. Test for this by closing stdout in the child. */
7374 _exit(close(fileno(stdout)) != 0);
7379 while (wait(&status) != child)
7382 /* Was there some problem with vforking? */
7385 /* Did the child fail? (This shouldn't happen.) */
7388 /* Did the vfork/compiler bug occur? */
7389 || parent != getpid()
7391 /* Did the file descriptor bug occur? */
7392 || fstat(fileno(stdout), &st) != 0
7397 rm -f conftest
$ac_exeext
7398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7399 (eval $ac_link) 2>&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; }; then
7408 ac_cv_func_vfork_works
=yes
7410 echo "$as_me: program exited with status $ac_status" >&5
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.
$ac_ext >&5
7415 ac_cv_func_vfork_works
=no
7417 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7420 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7421 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7424 if test "x$ac_cv_func_fork_works" = xcross
; then
7425 ac_cv_func_vfork_works
=ac_cv_func_vfork
7426 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7427 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7430 if test "x$ac_cv_func_vfork_works" = xyes
; then
7432 cat >>confdefs.h
<<\_ACEOF
7433 #define HAVE_WORKING_VFORK 1
7438 cat >>confdefs.h
<<\_ACEOF
7443 if test "x$ac_cv_func_fork_works" = xyes
; then
7445 cat >>confdefs.h
<<\_ACEOF
7446 #define HAVE_WORKING_FORK 1
7454 am_cv_lib_iconv_ldpath
=
7456 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7457 if test "${with_libiconv_prefix+set}" = set; then
7458 withval
="$with_libiconv_prefix"
7460 for dir
in `echo "$withval" | tr : ' '`; do
7461 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7462 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
7468 for ac_header
in iconv.h
7470 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7471 echo "$as_me:$LINENO: checking for $ac_header" >&5
7472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 cat >conftest.
$ac_ext <<_ACEOF
7477 #line $LINENO "configure"
7480 cat confdefs.h
>>conftest.
$ac_ext
7481 cat >>conftest.
$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 #include <$ac_header>
7485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7486 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7488 grep -v '^ *+' conftest.er1
>conftest.err
7490 cat conftest.err
>&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } >/dev
/null
; then
7493 if test -s conftest.err
; then
7494 ac_cpp_err
=$ac_c_preproc_warn_flag
7501 if test -z "$ac_cpp_err"; then
7502 eval "$as_ac_Header=yes"
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.
$ac_ext >&5
7507 eval "$as_ac_Header=no"
7509 rm -f conftest.err conftest.
$ac_ext
7511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7514 cat >>confdefs.h
<<_ACEOF
7515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7522 echo "$as_me:$LINENO: checking for iconv" >&5
7523 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7524 if test "${am_cv_func_iconv+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 am_cv_func_iconv
="no, consider installing GNU libiconv"
7530 cat >conftest.
$ac_ext <<_ACEOF
7531 #line $LINENO "configure"
7534 cat confdefs.h
>>conftest.
$ac_ext
7535 cat >>conftest.
$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7542 iconv_t cd = iconv_open("","");
7543 iconv(cd,NULL,NULL,NULL,NULL);
7549 rm -f conftest.
$ac_objext conftest
$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551 (eval $ac_link) 2>&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try
='test -s conftest$ac_exeext'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 am_cv_func_iconv
=yes
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.
$ac_ext >&5
7567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7568 if test "$am_cv_func_iconv" != yes; then
7569 am_save_LIBS
="$LIBS"
7570 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
7571 cat >conftest.
$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7575 cat confdefs.h
>>conftest.
$ac_ext
7576 cat >>conftest.
$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7583 iconv_t cd = iconv_open("","");
7584 iconv(cd,NULL,NULL,NULL,NULL);
7590 rm -f conftest.
$ac_objext conftest
$ac_exeext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7592 (eval $ac_link) 2>&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try
='test -s conftest$ac_exeext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7603 am_cv_func_iconv
=yes
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.
$ac_ext >&5
7609 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7610 LIBS
="$am_save_LIBS"
7614 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7615 echo "${ECHO_T}$am_cv_func_iconv" >&6
7616 if test "$am_cv_func_iconv" = yes; then
7618 cat >>confdefs.h
<<\_ACEOF
7619 #define HAVE_ICONV 1
7622 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7623 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7624 if test "${am_cv_proto_iconv+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 cat >conftest.
$ac_ext <<_ACEOF
7629 #line $LINENO "configure"
7632 cat confdefs.h
>>conftest.
$ac_ext
7633 cat >>conftest.
$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7642 #if defined(__STDC__) || defined(__cplusplus)
7643 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7656 rm -f conftest.
$ac_objext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7658 (eval $ac_compile) 2>&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try
='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 am_cv_proto_iconv_arg1
=""
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.
$ac_ext >&5
7673 am_cv_proto_iconv_arg1
="const"
7675 rm -f conftest.
$ac_objext conftest.
$ac_ext
7676 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);"
7679 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7680 echo "$as_me:$LINENO: result: ${ac_t:-
7681 }$am_cv_proto_iconv" >&5
7682 echo "${ECHO_T}${ac_t:-
7683 }$am_cv_proto_iconv" >&6
7685 cat >>confdefs.h
<<_ACEOF
7686 #define ICONV_CONST $am_cv_proto_iconv_arg1
7691 if test "$am_cv_lib_iconv" = yes; then
7692 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
7696 # Until we have in-tree GNU iconv:
7701 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7702 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7703 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 cat >conftest.
$ac_ext <<_ACEOF
7707 #line $LINENO "configure"
7710 cat confdefs.h
>>conftest.
$ac_ext
7711 cat >>conftest.
$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7722 rm -f conftest.
$ac_objext conftest
$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724 (eval $ac_link) 2>&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try
='test -s conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 am_cv_val_LC_MESSAGES
=yes
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.
$ac_ext >&5
7739 am_cv_val_LC_MESSAGES
=no
7741 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7743 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7744 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7745 if test $am_cv_val_LC_MESSAGES = yes; then
7747 cat >>confdefs.h
<<\_ACEOF
7748 #define HAVE_LC_MESSAGES 1
7754 # We will need to find libiberty.h and ansidecl.h
7755 saved_CFLAGS
="$CFLAGS"
7756 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
7757 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
7758 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
7759 fprintf_unlocked strstr errno snprintf vasprintf \
7760 malloc realloc calloc free
basename getopt
clock
7762 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7763 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7764 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7765 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 cat >conftest.
$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7772 cat confdefs.h
>>conftest.
$ac_ext
7773 cat >>conftest.
$ac_ext <<_ACEOF
7774 /* end confdefs.h. */
7776 #define $ac_tr_decl 1
7778 #include "ansidecl.h"
7785 char *(*pfn) = (char *(*)) $ac_func ;
7791 rm -f conftest.
$ac_objext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7793 (eval $ac_compile) 2>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try
='test -s conftest.$ac_objext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 eval "gcc_cv_have_decl_$ac_func=yes"
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.
$ac_ext >&5
7808 eval "gcc_cv_have_decl_$ac_func=no"
7810 rm -f conftest.
$ac_objext conftest.
$ac_ext
7813 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7814 echo "$as_me:$LINENO: result: yes" >&5
7815 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
7816 #define $ac_tr_decl 1
7820 echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
7822 #define $ac_tr_decl 0
7828 if test x
= y
; then
7830 cat >>confdefs.h
<<\_ACEOF
7831 #define HAVE_DECL_GETENV 1
7834 cat >>confdefs.h
<<\_ACEOF
7835 #define HAVE_DECL_ATOL 1
7838 cat >>confdefs.h
<<\_ACEOF
7839 #define HAVE_DECL_SBRK 1
7842 cat >>confdefs.h
<<\_ACEOF
7843 #define HAVE_DECL_ABORT 1
7846 cat >>confdefs.h
<<\_ACEOF
7847 #define HAVE_DECL_ATOF 1
7850 cat >>confdefs.h
<<\_ACEOF
7851 #define HAVE_DECL_GETCWD 1
7854 cat >>confdefs.h
<<\_ACEOF
7855 #define HAVE_DECL_GETWD 1
7859 cat >>confdefs.h
<<\_ACEOF
7860 #define HAVE_DECL_STRSIGNAL 1
7863 cat >>confdefs.h
<<\_ACEOF
7864 #define HAVE_DECL_PUTC_UNLOCKED 1
7867 cat >>confdefs.h
<<\_ACEOF
7868 #define HAVE_DECL_FPUTS_UNLOCKED 1
7871 cat >>confdefs.h
<<\_ACEOF
7872 #define HAVE_DECL_FWRITE_UNLOCKED 1
7876 cat >>confdefs.h
<<\_ACEOF
7877 #define HAVE_DECL_FPRINTF_UNLOCKED 1
7880 cat >>confdefs.h
<<\_ACEOF
7881 #define HAVE_DECL_STRSTR 1
7884 cat >>confdefs.h
<<\_ACEOF
7885 #define HAVE_DECL_ERRNO 1
7888 cat >>confdefs.h
<<\_ACEOF
7889 #define HAVE_DECL_SNPRINTF 1
7892 cat >>confdefs.h
<<\_ACEOF
7893 #define HAVE_DECL_VASPRINTF 1
7897 cat >>confdefs.h
<<\_ACEOF
7898 #define HAVE_DECL_MALLOC 1
7901 cat >>confdefs.h
<<\_ACEOF
7902 #define HAVE_DECL_REALLOC 1
7905 cat >>confdefs.h
<<\_ACEOF
7906 #define HAVE_DECL_CALLOC 1
7909 cat >>confdefs.h
<<\_ACEOF
7910 #define HAVE_DECL_FREE 1
7913 cat >>confdefs.h
<<\_ACEOF
7914 #define HAVE_DECL_BASENAME 1
7917 cat >>confdefs.h
<<\_ACEOF
7918 #define HAVE_DECL_GETOPT 1
7921 cat >>confdefs.h
<<\_ACEOF
7922 #define HAVE_DECL_CLOCK 1
7927 for ac_func
in getrlimit setrlimit getrusage
7929 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7930 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7931 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7932 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 cat >conftest.
$ac_ext <<_ACEOF
7936 #line $LINENO "configure"
7939 cat confdefs.h
>>conftest.
$ac_ext
7940 cat >>conftest.
$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7943 #define $ac_tr_decl 1
7945 #include "ansidecl.h"
7947 #ifdef HAVE_SYS_RESOURCE_H
7948 #include <sys/resource.h>
7956 char *(*pfn) = (char *(*)) $ac_func ;
7962 rm -f conftest.
$ac_objext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7964 (eval $ac_compile) 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try
='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 eval "gcc_cv_have_decl_$ac_func=yes"
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.
$ac_ext >&5
7979 eval "gcc_cv_have_decl_$ac_func=no"
7981 rm -f conftest.
$ac_objext conftest.
$ac_ext
7984 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
7987 #define $ac_tr_decl 1
7991 echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
7993 #define $ac_tr_decl 0
7999 if test x
= y
; then
8001 cat >>confdefs.h
<<\_ACEOF
8002 #define HAVE_DECL_GETRLIMIT 1
8005 cat >>confdefs.h
<<\_ACEOF
8006 #define HAVE_DECL_SETRLIMIT 1
8009 cat >>confdefs.h
<<\_ACEOF
8010 #define HAVE_DECL_GETRUSAGE 1
8015 cat >conftest.
$ac_ext <<_ACEOF
8016 #line $LINENO "configure"
8019 cat confdefs.h
>>conftest.
$ac_ext
8020 cat >>conftest.
$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8023 #include "ansidecl.h"
8025 #ifdef HAVE_SYS_RESOURCE_H
8026 #include <sys/resource.h>
8037 rm -f conftest.
$ac_objext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039 (eval $ac_compile) 2>&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try
='test -s conftest.$ac_objext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.
$ac_ext >&5
8055 cat >>confdefs.h
<<\_ACEOF
8060 rm -f conftest.
$ac_objext conftest.
$ac_ext
8062 for ac_func
in ldgetname
8064 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8065 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8066 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8067 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 cat >conftest.
$ac_ext <<_ACEOF
8071 #line $LINENO "configure"
8074 cat confdefs.h
>>conftest.
$ac_ext
8075 cat >>conftest.
$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8078 #define $ac_tr_decl 1
8080 #include "ansidecl.h"
8091 char *(*pfn) = (char *(*)) $ac_func ;
8097 rm -f conftest.
$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try
='test -s conftest.$ac_objext'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8109 eval "gcc_cv_have_decl_$ac_func=yes"
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.
$ac_ext >&5
8114 eval "gcc_cv_have_decl_$ac_func=no"
8116 rm -f conftest.
$ac_objext conftest.
$ac_ext
8119 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8120 echo "$as_me:$LINENO: result: yes" >&5
8121 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8122 #define $ac_tr_decl 1
8126 echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8128 #define $ac_tr_decl 0
8134 if test x
= y
; then
8136 cat >>confdefs.h
<<\_ACEOF
8137 #define HAVE_DECL_LDGETNAME 1
8142 for ac_func
in times
8144 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8145 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8146 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8147 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 cat >conftest.
$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8154 cat confdefs.h
>>conftest.
$ac_ext
8155 cat >>conftest.
$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8158 #define $ac_tr_decl 1
8160 #include "ansidecl.h"
8162 #ifdef HAVE_SYS_TIMES_H
8163 #include <sys/times.h>
8171 char *(*pfn) = (char *(*)) $ac_func ;
8177 rm -f conftest.
$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try
='test -s conftest.$ac_objext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 eval "gcc_cv_have_decl_$ac_func=yes"
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.
$ac_ext >&5
8194 eval "gcc_cv_have_decl_$ac_func=no"
8196 rm -f conftest.
$ac_objext conftest.
$ac_ext
8199 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8200 echo "$as_me:$LINENO: result: yes" >&5
8201 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8202 #define $ac_tr_decl 1
8206 echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8208 #define $ac_tr_decl 0
8214 if test x
= y
; then
8216 cat >>confdefs.h
<<\_ACEOF
8217 #define HAVE_DECL_TIMES 1
8222 # More time-related stuff.
8223 echo "$as_me:$LINENO: checking for struct tms" >&5
8224 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8225 if test "${ac_cv_struct_tms+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 cat >conftest.
$ac_ext <<_ACEOF
8230 #line $LINENO "configure"
8233 cat confdefs.h
>>conftest.
$ac_ext
8234 cat >>conftest.
$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8237 #include "ansidecl.h"
8239 #ifdef HAVE_SYS_TIMES_H
8240 #include <sys/times.h>
8251 rm -f conftest.
$ac_objext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8253 (eval $ac_compile) 2>&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try
='test -s conftest.$ac_objext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_struct_tms
=yes
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.
$ac_ext >&5
8270 rm -f conftest.
$ac_objext conftest.
$ac_ext
8272 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8273 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8274 if test $ac_cv_struct_tms = yes; then
8276 cat >>confdefs.h
<<\_ACEOF
8277 #define HAVE_STRUCT_TMS 1
8282 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8283 # revisit after autoconf 2.50.
8284 echo "$as_me:$LINENO: checking for clock_t" >&5
8285 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8286 if test "${gcc_cv_type_clock_t+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 cat >conftest.
$ac_ext <<_ACEOF
8291 #line $LINENO "configure"
8294 cat confdefs.h
>>conftest.
$ac_ext
8295 cat >>conftest.
$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8298 #include "ansidecl.h"
8309 rm -f conftest.
$ac_objext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8311 (eval $ac_compile) 2>&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try
='test -s conftest.$ac_objext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 gcc_cv_type_clock_t
=yes
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.
$ac_ext >&5
8326 gcc_cv_type_clock_t
=no
8328 rm -f conftest.
$ac_objext conftest.
$ac_ext
8330 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8331 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8332 if test $gcc_cv_type_clock_t = yes; then
8334 cat >>confdefs.h
<<\_ACEOF
8335 #define HAVE_CLOCK_T 1
8340 echo "$as_me:$LINENO: checking for uchar" >&5
8341 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8342 if test "${gcc_cv_type_uchar+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 cat >conftest.
$ac_ext <<_ACEOF
8346 #line $LINENO "configure"
8349 cat confdefs.h
>>conftest.
$ac_ext
8350 cat >>conftest.
$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8353 #include "ansidecl.h"
8359 if ((uchar *)0) return 0;
8360 if (sizeof(uchar)) return 0;
8365 rm -f conftest.
$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367 (eval $ac_compile) 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try
='test -s conftest.$ac_objext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_type_uchar
=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.
$ac_ext >&5
8384 rm -f conftest.
$ac_objext conftest.
$ac_ext
8386 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8387 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8388 if test $ac_cv_type_uchar = yes; then
8390 cat >>confdefs.h
<<\_ACEOF
8391 #define HAVE_UCHAR 1
8396 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8397 CFLAGS
="$saved_CFLAGS"
8399 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8400 if test "${enable_initfini_array+set}" = set; then
8401 enableval
="$enable_initfini_array"
8405 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8406 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8407 if test "${gcc_cv_initfini_array+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 if test "$cross_compiling" = yes; then
8411 gcc_cv_initfini_array
=no
8413 cat >conftest.
$ac_ext <<_ACEOF
8414 #line $LINENO "configure"
8417 cat confdefs.h
>>conftest.
$ac_ext
8418 cat >>conftest.
$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8422 int main (void) { return x; }
8423 int foo (void) { x = 0; }
8424 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8426 rm -f conftest
$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 gcc_cv_initfini_array
=yes
8439 echo "$as_me: program exited with status $ac_status" >&5
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.
$ac_ext >&5
8444 gcc_cv_initfini_array
=no
8446 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8449 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8450 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8451 enable_initfini_array
=$gcc_cv_initfini_array
8454 if test $enable_initfini_array = yes; then
8456 cat >>confdefs.h
<<\_ACEOF
8457 #define HAVE_INITFINI_ARRAY 1
8462 # mkdir takes a single argument on some systems.
8463 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8464 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8465 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 cat >conftest.
$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8472 cat confdefs.h
>>conftest.
$ac_ext
8473 cat >>conftest.
$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8476 #include <sys/types.h>
8477 #ifdef HAVE_SYS_STAT_H
8478 # include <sys/stat.h>
8480 #ifdef HAVE_UNISTD_H
8481 # include <unistd.h>
8483 #ifdef HAVE_DIRECT_H
8484 # include <direct.h>
8494 rm -f conftest.
$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try
='test -s conftest.$ac_objext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 gcc_cv_mkdir_takes_one_arg
=no
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.
$ac_ext >&5
8511 gcc_cv_mkdir_takes_one_arg
=yes
8513 rm -f conftest.
$ac_objext conftest.
$ac_ext
8515 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8516 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8517 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8519 cat >>confdefs.h
<<\_ACEOF
8520 #define MKDIR_TAKES_ONE_ARG 1
8532 # With Setjmp/Longjmp based exception handling.
8533 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8534 if test "${enable_sjlj_exceptions+set}" = set; then
8535 enableval
="$enable_sjlj_exceptions"
8536 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8538 cat >>confdefs.h
<<_ACEOF
8539 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8544 if test x
$host = x
$target; then
8545 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8546 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8547 if test "${ac_cv_lib_unwind_main+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 ac_check_lib_save_LIBS
=$LIBS
8551 LIBS
="-lunwind $LIBS"
8552 cat >conftest.
$ac_ext <<_ACEOF
8553 #line $LINENO "configure"
8556 cat confdefs.h
>>conftest.
$ac_ext
8557 cat >>conftest.
$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8569 rm -f conftest.
$ac_objext conftest
$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571 (eval $ac_link) 2>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try
='test -s conftest$ac_exeext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_lib_unwind_main
=yes
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.
$ac_ext >&5
8586 ac_cv_lib_unwind_main
=no
8588 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8589 LIBS
=$ac_check_lib_save_LIBS
8591 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8592 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8593 if test $ac_cv_lib_unwind_main = yes; then
8594 use_libunwind_default
=yes
8596 use_libunwind_default
=no
8600 use_libunwind_default
=no
8602 # Use libunwind based exception handling.
8603 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8604 if test "${enable_libunwind_exceptions+set}" = set; then
8605 enableval
="$enable_libunwind_exceptions"
8606 use_libunwind_exceptions
=$enableval
8608 use_libunwind_exceptions
=$use_libunwind_default
8610 if test x
"$use_libunwind_exceptions" = xyes
; then
8612 cat >>confdefs.h
<<\_ACEOF
8613 #define USE_LIBUNWIND_EXCEPTIONS 1
8618 # --------------------------------------------------------
8619 # Build, host, and target specific configuration fragments
8620 # --------------------------------------------------------
8622 # Collect build-machine-specific information.
8623 .
${srcdir}/config.build
8625 # Collect host-machine-specific information.
8626 .
${srcdir}/config.
host
8630 # Collect target-machine-specific information.
8631 .
${srcdir}/config.gcc
8633 extra_objs
="${host_extra_objs} ${extra_objs}"
8634 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
8636 # Default the target-machine variables that were not explicitly set.
8637 if test x
"$tm_file" = x
8638 then tm_file
=$cpu_type/$cpu_type.h
; fi
8640 if test x
"$extra_headers" = x
8641 then extra_headers
=; fi
8643 if test x
$md_file = x
8644 then md_file
=$cpu_type/$cpu_type.md
; fi
8646 if test x
$out_file = x
8647 then out_file
=$cpu_type/$cpu_type.c
; fi
8649 if test x
"$tmake_file" = x
8650 then tmake_file
=$cpu_type/t-
$cpu_type
8653 if test x
"$dwarf2" = xyes
8654 then tm_file
="$tm_file tm-dwarf2.h"
8657 # Say what files are being used for the output code and MD file.
8658 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8659 echo "Using \`$srcdir/config/$md_file' as machine description file."
8661 # If any of the xm_file variables contain nonexistent files, warn
8662 # about them and drop them.
8665 for x
in $build_xm_file; do
8666 if test -f $srcdir/config
/$x
8668 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8669 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8675 for x
in $host_xm_file; do
8676 if test -f $srcdir/config
/$x
8678 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8679 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8685 for x
in $xm_file; do
8686 if test -f $srcdir/config
/$x
8688 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8689 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8695 for f
in $tm_file; do
8698 if test $count = ax
; then
8699 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8701 echo "Using the following target machine macro files:"
8702 for f
in $tm_file; do
8703 echo " $srcdir/config/$f"
8707 if test x
$need_64bit_hwint = xyes
; then
8709 cat >>confdefs.h
<<\_ACEOF
8710 #define NEED_64BIT_HOST_WIDE_INT 1
8716 for f
in $host_xm_file; do
8719 if test $count = a
; then
8721 elif test $count = ax
; then
8722 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8724 echo "Using the following host machine macro files:"
8725 for f
in $host_xm_file; do
8726 echo " $srcdir/config/$f"
8729 echo "Using ${out_host_hook_obj} for host machine hooks."
8731 if test "$host_xm_file" != "$build_xm_file"; then
8733 for f
in $build_xm_file; do
8736 if test $count = a
; then
8738 elif test $count = ax
; then
8739 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
8741 echo "Using the following build machine macro files:"
8742 for f
in $build_xm_file; do
8743 echo " $srcdir/config/$f"
8752 # Check if a valid thread package
8753 case ${enable_threads_flag} in
8756 target_thread_file
='single'
8760 target_thread_file
='single'
8762 aix | dce | gnat | irix | posix | rtems | \
8763 single | solaris | vxworks | win32
)
8764 target_thread_file
=${enable_threads_flag}
8767 echo "${enable_threads_flag} is an unknown thread package" 1>&2
8772 if test x
${thread_file} = x
; then
8773 # No thread file set by target-specific clauses in config.gcc,
8774 # so use file chosen by default logic above
8775 thread_file
=${target_thread_file}
8778 # Make gthr-default.h if we have a thread file.
8780 if test $thread_file != single
; then
8781 rm -f gthr-default.h
8782 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8783 gthread_flags
=-DHAVE_GTHR_DEFAULT
8791 if test x
$enable___cxa_atexit = xyes || \
8792 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
8793 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
8794 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
8795 if test "${ac_cv_func___cxa_atexit+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 cat >conftest.
$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8802 cat confdefs.h
>>conftest.
$ac_ext
8803 cat >>conftest.
$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 /* System header to define __stub macros and hopefully few prototypes,
8806 which can conflict with char __cxa_atexit (); below.
8807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8808 <limits.h> exists even on freestanding compilers. */
8810 # include <limits.h>
8812 # include <assert.h>
8814 /* Override any gcc2 internal prototype to avoid an error. */
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8821 char __cxa_atexit ();
8822 /* The GNU C library defines this for functions which it implements
8823 to always fail with ENOSYS. Some functions are actually named
8824 something starting with __ and the normal name is an alias. */
8825 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
8828 char (*f) () = __cxa_atexit;
8837 return f != __cxa_atexit;
8842 rm -f conftest.
$ac_objext conftest
$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try
='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_func___cxa_atexit
=yes
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.
$ac_ext >&5
8859 ac_cv_func___cxa_atexit
=no
8861 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
8864 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
8865 if test $ac_cv_func___cxa_atexit = yes; then
8867 cat >>confdefs.h
<<\_ACEOF
8868 #define DEFAULT_USE_CXA_ATEXIT 1
8872 echo "__cxa_atexit can't be enabled on this target"
8877 # Look for a file containing extra machine modes.
8878 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
8879 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
8882 cat >>confdefs.h
<<_ACEOF
8883 #define EXTRA_MODES_FILE "config/$extra_modes"
8888 # auto-host.h is the file containing items generated by autoconf and is
8889 # the first file included by config.h.
8890 # If host=build, it is correct to have bconfig include auto-host.h
8891 # as well. If host!=build, we are in error and need to do more
8892 # work to find out the build config parameters.
8893 if test x
$host = x
$build
8895 build_auto
=auto-host.h
8898 # We create a subdir, then run autoconf in the subdir.
8899 # To prevent recursion we set host and build for the new
8900 # invocation of configure to the build for this invocation
8907 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
8908 *) realsrcdir
=..
/${srcdir};;
8910 saved_CFLAGS
="${CFLAGS}"
8911 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
8912 ${realsrcdir}/configure \
8913 --enable-languages=${enable_languages} \
8914 --target=$target_alias --host=$build_alias --build=$build_alias
8915 CFLAGS
="${saved_CFLAGS}"
8917 # We just finished tests for the build machine, so rename
8918 # the file auto-build.h in the gcc directory.
8919 mv auto-host.h ..
/auto-build.h
8922 build_auto
=auto-build.h
8923 FORBUILD
=..
/${build_subdir}
8927 tm_file
="${tm_file} defaults.h"
8928 tm_p_file
="${tm_p_file} tm-preds.h"
8929 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
8930 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
8931 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
8932 # put this back in temporarily.
8933 xm_file
="ansidecl.h ${xm_file}"
8939 # Get the version trigger filename from the toplevel
8940 if test "${with_gcc_version_trigger+set}" = set; then
8941 gcc_version_trigger
=$with_gcc_version_trigger
8943 gcc_version_trigger
=${srcdir}/version.c
8945 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
8946 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8948 # Compile in configure arguments.
8949 if test -f configargs.h
; then
8950 # Being re-configured.
8951 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
8952 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
8954 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
8957 # Double all backslashes and backslash all quotes to turn
8958 # gcc_config_arguments into a C string.
8959 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
8960 $gcc_config_arguments
8962 gcc_config_arguments_str
=`cat conftest.out`
8965 cat > configargs.h
<<EOF
8966 /* Generated automatically. */
8967 static const char configuration_arguments[] = "$gcc_config_arguments_str";
8968 static const char thread_model[] = "$thread_file";
8970 static const struct {
8971 const char *name, *value;
8972 } configure_default_options[] = $configure_default_options;
8975 # Internationalization
8977 VERSION
="$gcc_version"
8981 # If we haven't got the data from the intl directory,
8982 # assume NLS is disabled.
8990 if test -f ..
/intl
/config.intl
; then
8991 . ..
/intl
/config.intl
8993 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8994 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8995 if test x
"$USE_NLS" != xyes
; then
8996 echo "$as_me:$LINENO: result: no" >&5
8997 echo "${ECHO_T}no" >&6
8999 echo "$as_me:$LINENO: result: yes" >&5
9000 echo "${ECHO_T}yes" >&6
9002 cat >>confdefs.h
<<\_ACEOF
9003 #define ENABLE_NLS 1
9007 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9008 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9009 # Look for .po and .gmo files in the source directory.
9012 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9013 # If there aren't any .gmo files the shell will give us the
9014 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9016 case "$cat" in *\
**)
9019 # The quadruple backslash is collapsed to a double backslash
9020 # by the backticks, then collapsed again by the double quotes,
9021 # leaving us with one backslash in the sed expression (right
9022 # before the dot that mustn't act as a wildcard).
9023 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9024 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9025 # The user is allowed to set LINGUAS to a list of languages to
9026 # install catalogs for. If it's empty that means "all of them."
9027 if test "x$LINGUAS" = x
; then
9028 CATALOGS
="$CATALOGS $cat"
9029 XLINGUAS
="$XLINGUAS $lang"
9031 case "$LINGUAS" in *$lang*)
9032 CATALOGS
="$CATALOGS $cat"
9033 XLINGUAS
="$XLINGUAS $lang"
9039 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9040 echo "${ECHO_T}$LINGUAS" >&6
9043 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9044 # -liconv on the link line twice.
9045 case "$LIBINTL" in *$LIBICONV*)
9049 # Windows32 Registry support for specifying GCC installation paths.
9050 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9051 if test "${enable_win32_registry+set}" = set; then
9052 enableval
="$enable_win32_registry"
9056 win32 | pe | cygwin
* | mingw32
* | uwin
*)
9057 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9058 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9059 if test "x$enable_win32_registry" != xno
; then
9061 cat >>confdefs.h
<<\_ACEOF
9062 #define ENABLE_WIN32_REGISTRY 1
9065 echo "$as_me:$LINENO: result: yes" >&5
9066 echo "${ECHO_T}yes" >&6
9067 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9068 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9069 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 ac_func_search_save_LIBS
=$LIBS
9073 ac_cv_search_RegOpenKeyExA
=no
9074 cat >conftest.
$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9078 cat confdefs.h
>>conftest.
$ac_ext
9079 cat >>conftest.
$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9082 /* Override any gcc2 internal prototype to avoid an error. */
9086 /* We use char because int might match the return type of a gcc2
9087 builtin and then its argument prototype would still apply. */
9088 char RegOpenKeyExA ();
9097 rm -f conftest.
$ac_objext conftest
$ac_exeext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099 (eval $ac_link) 2>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try
='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_search_RegOpenKeyExA
="none required"
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.
$ac_ext >&5
9115 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9116 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
9117 for ac_lib
in advapi32
; do
9118 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9119 cat >conftest.
$ac_ext <<_ACEOF
9120 #line $LINENO "configure"
9123 cat confdefs.h
>>conftest.
$ac_ext
9124 cat >>conftest.
$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9127 /* Override any gcc2 internal prototype to avoid an error. */
9131 /* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9133 char RegOpenKeyExA ();
9142 rm -f conftest.
$ac_objext conftest
$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try
='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.
$ac_ext >&5
9161 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9164 LIBS
=$ac_func_search_save_LIBS
9166 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9167 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9168 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
9169 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
9174 echo "$as_me:$LINENO: result: no" >&5
9175 echo "${ECHO_T}no" >&6
9178 # Check if user specified a different registry key.
9179 case "x${enable_win32_registry}" in
9182 gcc_cv_win32_registry_key
="$VERSION"
9185 # no registry lookup.
9186 gcc_cv_win32_registry_key
=''
9189 # user-specified key.
9190 gcc_cv_win32_registry_key
="$enable_win32_registry"
9194 if test "x$enable_win32_registry" != xno
; then
9195 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9196 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9198 cat >>confdefs.h
<<_ACEOF
9199 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9202 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9203 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9208 # Get an absolute path to the GCC top-level source directory
9209 holddir
=`${PWDCMD-pwd}`
9211 topdir
=`${PWDCMD-pwd}`
9214 # Conditionalize the makefile for this host machine.
9216 for f
in ${host_xmake_file}
9218 if test -f ${srcdir}/config
/$f
9220 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
9224 # Conditionalize the makefile for this target machine.
9226 for f
in ${tmake_file}
9228 if test -f ${srcdir}/config
/$f
9230 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
9233 tmake_file
="${tmake_file_}"
9235 symbolic_link
='ln -s'
9237 # If the host doesn't support symlinks, modify CC in
9238 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9239 # Otherwise, we can use "CC=$(CC)".
9241 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
9243 cc_set_by_configure
="\$(CC)"
9244 quoted_cc_set_by_configure
="\$(CC)"
9245 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9246 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9249 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
9251 symbolic_link
="cp -p"
9255 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9256 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9257 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9258 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9262 out_object_file
=`basename $out_file .c`.o
9266 for f
in $tm_file; do
9269 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
9270 tm_include_list
="${tm_include_list} $f"
9273 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
9274 tm_include_list
="${tm_include_list} config/$f"
9281 for f
in $tm_p_file; do
9284 tm_p_file_list
="${tm_p_file_list} $f"
9285 tm_p_include_list
="${tm_p_include_list} $f"
9288 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
9289 tm_p_include_list
="${tm_p_include_list} config/$f"
9295 for f
in $xm_file; do
9298 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
9299 xm_include_list
="${xm_include_list} $f"
9302 xm_file_list
="${xm_file_list} $f"
9303 xm_include_list
="${xm_include_list} $f"
9306 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
9307 xm_include_list
="${xm_include_list} config/$f"
9313 host_xm_include_list
=
9314 for f
in $host_xm_file; do
9317 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
9318 host_xm_include_list
="${host_xm_include_list} $f"
9321 host_xm_file_list
="${host_xm_file_list} $f"
9322 host_xm_include_list
="${host_xm_include_list} $f"
9325 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
9326 host_xm_include_list
="${host_xm_include_list} config/$f"
9332 for f
in $build_xm_file; do
9335 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
9336 build_xm_include_list
="${build_xm_include_list} $f"
9338 auto-build.h | auto-host.h
)
9339 build_xm_file_list
="${build_xm_file_list} $f"
9340 build_xm_include_list
="${build_xm_include_list} $f"
9343 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
9344 build_xm_include_list
="${build_xm_include_list} config/$f"
9349 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9350 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9353 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9354 if test x
$host != x
$target
9356 CROSS
="-DCROSS_COMPILE"
9358 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9359 case "$host","$target" in
9360 # Darwin crosses can use the host system's libraries and headers,
9361 # because of the fat library support. Of course, it must be the
9362 # same version of Darwin on both sides. Allow the user to
9363 # just say --target=foo-darwin without a version number to mean
9364 # "the version on this system".
9365 *-*-darwin*,*-*-darwin*)
9366 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
9367 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
9368 if test $hostos = $targetos -o $targetos = darwin
; then
9370 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9375 i?
86-*-*,x86_64-
*-* \
9376 | powerpc
*-*-*,powerpc64
*-*-*)
9377 CROSS
="$CROSS -DNATIVE_CROSS" ;;
9379 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
9380 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9381 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9384 # If this is a cross-compiler that does not
9385 # have its own set of headers then define
9388 # If this is using newlib, without having the headers available now,
9389 # then define inhibit_libc in LIBGCC2_CFLAGS.
9390 # This prevents libgcc2 from containing any code which requires libc
9393 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
9394 test x
$with_newlib = xyes
; } &&
9395 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
9396 inhibit_libc
=-Dinhibit_libc
9400 # When building gcc with a cross-compiler, we need to adjust things so
9401 # that the generator programs are still built with the native compiler.
9402 # Also, we cannot run fixincludes or fix-header.
9404 # These are the normal (build=host) settings:
9406 BUILD_PREFIX_1
=ignore-
9407 CC_FOR_BUILD
='$(CC)'
9408 BUILD_CFLAGS
='$(ALL_CFLAGS)'
9410 STMP_FIXINC
=stmp-fixinc
9412 # Possibly disable fixproto, on a per-target basis.
9413 case ${use_fixproto} in
9418 STMP_FIXPROTO
=stmp-fixproto
9423 # And these apply if build != host, or we are generating coverage data
9424 if test x
$build != x
$host ||
test "x$coverage_flags" != x
9427 BUILD_PREFIX_1
=build-
9428 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9430 if test "x$TARGET_SYSTEM_ROOT" = x
; then
9436 # Expand extra_headers to include complete path.
9437 # This substitutes for lots of t-* files.
9439 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9440 for file in ${extra_headers} ; do
9441 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9444 # Add a definition of USE_COLLECT2 if system wants one.
9445 case $use_collect2 in
9446 no
) use_collect2
= ;;
9449 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
9450 xm_defines
="${xm_defines} USE_COLLECT2"
9454 # ---------------------------
9455 # Assembler & linker features
9456 # ---------------------------
9458 # Identify the assembler which will work hand-in-glove with the newly
9459 # built GCC, so that we can examine its features. This is the assembler
9460 # which will be driven by the driver program.
9462 # If build != host, and we aren't building gas in-tree, we identify a
9463 # build->target assembler and hope that it will have the same features
9464 # as the host->target assembler we'll be using.
9465 echo "$as_me:$LINENO: checking what assembler to use" >&5
9466 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9469 gcc_cv_gas_major_version
=
9470 gcc_cv_gas_minor_version
=
9471 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9472 if test -x "$DEFAULT_ASSEMBLER"; then
9473 gcc_cv_as
="$DEFAULT_ASSEMBLER"
9474 elif test -x "$AS"; then
9476 elif test -x as
$host_exeext; then
9477 # Build using assembler in the current directory.
9478 gcc_cv_as
=.
/as
$host_exeext
9479 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
9480 && test -f ..
/gas
/Makefile
; then
9481 # Single tree build which includes gas.
9483 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9484 for f
in $gcc_cv_as_bfd_srcdir/configure \
9485 $gcc_cv_as_gas_srcdir/configure \
9486 $gcc_cv_as_gas_srcdir/configure.
in \
9487 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
9488 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9489 if test x
$gcc_cv_gas_version != x
; then
9493 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9494 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9495 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9496 case $gcc_cv_gas_patch_version in
9497 "") gcc_cv_gas_patch_version
="0" ;;
9499 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9500 + $gcc_cv_gas_minor_version \) \* 1000 \
9501 + $gcc_cv_gas_patch_version`
9503 rm -f as
$host_exeext
9504 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
9505 in_tree_gas_is_elf
=no
9506 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
9507 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
9508 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
9510 in_tree_gas_is_elf
=yes
9514 if test "x$gcc_cv_as" = x
; then
9515 # Search the same directories that the installed compiler will
9516 # search. Else we may find the wrong assembler and lose. If we
9517 # do not find a suitable assembler binary, then try the user's
9520 # Also note we have to check MD_EXEC_PREFIX before checking the
9521 # user's path. Unfortunately, there is no good way to get at the
9522 # value of MD_EXEC_PREFIX here. So we do a brute force search
9523 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9524 # to be fixed as part of the make/configure rewrite too.
9526 if test "x$exec_prefix" = xNONE
; then
9527 if test "x$prefix" = xNONE
; then
9528 test_prefix
=/usr
/local
9533 test_prefix
=$exec_prefix
9536 # If the loop below does not find an assembler, then use whatever
9537 # one we can find in the users's path.
9539 if test "x$program_prefix" != xNONE
; then
9540 gcc_cv_as
=${program_prefix}as
$host_exeext
9542 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$host_exeext
9545 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9546 $test_prefix/libexec/gcc/$target_noncanonical \
9547 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9548 /usr/lib/gcc/$target_noncanonical \
9549 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9550 $test_prefix/$target_noncanonical/bin"
9552 if test x
$host = x
$target; then
9553 test_dirs
="$test_dirs \
9558 /bsd43/usr/lib/cmplrs/cc \
9559 /usr/cross64/usr/bin \
9560 /usr/lib/cmplrs/cc \
9561 /sysv/usr/lib/cmplrs/cc \
9562 /svr4/usr/lib/cmplrs/cc \
9566 for dir
in $test_dirs; do
9567 if test -x $dir/as
$host_exeext; then
9568 gcc_cv_as
=$dir/as
$host_exeext
9573 case $in_tree_gas in
9575 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9576 echo "${ECHO_T}\"newly built gas\"" >&6
9579 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9580 echo "${ECHO_T}$gcc_cv_as" >&6
9584 # Identify the linker which will work hand-in-glove with the newly
9585 # built GCC, so that we can examine its features. This is the linker
9586 # which will be driven by the driver program.
9588 # If build != host, and we aren't building gas in-tree, we identify a
9589 # build->target linker and hope that it will have the same features
9590 # as the host->target linker we'll be using.
9591 echo "$as_me:$LINENO: checking what linker to use" >&5
9592 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9595 gcc_cv_gld_major_version
=
9596 gcc_cv_gld_minor_version
=
9597 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9598 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9599 if test -x "$DEFAULT_LINKER"; then
9600 gcc_cv_ld
="$DEFAULT_LINKER"
9601 elif test -x "$LD_FOR_TARGET"; then
9602 gcc_cv_ld
="$LD_FOR_TARGET"
9603 elif test -x "$LD" && test x
$host = x
$target; then
9605 elif test -x collect-ld
$host_exeext; then
9606 # Build using linker in the current directory.
9607 gcc_cv_ld
=.
/collect-ld
$host_exeext
9608 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
9609 && test -f ..
/ld
/Makefile
; then
9610 # Single tree build which includes ld.
9612 in_tree_ld_is_elf
=no
9613 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
9614 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
9615 in_tree_ld_is_elf
=yes
9617 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
9619 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9620 if test x
$gcc_cv_gld_version != x
; then
9624 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9625 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9626 rm -f collect-ld
$host_exeext
9627 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
9631 if test "x$gcc_cv_ld" = x
; then
9632 # Search the same directories that the installed compiler will
9633 # search. Else we may find the wrong linker and lose. If we
9634 # do not find a suitable linker binary, then try the user's
9637 # Also note we have to check MD_EXEC_PREFIX before checking the
9638 # user's path. Unfortunately, there is no good way to get at the
9639 # value of MD_EXEC_PREFIX here. So we do a brute force search
9640 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9641 # to be fixed as part of the make/configure rewrite too.
9643 if test "x$exec_prefix" = xNONE
; then
9644 if test "x$prefix" = xNONE
; then
9645 test_prefix
=/usr
/local
9650 test_prefix
=$exec_prefix
9653 # If the loop below does not find an linker, then use whatever
9654 # one we can find in the users's path.
9656 if test "x$program_prefix" != xNONE
; then
9657 gcc_cv_ld
=${program_prefix}ld
$host_exeext
9659 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$host_exeext
9662 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9663 $test_prefix/libexec/gcc/$target_noncanonical \
9664 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9665 /usr/lib/gcc/$target_noncanonical \
9666 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9667 $test_prefix/$target_noncanonical/bin"
9669 if test x
$host = x
$target; then
9670 test_dirs
="$test_dirs \
9675 /bsd43/usr/lib/cmplrs/cc \
9676 /usr/cross64/usr/bin \
9677 /usr/lib/cmplrs/cc \
9678 /sysv/usr/lib/cmplrs/cc \
9679 /svr4/usr/lib/cmplrs/cc \
9683 for dir
in $test_dirs; do
9684 if test -x $dir/ld
$host_exeext; then
9685 gcc_cv_ld
=$dir/ld
$host_exeext
9692 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9693 echo "${ECHO_T}\"newly built ld\"" >&6
9696 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9697 echo "${ECHO_T}$gcc_cv_ld" >&6
9701 # Figure out what nm we will be using.
9702 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9703 echo "$as_me:$LINENO: checking what nm to use" >&5
9704 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
9706 if test -x nm
$host_exeext; then
9707 gcc_cv_nm
=.
/nm
$host_exeext
9708 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
9709 && test -f ..
/binutils
/Makefile
; then
9710 # Single tree build which includes binutils.
9712 gcc_cv_nm
=.
/nm
$host_exeext
9713 rm -f nm
$host_exeext
9714 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
9715 elif test "x$program_prefix" != xNONE
; then
9716 gcc_cv_nm
=${program_prefix}nm
$host_exeext
9718 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$host_exeext
9721 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
9722 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
9723 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
9724 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
9727 # Figure out what objdump we will be using.
9728 echo "$as_me:$LINENO: checking what objdump to use" >&5
9729 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
9731 if test -x objdump
$host_exeext; then
9732 gcc_cv_objdump
=.
/objdump
$host_exeext
9733 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
9734 && test -f ..
/binutils
/Makefile
; then
9735 # Single tree build which includes binutils.
9737 gcc_cv_objdump
=.
/objdump
$host_exeext
9738 rm -f objdump
$host_exeext
9739 $symbolic_link ..
/binutils
/objdump
$host_exeext \
9740 objdump
$host_exeext 2>/dev
/null
9741 elif test "x$program_prefix" != xNONE
; then
9742 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
9744 gcc_cv_objdump
=`echo objdump | \
9745 sed "${program_transform_name}"`$host_exeext
9747 case $in_tree_objdump in
9748 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
9749 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
9750 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
9751 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
9754 # Figure out what assembler alignment features are present.
9755 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
9756 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
9757 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 gcc_cv_as_balign_and_p2align
=no
9761 if test $in_tree_gas = yes; then
9762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
9763 then gcc_cv_as_balign_and_p2align
=yes
9765 elif test x
$gcc_cv_as != x
; then
9767 .p2align 2' > conftest.s
9768 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }
9775 gcc_cv_as_balign_and_p2align
=yes
9777 echo "configure: failed program was" >&5
9780 rm -f conftest.o conftest.s
9783 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
9784 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
9785 if test $gcc_cv_as_balign_and_p2align = yes; then
9787 cat >>confdefs.h
<<\_ACEOF
9788 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9793 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
9794 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
9795 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 gcc_cv_as_max_skip_p2align
=no
9799 if test $in_tree_gas = yes; then
9800 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
9801 then gcc_cv_as_max_skip_p2align
=yes
9803 elif test x
$gcc_cv_as != x
; then
9804 echo '.p2align 4,,7' > conftest.s
9805 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }
9812 gcc_cv_as_max_skip_p2align
=yes
9814 echo "configure: failed program was" >&5
9817 rm -f conftest.o conftest.s
9820 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
9821 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
9822 if test $gcc_cv_as_max_skip_p2align = yes; then
9824 cat >>confdefs.h
<<\_ACEOF
9825 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9830 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
9831 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
9832 if test "${gcc_cv_as_subsection_m1+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 gcc_cv_as_subsection_m1
=no
9836 if test $in_tree_gas = yes; then
9837 if test $in_tree_gas_is_elf = yes \
9838 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
9839 then gcc_cv_as_subsection_m1
=yes
9841 elif test x
$gcc_cv_as != x
; then
9842 echo 'conftest_label1: .word 0
9844 conftest_label2: .word 0
9845 .previous' > conftest.s
9846 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }
9853 if test x
$gcc_cv_nm != x
; then
9854 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9855 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9856 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
9858 else gcc_cv_as_subsection_m1
=yes
9860 rm -f conftest.nm1 conftest.nm2
9863 echo "configure: failed program was" >&5
9866 rm -f conftest.o conftest.s
9869 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
9870 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
9871 if test $gcc_cv_as_subsection_m1 = yes; then
9873 cat >>confdefs.h
<<\_ACEOF
9874 #define HAVE_GAS_SUBSECTION_ORDERING 1
9879 echo "$as_me:$LINENO: checking assembler for .weak" >&5
9880 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
9881 if test "${gcc_cv_as_weak+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 if test $in_tree_gas = yes; then
9886 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
9887 then gcc_cv_as_weak
=yes
9889 elif test x
$gcc_cv_as != x
; then
9890 echo ' .weak foobar' > conftest.s
9891 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }
9900 echo "configure: failed program was" >&5
9903 rm -f conftest.o conftest.s
9906 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
9907 echo "${ECHO_T}$gcc_cv_as_weak" >&6
9908 if test $gcc_cv_as_weak = yes; then
9910 cat >>confdefs.h
<<\_ACEOF
9911 #define HAVE_GAS_WEAK 1
9916 # .hidden needs to be supported in both the assembler and the linker,
9917 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
9918 # This is irritatingly difficult to feature test for; we have to check the
9919 # date string after the version number. If we've got an in-tree
9920 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
9922 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
9923 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
9924 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
9925 if test "${gcc_cv_as_hidden+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 if test $in_tree_gas = yes; then
9930 if test $in_tree_gas_is_elf = yes \
9931 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
9932 then gcc_cv_as_hidden
=yes
9934 elif test x
$gcc_cv_as != x
; then
9935 echo ' .hidden foobar
9936 foobar:' > conftest.s
9937 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }
9944 gcc_cv_as_hidden
=yes
9946 echo "configure: failed program was" >&5
9949 rm -f conftest.o conftest.s
9952 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
9953 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
9956 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
9957 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
9958 if test "${gcc_cv_ld_hidden+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 if test $in_tree_ld = yes ; then
9963 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 \
9964 && test $in_tree_ld_is_elf = yes; then
9965 gcc_cv_ld_hidden
=yes
9968 gcc_cv_ld_hidden
=yes
9969 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
9970 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
9971 ld_vers
=`echo $ld_ver | sed -n \
9972 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9973 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9974 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9975 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9976 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9977 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
9978 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'`
9979 if test 0"$ld_date" -lt 20020404; then
9980 if test -n "$ld_date"; then
9981 # If there was date string, but was earlier than 2002-04-04, fail
9983 elif test -z "$ld_vers"; then
9984 # If there was no date string nor ld version number, something is wrong
9987 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
9988 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
9989 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9990 test -z "$ld_vers_patch" && ld_vers_patch
=0
9991 if test "$ld_vers_major" -lt 2; then
9993 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
9994 gcc_cv_ld_hidden
="no"
9995 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10001 case "${target}" in
10002 hppa64
*-*-hpux* | ia64
*-*-hpux*)
10003 gcc_cv_ld_hidden
=yes
10006 gcc_cv_ld_hidden
=no
10012 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10013 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10014 libgcc_visibility
=no
10016 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10017 libgcc_visibility
=yes
10019 cat >>confdefs.h
<<\_ACEOF
10020 #define HAVE_GAS_HIDDEN 1
10025 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10026 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10027 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10028 if test "${gcc_cv_as_leb128+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 gcc_cv_as_leb128
=no
10032 if test $in_tree_gas = yes; then
10033 if test $in_tree_gas_is_elf = yes \
10034 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10035 then gcc_cv_as_leb128
=yes
10037 elif test x
$gcc_cv_as != x
; then
10044 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }
10051 # GAS versions before 2.11 do not support uleb128,
10052 # despite appearing to.
10053 # ??? There exists an elf-specific test that will crash
10054 # the assembler. Perhaps it's better to figure out whether
10055 # arbitrary sections are supported and try the test.
10056 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10057 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
10058 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10059 as_major
=`echo $as_ver | sed 's/\..*//'`
10060 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10061 if test $as_major -eq 2 && test $as_minor -lt 11
10063 else gcc_cv_as_leb128
=yes
10067 echo "configure: failed program was" >&5
10070 rm -f conftest.o conftest.s
10073 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10074 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10075 if test $gcc_cv_as_leb128 = yes; then
10077 cat >>confdefs.h
<<\_ACEOF
10078 #define HAVE_AS_LEB128 1
10083 # GAS versions up to and including 2.11.0 may mis-optimize
10085 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10086 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10087 if test "${gcc_cv_as_eh_frame+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 gcc_cv_as_eh_frame
=no
10091 if test $in_tree_gas = yes; then
10092 if test $in_tree_gas_is_elf = yes \
10093 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10094 then gcc_cv_as_eh_frame
=yes
10096 elif test x
$gcc_cv_as != x
; then
10103 .section .eh_frame,"aw",@progbits
10105 .4byte .LECIE1-.LSCIE1
10119 .4byte .LEFDE1-.LASFDE1
10121 .4byte .LASFDE1-__FRAME_BEGIN__
10128 .LEFDE1:' > conftest.s
10129 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }
10136 cat > conftest.lit
<<EOF
10137 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10138 0010 01000000 12000000 18000000 00000000 ................
10139 0020 08000000 04080000 0044 .........D
10141 cat > conftest.big
<<EOF
10142 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10143 0010 00000001 00000012 00000018 00000000 ................
10144 0020 00000008 04000000 0844 .........D
10146 # If the assembler didn't choke, and we can objdump,
10147 # and we got the correct data, then succeed.
10148 if test x
$gcc_cv_objdump != x \
10149 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
10150 |
tail -3 > conftest.got \
10151 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
10152 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
10154 gcc_cv_as_eh_frame
=yes
10155 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 gcc_cv_as_eh_frame
=buggy
10163 # Uh oh, what do we do now?
10164 gcc_cv_as_eh_frame
=no
10167 echo "configure: failed program was" >&5
10170 rm -f conftest.o conftest.s
10173 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10174 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10177 if test $gcc_cv_as_eh_frame = buggy
; then
10179 cat >>confdefs.h
<<\_ACEOF
10180 #define USE_AS_TRADITIONAL_FORMAT 1
10185 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10186 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10187 if test "${gcc_cv_as_shf_merge+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 gcc_cv_as_shf_merge
=no
10191 if test $in_tree_gas = yes; then
10192 if test $in_tree_gas_is_elf = yes \
10193 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10194 then gcc_cv_as_shf_merge
=yes
10196 elif test x
$gcc_cv_as != x
; then
10197 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10198 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }
10205 gcc_cv_as_shf_merge
=yes
10207 echo "configure: failed program was" >&5
10210 rm -f conftest.o conftest.s
10213 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10214 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10217 cat >>confdefs.h
<<_ACEOF
10218 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10222 # Thread-local storage - the check is heavily parametrized.
10230 .section ".tdata","awT",@progbits
10233 ldq $27,__tls_get_addr($29) !literal!1
10234 lda $16,foo($29) !tlsgd!1
10235 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10236 ldq $27,__tls_get_addr($29) !literal!2
10237 lda $16,foo($29) !tlsldm!2
10238 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10239 ldq $1,foo($29) !gotdtprel
10240 ldah $2,foo($29) !dtprelhi
10241 lda $3,foo($2) !dtprello
10242 lda $4,foo($29) !dtprel
10243 ldq $1,foo($29) !gottprel
10244 ldah $2,foo($29) !tprelhi
10245 lda $3,foo($2) !tprello
10246 lda $4,foo($29) !tprel'
10249 tls_as_opt
=--fatal-warnings
10253 .section ".tdata","awT",@progbits
10257 leal foo@TLSGD(,%ebx,1), %eax
10258 leal foo@TLSLDM(%ebx), %eax
10259 leal foo@DTPOFF(%eax), %edx
10260 movl foo@GOTTPOFF(%ebx), %eax
10261 subl foo@GOTTPOFF(%ebx), %eax
10262 addl foo@GOTNTPOFF(%ebx), %eax
10263 movl foo@INDNTPOFF, %eax
10264 movl $foo@TPOFF, %eax
10265 subl $foo@TPOFF, %eax
10266 leal foo@NTPOFF(%ecx), %eax'
10269 tls_as_opt
=--fatal-warnings
10273 .section ".tdata","awT",@progbits
10277 leaq foo@TLSGD(%rip), %rdi
10278 leaq foo@TLSLD(%rip), %rdi
10279 leaq foo@DTPOFF(%rax), %rdx
10280 movq foo@GOTTPOFF(%rip), %rax
10281 movq $foo@TPOFF, %rax'
10284 tls_as_opt
=--fatal-warnings
10288 .section ".tdata","awT",@progbits
10291 addl r16 = @ltoff(@dtpmod(foo#)), gp
10292 addl r17 = @ltoff(@dtprel(foo#)), gp
10293 addl r18 = @ltoff(@tprel(foo#)), gp
10294 addl r19 = @dtprel(foo#), gp
10295 adds r21 = @dtprel(foo#), r13
10296 movl r23 = @dtprel(foo#)
10297 addl r20 = @tprel(foo#), gp
10298 adds r22 = @tprel(foo#), r13
10299 movl r24 = @tprel(foo#)'
10302 tls_as_opt
=--fatal-warnings
10306 .section ".tdata","awT",@progbits
10314 addi 3,31,ld0@got@tlsgd
10316 addi 3,31,x1@got@tlsld
10319 addis 9,3,x2@dtprel@ha
10320 addi 9,9,x2@dtprel@l
10321 lwz 9,x3@got@tprel(31)
10324 addis 9,2,x2@tprel@ha
10325 addi 9,9,x2@tprel@l'
10328 tls_as_opt
="-a32 --fatal-warnings"
10332 .section ".tdata","awT",@progbits
10340 addi 3,2,ld0@got@tlsgd
10346 addi 3,2,x1@got@tlsld
10352 addis 9,3,x2@dtprel@ha
10353 addi 9,9,x2@dtprel@l
10356 ld 9,x3@got@dtprel(2)
10362 tls_as_opt
="-a64 --fatal-warnings"
10366 .section ".tdata","awT",@progbits
10373 .long foo@GOTNTPOFF
10374 .long foo@INDNTPOFF
10375 l %r1,foo@GOTNTPOFF(%r12)
10376 l %r1,0(%r1):tls_load:foo
10377 bas %r14,0(%r1,%r13):tls_gdcall:foo
10378 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10381 tls_as_opt
="-m31 --fatal-warnings"
10385 .section ".tdata","awT",@progbits
10392 .quad foo@GOTNTPOFF
10393 lg %r1,foo@GOTNTPOFF(%r12)
10394 larl %r1,foo@INDNTPOFF
10395 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10396 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10399 tls_as_opt
="-m64 -Aesame --fatal-warnings"
10401 sh-
*-* | sh
[34]-*-*)
10403 .section ".tdata","awT",@progbits
10413 tls_as_opt
=--fatal-warnings
10417 sparc
*-sun-solaris2.
*)
10424 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
10426 .section ".tdata",#alloc,#write,#tls
10429 sethi %tgd_hi22(foo), %o0
10430 add %o0, %tgd_lo10(foo), %o1
10431 add %l7, %o1, %o0, %tgd_add(foo)
10432 call __tls_get_addr, %tgd_call(foo)
10433 sethi %tldm_hi22(foo), %l1
10434 add %l1, %tldm_lo10(foo), %l2
10435 add %l7, %l2, %o0, %tldm_add(foo)
10436 call __tls_get_addr, %tldm_call(foo)
10437 sethi %tldo_hix22(foo), %l3
10438 xor %l3, %tldo_lox10(foo), %l4
10439 add %o0, %l4, %l5, %tldo_add(foo)
10440 sethi %tie_hi22(foo), %o3
10441 add %o3, %tie_lo10(foo), %o3
10442 ld [%l7 + %o3], %o2, %tie_ld(foo)
10443 add %g7, %o2, %o4, %tie_add(foo)
10444 sethi %tle_hix22(foo), %l1
10445 xor %l1, %tle_lox10(foo), %o5
10446 ld [%g7 + %o5], %o1'
10451 .section ".tdata","awT",@progbits
10454 sethi %tgd_hi22(foo), %o0
10455 add %o0, %tgd_lo10(foo), %o1
10456 add %l7, %o1, %o0, %tgd_add(foo)
10457 call __tls_get_addr, %tgd_call(foo)
10458 sethi %tldm_hi22(foo), %l1
10459 add %l1, %tldm_lo10(foo), %l2
10460 add %l7, %l2, %o0, %tldm_add(foo)
10461 call __tls_get_addr, %tldm_call(foo)
10462 sethi %tldo_hix22(foo), %l3
10463 xor %l3, %tldo_lox10(foo), %l4
10464 add %o0, %l4, %l5, %tldo_add(foo)
10465 sethi %tie_hi22(foo), %o3
10466 add %o3, %tie_lo10(foo), %o3
10467 ld [%l7 + %o3], %o2, %tie_ld(foo)
10468 add %g7, %o2, %o4, %tie_add(foo)
10469 sethi %tle_hix22(foo), %l1
10470 xor %l1, %tle_lox10(foo), %o5
10471 ld [%g7 + %o5], %o1'
10474 tls_as_opt
="-32 --fatal-warnings"
10478 if test -z "$tls_first_major"; then
10479 : # If we don't have a check, assume no support.
10481 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10482 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10483 if test "${gcc_cv_as_tls+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 if test $in_tree_gas = yes; then
10488 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10489 then gcc_cv_as_tls
=yes
10491 elif test x
$gcc_cv_as != x
; then
10492 echo "$conftest_s" > conftest.s
10493 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }
10502 echo "configure: failed program was" >&5
10505 rm -f conftest.o conftest.s
10508 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10509 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10510 if test $gcc_cv_as_tls = yes; then
10512 cat >>confdefs.h
<<\_ACEOF
10513 #define HAVE_AS_TLS 1
10519 # Target-specific assembler checks.
10522 # All TARGET_ABI_OSF targets.
10523 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
10524 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10525 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10526 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 gcc_cv_as_alpha_explicit_relocs
=no
10530 if test $in_tree_gas = yes; then
10531 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10532 then gcc_cv_as_alpha_explicit_relocs
=yes
10534 elif test x
$gcc_cv_as != x
; then
10535 echo ' .set nomacro
10537 extbl $3, $2, $3 !lituse_bytoff!1
10538 ldq $2, a($29) !literal!1
10539 ldq $4, b($29) !literal!2
10540 ldq_u $3, 0($2) !lituse_base!1
10541 ldq $27, f($29) !literal!5
10542 jsr $26, ($27), f !lituse_jsr!5
10543 ldah $29, 0($26) !gpdisp!3
10544 lda $0, c($29) !gprel
10545 ldah $1, d($29) !gprelhigh
10546 lda $1, d($1) !gprellow
10547 lda $29, 0($29) !gpdisp!3' > conftest.s
10548 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }
10555 gcc_cv_as_alpha_explicit_relocs
=yes
10557 echo "configure: failed program was" >&5
10560 rm -f conftest.o conftest.s
10563 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10564 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10565 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10567 cat >>confdefs.h
<<\_ACEOF
10568 #define HAVE_AS_EXPLICIT_RELOCS 1
10575 echo "$as_me:$LINENO: checking assembler for .register" >&5
10576 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10577 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 gcc_cv_as_sparc_register_op
=no
10581 if test x
$gcc_cv_as != x
; then
10582 echo '.register %g2, #scratch' > conftest.s
10583 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }
10590 gcc_cv_as_sparc_register_op
=yes
10592 echo "configure: failed program was" >&5
10595 rm -f conftest.o conftest.s
10598 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10599 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10600 if test $gcc_cv_as_sparc_register_op = yes; then
10602 cat >>confdefs.h
<<\_ACEOF
10603 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10608 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10609 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10610 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 gcc_cv_as_sparc_relax
=no
10614 if test x
$gcc_cv_as != x
; then
10615 echo '.text' > conftest.s
10616 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }
10623 gcc_cv_as_sparc_relax
=yes
10625 echo "configure: failed program was" >&5
10628 rm -f conftest.o conftest.s
10631 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10632 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10633 if test $gcc_cv_as_sparc_relax = yes; then
10635 cat >>confdefs.h
<<\_ACEOF
10636 #define HAVE_AS_RELAX_OPTION 1
10641 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10642 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10643 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 gcc_cv_as_sparc_ua_pcrel
=no
10647 if test x
$gcc_cv_as != x
; then
10654 .uaword %r_disp32(foo)' > conftest.s
10655 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }
10662 if test x
$gcc_cv_ld != x \
10663 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
10664 gcc_cv_as_sparc_ua_pcrel
=yes
10668 echo "configure: failed program was" >&5
10671 rm -f conftest.o conftest.s
10674 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10675 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10676 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10678 cat >>confdefs.h
<<\_ACEOF
10679 #define HAVE_AS_SPARC_UA_PCREL 1
10683 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10684 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10685 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 gcc_cv_as_sparc_ua_pcrel_hidden
=no
10689 if test x
$gcc_cv_as != x
; then
10693 .uaword %r_disp32(foo)
10694 .byte 0x32, 0x33, 0x34
10698 .skip 4' > conftest.s
10699 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }
10706 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
10707 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
10708 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
10709 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
10710 if $gcc_cv_objdump -R conftest
2> /dev
/null \
10711 |
grep 'DISP32' > /dev
/null
2>&1; then
10714 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
10719 echo "configure: failed program was" >&5
10722 rm -f conftest.o conftest.s
10725 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10726 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10727 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10729 cat >>confdefs.h
<<\_ACEOF
10730 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10735 fi # unaligned pcrel relocs
10737 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10738 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10739 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 gcc_cv_as_sparc_offsetable_lo10
=no
10743 if test x
$gcc_cv_as != x
; then
10745 or %g1, %lo(ab) + 12, %g1
10746 or %g1, %lo(ab + 12), %g1' > conftest.s
10747 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }
10754 if test x
$gcc_cv_objdump != x \
10755 && %gcc_cv_objdump
-s -j .text conftest.o
2> /dev
/null \
10756 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
10757 gcc_cv_as_offsetable_lo10
=yes
10760 echo "configure: failed program was" >&5
10763 rm -f conftest.o conftest.s
10766 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
10767 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
10768 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
10770 cat >>confdefs.h
<<\_ACEOF
10771 #define HAVE_AS_OFFSETABLE_LO10 1
10777 i
[34567]86-*-* | x86_64-
*-*)
10778 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
10779 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
10780 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 gcc_cv_as_ix86_filds_fists
=no
10784 if test $in_tree_gas = yes; then
10785 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10786 then gcc_cv_as_ix86_filds_fists
=yes
10788 elif test x
$gcc_cv_as != x
; then
10789 echo 'filds mem; fists mem' > conftest.s
10790 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }
10797 gcc_cv_as_ix86_filds_fists
=yes
10799 echo "configure: failed program was" >&5
10802 rm -f conftest.o conftest.s
10805 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
10806 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
10807 if test $gcc_cv_as_ix86_filds_fists = yes; then
10809 cat >>confdefs.h
<<\_ACEOF
10810 #define HAVE_GAS_FILDS_FISTS 1
10815 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
10816 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
10817 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 gcc_cv_as_ix86_cmov_sun_syntax
=no
10821 if test x
$gcc_cv_as != x
; then
10822 echo 'cmovl.l %edx, %eax' > conftest.s
10823 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }
10830 gcc_cv_as_ix86_cmov_sun_syntax
=yes
10832 echo "configure: failed program was" >&5
10835 rm -f conftest.o conftest.s
10838 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
10839 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
10840 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
10842 cat >>confdefs.h
<<\_ACEOF
10843 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
10848 # This one is used unconditionally by i386.[ch]; it is to be defined
10849 # to 1 if the feature is present, 0 otherwise.
10850 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
10851 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
10852 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 gcc_cv_as_ix86_gotoff_in_data
=no
10856 if test $in_tree_gas = yes; then
10857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10858 then gcc_cv_as_ix86_gotoff_in_data
=yes
10860 elif test x
$gcc_cv_as != x
; then
10865 .long .L0@GOTOFF' > conftest.s
10866 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; }
10873 gcc_cv_as_ix86_gotoff_in_data
=yes
10875 echo "configure: failed program was" >&5
10878 rm -f conftest.o conftest.s
10881 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
10882 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
10885 cat >>confdefs.h
<<_ACEOF
10886 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
10892 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
10893 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
10894 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
10898 if test $in_tree_gas = yes; then
10899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10900 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
10902 elif test x
$gcc_cv_as != x
; then
10904 addl r15 = @ltoffx(x#), gp
10906 ld8.mov r16 = [r15], x#' > conftest.s
10907 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }
10914 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
10916 echo "configure: failed program was" >&5
10919 rm -f conftest.o conftest.s
10922 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
10923 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
10924 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
10926 cat >>confdefs.h
<<\_ACEOF
10927 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
10936 *-*-aix*) conftest_s
=' .csect .text[PR]
10938 *-*-darwin*) conftest_s
=' .text
10940 *) conftest_s
=' .text
10944 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
10945 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
10946 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 gcc_cv_as_powerpc_mfcrf
=no
10950 if test $in_tree_gas = yes; then
10951 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10952 then gcc_cv_as_powerpc_mfcrf
=yes
10954 elif test x
$gcc_cv_as != x
; then
10955 echo "$conftest_s" > conftest.s
10956 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }
10963 gcc_cv_as_powerpc_mfcrf
=yes
10965 echo "configure: failed program was" >&5
10968 rm -f conftest.o conftest.s
10971 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
10972 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
10973 if test $gcc_cv_as_powerpc_mfcrf = yes; then
10975 cat >>confdefs.h
<<\_ACEOF
10976 #define HAVE_AS_MFCRF 1
10983 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10984 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10985 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 gcc_cv_as_mips_explicit_relocs
=no
10989 if test $in_tree_gas = yes; then
10990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10991 then gcc_cv_as_mips_explicit_relocs
=yes
10993 elif test x
$gcc_cv_as != x
; then
10994 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
10995 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }
11002 gcc_cv_as_mips_explicit_relocs
=yes
11004 echo "configure: failed program was" >&5
11007 rm -f conftest.o conftest.s
11010 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11011 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11012 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11013 if test x
$target_cpu_default = x
11014 then target_cpu_default
=MASK_EXPLICIT_RELOCS
11015 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11021 # ??? Not all targets support dwarf2 debug_line, even within a version
11022 # of gas. Moreover, we need to emit a valid instruction to trigger any
11023 # info to the output file. So, as supported targets are added to gas 2.11,
11024 # add some instruction here to (also) show we expect this might work.
11025 # ??? Once 2.11 is released, probably need to add first known working
11026 # version to the per-target configury.
11028 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
11029 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
11030 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
11033 ia64
*-*-* | s390
*-*-*)
11040 if test x
"$insn" != x
; then
11042 .file 1 \"conftest.s\"
11045 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11046 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11047 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 gcc_cv_as_dwarf2_debug_line
=no
11051 if test $in_tree_gas = yes; then
11052 if test $in_tree_gas_is_elf = yes \
11053 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11054 then gcc_cv_as_dwarf2_debug_line
=yes
11056 elif test x
$gcc_cv_as != x
; then
11057 echo "$conftest_s" > conftest.s
11058 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }
11065 # ??? This fails with non-gnu grep. Maybe use objdump?
11066 if grep debug_line conftest.o
> /dev
/null
2>&1; then
11067 gcc_cv_as_dwarf2_debug_line
=yes
11070 echo "configure: failed program was" >&5
11073 rm -f conftest.o conftest.s
11076 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11077 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11080 # The .debug_line file table must be in the exact order that
11081 # we specified the files, since these indices are also used
11082 # by DW_AT_decl_file. Approximate this test by testing if
11083 # the assembler bitches if the same index is assigned twice.
11084 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11085 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11086 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 gcc_cv_as_dwarf2_file_buggy
=no
11090 if test x
$gcc_cv_as != x
; then
11091 echo ' .file 1 "foo.s"
11092 .file 1 "bar.s"' > conftest.s
11093 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }
11100 gcc_cv_as_dwarf2_file_buggy
=yes
11102 echo "configure: failed program was" >&5
11105 rm -f conftest.o conftest.s
11108 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11109 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11112 if test $gcc_cv_as_dwarf2_debug_line = yes \
11113 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
11115 cat >>confdefs.h
<<\_ACEOF
11116 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11121 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11122 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11123 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 gcc_cv_as_gdwarf2_flag
=no
11127 if test $in_tree_gas = yes; then
11128 if test $in_tree_gas_is_elf = yes \
11129 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11130 then gcc_cv_as_gdwarf2_flag
=yes
11132 elif test x
$gcc_cv_as != x
; then
11133 echo "$insn" > conftest.s
11134 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136 (eval $ac_try) 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }
11141 gcc_cv_as_gdwarf2_flag
=yes
11143 echo "configure: failed program was" >&5
11146 rm -f conftest.o conftest.s
11149 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11150 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11151 if test $gcc_cv_as_gdwarf2_flag = yes; then
11153 cat >>confdefs.h
<<\_ACEOF
11154 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11159 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11160 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11161 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 gcc_cv_as_gstabs_flag
=no
11165 if test $in_tree_gas = yes; then
11166 if test $in_tree_gas_is_elf = yes \
11167 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11168 then gcc_cv_as_gstabs_flag
=yes
11170 elif test x
$gcc_cv_as != x
; then
11171 echo "$insn" > conftest.s
11172 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }
11179 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11180 # and warns about it, but still exits successfully. So check for
11182 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }
11189 else gcc_cv_as_gstabs_flag
=yes
11192 echo "configure: failed program was" >&5
11195 rm -f conftest.o conftest.s
11198 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11199 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11200 if test $gcc_cv_as_gstabs_flag = yes; then
11202 cat >>confdefs.h
<<\_ACEOF
11203 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11209 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11210 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11211 gcc_cv_ld_ro_rw_mix
=unknown
11212 if test $in_tree_ld = yes ; then
11213 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 \
11214 && test $in_tree_ld_is_elf = yes; then
11215 gcc_cv_ld_ro_rw_mix
=read-write
11217 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
11218 echo '.section myfoosect, "a"' > conftest1.s
11219 echo '.section myfoosect, "aw"' > conftest2.s
11220 echo '.byte 1' >> conftest2.s
11221 echo '.section myfoosect, "a"' > conftest3.s
11222 echo '.byte 0' >> conftest3.s
11223 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
11224 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
11225 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
11226 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11227 conftest2.o conftest3.o
> /dev
/null
2>&1; then
11228 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
11229 | sed -e '/myfoosect/!d' -e N`
11230 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
11231 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
11232 gcc_cv_ld_ro_rw_mix
=read-only
11234 gcc_cv_ld_ro_rw_mix
=read-write
11238 rm -f conftest.
* conftest
[123].
*
11240 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
11242 cat >>confdefs.h
<<\_ACEOF
11243 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11247 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11248 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11250 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11251 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11252 gcc_cv_ld_eh_frame_hdr
=no
11253 if test $in_tree_ld = yes ; then
11254 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 \
11255 && test $in_tree_ld_is_elf = yes; then
11256 gcc_cv_ld_eh_frame_hdr
=yes
11258 elif test x
$gcc_cv_ld != x
; then
11259 # Check if linker supports --eh-frame-hdr option
11260 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
11261 gcc_cv_ld_eh_frame_hdr
=yes
11264 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
11266 cat >>confdefs.h
<<\_ACEOF
11267 #define HAVE_LD_EH_FRAME_HDR 1
11271 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11272 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11274 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11275 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11277 if test $in_tree_ld = yes ; then
11278 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 \
11279 && test $in_tree_ld_is_elf = yes; then
11282 elif test x
$gcc_cv_ld != x
; then
11283 # Check if linker supports -pie option
11284 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
11288 if test x
"$gcc_cv_ld_pie" = xyes
; then
11290 cat >>confdefs.h
<<\_ACEOF
11291 #define HAVE_LD_PIE 1
11295 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11296 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11302 if test x
$with_sysroot = x
&& test x
$host = x
$target \
11303 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11305 cat >>confdefs.h
<<_ACEOF
11306 #define PREFIX_INCLUDE_DIR "$prefix/include"
11311 # Figure out what language subdirectories are present.
11312 # Look if the user specified --enable-languages="..."; if not, use
11313 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11314 # go away some day.
11315 # NB: embedded tabs in this IF block -- do not untabify
11316 if test x
"${enable_languages+set}" != xset
; then
11317 if test x
"${LANGUAGES+set}" = xset
; then
11318 enable_languages
="${LANGUAGES}"
11319 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11320 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11323 enable_languages
=all
11326 if test x
"${enable_languages}" = x \
11327 ||
test x
"${enable_languages}" = xyes
;
11329 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11330 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11331 { (exit 1); exit 1; }; }
11334 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11336 # First scan to see if an enabled language requires some other language.
11337 # We assume that a given config-lang.in will list all the language
11338 # front ends it requires, even if some are required indirectly.
11339 for lang
in ${srcdir}/*/config-lang.
in
11342 # The odd quoting in the next line works around
11343 # an apparent bug in bash 1.12 on linux.
11344 ${srcdir}/[*]/config-lang.
in)
11347 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11348 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11349 for other
in $this_lang_requires
11351 case ,${enable_languages}, in
11357 enable_languages
="$enable_languages,$other"
11365 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11368 for lang
in ${srcdir}/*/config-lang.
in
11371 # The odd quoting in the next line works around
11372 # an apparent bug in bash 1.12 on linux.
11373 ${srcdir}/[*]/config-lang.
in) ;;
11375 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11376 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11377 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11378 if test "x$lang_alias" = x
11380 echo "$lang doesn't set \$language." 1>&2
11383 case ${build_by_default},${enable_languages}, in
11384 *,$lang_alias,*) add_this_lang
=yes ;;
11385 no
,*) add_this_lang
=no
;;
11386 *,all
,*) add_this_lang
=yes ;;
11387 *) add_this_lang
=no
;;
11389 found_languages
="${found_languages} ${lang_alias}"
11390 if test x
"${add_this_lang}" = xyes
; then
11392 ${srcdir}/ada
/config-lang.
in)
11393 if test x
$have_gnat = xyes
; then
11394 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11398 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11407 for expected_language
in ${expected_languages} ..
11409 if test "${expected_language}" != ..
; then
11410 missing_language
="${expected_language}"
11411 if test "${expected_language}" = "c" \
11412 ||
test "${expected_language}" = "all"; then
11415 for found_language
in ${found_languages} ..
11417 if test "${found_language}" != ..
; then
11418 if test "${expected_language}" = "${found_language}"; then
11423 if test "x${missing_language}" != x
; then
11424 missing_languages
="${missing_languages} ${missing_language}"
11429 if test "x$missing_languages" != x
; then
11430 { { echo "$as_me:$LINENO: error:
11431 The following requested languages were not found:${missing_languages}
11432 The following languages were available: c${found_languages}" >&5
11433 echo "$as_me: error:
11434 The following requested languages were not found:${missing_languages}
11435 The following languages were available: c${found_languages}" >&2;}
11436 { (exit 1); exit 1; }; }
11439 # Find out what GC implementation we want, or may, use.
11441 # Check whether --with-gc or --without-gc was given.
11442 if test "${with_gc+set}" = set; then
11449 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11450 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11451 { (exit 1); exit 1; }; }
11458 echo "Using $GGC for garbage collection."
11460 # Use the system's zlib library.
11462 zlibinc
="-I\$(srcdir)/../zlib"
11464 # Check whether --with-system-zlib or --without-system-zlib was given.
11465 if test "${with_system_zlib+set}" = set; then
11466 withval
="$with_system_zlib"
11475 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11476 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11477 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11478 if test "${enable_maintainer_mode+set}" = set; then
11479 enableval
="$enable_maintainer_mode"
11480 maintainer_mode
=$enableval
11485 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11486 echo "${ECHO_T}$maintainer_mode" >&6
11488 if test "$maintainer_mode" = "yes"; then
11498 # Make empty files to contain the specs and options for each language.
11499 # Then add #include lines to for a compiler that has specs and/or options.
11504 for subdir
in .
$subdirs
11506 if test -f $srcdir/$subdir/lang.opt
; then
11507 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
11509 if test -f $srcdir/$subdir/lang-specs.h
; then
11510 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11512 if test -f $srcdir/$subdir/$subdir-tree.def
; then
11513 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11517 # These (without "all_") are set in each config-lang.in.
11518 # `language' must be a single word so is spelled singularly.
11520 all_boot_languages
=
11523 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11524 # List of language makefile fragments.
11525 all_lang_makefrags
=
11526 # List of language subdirectory makefiles. Deprecated.
11527 all_lang_makefiles
=
11528 # Files for gengtype
11529 all_gtfiles
="$target_gtfiles"
11530 # Files for gengtype with language
11531 all_gtfiles_files_langs
=
11532 all_gtfiles_files_files
=
11534 # Add the language fragments.
11535 # Languages are added via two mechanisms. Some information must be
11536 # recorded in makefile variables, these are defined in config-lang.in.
11537 # We accumulate them and plug them into the main Makefile.
11538 # The other mechanism is a set of hooks for each of the main targets
11539 # like `clean', `install', etc.
11541 language_hooks
="Make-hooks"
11551 .
${srcdir}/$s/config-lang.
in
11552 if test "x$language" = x
11554 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11557 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11558 if test -f ${srcdir}/$s/Makefile.
in
11559 then all_lang_makefiles
="$s/Makefile"
11561 all_languages
="$all_languages $language"
11562 if test "x$boot_language" = xyes
11564 all_boot_languages
="$all_boot_languages $language"
11566 all_compilers
="$all_compilers $compilers"
11567 all_stagestuff
="$all_stagestuff $stagestuff"
11568 all_outputs
="$all_outputs $outputs"
11569 all_gtfiles
="$all_gtfiles $gtfiles"
11572 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11573 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11577 # Pick up gtfiles for c
11580 .
${srcdir}/c-config-lang.
in
11581 all_gtfiles
="$all_gtfiles $gtfiles"
11584 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11585 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11589 for language
in $all_languages
11591 check_languages
="$check_languages check-$language"
11594 # We link each language in with a set of hooks, reached indirectly via
11599 target_list
="all.build all.cross start.encap rest.encap tags \
11600 install-normal install-common install-man \
11601 uninstall info man srcextra srcman srcinfo \
11602 mostlyclean clean distclean maintainer-clean \
11603 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11604 for t
in $target_list
11607 for lang
in $all_languages
11611 echo "lang.$t: $x" >> Make-hooks
11620 echo "dir ." > .gdbinit
11621 echo "dir ${srcdir}" >> .gdbinit
11622 if test x
$gdb_needs_out_file_path = xyes
11624 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11626 if test "x$subdirs" != x
; then
11629 echo "dir ${srcdir}/$s" >> .gdbinit
11632 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11634 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11635 # absolute path for gcc_tooldir based on inserting the number of up-directory
11636 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11637 # $(libsubdir)/@(unlibsubdir) based path.
11638 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11639 # make and thus we'd get different behavior depending on where we built the
11641 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
11642 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11644 # An explanation of the sed strings:
11645 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11646 # -e 's|/$||' match a trailing forward slash and eliminates it
11647 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11648 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11650 # (*) Note this pattern overwrites the first character of the string
11651 # with a forward slash if one is not already present. This is not a
11652 # problem because the exact names of the sub-directories concerned is
11653 # unimportant, just the number of them matters.
11655 # The practical upshot of these patterns is like this:
11657 # prefix exec_prefix result
11658 # ------ ----------- ------
11659 # /foo /foo/bar ../
11660 # /foo/ /foo/bar ../
11661 # /foo /foo/bar/ ../
11662 # /foo/ /foo/bar/ ../
11663 # /foo /foo/bar/ugg ../../
11666 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11671 # Find a directory in which to install a shared libgcc.
11673 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11674 if test "${enable_version_specific_runtime_libs+set}" = set; then
11675 enableval
="$enable_version_specific_runtime_libs"
11680 # Check whether --with-slibdir or --without-slibdir was given.
11681 if test "${with_slibdir+set}" = set; then
11682 withval
="$with_slibdir"
11683 slibdir
="$with_slibdir"
11685 if test "${enable_version_specific_runtime_libs+set}" = set; then
11686 slibdir
='$(libsubdir)'
11687 elif test "$host" != "$target"; then
11688 slibdir
='$(build_tooldir)/lib'
11690 slibdir
='$(libdir)'
11695 objdir
=`${PWDCMD-pwd}`
11698 # Substitute configuration variables
11767 # If it doesn't already exist, create document directory
11768 echo "checking for the document directory." 1>&2
11769 if test -d doc
; then
11776 if test x
${build} = x
${host} ; then
11777 if test x
${host} = x
${target} ; then
11778 echo "Links are now set up to build a native compiler for ${target}." 1>&2
11780 echo "Links are now set up to build a cross-compiler" 1>&2
11781 echo " from ${host} to ${target}." 1>&2
11784 if test x
${host} = x
${target} ; then
11785 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
11786 echo " for ${target}." 1>&2
11788 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
11789 echo " from ${host} to ${target}." 1>&2
11793 # Configure the subdirectories
11794 # AC_CONFIG_SUBDIRS($subdirs)
11796 # Create the Makefile
11797 # and configure language subdirectories
11798 ac_config_files
="$ac_config_files $all_outputs"
11801 ac_config_commands
="$ac_config_commands default"
11803 cat >confcache
<<\_ACEOF
11804 # This file is a shell script that caches the results of configure
11805 # tests run on this system so they can be shared between configure
11806 # scripts and configure runs, see configure's option --config-cache.
11807 # It is not useful on other systems. If it contains results you don't
11808 # want to keep, you may remove or edit it.
11810 # config.status only pays attention to the cache file if you give it
11811 # the --recheck option to rerun configure.
11813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11815 # following values.
11819 # The following way of writing the cache mishandles newlines in values,
11820 # but we know of no workaround that is simple, portable, and efficient.
11821 # So, don't put newlines in cache variables' values.
11822 # Ultrix sh set writes to stderr and can't be redirected directly,
11823 # and sets the high bit in the cache file unless we assign to the vars.
11826 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11828 # `set' does not quote correctly, so add quotes (double-quote
11829 # substitution turns \\\\ into \\, and sed turns \\ into \).
11832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11835 # `set' quotes correctly as required by POSIX, so do not add quotes.
11837 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11846 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11848 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
11849 if test -w $cache_file; then
11850 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11851 cat confcache
>$cache_file
11853 echo "not updating unwritable cache $cache_file"
11858 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11859 # Let make expand exec_prefix.
11860 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11862 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11863 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11864 # trailing colons and then remove the whole line if VPATH becomes empty
11865 # (actually we leave an empty line to preserve line numbers).
11866 if test "x$srcdir" = x.
; then
11867 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11868 s/:*\$(srcdir):*/:/;
11869 s/:*\${srcdir}:*/:/;
11871 s/^\([^=]*=[ ]*\):*/\1/;
11877 DEFS
=-DHAVE_CONFIG_H
11881 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11882 # 1. Remove the extension, and $U if already installed.
11883 ac_i
=`echo "$ac_i" |
11884 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11886 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
11887 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
11889 LIBOBJS
=$ac_libobjs
11891 LTLIBOBJS
=$ac_ltlibobjs
11895 : ${CONFIG_STATUS=./config.status}
11896 ac_clean_files_save
=$ac_clean_files
11897 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11898 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11899 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11900 cat >$CONFIG_STATUS <<_ACEOF
11902 # Generated by $as_me.
11903 # Run this file to recreate the current configuration.
11904 # Compiler output produced by configure, useful for debugging
11905 # configure, is in config.log if it exists.
11908 ac_cs_recheck=false
11910 SHELL=\${CONFIG_SHELL-$SHELL}
11913 cat >>$CONFIG_STATUS <<\_ACEOF
11914 ## --------------------- ##
11915 ## M4sh Initialization. ##
11916 ## --------------------- ##
11918 # Be Bourne compatible
11919 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11922 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11923 # is contrary to our usage. Disable this feature.
11924 alias -g '${1+"$@"}'='"$@"'
11925 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
11929 # Support unset when possible.
11930 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
11937 # Work around bugs in pre-3.0 UWIN ksh.
11938 $as_unset ENV MAIL MAILPATH
11945 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11946 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11947 LC_TELEPHONE LC_TIME
11949 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11950 eval $as_var=C
; export $as_var
11956 # Required to use basename.
11957 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11963 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
11964 as_basename
=basename
11970 # Name of the executable.
11971 as_me
=`$as_basename "$0" ||
11972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11973 X"$0" : 'X\(//\)$' \| \
11974 X"$0" : 'X\(/\)$' \| \
11975 . : '\(.\)' 2>/dev/null ||
11977 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11978 /^X\/\(\/\/\)$/{ s//\1/; q; }
11979 /^X\/\(\/\).*/{ s//\1/; q; }
11983 # PATH needs CR, and LINENO needs CR and PATH.
11984 # Avoid depending upon Character Ranges.
11985 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11986 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11987 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11988 as_cr_digits
='0123456789'
11989 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11991 # The user is always right.
11992 if test "${PATH_SEPARATOR+set}" != set; then
11993 echo "#! /bin/sh" >conf$$.sh
11994 echo "exit 0" >>conf$$.sh
11996 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12005 as_lineno_1
=$LINENO
12006 as_lineno_2
=$LINENO
12007 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
12008 test "x$as_lineno_1" != "x$as_lineno_2" &&
12009 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
12010 # Find who we are. Look in the path if we contain no path at all
12013 *[\\/]* ) as_myself
=$0 ;;
12014 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12015 for as_dir
in $PATH
12018 test -z "$as_dir" && as_dir
=.
12019 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12024 # We did not find ourselves, most probably we were run as `sh COMMAND'
12025 # in which case we are not to be found in the path.
12026 if test "x$as_myself" = x
; then
12029 if test ! -f "$as_myself"; then
12030 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12031 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12032 { (exit 1); exit 1; }; }
12034 case $CONFIG_SHELL in
12036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12037 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
12040 test -z "$as_dir" && as_dir
=.
12041 for as_base
in sh bash ksh sh5
; do
12044 if ("$as_dir/$as_base" -c '
12045 as_lineno_1=$LINENO
12046 as_lineno_2=$LINENO
12047 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12048 test "x$as_lineno_1" != "x$as_lineno_2" &&
12049 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
12050 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
12051 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
12052 CONFIG_SHELL
=$as_dir/$as_base
12053 export CONFIG_SHELL
12054 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12062 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12063 # uniformly replaced by the line number. The first 'sed' inserts a
12064 # line-number line before each line; the second 'sed' does the real
12065 # work. The second script uses 'N' to pair each line-number line
12066 # with the numbered line, and appends trailing '-' during
12067 # substitution so that $LINENO is not a special case at line end.
12068 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12069 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12070 sed '=' <$as_myself |
12075 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12078 s,^['$as_cr_digits']*\n,,
12079 ' >$as_me.lineno
&&
12080 chmod +x
$as_me.lineno ||
12081 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12082 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12083 { (exit 1); exit 1; }; }
12085 # Don't try to exec as it changes $[0], causing all sort of problems
12086 # (the dirname of $[0] is not the place where we might find the
12087 # original and so on. Autoconf is especially sensible to this).
12089 # Exit status is that of the last command.
12094 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12095 *c
*,-n*) ECHO_N
= ECHO_C
='
12097 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12098 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12101 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12107 rm -f conf$$ conf$$.exe conf$$.
file
12109 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12110 # We could just check for DJGPP; but this test a) works b) is more generic
12111 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12112 if test -f conf$$.exe
; then
12113 # Don't use ln at all; we don't have any links
12118 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12123 rm -f conf$$ conf$$.exe conf$$.
file
12125 if mkdir
-p .
2>/dev
/null
; then
12131 as_executable_p
="test -f"
12133 # Sed expression to map a string onto a valid CPP name.
12134 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12136 # Sed expression to map a string onto a valid variable name.
12137 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12141 # We need space, tab and new line, in precisely that order.
12151 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12152 # report actual input values of CONFIG_FILES etc. instead of their
12153 # values after options handling. Logging --version etc. is OK.
12157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12158 ## Running $as_me. ##
12163 This file was extended by $as_me, which was
12164 generated by GNU Autoconf 2.57. Invocation command line was
12166 CONFIG_FILES = $CONFIG_FILES
12167 CONFIG_HEADERS = $CONFIG_HEADERS
12168 CONFIG_LINKS = $CONFIG_LINKS
12169 CONFIG_COMMANDS = $CONFIG_COMMANDS
12173 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12177 # Files that config.status was made for.
12178 if test -n "$ac_config_files"; then
12179 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12182 if test -n "$ac_config_headers"; then
12183 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12186 if test -n "$ac_config_links"; then
12187 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12190 if test -n "$ac_config_commands"; then
12191 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12194 cat >>$CONFIG_STATUS <<\_ACEOF
12197 \`$as_me' instantiates files from templates according to the
12198 current configuration.
12200 Usage: $0 [OPTIONS] [FILE]...
12202 -h, --help print this help, then exit
12203 -V, --version print version number, then exit
12204 -q, --quiet do not print progress messages
12205 -d, --debug don't remove temporary files
12206 --recheck update $as_me by reconfiguring in the same conditions
12207 --file=FILE[:TEMPLATE]
12208 instantiate the configuration file FILE
12209 --header=FILE[:TEMPLATE]
12210 instantiate the configuration header FILE
12212 Configuration files:
12215 Configuration headers:
12218 Configuration commands:
12221 Report bugs to <bug-autoconf@gnu.org>."
12224 cat >>$CONFIG_STATUS <<_ACEOF
12227 configured by $0, generated by GNU Autoconf 2.57,
12228 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12230 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12231 Free Software Foundation, Inc.
12232 This config.status script is free software; the Free Software Foundation
12233 gives unlimited permission to copy, distribute and modify it."
12237 cat >>$CONFIG_STATUS <<\_ACEOF
12238 # If no file are specified by the user, then we need to provide default
12239 # value. By we need to know if files were specified by the user.
12245 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12246 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12254 *) # This is not an option, so the user has probably given explicit
12257 ac_need_defaults
=false
;;
12261 # Handling of the options.
12263 cat >>$CONFIG_STATUS <<\_ACEOF
12264 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12266 --version |
--vers* |
-V )
12267 echo "$ac_cs_version"; exit 0 ;;
12269 # Conflict between --help and --header
12270 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12271 Try \`$0 --help' for more information." >&5
12272 echo "$as_me: error: ambiguous option: $1
12273 Try \`$0 --help' for more information." >&2;}
12274 { (exit 1); exit 1; }; };;
12275 --help |
--hel |
-h )
12276 echo "$ac_cs_usage"; exit 0 ;;
12277 --debug |
--d* |
-d )
12279 --file |
--fil |
--fi |
--f )
12281 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12282 ac_need_defaults
=false
;;
12283 --header |
--heade |
--head |
--hea )
12285 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12286 ac_need_defaults
=false
;;
12287 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12288 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12291 # This is an error.
12292 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12293 Try \`$0 --help' for more information." >&5
12294 echo "$as_me: error: unrecognized option: $1
12295 Try \`$0 --help' for more information." >&2;}
12296 { (exit 1); exit 1; }; } ;;
12298 *) ac_config_targets
="$ac_config_targets $1" ;;
12304 ac_configure_extra_args
=
12306 if $ac_cs_silent; then
12308 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12312 cat >>$CONFIG_STATUS <<_ACEOF
12313 if \$ac_cs_recheck; then
12314 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12315 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12320 cat >>$CONFIG_STATUS <<_ACEOF
12322 # INIT-COMMANDS section.
12326 symbolic_link='$symbolic_link'
12333 cat >>$CONFIG_STATUS <<\_ACEOF
12334 for ac_config_target
in $ac_config_targets
12336 case "$ac_config_target" in
12337 # Handling of arguments.
12338 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
12339 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12340 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
12341 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12342 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12343 { (exit 1); exit 1; }; };;
12347 # If the user did not use the arguments to specify the items to instantiate,
12348 # then the envvar interface is used. Set only those that are not.
12349 # We use the long form for the default assignment because of an extremely
12350 # bizarre bug on SunOS 4.1.3.
12351 if $ac_need_defaults; then
12352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12357 # Have a temporary directory for convenience. Make it in the build tree
12358 # simply because there is no reason to put it here, and in addition,
12359 # creating and moving files from /tmp can sometimes cause problems.
12360 # Create a temporary directory, and hook for its removal unless debugging.
12363 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12364 trap '{ (exit 1); exit 1; }' 1 2 13 15
12367 # Create a (secure) tmp directory for tmp files.
12370 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12371 test -n "$tmp" && test -d "$tmp"
12374 tmp
=.
/confstat$$
-$RANDOM
12375 (umask 077 && mkdir
$tmp)
12378 echo "$me: cannot create a temporary directory in ." >&2
12379 { (exit 1); exit 1; }
12384 cat >>$CONFIG_STATUS <<_ACEOF
12387 # CONFIG_FILES section.
12390 # No need to generate the scripts if there are no CONFIG_FILES.
12391 # This happens for instance when ./config.status config.h
12392 if test -n "\$CONFIG_FILES"; then
12393 # Protect against being on the right side of a sed subst in config.status.
12394 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12395 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12396 s,@SHELL@,$SHELL,;t t
12397 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12398 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12399 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12400 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12401 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12402 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12403 s,@exec_prefix@,$exec_prefix,;t t
12404 s,@prefix@,$prefix,;t t
12405 s,@program_transform_name@,$program_transform_name,;t t
12406 s,@bindir@,$bindir,;t t
12407 s,@sbindir@,$sbindir,;t t
12408 s,@libexecdir@,$libexecdir,;t t
12409 s,@datadir@,$datadir,;t t
12410 s,@sysconfdir@,$sysconfdir,;t t
12411 s,@sharedstatedir@,$sharedstatedir,;t t
12412 s,@localstatedir@,$localstatedir,;t t
12413 s,@libdir@,$libdir,;t t
12414 s,@includedir@,$includedir,;t t
12415 s,@oldincludedir@,$oldincludedir,;t t
12416 s,@infodir@,$infodir,;t t
12417 s,@mandir@,$mandir,;t t
12418 s,@build_alias@,$build_alias,;t t
12419 s,@host_alias@,$host_alias,;t t
12420 s,@target_alias@,$target_alias,;t t
12421 s,@DEFS@,$DEFS,;t t
12422 s,@ECHO_C@,$ECHO_C,;t t
12423 s,@ECHO_N@,$ECHO_N,;t t
12424 s,@ECHO_T@,$ECHO_T,;t t
12425 s,@LIBS@,$LIBS,;t t
12426 s,@build@,$build,;t t
12427 s,@build_cpu@,$build_cpu,;t t
12428 s,@build_vendor@,$build_vendor,;t t
12429 s,@build_os@,$build_os,;t t
12430 s,@host@,$host,;t t
12431 s,@host_cpu@,$host_cpu,;t t
12432 s,@host_vendor@,$host_vendor,;t t
12433 s,@host_os@,$host_os,;t t
12434 s,@target@,$target,;t t
12435 s,@target_cpu@,$target_cpu,;t t
12436 s,@target_vendor@,$target_vendor,;t t
12437 s,@target_os@,$target_os,;t t
12438 s,@build_subdir@,$build_subdir,;t t
12439 s,@host_subdir@,$host_subdir,;t t
12440 s,@target_subdir@,$target_subdir,;t t
12441 s,@GENINSRC@,$GENINSRC,;t t
12443 s,@CFLAGS@,$CFLAGS,;t t
12444 s,@LDFLAGS@,$LDFLAGS,;t t
12445 s,@CPPFLAGS@,$CPPFLAGS,;t t
12446 s,@ac_ct_CC@,$ac_ct_CC,;t t
12447 s,@EXEEXT@,$EXEEXT,;t t
12448 s,@OBJEXT@,$OBJEXT,;t t
12449 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12450 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12452 s,@GNATBIND@,$GNATBIND,;t t
12453 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12454 s,@strict1_warn@,$strict1_warn,;t t
12455 s,@warn_cflags@,$warn_cflags,;t t
12456 s,@WERROR@,$WERROR,;t t
12457 s,@nocommon_flag@,$nocommon_flag,;t t
12458 s,@EGREP@,$EGREP,;t t
12459 s,@valgrind_path@,$valgrind_path,;t t
12460 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12461 s,@valgrind_command@,$valgrind_command,;t t
12462 s,@coverage_flags@,$coverage_flags,;t t
12463 s,@enable_multilib@,$enable_multilib,;t t
12464 s,@enable_shared@,$enable_shared,;t t
12465 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12466 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12467 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12468 s,@onestep@,$onestep,;t t
12469 s,@SET_MAKE@,$SET_MAKE,;t t
12472 s,@LN_S@,$LN_S,;t t
12473 s,@RANLIB@,$RANLIB,;t t
12474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12475 s,@INSTALL@,$INSTALL,;t t
12476 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12477 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12478 s,@make_compare_target@,$make_compare_target,;t t
12479 s,@have_mktemp_command@,$have_mktemp_command,;t t
12480 s,@MAKEINFO@,$MAKEINFO,;t t
12481 s,@BUILD_INFO@,$BUILD_INFO,;t t
12482 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12483 s,@FLEX@,$FLEX,;t t
12484 s,@BISON@,$BISON,;t t
12485 s,@stage1_cflags@,$stage1_cflags,;t t
12486 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12487 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12488 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12489 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12490 s,@LIBICONV@,$LIBICONV,;t t
12491 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12492 s,@manext@,$manext,;t t
12493 s,@objext@,$objext,;t t
12494 s,@gthread_flags@,$gthread_flags,;t t
12495 s,@extra_modes_file@,$extra_modes_file,;t t
12496 s,@FORBUILD@,$FORBUILD,;t t
12497 s,@PACKAGE@,$PACKAGE,;t t
12498 s,@VERSION@,$VERSION,;t t
12499 s,@USE_NLS@,$USE_NLS,;t t
12500 s,@LIBINTL@,$LIBINTL,;t t
12501 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12502 s,@INCINTL@,$INCINTL,;t t
12503 s,@XGETTEXT@,$XGETTEXT,;t t
12504 s,@GMSGFMT@,$GMSGFMT,;t t
12505 s,@POSUB@,$POSUB,;t t
12506 s,@CATALOGS@,$CATALOGS,;t t
12507 s,@CROSS@,$CROSS,;t t
12509 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12510 s,@inhibit_libc@,$inhibit_libc,;t t
12511 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12512 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12513 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12514 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12515 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12516 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12517 s,@libgcc_visibility@,$libgcc_visibility,;t t
12519 s,@zlibdir@,$zlibdir,;t t
12520 s,@zlibinc@,$zlibinc,;t t
12521 s,@MAINT@,$MAINT,;t t
12522 s,@gcc_tooldir@,$gcc_tooldir,;t t
12523 s,@dollar@,$dollar,;t t
12524 s,@slibdir@,$slibdir,;t t
12525 s,@objdir@,$objdir,;t t
12526 s,@subdirs@,$subdirs,;t t
12527 s,@srcdir@,$srcdir,;t t
12528 s,@all_boot_languages@,$all_boot_languages,;t t
12529 s,@all_compilers@,$all_compilers,;t t
12530 s,@all_gtfiles@,$all_gtfiles,;t t
12531 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12532 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12533 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12534 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12535 s,@all_languages@,$all_languages,;t t
12536 s,@all_stagestuff@,$all_stagestuff,;t t
12537 s,@build_exeext@,$build_exeext,;t t
12538 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12539 s,@build_xm_file_list@,$build_xm_file_list,;t t
12540 s,@build_xm_include_list@,$build_xm_include_list,;t t
12541 s,@build_xm_defines@,$build_xm_defines,;t t
12542 s,@check_languages@,$check_languages,;t t
12543 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12544 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12545 s,@cpp_install_dir@,$cpp_install_dir,;t t
12546 s,@xmake_file@,$xmake_file,;t t
12547 s,@tmake_file@,$tmake_file,;t t
12548 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12549 s,@extra_headers_list@,$extra_headers_list,;t t
12550 s,@extra_objs@,$extra_objs,;t t
12551 s,@extra_parts@,$extra_parts,;t t
12552 s,@extra_passes@,$extra_passes,;t t
12553 s,@extra_programs@,$extra_programs,;t t
12554 s,@float_h_file@,$float_h_file,;t t
12555 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12556 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12557 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12558 s,@gcc_version@,$gcc_version,;t t
12559 s,@gcc_version_full@,$gcc_version_full,;t t
12560 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12561 s,@host_exeext@,$host_exeext,;t t
12562 s,@host_xm_file_list@,$host_xm_file_list,;t t
12563 s,@host_xm_include_list@,$host_xm_include_list,;t t
12564 s,@host_xm_defines@,$host_xm_defines,;t t
12565 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12566 s,@install@,$install,;t t
12567 s,@lang_opt_files@,$lang_opt_files,;t t
12568 s,@lang_specs_files@,$lang_specs_files,;t t
12569 s,@lang_tree_files@,$lang_tree_files,;t t
12570 s,@local_prefix@,$local_prefix,;t t
12571 s,@md_file@,$md_file,;t t
12572 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12573 s,@out_file@,$out_file,;t t
12574 s,@out_object_file@,$out_object_file,;t t
12575 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12576 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12577 s,@symbolic_link@,$symbolic_link,;t t
12578 s,@thread_file@,$thread_file,;t t
12579 s,@tm_file_list@,$tm_file_list,;t t
12580 s,@tm_include_list@,$tm_include_list,;t t
12581 s,@tm_defines@,$tm_defines,;t t
12582 s,@tm_p_file_list@,$tm_p_file_list,;t t
12583 s,@tm_p_include_list@,$tm_p_include_list,;t t
12584 s,@xm_file_list@,$xm_file_list,;t t
12585 s,@xm_include_list@,$xm_include_list,;t t
12586 s,@xm_defines@,$xm_defines,;t t
12587 s,@target_noncanonical@,$target_noncanonical,;t t
12588 s,@c_target_objs@,$c_target_objs,;t t
12589 s,@cxx_target_objs@,$cxx_target_objs,;t t
12590 s,@target_cpu_default@,$target_cpu_default,;t t
12591 s,@LIBOBJS@,$LIBOBJS,;t t
12592 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12593 /@language_hooks@/r $language_hooks
12594 s,@language_hooks@,,;t t
12599 cat >>$CONFIG_STATUS <<\_ACEOF
12600 # Split the substitutions into bite-sized pieces for seds with
12601 # small command number limits, like on Digital OSF/1 and HP-UX.
12602 ac_max_sed_lines
=48
12603 ac_sed_frag
=1 # Number of current file.
12604 ac_beg
=1 # First line for current file.
12605 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12608 while $ac_more_lines; do
12609 if test $ac_beg -gt 1; then
12610 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12612 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12614 if test ! -s $tmp/subs.frag
; then
12615 ac_more_lines
=false
12617 # The purpose of the label and of the branching condition is to
12618 # speed up the sed processing (if there are no `@' at all, there
12619 # is no need to browse any of the substitutions).
12620 # These are the two extra sed commands mentioned above.
12622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12623 if test -z "$ac_sed_cmds"; then
12624 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12626 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12628 ac_sed_frag
=`expr $ac_sed_frag + 1`
12630 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12633 if test -z "$ac_sed_cmds"; then
12636 fi # test -n "$CONFIG_FILES"
12639 cat >>$CONFIG_STATUS <<\_ACEOF
12640 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12641 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12643 - |
*:- |
*:-:* ) # input from stdin
12645 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12646 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12647 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12648 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12649 * ) ac_file_in
=$ac_file.
in ;;
12652 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12653 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12654 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12655 X"$ac_file" : 'X\(//\)[^/]' \| \
12656 X"$ac_file" : 'X\(//\)$' \| \
12657 X"$ac_file" : 'X\(/\)' \| \
12658 . : '\(.\)' 2>/dev/null ||
12660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12662 /^X\(\/\/\)$/{ s//\1/; q; }
12663 /^X\(\/\).*/{ s//\1/; q; }
12665 { if $as_mkdir_p; then
12670 while test ! -d "$as_dir"; do
12671 as_dirs
="$as_dir $as_dirs"
12672 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12674 X"$as_dir" : 'X\(//\)[^/]' \| \
12675 X"$as_dir" : 'X\(//\)$' \| \
12676 X"$as_dir" : 'X\(/\)' \| \
12677 . : '\(.\)' 2>/dev/null ||
12679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12681 /^X\(\/\/\)$/{ s//\1/; q; }
12682 /^X\(\/\).*/{ s//\1/; q; }
12685 test ! -n "$as_dirs" || mkdir
$as_dirs
12686 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12687 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12688 { (exit 1); exit 1; }; }; }
12692 if test "$ac_dir" != .
; then
12693 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12694 # A "../" for each directory in $ac_dir_suffix.
12695 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12697 ac_dir_suffix
= ac_top_builddir
=
12701 .
) # No --srcdir option. We are building in place.
12703 if test -z "$ac_top_builddir"; then
12706 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12708 [\\/]* | ?
:[\\/]* ) # Absolute path.
12709 ac_srcdir
=$srcdir$ac_dir_suffix;
12710 ac_top_srcdir
=$srcdir ;;
12711 *) # Relative path.
12712 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12713 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12715 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12717 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12718 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12719 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12720 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12724 if test x
"$ac_file" != x-
; then
12725 { echo "$as_me:$LINENO: creating $ac_file" >&5
12726 echo "$as_me: creating $ac_file" >&6;}
12729 # Let's still pretend it is `configure' which instantiates (i.e., don't
12730 # use $as_me), people would be surprised to read:
12731 # /* config.h. Generated by config.status. */
12732 if test x
"$ac_file" = x-
; then
12735 configure_input
="$ac_file. "
12737 configure_input
=$configure_input"Generated from `echo $ac_file_in |
12738 sed 's,.*/,,'` by configure."
12740 # First look for the input files in the build tree, otherwise in the
12742 ac_file_inputs
=`IFS=:
12743 for f in $ac_file_in; do
12745 -) echo $tmp/stdin ;;
12747 # Absolute (can't be DOS-style, as IFS=:)
12748 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12749 echo "$as_me: error: cannot find input file: $f" >&2;}
12750 { (exit 1); exit 1; }; }
12753 if test -f "$f"; then
12756 elif test -f "$srcdir/$f"; then
12761 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12762 echo "$as_me: error: cannot find input file: $f" >&2;}
12763 { (exit 1); exit 1; }; }
12766 done` ||
{ (exit 1); exit 1; }
12768 cat >>$CONFIG_STATUS <<_ACEOF
12772 cat >>$CONFIG_STATUS <<\_ACEOF
12774 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12775 s
,@configure_input@
,$configure_input,;t t
12776 s
,@srcdir@
,$ac_srcdir,;t t
12777 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
12778 s
,@top_srcdir@
,$ac_top_srcdir,;t t
12779 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
12780 s
,@builddir@
,$ac_builddir,;t t
12781 s
,@abs_builddir@
,$ac_abs_builddir,;t t
12782 s
,@top_builddir@
,$ac_top_builddir,;t t
12783 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
12784 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12786 if test x"$ac_file" != x-; then
12787 mv $tmp/out $ac_file
12795 cat >>$CONFIG_STATUS <<\_ACEOF
12798 # CONFIG_HEADER section.
12801 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
12802 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12804 # ac_d sets the value in "#define NAME VALUE" lines.
12805 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12806 ac_dB
='[ ].*$,\1#\2'
12809 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12810 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12811 ac_uB
='$,\1#\2define\3'
12815 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
12816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12818 - |
*:- |
*:-:* ) # input from stdin
12820 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12821 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12822 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12823 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12824 * ) ac_file_in
=$ac_file.
in ;;
12827 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
12828 echo "$as_me: creating $ac_file" >&6;}
12830 # First look for the input files in the build tree, otherwise in the
12832 ac_file_inputs
=`IFS=:
12833 for f in $ac_file_in; do
12835 -) echo $tmp/stdin ;;
12837 # Absolute (can't be DOS-style, as IFS=:)
12838 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12839 echo "$as_me: error: cannot find input file: $f" >&2;}
12840 { (exit 1); exit 1; }; }
12843 if test -f "$f"; then
12846 elif test -f "$srcdir/$f"; then
12851 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12852 echo "$as_me: error: cannot find input file: $f" >&2;}
12853 { (exit 1); exit 1; }; }
12856 done` ||
{ (exit 1); exit 1; }
12857 # Remove the trailing spaces.
12858 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12862 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12863 # `conftest.undefs', that substitutes the proper values into
12864 # config.h.in to produce config.h. The first handles `#define'
12865 # templates, and the second `#undef' templates.
12866 # And first: Protect against being on the right side of a sed subst in
12867 # config.status. Protect against being in an unquoted here document
12868 # in config.status.
12869 rm -f conftest.defines conftest.undefs
12870 # Using a here document instead of a string reduces the quoting nightmare.
12871 # Putting comments in sed scripts is not portable.
12873 # `end' is used to avoid that the second main sed command (meant for
12874 # 0-ary CPP macros) applies to n-ary macro definitions.
12875 # See the Autoconf documentation for `clear'.
12876 cat >confdef2sed.
sed <<\_ACEOF
12881 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12883 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12886 # If some macros were called several times there might be several times
12887 # the same #defines, which is useless. Nevertheless, we may not want to
12888 # sort them, since we want the *last* AC-DEFINE to be honored.
12889 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12890 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12891 rm -f confdef2sed.sed
12893 # This sed command replaces #undef with comments. This is necessary, for
12894 # example, in the case of _POSIX_SOURCE, which is predefined and required
12895 # on some systems where configure will not decide to define it.
12896 cat >>conftest.undefs <<\_ACEOF
12897 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12900 # Break up conftest.defines because some shells have a limit on the size
12901 # of here documents, and old seds have small limits too (100 cmds).
12902 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12903 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12904 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12905 echo ' :' >>$CONFIG_STATUS
12906 rm -f conftest.tail
12907 while grep . conftest.defines >/dev/null
12909 # Write a limited-size here document to $tmp/defines.sed.
12910 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12911 # Speed up: don't consider the non `#define' lines.
12912 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12913 # Work around the forget-to-reset-the-flag bug.
12914 echo 't clr' >>$CONFIG_STATUS
12915 echo ': clr' >>$CONFIG_STATUS
12916 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
12918 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12920 mv $tmp/out $tmp/in
12922 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
12923 rm -f conftest.defines
12924 mv conftest.
tail conftest.defines
12926 rm -f conftest.defines
12927 echo ' fi # grep' >>$CONFIG_STATUS
12928 echo >>$CONFIG_STATUS
12930 # Break up conftest.undefs because some shells have a limit on the size
12931 # of here documents, and old seds have small limits too (100 cmds).
12932 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12933 rm -f conftest.
tail
12934 while grep . conftest.undefs
>/dev
/null
12936 # Write a limited-size here document to $tmp/undefs.sed.
12937 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12938 # Speed up: don't consider the non
`#undef'
12939 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12940 # Work around the forget-to-reset-the-flag bug.
12941 echo 't clr' >>$CONFIG_STATUS
12942 echo ': clr' >>$CONFIG_STATUS
12943 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12945 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12947 mv $tmp/out $tmp/in
12949 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12950 rm -f conftest.undefs
12951 mv conftest.tail conftest.undefs
12953 rm -f conftest.undefs
12955 cat >>$CONFIG_STATUS <<\_ACEOF
12956 # Let's still pretend it is `configure
' which instantiates (i.e., don't
12957 # use $as_me), people would be surprised to read:
12958 # /* config.h. Generated by config.status. */
12959 if test x
"$ac_file" = x-
; then
12960 echo "/* Generated by configure. */" >$tmp/config.h
12962 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12964 cat $tmp/in >>$tmp/config.h
12966 if test x
"$ac_file" != x-
; then
12967 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
12968 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12969 echo "$as_me: $ac_file is unchanged" >&6;}
12971 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12972 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12973 X"$ac_file" : 'X\(//\)[^/]' \| \
12974 X"$ac_file" : 'X\(//\)$' \| \
12975 X"$ac_file" : 'X\(/\)' \| \
12976 . : '\(.\)' 2>/dev/null ||
12978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12980 /^X\(\/\/\)$/{ s//\1/; q; }
12981 /^X\(\/\).*/{ s//\1/; q; }
12983 { if $as_mkdir_p; then
12988 while test ! -d "$as_dir"; do
12989 as_dirs
="$as_dir $as_dirs"
12990 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12992 X"$as_dir" : 'X\(//\)[^/]' \| \
12993 X"$as_dir" : 'X\(//\)$' \| \
12994 X"$as_dir" : 'X\(/\)' \| \
12995 . : '\(.\)' 2>/dev/null ||
12997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12999 /^X\(\/\/\)$/{ s//\1/; q; }
13000 /^X\(\/\).*/{ s//\1/; q; }
13003 test ! -n "$as_dirs" || mkdir
$as_dirs
13004 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13005 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13006 { (exit 1); exit 1; }; }; }
13009 mv $tmp/config.h
$ac_file
13013 rm -f $tmp/config.h
13017 cat >>$CONFIG_STATUS <<\_ACEOF
13020 # CONFIG_COMMANDS section.
13022 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13023 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13024 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13025 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
13026 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13027 X"$ac_dest" : 'X\(//\)[^/]' \| \
13028 X"$ac_dest" : 'X\(//\)$' \| \
13029 X"$ac_dest" : 'X\(/\)' \| \
13030 . : '\(.\)' 2>/dev/null ||
13032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13034 /^X\(\/\/\)$/{ s//\1/; q; }
13035 /^X\(\/\).*/{ s//\1/; q; }
13039 if test "$ac_dir" != .
; then
13040 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13041 # A "../" for each directory in $ac_dir_suffix.
13042 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13044 ac_dir_suffix
= ac_top_builddir
=
13048 .
) # No --srcdir option. We are building in place.
13050 if test -z "$ac_top_builddir"; then
13053 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13055 [\\/]* | ?
:[\\/]* ) # Absolute path.
13056 ac_srcdir
=$srcdir$ac_dir_suffix;
13057 ac_top_srcdir
=$srcdir ;;
13058 *) # Relative path.
13059 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13060 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13062 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13064 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
13065 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13066 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13067 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13070 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13071 echo "$as_me: executing $ac_dest commands" >&6;}
13074 case ${CONFIG_HEADERS} in
13075 *auto-host.h
:config.
in*)
13078 # Make sure all the subdirs exist.
13081 test -d $d || mkdir
$d
13083 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13084 # bootstrapping and the installation procedure can still use
13085 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13086 # FLAGS_TO_PASS has been modified to solve the problem there.
13087 # This is virtually a duplicate of what happens in configure.lang; we do
13088 # an extra check to make sure this only happens if ln -s can be used.
13089 if test "$symbolic_link" = "ln -s"; then
13090 for d
in ${subdirs} fixinc
; do
13091 STARTDIR
=`${PWDCMD-pwd}`
13093 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13096 $symbolic_link ..
/$t $t 2>/dev
/null
13106 cat >>$CONFIG_STATUS <<\_ACEOF
13108 { (exit 0); exit 0; }
13110 chmod +x
$CONFIG_STATUS
13111 ac_clean_files
=$ac_clean_files_save
13114 # configure is writing to config.log, and then calls config.status.
13115 # config.status does its own redirection, appending to config.log.
13116 # Unfortunately, on DOS this fails, as config.log is still kept open
13117 # by configure, so config.status won't be able to write to it; its
13118 # output is simply discarded. So we exec the FD to /dev/null,
13119 # effectively closing config.log, so it can be properly (re)opened and
13120 # appended to by config.status. When coming back to configure, we
13121 # need to make the FD available again.
13122 if test "$no_create" != yes; then
13124 ac_config_status_args
=
13125 test "$silent" = yes &&
13126 ac_config_status_args
="$ac_config_status_args --quiet"
13128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13131 # would make configure fail if this is the last instruction.
13132 $ac_cs_success ||
{ (exit 1); exit 1; }