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 extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir docobjdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_extra_gcc_objs host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files
='language_hooks'
314 # Initialize some variables set by options.
316 ac_init_version
=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name
=s
,x
,x
,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir
='${exec_prefix}/bin'
340 sbindir
='${exec_prefix}/sbin'
341 libexecdir
='${exec_prefix}/libexec'
342 datadir
='${prefix}/share'
343 sysconfdir
='${prefix}/etc'
344 sharedstatedir
='${prefix}/com'
345 localstatedir
='${prefix}/var'
346 libdir
='${exec_prefix}/lib'
347 includedir
='${prefix}/include'
348 oldincludedir
='/usr/include'
349 infodir
='${prefix}/info'
350 mandir
='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
370 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
373 -build |
--build |
--buil |
--bui |
--bu)
374 ac_prev
=build_alias
;;
375 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
376 build_alias
=$ac_optarg ;;
378 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
379 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
380 ac_prev
=cache_file
;;
381 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
382 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
383 cache_file
=$ac_optarg ;;
386 cache_file
=config.cache
;;
388 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
390 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
392 datadir
=$ac_optarg ;;
394 -disable-* |
--disable-*)
395 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* |
--enable-*)
404 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
417 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
418 |
--exec |
--exe |
--ex)
419 ac_prev
=exec_prefix
;;
420 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
421 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
422 |
--exec=* |
--exe=* |
--ex=*)
423 exec_prefix
=$ac_optarg ;;
425 -gas |
--gas |
--ga |
--g)
426 # Obsolete; use --with-gas.
429 -help |
--help |
--hel |
--he |
-h)
431 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
432 ac_init_help
=recursive
;;
433 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
434 ac_init_help
=short
;;
436 -host |
--host |
--hos |
--ho)
437 ac_prev
=host_alias
;;
438 -host=* |
--host=* |
--hos=* |
--ho=*)
439 host_alias
=$ac_optarg ;;
441 -includedir |
--includedir |
--includedi |
--included |
--include \
442 |
--includ |
--inclu |
--incl |
--inc)
443 ac_prev
=includedir
;;
444 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
445 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
446 includedir
=$ac_optarg ;;
448 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
450 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
451 infodir
=$ac_optarg ;;
453 -libdir |
--libdir |
--libdi |
--libd)
455 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
458 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
459 |
--libexe |
--libex |
--libe)
460 ac_prev
=libexecdir
;;
461 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
462 |
--libexe=* |
--libex=* |
--libe=*)
463 libexecdir
=$ac_optarg ;;
465 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
466 |
--localstate |
--localstat |
--localsta |
--localst \
467 |
--locals |
--local |
--loca |
--loc |
--lo)
468 ac_prev
=localstatedir
;;
469 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
470 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
471 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
472 localstatedir
=$ac_optarg ;;
474 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
476 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
480 # Obsolete; use --without-fp.
483 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
484 |
--no-cr |
--no-c |
-n)
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
491 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
492 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
493 |
--oldin |
--oldi |
--old |
--ol |
--o)
494 ac_prev
=oldincludedir
;;
495 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
496 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
497 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
498 oldincludedir
=$ac_optarg ;;
500 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
502 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
505 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
506 |
--program-pre |
--program-pr |
--program-p)
507 ac_prev
=program_prefix
;;
508 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
509 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
510 program_prefix
=$ac_optarg ;;
512 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
513 |
--program-suf |
--program-su |
--program-s)
514 ac_prev
=program_suffix
;;
515 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
516 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
517 program_suffix
=$ac_optarg ;;
519 -program-transform-name |
--program-transform-name \
520 |
--program-transform-nam |
--program-transform-na \
521 |
--program-transform-n |
--program-transform- \
522 |
--program-transform |
--program-transfor \
523 |
--program-transfo |
--program-transf \
524 |
--program-trans |
--program-tran \
525 |
--progr-tra |
--program-tr |
--program-t)
526 ac_prev
=program_transform_name
;;
527 -program-transform-name=* |
--program-transform-name=* \
528 |
--program-transform-nam=* |
--program-transform-na=* \
529 |
--program-transform-n=* |
--program-transform-=* \
530 |
--program-transform=* |
--program-transfor=* \
531 |
--program-transfo=* |
--program-transf=* \
532 |
--program-trans=* |
--program-tran=* \
533 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
534 program_transform_name
=$ac_optarg ;;
536 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
537 |
-silent |
--silent |
--silen |
--sile |
--sil)
540 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
542 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
544 sbindir
=$ac_optarg ;;
546 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
547 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
548 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
550 ac_prev
=sharedstatedir
;;
551 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
552 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
553 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
555 sharedstatedir
=$ac_optarg ;;
557 -site |
--site |
--sit)
559 -site=* |
--site=* |
--sit=*)
562 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
564 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
567 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
568 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
569 ac_prev
=sysconfdir
;;
570 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
571 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
572 sysconfdir
=$ac_optarg ;;
574 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
575 ac_prev
=target_alias
;;
576 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
577 target_alias
=$ac_optarg ;;
579 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
582 -version |
--version |
--versio |
--versi |
--vers |
-V)
586 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package
=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* |
--without-*)
599 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package
=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
612 |
--x-incl |
--x-inc |
--x-in |
--x-i)
613 ac_prev
=x_includes
;;
614 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
615 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
616 x_includes
=$ac_optarg ;;
618 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
619 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
620 ac_prev
=x_libraries
;;
621 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
622 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
623 x_libraries
=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var
in exec_prefix prefix
660 eval ac_val
=$
`echo $ac_var`
662 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val
=$
`echo $ac_var`
674 [\\/$
]* | ?
:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x
; then
689 if test "x$build_alias" = x
; then
690 cross_compiling
=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
701 test "$silent" = yes && exec 6>/dev
/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted
=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir
=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted
=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set
=${build_alias+set}
741 ac_env_build_alias_value
=$build_alias
742 ac_cv_env_build_alias_set
=${build_alias+set}
743 ac_cv_env_build_alias_value
=$build_alias
744 ac_env_host_alias_set
=${host_alias+set}
745 ac_env_host_alias_value
=$host_alias
746 ac_cv_env_host_alias_set
=${host_alias+set}
747 ac_cv_env_host_alias_value
=$host_alias
748 ac_env_target_alias_set
=${target_alias+set}
749 ac_env_target_alias_value
=$target_alias
750 ac_cv_env_target_alias_set
=${target_alias+set}
751 ac_cv_env_target_alias_value
=$target_alias
752 ac_env_CC_set
=${CC+set}
754 ac_cv_env_CC_set
=${CC+set}
755 ac_cv_env_CC_value
=$CC
756 ac_env_CFLAGS_set
=${CFLAGS+set}
757 ac_env_CFLAGS_value
=$CFLAGS
758 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value
=$CFLAGS
760 ac_env_LDFLAGS_set
=${LDFLAGS+set}
761 ac_env_LDFLAGS_value
=$LDFLAGS
762 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value
=$LDFLAGS
764 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value
=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_env_CPP_set
=${CPP+set}
769 ac_env_CPP_value
=$CPP
770 ac_cv_env_CPP_set
=${CPP+set}
771 ac_cv_env_CPP_value
=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
839 --build=BUILD configure
for building on BUILD
[guessed
]
840 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
841 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-generated-files-in-srcdir
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={simple
,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.
* *.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
1634 docobjdir
='$(srcdir)/doc'
1637 docobjdir
='$(objdir)/doc'
1641 # -------------------
1642 # Find default linker
1643 # -------------------
1647 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1648 if test "${with_gnu_ld+set}" = set; then
1649 withval
="$with_gnu_ld"
1650 gnu_ld_flag
="$with_gnu_ld"
1655 # With pre-defined ld
1657 # Check whether --with-ld or --without-ld was given.
1658 if test "${with_ld+set}" = set; then
1660 DEFAULT_LINKER
="$with_ld"
1662 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1663 if test ! -x "$DEFAULT_LINKER"; then
1664 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1665 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1666 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1670 cat >>confdefs.h
<<_ACEOF
1671 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1676 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1677 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1678 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1679 if test x
"$gnu_ld_flag" = x
"no"; then
1680 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1681 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1683 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1684 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1691 # ----------------------
1692 # Find default assembler
1693 # ----------------------
1697 # Check whether --with-gnu-as or --without-gnu-as was given.
1698 if test "${with_gnu_as+set}" = set; then
1699 withval
="$with_gnu_as"
1700 gas_flag
="$with_gnu_as"
1706 # Check whether --with-as or --without-as was given.
1707 if test "${with_as+set}" = set; then
1709 DEFAULT_ASSEMBLER
="$with_as"
1711 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1712 if test ! -x "$DEFAULT_ASSEMBLER"; then
1713 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1714 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1715 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1719 cat >>confdefs.h
<<_ACEOF
1720 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1725 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1726 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1727 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1728 if test x
"$gas_flag" = x
"no"; then
1729 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1730 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1732 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1733 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1744 # Find the native compiler
1746 ac_cpp
='$CPP $CPPFLAGS'
1747 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1748 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1749 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1750 if test -n "$ac_tool_prefix"; then
1751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1752 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 if test -n "$CC"; then
1759 ac_cv_prog_CC
="$CC" # Let the user override the test.
1761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1765 test -z "$as_dir" && as_dir
=.
1766 for ac_exec_ext
in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1778 if test -n "$CC"; then
1779 echo "$as_me:$LINENO: result: $CC" >&5
1780 echo "${ECHO_T}$CC" >&6
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1787 if test -z "$ac_cv_prog_CC"; then
1789 # Extract the first word of "gcc", so it can be a program name with args.
1790 set dummy gcc
; ac_word
=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if test -n "$ac_ct_CC"; then
1797 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1803 test -z "$as_dir" && as_dir
=.
1804 for ac_exec_ext
in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_ac_ct_CC
="gcc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1816 if test -n "$ac_ct_CC"; then
1817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1818 echo "${ECHO_T}$ac_ct_CC" >&6
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1829 if test -z "$CC"; then
1830 if test -n "$ac_tool_prefix"; then
1831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1832 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC
="$CC" # Let the user override the test.
1841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir
=.
1846 for ac_exec_ext
in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1867 if test -z "$ac_cv_prog_CC"; then
1869 # Extract the first word of "cc", so it can be a program name with args.
1870 set dummy cc
; ac_word
=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 if test -n "$ac_ct_CC"; then
1877 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir
=.
1884 for ac_exec_ext
in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_ac_ct_CC
="cc"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1896 if test -n "$ac_ct_CC"; then
1897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1898 echo "${ECHO_T}$ac_ct_CC" >&6
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1910 if test -z "$CC"; then
1911 # Extract the first word of "cc", so it can be a program name with args.
1912 set dummy cc
; ac_word
=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC
="$CC" # Let the user override the test.
1922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1926 test -z "$as_dir" && as_dir
=.
1927 for ac_exec_ext
in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1930 ac_prog_rejected
=yes
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 if test $ac_prog_rejected = yes; then
1941 # We found a bogon in the path, so make sure we never use it.
1942 set dummy
$ac_cv_prog_CC
1944 if test $# != 0; then
1945 # We chose a different compiler from the bogus one.
1946 # However, it has the same basename, so the bogon will be chosen
1947 # first if we set CC to just the basename; use the full file name.
1949 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1955 if test -n "$CC"; then
1956 echo "$as_me:$LINENO: result: $CC" >&5
1957 echo "${ECHO_T}$CC" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1964 if test -z "$CC"; then
1965 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC
="$CC" # Let the user override the test.
1978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir
=.
1983 for ac_exec_ext
in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 if test -n "$CC"; then
1996 echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2003 test -n "$CC" && break
2006 if test -z "$CC"; then
2010 # Extract the first word of "$ac_prog", so it can be a program name with args.
2011 set dummy
$ac_prog; ac_word
=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$ac_ct_CC"; then
2018 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir
=.
2025 for ac_exec_ext
in '' $ac_executable_extensions; do
2026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027 ac_cv_prog_ac_ct_CC
="$ac_prog"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2037 if test -n "$ac_ct_CC"; then
2038 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039 echo "${ECHO_T}$ac_ct_CC" >&6
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2045 test -n "$ac_ct_CC" && break
2054 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2055 See \`config.log' for more details." >&5
2056 echo "$as_me: error: no acceptable C compiler found in \$PATH
2057 See \`config.log' for more details." >&2;}
2058 { (exit 1); exit 1; }; }
2060 # Provide some information about the compiler.
2061 echo "$as_me:$LINENO:" \
2062 "checking for C compiler version" >&5
2063 ac_compiler
=`set X $ac_compile; echo $2`
2064 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2065 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }
2069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2070 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }
2074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2075 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2080 cat >conftest.
$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2084 cat confdefs.h
>>conftest.
$ac_ext
2085 cat >>conftest.
$ac_ext <<_ACEOF
2086 /* end confdefs.h. */
2096 ac_clean_files_save
=$ac_clean_files
2097 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2098 # Try to create an executable without -o first, disregard a.out.
2099 # It will help us diagnose broken compilers, and finding out an intuition
2101 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2102 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2103 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2104 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2105 (eval $ac_link_default) 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; then
2109 # Find the output, starting from the most likely. This scheme is
2110 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2113 # Be careful to initialize this variable, since it used to be cached.
2114 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2116 # b.out is created by i960 compilers.
2117 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2119 test -f "$ac_file" ||
continue
2121 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2124 # This is the source file.
2127 # We found the default executable, but exeext='' is most
2131 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2132 # FIXME: I believe we export ac_cv_exeext for Libtool,
2133 # but it would be cool to find out if it's true. Does anybody
2134 # maintain Libtool? --akim.
2142 echo "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.
$ac_ext >&5
2145 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: C compiler cannot create executables
2148 See \`config.log' for more details." >&2;}
2149 { (exit 77); exit 77; }; }
2152 ac_exeext
=$ac_cv_exeext
2153 echo "$as_me:$LINENO: result: $ac_file" >&5
2154 echo "${ECHO_T}$ac_file" >&6
2156 # Check the compiler produces executables we can run. If not, either
2157 # the compiler is broken, or we cross compile.
2158 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2159 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2160 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2161 # If not cross compiling, check that we can run a simple program.
2162 if test "$cross_compiling" != yes; then
2163 if { ac_try
='./$ac_file'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; }; then
2171 if test "$cross_compiling" = maybe
; then
2174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2175 If you meant to cross compile, use \`--host'.
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: cannot run C compiled programs.
2178 If you meant to cross compile, use \`--host'.
2179 See \`config.log' for more details." >&2;}
2180 { (exit 1); exit 1; }; }
2184 echo "$as_me:$LINENO: result: yes" >&5
2185 echo "${ECHO_T}yes" >&6
2187 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2188 ac_clean_files
=$ac_clean_files_save
2189 # Check the compiler produces executables we can run. If not, either
2190 # the compiler is broken, or we cross compile.
2191 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2193 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2194 echo "${ECHO_T}$cross_compiling" >&6
2196 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2199 (eval $ac_link) 2>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; then
2203 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2204 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2205 # work properly (i.e., refer to `conftest.exe'), while it won't with
2207 for ac_file
in conftest.exe conftest conftest.
*; do
2208 test -f "$ac_file" ||
continue
2210 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2211 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2219 See \`config.log' for more details." >&5
2220 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2221 See \`config.log' for more details." >&2;}
2222 { (exit 1); exit 1; }; }
2225 rm -f conftest
$ac_cv_exeext
2226 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2227 echo "${ECHO_T}$ac_cv_exeext" >&6
2229 rm -f conftest.
$ac_ext
2230 EXEEXT
=$ac_cv_exeext
2232 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2233 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2234 if test "${ac_cv_objext+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 cat >conftest.
$ac_ext <<_ACEOF
2238 #line $LINENO "configure"
2241 cat confdefs.h
>>conftest.
$ac_ext
2242 cat >>conftest.
$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2253 rm -f conftest.o conftest.obj
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2261 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2262 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.
$ac_ext >&5
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2279 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2280 echo "${ECHO_T}$ac_cv_objext" >&6
2281 OBJEXT
=$ac_cv_objext
2283 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2284 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2285 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 cat >conftest.
$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2292 cat confdefs.h
>>conftest.
$ac_ext
2293 cat >>conftest.
$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2307 rm -f conftest.
$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try
='test -s conftest.$ac_objext'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; }; then
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.
$ac_ext >&5
2326 rm -f conftest.
$ac_objext conftest.
$ac_ext
2327 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2330 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2331 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2332 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2333 ac_test_CFLAGS
=${CFLAGS+set}
2334 ac_save_CFLAGS
=$CFLAGS
2336 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2337 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2338 if test "${ac_cv_prog_cc_g+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 cat >conftest.
$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2345 cat confdefs.h
>>conftest.
$ac_ext
2346 cat >>conftest.
$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2357 rm -f conftest.
$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try
='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.
$ac_ext >&5
2376 rm -f conftest.
$ac_objext conftest.
$ac_ext
2378 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2379 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2380 if test "$ac_test_CFLAGS" = set; then
2381 CFLAGS
=$ac_save_CFLAGS
2382 elif test $ac_cv_prog_cc_g = yes; then
2383 if test "$GCC" = yes; then
2389 if test "$GCC" = yes; then
2395 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2396 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2397 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 ac_cv_prog_cc_stdc
=no
2402 cat >conftest.
$ac_ext <<_ACEOF
2403 #line $LINENO "configure"
2406 cat confdefs.h
>>conftest.
$ac_ext
2407 cat >>conftest.
$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2411 #include <sys/types.h>
2412 #include <sys/stat.h>
2413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2414 struct buf { int x; };
2415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2416 static char *e (p, i)
2422 static char *f (char * (*g) (char **, int), char **p, ...)
2427 s = g (p, va_arg (v,int));
2431 int test (int i, double x);
2432 struct s1 {int (*f) (int a);};
2433 struct s2 {int (*f) (double a);};
2434 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2440 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2445 # Don't try gcc -ansi; that turns off useful extensions and
2446 # breaks some systems' header files.
2447 # AIX -qlanglvl=ansi
2448 # Ultrix and OSF/1 -std1
2449 # HP-UX 10.20 and later -Ae
2450 # HP-UX older versions -Aa -D_HPUX_SOURCE
2451 # SVR4 -Xc -D__EXTENSIONS__
2452 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2454 CC
="$ac_save_CC $ac_arg"
2455 rm -f conftest.
$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try
='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_prog_cc_stdc
=$ac_arg
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.
$ac_ext >&5
2474 rm -f conftest.
$ac_objext
2476 rm -f conftest.
$ac_ext conftest.
$ac_objext
2481 case "x$ac_cv_prog_cc_stdc" in
2483 echo "$as_me:$LINENO: result: none needed" >&5
2484 echo "${ECHO_T}none needed" >&6 ;;
2486 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2487 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2488 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2491 # Some people use a C++ compiler to compile C. Since we use `exit',
2492 # in C++ we need to declare it. In case someone uses the same compiler
2493 # for both compiling C and C++ we need to have the C++ compiler decide
2494 # the declaration of exit, since it's the most demanding environment.
2495 cat >conftest.
$ac_ext <<_ACEOF
2500 rm -f conftest.
$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try
='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2512 for ac_declaration
in \
2514 '#include <stdlib.h>' \
2515 'extern "C" void std::exit (int) throw (); using std::exit;' \
2516 'extern "C" void std::exit (int); using std::exit;' \
2517 'extern "C" void exit (int) throw ();' \
2518 'extern "C" void exit (int);' \
2521 cat >conftest.
$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2525 cat confdefs.h
>>conftest.
$ac_ext
2526 cat >>conftest.
$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2538 rm -f conftest.
$ac_objext
2539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540 (eval $ac_compile) 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try
='test -s conftest.$ac_objext'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.
$ac_ext >&5
2557 rm -f conftest.
$ac_objext conftest.
$ac_ext
2558 cat >conftest.
$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2562 cat confdefs.h
>>conftest.
$ac_ext
2563 cat >>conftest.
$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.
$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try
='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.
$ac_ext >&5
2592 rm -f conftest.
$ac_objext conftest.
$ac_ext
2595 if test -n "$ac_declaration"; then
2596 echo '#ifdef __cplusplus' >>confdefs.h
2597 echo $ac_declaration >>confdefs.h
2598 echo '#endif' >>confdefs.h
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.
$ac_ext >&5
2606 rm -f conftest.
$ac_objext conftest.
$ac_ext
2608 ac_cpp
='$CPP $CPPFLAGS'
2609 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2613 if test "x$CC" != xcc
; then
2614 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2615 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2617 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2618 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2620 set dummy
$CC; ac_cc
=`echo $2 |
2621 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2622 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 cat >conftest.
$ac_ext <<_ACEOF
2626 #line $LINENO "configure"
2629 cat confdefs.h
>>conftest.
$ac_ext
2630 cat >>conftest.
$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2641 # Make sure it works both with $CC and with simple cc.
2642 # We do the test twice because some compilers refuse to overwrite an
2643 # existing .o file with -o, though they will create one.
2644 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2645 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); };
2656 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2657 if test "x$CC" != xcc
; then
2658 # Test first that cc exists at all.
2659 if { ac_try
='cc -c conftest.$ac_ext >&5'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2666 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); };
2680 # cc exists but doesn't like -o.
2681 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2686 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2691 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2692 echo "$as_me:$LINENO: result: yes" >&5
2693 echo "${ECHO_T}yes" >&6
2695 echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6
2698 cat >>confdefs.h
<<\_ACEOF
2699 #define NO_MINUS_C_MINUS_O 1
2704 # autoconf is lame and doesn't give us any substitution variable for this.
2705 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2706 NO_MINUS_C_MINUS_O
=yes
2708 OUTPUT_OPTION
='-o $@'
2713 # -------------------------
2714 # Check C compiler features
2715 # -------------------------
2718 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2719 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2720 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 save_CFLAGS
="$CFLAGS"
2724 CFLAGS
="-Wno-long-long"
2725 cat >conftest.
$ac_ext <<_ACEOF
2726 #line $LINENO "configure"
2729 cat confdefs.h
>>conftest.
$ac_ext
2730 cat >>conftest.
$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2741 rm -f conftest.
$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try
='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 ac_cv_prog_cc_no_long_long
=yes
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.
$ac_ext >&5
2758 ac_cv_prog_cc_no_long_long
=no
2760 rm -f conftest.
$ac_objext conftest.
$ac_ext
2761 CFLAGS
="$save_CFLAGS"
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2767 ac_cpp
='$CPP $CPPFLAGS'
2768 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2771 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2772 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2773 # On Suns, sometimes $CPP names a directory.
2774 if test -n "$CPP" && test -d "$CPP"; then
2777 if test -z "$CPP"; then
2778 if test "${ac_cv_prog_CPP+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 # Double quotes because CPP needs to be expanded
2782 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2785 for ac_c_preproc_warn_flag
in '' yes
2787 # Use a header file that comes with gcc, so configuring glibc
2788 # with a fresh cross-compiler works.
2789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2790 # <limits.h> exists even on freestanding compilers.
2791 # On the NeXT, cc -E runs the code through the compiler's parser,
2792 # not just through cpp. "Syntax error" is here to catch this case.
2793 cat >conftest.
$ac_ext <<_ACEOF
2794 #line $LINENO "configure"
2797 cat confdefs.h
>>conftest.
$ac_ext
2798 cat >>conftest.
$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2801 # include <limits.h>
2803 # include <assert.h>
2807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2808 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2810 grep -v '^ *+' conftest.er1
>conftest.err
2812 cat conftest.err
>&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } >/dev
/null
; then
2815 if test -s conftest.err
; then
2816 ac_cpp_err
=$ac_c_preproc_warn_flag
2823 if test -z "$ac_cpp_err"; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.
$ac_ext >&5
2829 # Broken: fails on valid input.
2832 rm -f conftest.err conftest.
$ac_ext
2834 # OK, works on sane cases. Now check whether non-existent headers
2835 # can be detected and how.
2836 cat >conftest.
$ac_ext <<_ACEOF
2837 #line $LINENO "configure"
2840 cat confdefs.h
>>conftest.
$ac_ext
2841 cat >>conftest.
$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2843 #include <ac_nonexistent.h>
2845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2846 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2848 grep -v '^ *+' conftest.er1
>conftest.err
2850 cat conftest.err
>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } >/dev
/null
; then
2853 if test -s conftest.err
; then
2854 ac_cpp_err
=$ac_c_preproc_warn_flag
2861 if test -z "$ac_cpp_err"; then
2862 # Broken: success on invalid input.
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.
$ac_ext >&5
2868 # Passes both tests.
2872 rm -f conftest.err conftest.
$ac_ext
2875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2876 rm -f conftest.err conftest.
$ac_ext
2877 if $ac_preproc_ok; then
2889 echo "$as_me:$LINENO: result: $CPP" >&5
2890 echo "${ECHO_T}$CPP" >&6
2892 for ac_c_preproc_warn_flag
in '' yes
2894 # Use a header file that comes with gcc, so configuring glibc
2895 # with a fresh cross-compiler works.
2896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2897 # <limits.h> exists even on freestanding compilers.
2898 # On the NeXT, cc -E runs the code through the compiler's parser,
2899 # not just through cpp. "Syntax error" is here to catch this case.
2900 cat >conftest.
$ac_ext <<_ACEOF
2901 #line $LINENO "configure"
2904 cat confdefs.h
>>conftest.
$ac_ext
2905 cat >>conftest.
$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2908 # include <limits.h>
2910 # include <assert.h>
2914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2917 grep -v '^ *+' conftest.er1
>conftest.err
2919 cat conftest.err
>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev
/null
; then
2922 if test -s conftest.err
; then
2923 ac_cpp_err
=$ac_c_preproc_warn_flag
2930 if test -z "$ac_cpp_err"; then
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.
$ac_ext >&5
2936 # Broken: fails on valid input.
2939 rm -f conftest.err conftest.
$ac_ext
2941 # OK, works on sane cases. Now check whether non-existent headers
2942 # can be detected and how.
2943 cat >conftest.
$ac_ext <<_ACEOF
2944 #line $LINENO "configure"
2947 cat confdefs.h
>>conftest.
$ac_ext
2948 cat >>conftest.
$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1
>conftest.err
2957 cat conftest.err
>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev
/null
; then
2960 if test -s conftest.err
; then
2961 ac_cpp_err
=$ac_c_preproc_warn_flag
2968 if test -z "$ac_cpp_err"; then
2969 # Broken: success on invalid input.
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.
$ac_ext >&5
2975 # Passes both tests.
2979 rm -f conftest.err conftest.
$ac_ext
2982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2983 rm -f conftest.err conftest.
$ac_ext
2984 if $ac_preproc_ok; then
2987 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2988 See \`config.log' for more details." >&5
2989 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2990 See \`config.log' for more details." >&2;}
2991 { (exit 1); exit 1; }; }
2995 ac_cpp
='$CPP $CPPFLAGS'
2996 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3000 echo "$as_me:$LINENO: checking for inline" >&5
3001 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3002 if test "${ac_cv_c_inline+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 for ac_kw
in inline __inline__ __inline
; do
3007 cat >conftest.
$ac_ext <<_ACEOF
3008 #line $LINENO "configure"
3011 cat confdefs.h
>>conftest.
$ac_ext
3012 cat >>conftest.
$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3016 static $ac_kw foo_t static_foo () {return 0; }
3017 $ac_kw foo_t foo () {return 0; }
3021 rm -f conftest.
$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023 (eval $ac_compile) 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try
='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_cv_c_inline
=$ac_kw; break
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.
$ac_ext >&5
3039 rm -f conftest.
$ac_objext conftest.
$ac_ext
3043 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3044 echo "${ECHO_T}$ac_cv_c_inline" >&6
3045 case $ac_cv_c_inline in
3048 cat >>confdefs.h
<<\_ACEOF
3052 *) cat >>confdefs.h
<<_ACEOF
3053 #define inline $ac_cv_c_inline
3059 echo "$as_me:$LINENO: checking for long long int" >&5
3060 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3061 if test "${ac_cv_c_long_long+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 cat >conftest.
$ac_ext <<_ACEOF
3065 #line $LINENO "configure"
3068 cat confdefs.h
>>conftest.
$ac_ext
3069 cat >>conftest.
$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.
$ac_objext
3081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3082 (eval $ac_compile) 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try
='test -s conftest.$ac_objext'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3092 ac_cv_c_long_long
=yes
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.
$ac_ext >&5
3097 ac_cv_c_long_long
=no
3099 rm -f conftest.
$ac_objext conftest.
$ac_ext
3101 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3102 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3103 if test $ac_cv_c_long_long = yes; then
3105 cat >>confdefs.h
<<\_ACEOF
3106 #define HAVE_LONG_LONG 1
3110 echo "$as_me:$LINENO: checking for __int64" >&5
3111 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3112 if test "${ac_cv_c___int64+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 cat >conftest.
$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3119 cat confdefs.h
>>conftest.
$ac_ext
3120 cat >>conftest.
$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.
$ac_objext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try
='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.
$ac_ext >&5
3150 rm -f conftest.
$ac_objext conftest.
$ac_ext
3152 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3153 echo "${ECHO_T}$ac_cv_c___int64" >&6
3154 if test $ac_cv_c___int64 = yes; then
3156 cat >>confdefs.h
<<\_ACEOF
3157 #define HAVE___INT64 1
3162 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3163 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3164 if test "${gcc_cv_c__bool+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 cat >conftest.
$ac_ext <<_ACEOF
3168 #line $LINENO "configure"
3171 cat confdefs.h
>>conftest.
$ac_ext
3172 cat >>conftest.
$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3183 rm -f conftest.
$ac_objext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try
='test -s conftest.$ac_objext'
3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.
$ac_ext >&5
3202 rm -f conftest.
$ac_objext conftest.
$ac_ext
3205 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3206 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3207 if test $gcc_cv_c__bool = yes; then
3209 cat >>confdefs.h
<<\_ACEOF
3210 #define HAVE__BOOL 1
3216 # sizeof(char) is 1 by definition.
3217 echo "$as_me:$LINENO: checking size of void *" >&5
3218 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3219 if test "${ac_cv_sizeof_void_p+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3223 cat >conftest.
$ac_ext <<_ACEOF
3224 #line $LINENO "configure"
3227 cat confdefs.h
>>conftest.
$ac_ext
3228 cat >>conftest.
$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 #include "confdefs.h"
3231 #include <sys/types.h>
3237 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3242 rm -f conftest.
$ac_objext
3243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3244 (eval $ac_compile) 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try
='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 ac_cv_sizeof_void_p
=$ac_size
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.
$ac_ext >&5
3260 rm -f conftest.
$ac_objext conftest.
$ac_ext
3261 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3266 if test x
$ac_cv_sizeof_void_p = x
; then
3267 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3268 echo "$as_me: error: cannot determine a size for void *" >&2;}
3269 { (exit 1); exit 1; }; }
3271 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3272 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3274 cat >>confdefs.h
<<_ACEOF
3275 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3279 echo "$as_me:$LINENO: checking size of short" >&5
3280 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3281 if test "${ac_cv_sizeof_short+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3285 cat >conftest.
$ac_ext <<_ACEOF
3286 #line $LINENO "configure"
3289 cat confdefs.h
>>conftest.
$ac_ext
3290 cat >>conftest.
$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292 #include "confdefs.h"
3293 #include <sys/types.h>
3299 switch (0) case 0: case (sizeof (short) == $ac_size):;
3304 rm -f conftest.
$ac_objext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306 (eval $ac_compile) 2>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try
='test -s conftest.$ac_objext'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 ac_cv_sizeof_short
=$ac_size
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.
$ac_ext >&5
3322 rm -f conftest.
$ac_objext conftest.
$ac_ext
3323 if test x
$ac_cv_sizeof_short != x
; then break; fi
3328 if test x
$ac_cv_sizeof_short = x
; then
3329 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3330 echo "$as_me: error: cannot determine a size for short" >&2;}
3331 { (exit 1); exit 1; }; }
3333 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3334 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3336 cat >>confdefs.h
<<_ACEOF
3337 #define SIZEOF_SHORT $ac_cv_sizeof_short
3341 echo "$as_me:$LINENO: checking size of int" >&5
3342 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3343 if test "${ac_cv_sizeof_int+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3347 cat >conftest.
$ac_ext <<_ACEOF
3348 #line $LINENO "configure"
3351 cat confdefs.h
>>conftest.
$ac_ext
3352 cat >>conftest.
$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3354 #include "confdefs.h"
3355 #include <sys/types.h>
3361 switch (0) case 0: case (sizeof (int) == $ac_size):;
3366 rm -f conftest.
$ac_objext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368 (eval $ac_compile) 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try
='test -s conftest.$ac_objext'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 ac_cv_sizeof_int
=$ac_size
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.
$ac_ext >&5
3384 rm -f conftest.
$ac_objext conftest.
$ac_ext
3385 if test x
$ac_cv_sizeof_int != x
; then break; fi
3390 if test x
$ac_cv_sizeof_int = x
; then
3391 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3392 echo "$as_me: error: cannot determine a size for int" >&2;}
3393 { (exit 1); exit 1; }; }
3395 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3396 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3398 cat >>confdefs.h
<<_ACEOF
3399 #define SIZEOF_INT $ac_cv_sizeof_int
3403 echo "$as_me:$LINENO: checking size of long" >&5
3404 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3405 if test "${ac_cv_sizeof_long+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3409 cat >conftest.
$ac_ext <<_ACEOF
3410 #line $LINENO "configure"
3413 cat confdefs.h
>>conftest.
$ac_ext
3414 cat >>conftest.
$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416 #include "confdefs.h"
3417 #include <sys/types.h>
3423 switch (0) case 0: case (sizeof (long) == $ac_size):;
3428 rm -f conftest.
$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try
='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 ac_cv_sizeof_long
=$ac_size
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.
$ac_ext >&5
3446 rm -f conftest.
$ac_objext conftest.
$ac_ext
3447 if test x
$ac_cv_sizeof_long != x
; then break; fi
3452 if test x
$ac_cv_sizeof_long = x
; then
3453 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3454 echo "$as_me: error: cannot determine a size for long" >&2;}
3455 { (exit 1); exit 1; }; }
3457 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3458 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3460 cat >>confdefs.h
<<_ACEOF
3461 #define SIZEOF_LONG $ac_cv_sizeof_long
3465 if test $ac_cv_c_long_long = yes; then
3466 echo "$as_me:$LINENO: checking size of long long" >&5
3467 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3468 if test "${ac_cv_sizeof_long_long+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3472 cat >conftest.
$ac_ext <<_ACEOF
3473 #line $LINENO "configure"
3476 cat confdefs.h
>>conftest.
$ac_ext
3477 cat >>conftest.
$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 #include "confdefs.h"
3480 #include <sys/types.h>
3486 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3491 rm -f conftest.
$ac_objext
3492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493 (eval $ac_compile) 2>&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try
='test -s conftest.$ac_objext'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3503 ac_cv_sizeof_long_long
=$ac_size
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.
$ac_ext >&5
3509 rm -f conftest.
$ac_objext conftest.
$ac_ext
3510 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3515 if test x
$ac_cv_sizeof_long_long = x
; then
3516 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3517 echo "$as_me: error: cannot determine a size for long long" >&2;}
3518 { (exit 1); exit 1; }; }
3520 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3521 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3523 cat >>confdefs.h
<<_ACEOF
3524 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3529 if test $ac_cv_c___int64 = yes; then
3530 echo "$as_me:$LINENO: checking size of __int64" >&5
3531 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3532 if test "${ac_cv_sizeof___int64+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3536 cat >conftest.
$ac_ext <<_ACEOF
3537 #line $LINENO "configure"
3540 cat confdefs.h
>>conftest.
$ac_ext
3541 cat >>conftest.
$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #include "confdefs.h"
3544 #include <sys/types.h>
3550 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3555 rm -f conftest.
$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } &&
3561 { ac_try
='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 ac_cv_sizeof___int64
=$ac_size
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.
$ac_ext >&5
3573 rm -f conftest.
$ac_objext conftest.
$ac_ext
3574 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3579 if test x
$ac_cv_sizeof___int64 = x
; then
3580 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3581 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3582 { (exit 1); exit 1; }; }
3584 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3585 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3587 cat >>confdefs.h
<<_ACEOF
3588 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3598 # See if GNAT has been installed
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3604 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 if test -n "$GNATBIND"; then
3611 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir
=.
3618 for ac_exec_ext
in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 GNATBIND
=$ac_cv_prog_GNATBIND
3630 if test -n "$GNATBIND"; then
3631 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3632 echo "${ECHO_T}$GNATBIND" >&6
3634 echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3639 if test -z "$ac_cv_prog_GNATBIND"; then
3640 ac_ct_GNATBIND
=$GNATBIND
3641 # Extract the first word of "gnatbind", so it can be a program name with args.
3642 set dummy gnatbind
; ac_word
=$2
3643 echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 if test -n "$ac_ct_GNATBIND"; then
3649 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir
=.
3656 for ac_exec_ext
in '' $ac_executable_extensions; do
3657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3668 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3669 if test -n "$ac_ct_GNATBIND"; then
3670 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3671 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3673 echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6
3677 GNATBIND
=$ac_ct_GNATBIND
3679 GNATBIND
="$ac_cv_prog_GNATBIND"
3682 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3683 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3684 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 cat >conftest.adb
<<EOF
3688 procedure conftest is begin null; end conftest;
3690 gcc_cv_cc_supports_ada
=no
3691 # There is a bug in old released versions of GCC which causes the
3692 # driver to exit successfully when the appropriate language module
3693 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3694 # Therefore we must check for the error message as well as an
3695 # unsuccessful exit.
3696 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3697 if test x
"$errors" = x
; then
3698 gcc_cv_cc_supports_ada
=yes
3703 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3704 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3706 if test x
$GNATBIND != xno
&& test x
$gcc_cv_supports_ada != xno
; then
3713 # ---------------------
3714 # Warnings and checking
3715 # ---------------------
3718 if test $ac_cv_prog_cc_no_long_long = yes ; then
3719 strict1_warn
="-pedantic -Wno-long-long"
3723 # If the native compiler is GCC, we can enable warnings even in stage1.
3724 # That's useful for people building cross-compilers, or just running a
3727 if test "x$GCC" = "xyes"; then
3728 warn_cflags
='$(GCC_WARN_CFLAGS)'
3732 # Enable -Werror in bootstrap stage2 and later.
3733 # Change the default to "no" on release branches.
3734 # Check whether --enable-werror or --disable-werror was given.
3735 if test "${enable_werror+set}" = set; then
3736 enableval
="$enable_werror"
3741 if test x
$enable_werror = xyes
; then
3746 # Enable expensive internal checks
3747 # Check whether --enable-checking or --disable-checking was given.
3748 if test "${enable_checking+set}" = set; then
3749 enableval
="$enable_checking"
3753 ac_rtlflag_checking
=
3755 ac_gc_always_collect
=
3757 case "${enableval}" in
3758 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3759 ac_rtlflag_checking
=1 ;;
3761 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3762 set fnord
$enableval; shift
3767 misc
) ac_checking
=1 ;;
3768 tree
) ac_tree_checking
=1 ;;
3769 rtlflag
) ac_rtlflag_checking
=1 ;;
3770 rtl
) ac_rtl_checking
=1 ;;
3771 gc
) ac_gc_checking
=1 ;;
3772 gcac
) ac_gc_always_collect
=1 ;;
3773 fold) ac_fold_checking
=1 ;;
3774 valgrind
) ac_checking_valgrind
=1 ;;
3775 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3776 echo "$as_me: error: unknown check category $check" >&2;}
3777 { (exit 1); exit 1; }; } ;;
3784 # Enable some checks by default for development versions of GCC
3785 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
3788 if test x
$ac_checking != x
; then
3790 cat >>confdefs.h
<<\_ACEOF
3791 #define ENABLE_CHECKING 1
3794 nocommon_flag
=-fno-common
3797 if test x
$ac_tree_checking != x
; then
3799 cat >>confdefs.h
<<\_ACEOF
3800 #define ENABLE_TREE_CHECKING 1
3804 if test x
$ac_rtl_checking != x
; then
3806 cat >>confdefs.h
<<\_ACEOF
3807 #define ENABLE_RTL_CHECKING 1
3811 if test x
$ac_rtlflag_checking != x
; then
3813 cat >>confdefs.h
<<\_ACEOF
3814 #define ENABLE_RTL_FLAG_CHECKING 1
3818 if test x
$ac_gc_checking != x
; then
3820 cat >>confdefs.h
<<\_ACEOF
3821 #define ENABLE_GC_CHECKING 1
3825 if test x
$ac_gc_always_collect != x
; then
3827 cat >>confdefs.h
<<\_ACEOF
3828 #define ENABLE_GC_ALWAYS_COLLECT 1
3832 if test x
$ac_fold_checking != x
; then
3834 cat >>confdefs.h
<<\_ACEOF
3835 #define ENABLE_FOLD_CHECKING 1
3839 valgrind_path_defines
=
3843 echo "$as_me:$LINENO: checking for egrep" >&5
3844 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3845 if test "${ac_cv_prog_egrep+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3849 then ac_cv_prog_egrep
='grep -E'
3850 else ac_cv_prog_egrep
='egrep'
3853 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3854 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3855 EGREP
=$ac_cv_prog_egrep
3858 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3859 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3860 if test "${ac_cv_header_stdc+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 cat >conftest.
$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3867 cat confdefs.h
>>conftest.
$ac_ext
3868 cat >>conftest.
$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3883 rm -f conftest.
$ac_objext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885 (eval $ac_compile) 2>&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try
='test -s conftest.$ac_objext'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; }; then
3895 ac_cv_header_stdc
=yes
3897 echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.
$ac_ext >&5
3900 ac_cv_header_stdc
=no
3902 rm -f conftest.
$ac_objext conftest.
$ac_ext
3904 if test $ac_cv_header_stdc = yes; then
3905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3906 cat >conftest.
$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3910 cat confdefs.h
>>conftest.
$ac_ext
3911 cat >>conftest.
$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3917 $EGREP "memchr" >/dev
/null
2>&1; then
3920 ac_cv_header_stdc
=no
3926 if test $ac_cv_header_stdc = yes; then
3927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3928 cat >conftest.
$ac_ext <<_ACEOF
3929 #line $LINENO "configure"
3932 cat confdefs.h
>>conftest.
$ac_ext
3933 cat >>conftest.
$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939 $EGREP "free" >/dev
/null
2>&1; then
3942 ac_cv_header_stdc
=no
3948 if test $ac_cv_header_stdc = yes; then
3949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3950 if test "$cross_compiling" = yes; then
3953 cat >conftest.
$ac_ext <<_ACEOF
3954 #line $LINENO "configure"
3957 cat confdefs.h
>>conftest.
$ac_ext
3958 cat >>conftest.
$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3961 #if ((' ' & 0x0FF) == 0x020)
3962 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3963 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3965 # define ISLOWER(c) \
3966 (('a' <= (c) && (c) <= 'i') \
3967 || ('j' <= (c) && (c) <= 'r') \
3968 || ('s' <= (c) && (c) <= 'z'))
3969 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3972 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3977 for (i = 0; i < 256; i++)
3978 if (XOR (islower (i), ISLOWER (i))
3979 || toupper (i) != TOUPPER (i))
3984 rm -f conftest
$ac_exeext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3986 (eval $ac_link) 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3997 echo "$as_me: program exited with status $ac_status" >&5
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.
$ac_ext >&5
4002 ac_cv_header_stdc
=no
4004 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4008 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4009 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4010 if test $ac_cv_header_stdc = yes; then
4012 cat >>confdefs.h
<<\_ACEOF
4013 #define STDC_HEADERS 1
4018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4028 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4029 inttypes.h stdint.h unistd.h
4031 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4032 echo "$as_me:$LINENO: checking for $ac_header" >&5
4033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 cat >conftest.
$ac_ext <<_ACEOF
4038 #line $LINENO "configure"
4041 cat confdefs.h
>>conftest.
$ac_ext
4042 cat >>conftest.
$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4044 $ac_includes_default
4046 #include <$ac_header>
4048 rm -f conftest.
$ac_objext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try
='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 eval "$as_ac_Header=yes"
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.
$ac_ext >&5
4065 eval "$as_ac_Header=no"
4067 rm -f conftest.
$ac_objext conftest.
$ac_ext
4069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4072 cat >>confdefs.h
<<_ACEOF
4073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4081 if test "${ac_cv_header_valgrind_h+set}" = set; then
4082 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4083 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4084 if test "${ac_cv_header_valgrind_h+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4088 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4090 # Is the header compilable?
4091 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4092 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4093 cat >conftest.
$ac_ext <<_ACEOF
4094 #line $LINENO "configure"
4097 cat confdefs.h
>>conftest.
$ac_ext
4098 cat >>conftest.
$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 $ac_includes_default
4101 #include <valgrind.h>
4103 rm -f conftest.
$ac_objext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105 (eval $ac_compile) 2>&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try
='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 ac_header_compiler
=yes
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.
$ac_ext >&5
4120 ac_header_compiler
=no
4122 rm -f conftest.
$ac_objext conftest.
$ac_ext
4123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4124 echo "${ECHO_T}$ac_header_compiler" >&6
4126 # Is the header present?
4127 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4128 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4129 cat >conftest.
$ac_ext <<_ACEOF
4130 #line $LINENO "configure"
4133 cat confdefs.h
>>conftest.
$ac_ext
4134 cat >>conftest.
$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 #include <valgrind.h>
4138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4139 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4141 grep -v '^ *+' conftest.er1
>conftest.err
4143 cat conftest.err
>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } >/dev
/null
; then
4146 if test -s conftest.err
; then
4147 ac_cpp_err
=$ac_c_preproc_warn_flag
4154 if test -z "$ac_cpp_err"; then
4155 ac_header_preproc
=yes
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.
$ac_ext >&5
4160 ac_header_preproc
=no
4162 rm -f conftest.err conftest.
$ac_ext
4163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4164 echo "${ECHO_T}$ac_header_preproc" >&6
4166 # So? What about this header?
4167 case $ac_header_compiler:$ac_header_preproc in
4169 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4170 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4171 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4172 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4175 ## ------------------------------------ ##
4176 ## Report this to bug-autoconf@gnu.org. ##
4177 ## ------------------------------------ ##
4180 sed "s/^/$as_me: WARNING: /" >&2
4183 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4184 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4185 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4186 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4187 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4188 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4191 ## ------------------------------------ ##
4192 ## Report this to bug-autoconf@gnu.org. ##
4193 ## ------------------------------------ ##
4196 sed "s/^/$as_me: WARNING: /" >&2
4199 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4200 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4201 if test "${ac_cv_header_valgrind_h+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 ac_cv_header_valgrind_h
=$ac_header_preproc
4206 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4207 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4210 if test $ac_cv_header_valgrind_h = yes; then
4218 if test x
$ac_checking_valgrind != x
; then
4219 # It is certainly possible that there's valgrind but no valgrind.h.
4220 # GCC relies on making annotations so we must have both.
4221 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4222 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4223 cat >conftest.
$ac_ext <<_ACEOF
4224 #line $LINENO "configure"
4227 cat confdefs.h
>>conftest.
$ac_ext
4228 cat >>conftest.
$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <valgrind/memcheck.h>
4231 #ifndef VALGRIND_DISCARD
4232 #error VALGRIND_DISCARD not defined
4235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4236 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4238 grep -v '^ *+' conftest.er1
>conftest.err
4240 cat conftest.err
>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } >/dev
/null
; then
4243 if test -s conftest.err
; then
4244 ac_cpp_err
=$ac_c_preproc_warn_flag
4251 if test -z "$ac_cpp_err"; then
4252 gcc_cv_header_valgrind_memcheck_h
=yes
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.
$ac_ext >&5
4257 gcc_cv_header_valgrind_memcheck_h
=no
4259 rm -f conftest.err conftest.
$ac_ext
4260 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4261 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4262 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4263 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4264 cat >conftest.
$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4268 cat confdefs.h
>>conftest.
$ac_ext
4269 cat >>conftest.
$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 #include <memcheck.h>
4272 #ifndef VALGRIND_DISCARD
4273 #error VALGRIND_DISCARD not defined
4276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4277 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4279 grep -v '^ *+' conftest.er1
>conftest.err
4281 cat conftest.err
>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } >/dev
/null
; then
4284 if test -s conftest.err
; then
4285 ac_cpp_err
=$ac_c_preproc_warn_flag
4292 if test -z "$ac_cpp_err"; then
4293 gcc_cv_header_memcheck_h
=yes
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.
$ac_ext >&5
4298 gcc_cv_header_memcheck_h
=no
4300 rm -f conftest.err conftest.
$ac_ext
4301 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4302 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4304 # Prepare PATH_SEPARATOR.
4305 # The user is always right.
4306 if test "${PATH_SEPARATOR+set}" != set; then
4307 echo "#! /bin/sh" >conf$$.sh
4308 echo "exit 0" >>conf$$.sh
4310 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4318 # Find out how to test for executable files. Don't use a zero-byte file,
4319 # as systems may use methods other than mode bits to determine executability.
4320 cat >conf$$.
file <<_ASEOF
4324 chmod +x conf$$.
file
4325 if test -x conf$$.
file >/dev
/null
2>&1; then
4326 ac_executable_p
="test -x"
4328 ac_executable_p
="test -f"
4332 # Extract the first word of "valgrind", so it can be a program name with args.
4333 set dummy valgrind
; ac_word
=$2
4334 echo "$as_me:$LINENO: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4336 if test "${ac_cv_path_valgrind_path+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 case "$valgrind_path" in
4341 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4344 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4345 for ac_dir
in $PATH; do
4347 test -z "$ac_dir" && ac_dir
=.
4348 for ac_exec_ext
in '' $ac_executable_extensions; do
4349 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4350 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4351 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
4361 valgrind_path
="$ac_cv_path_valgrind_path"
4362 if test -n "$valgrind_path"; then
4363 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4364 echo "${ECHO_T}$valgrind_path" >&6
4366 echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6
4370 if test "x$valgrind_path" = "x" \
4371 ||
(test $have_valgrind_h = no \
4372 && test $gcc_cv_header_memcheck_h = no \
4373 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
4374 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4375 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4376 { (exit 1); exit 1; }; }
4378 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4379 valgrind_command
="$valgrind_path -q"
4381 cat >>confdefs.h
<<\_ACEOF
4382 #define ENABLE_VALGRIND_CHECKING 1
4385 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4387 cat >>confdefs.h
<<\_ACEOF
4388 #define HAVE_VALGRIND_MEMCHECK_H 1
4392 if test $gcc_cv_header_memcheck_h = yes; then
4394 cat >>confdefs.h
<<\_ACEOF
4395 #define HAVE_MEMCHECK_H 1
4403 # Enable code coverage collection
4404 # Check whether --enable-coverage or --disable-coverage was given.
4405 if test "${enable_coverage+set}" = set; then
4406 enableval
="$enable_coverage"
4407 case "${enableval}" in
4409 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4412 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4415 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4416 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4417 { (exit 1); exit 1; }; }
4425 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4426 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4427 enableval
="$enable_gather_detailed_mem_stats"
4430 enable_gather_detailed_mem_stats
=no
4432 if test x
$enable_gather_detailed_mem_stats = xyes
; then
4434 cat >>confdefs.h
<<\_ACEOF
4435 #define GATHER_STATISTICS 1
4440 # -------------------------------
4441 # Miscenalleous configure options
4442 # -------------------------------
4446 # Check whether --with-stabs or --without-stabs was given.
4447 if test "${with_stabs+set}" = set; then
4448 withval
="$with_stabs"
4454 # Determine whether or not multilibs are enabled.
4455 # Check whether --enable-multilib or --disable-multilib was given.
4456 if test "${enable_multilib+set}" = set; then
4457 enableval
="$enable_multilib"
4464 # Enable __cxa_atexit for C++.
4465 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4466 if test "${enable___cxa_atexit+set}" = set; then
4467 enableval
="$enable___cxa_atexit"
4472 # Pass with no value to take the default
4473 # Pass with a value to specify a thread package
4474 # Check whether --enable-threads or --disable-threads was given.
4475 if test "${enable_threads+set}" = set; then
4476 enableval
="$enable_threads"
4481 # Save in case it gets overwritten in config.gcc
4482 enable_threads_flag
=$enable_threads
4484 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4485 if test "${enable_objc_gc+set}" = set; then
4486 enableval
="$enable_objc_gc"
4487 if test x
$enable_objc_gc = xno
; then
4497 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4498 if test "${with_dwarf2+set}" = set; then
4499 withval
="$with_dwarf2"
4500 dwarf2
="$with_dwarf2"
4505 # Check whether --enable-shared or --disable-shared was given.
4506 if test "${enable_shared+set}" = set; then
4507 enableval
="$enable_shared"
4509 case $enable_shared in
4513 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4514 for pkg
in $enableval; do
4515 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4529 # Check whether --with-sysroot or --without-sysroot was given.
4530 if test "${with_sysroot+set}" = set; then
4531 withval
="$with_sysroot"
4533 case ${with_sysroot} in
4534 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4535 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4538 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4539 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4541 if test "x$exec_prefix" = xNONE
; then
4542 if test "x$prefix" = xNONE
; then
4543 test_prefix
=/usr
/local
4548 test_prefix
=$exec_prefix
4550 case ${TARGET_SYSTEM_ROOT} in
4551 "${test_prefix}"|
"${test_prefix}/"*|\
4552 '${exec_prefix}'|
'${exec_prefix}/'*)
4553 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4554 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4561 TARGET_SYSTEM_ROOT_DEFINE
=
4562 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4569 # Build with intermodule optimisations
4570 # Check whether --enable-intermodule or --disable-intermodule was given.
4571 if test "${enable_intermodule+set}" = set; then
4572 enableval
="$enable_intermodule"
4573 case ${enable_intermodule} in
4574 yes) onestep
="-onestep";;
4582 # -------------------------
4583 # Checks for other programs
4584 # -------------------------
4586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4588 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
4589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 cat >conftest.
make <<\_ACEOF
4594 @
echo 'ac_maketemp="$(MAKE)"'
4596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4598 if test -n "$ac_maketemp"; then
4599 eval ac_cv_prog_make_
${ac_make}_set
=yes
4601 eval ac_cv_prog_make_
${ac_make}_set
=no
4605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4606 echo "$as_me:$LINENO: result: yes" >&5
4607 echo "${ECHO_T}yes" >&6
4610 echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4612 SET_MAKE
="MAKE=${MAKE-make}"
4616 # Find some useful tools
4617 for ac_prog
in gawk mawk nawk
awk
4619 # Extract the first word of "$ac_prog", so it can be a program name with args.
4620 set dummy
$ac_prog; ac_word
=$2
4621 echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623 if test "${ac_cv_prog_AWK+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -n "$AWK"; then
4627 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir
=.
4634 for ac_exec_ext
in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_AWK
="$ac_prog"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$AWK"; then
4647 echo "$as_me:$LINENO: result: $AWK" >&5
4648 echo "${ECHO_T}$AWK" >&6
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4654 test -n "$AWK" && break
4657 # We need awk to run opts.sh (to create options.c and options.h).
4658 # Bail out if it's missing.
4660 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4661 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4662 { (exit 1); exit 1; }; } ;;
4665 echo "$as_me:$LINENO: checking whether ln works" >&5
4666 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4667 if test "${gcc_cv_prog_LN+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 rm -f conftestdata_t
4671 echo >conftestdata_f
4672 if ln conftestdata_f conftestdata_t
2>/dev
/null
4676 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4678 gcc_cv_prog_LN
="ln -s"
4683 rm -f conftestdata_f conftestdata_t
4686 LN
="$gcc_cv_prog_LN"
4687 if test "$gcc_cv_prog_LN" = "ln"; then
4688 echo "$as_me:$LINENO: result: yes" >&5
4689 echo "${ECHO_T}yes" >&6
4691 if test "$gcc_cv_prog_LN" = "ln -s"; then
4692 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4693 echo "${ECHO_T}no, using ln -s" >&6
4695 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4696 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4700 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4701 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4702 if test "${gcc_cv_prog_LN_S+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 rm -f conftestdata_t
4706 echo >conftestdata_f
4707 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4709 gcc_cv_prog_LN_S
="ln -s"
4711 if ln conftestdata_f conftestdata_t
2>/dev
/null
4718 rm -f conftestdata_f conftestdata_t
4721 LN_S
="$gcc_cv_prog_LN_S"
4722 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4723 echo "$as_me:$LINENO: result: yes" >&5
4724 echo "${ECHO_T}yes" >&6
4726 if test "$gcc_cv_prog_LN_S" = "ln"; then
4727 echo "$as_me:$LINENO: result: no, using ln" >&5
4728 echo "${ECHO_T}no, using ln" >&6
4730 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4731 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4737 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4738 echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4740 if test "${ac_cv_prog_RANLIB+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 if test -n "$RANLIB"; then
4744 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir
=.
4751 for ac_exec_ext
in '' $ac_executable_extensions; do
4752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 RANLIB
=$ac_cv_prog_RANLIB
4763 if test -n "$RANLIB"; then
4764 echo "$as_me:$LINENO: result: $RANLIB" >&5
4765 echo "${ECHO_T}$RANLIB" >&6
4767 echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6
4772 if test -z "$ac_cv_prog_RANLIB"; then
4773 ac_ct_RANLIB
=$RANLIB
4774 # Extract the first word of "ranlib", so it can be a program name with args.
4775 set dummy ranlib
; ac_word
=$2
4776 echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 if test -n "$ac_ct_RANLIB"; then
4782 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir
=.
4789 for ac_exec_ext
in '' $ac_executable_extensions; do
4790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4801 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4802 if test -n "$ac_ct_RANLIB"; then
4803 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4804 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4806 echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4810 RANLIB
=$ac_ct_RANLIB
4812 RANLIB
="$ac_cv_prog_RANLIB"
4815 # Find a good install program. We prefer a C program (faster),
4816 # so one script is as good as another. But avoid the broken or
4817 # incompatible versions:
4818 # SysV /etc/install, /usr/sbin/install
4819 # SunOS /usr/etc/install
4820 # IRIX /sbin/install
4822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4824 # ./install, which can be erroneously created by make from ./install.sh.
4825 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4826 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4827 if test -z "$INSTALL"; then
4828 if test "${ac_cv_path_install+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
4832 for ac_dir
in $PATH; do
4833 # Account for people who put trailing slashes in PATH elements.
4835 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4837 # OSF1 and SCO ODT 3.0 have their own names for install.
4838 for ac_prog
in ginstall scoinst
install; do
4839 if test -f $ac_dir/$ac_prog; then
4840 if test $ac_prog = install &&
4841 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4842 # AIX install. It has an incompatible calling convention.
4843 # OSF/1 installbsd also uses dspmsg, but is usable.
4846 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4857 if test "${ac_cv_path_install+set}" = set; then
4858 INSTALL
="$ac_cv_path_install"
4860 # As a last resort, use the slow shell script. We don't cache a
4861 # path for INSTALL within a source directory, because that will
4862 # break other packages using the cache if that directory is
4863 # removed, or if the path is relative.
4864 INSTALL
="$ac_install_sh"
4867 echo "$as_me:$LINENO: result: $INSTALL" >&5
4868 echo "${ECHO_T}$INSTALL" >&6
4870 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4871 # It thinks the first close brace ends the variable substitution.
4872 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4874 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4877 # See if cmp has --ignore-initial.
4878 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4879 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4880 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 gcc_cv_prog_cmp_skip
=slowcompare
4886 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
4887 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
4890 gcc_cv_prog_cmp_skip
=gnucompare
4893 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
4894 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
4895 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
4898 gcc_cv_prog_cmp_skip
=fastcompare
4905 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4906 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4907 make_compare_target
=$gcc_cv_prog_cmp_skip
4911 # See if we have the mktemp command.
4912 # Extract the first word of "mktemp", so it can be a program name with args.
4913 set dummy mktemp
; ac_word
=$2
4914 echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 if test -n "$have_mktemp_command"; then
4920 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
4922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir
=.
4927 for ac_exec_ext
in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_have_mktemp_command
="yes"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
4939 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
4940 if test -n "$have_mktemp_command"; then
4941 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4942 echo "${ECHO_T}$have_mktemp_command" >&6
4944 echo "$as_me:$LINENO: result: no" >&5
4945 echo "${ECHO_T}no" >&6
4949 # Do we have a single-tree copy of texinfo?
4950 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
4951 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
4952 gcc_cv_prog_makeinfo_modern
=yes
4953 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4954 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4956 # See if makeinfo has been installed and is modern enough
4957 # that we can use it.
4958 # Extract the first word of "makeinfo", so it can be a program name with args.
4959 set dummy makeinfo
; ac_word
=$2
4960 echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4962 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 if test -n "$MAKEINFO"; then
4966 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4972 test -z "$as_dir" && as_dir
=.
4973 for ac_exec_ext
in '' $ac_executable_extensions; do
4974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4975 ac_cv_prog_MAKEINFO
="makeinfo"
4976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 MAKEINFO
=$ac_cv_prog_MAKEINFO
4985 if test -n "$MAKEINFO"; then
4986 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4987 echo "${ECHO_T}$MAKEINFO" >&6
4989 echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6
4993 if test -n "$MAKEINFO"; then
4994 # Found it, now check the version.
4995 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4996 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4997 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 ac_prog_version
=`$MAKEINFO --version 2>&1 |
5001 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5002 echo "configure:5002: version of makeinfo is $ac_prog_version" >&5
5003 case $ac_prog_version in
5004 '') gcc_cv_prog_makeinfo_modern
=no
;;
5006 gcc_cv_prog_makeinfo_modern
=yes;;
5007 *) gcc_cv_prog_makeinfo_modern
=no
;;
5011 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5012 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5014 gcc_cv_prog_makeinfo_modern
=no
5019 if test $gcc_cv_prog_makeinfo_modern = no
; then
5020 { echo "$as_me:$LINENO: WARNING:
5021 *** Makeinfo is missing or too old.
5022 *** Info documentation will not be built." >&5
5023 echo "$as_me: WARNING:
5024 *** Makeinfo is missing or too old.
5025 *** Info documentation will not be built." >&2;}
5031 # Is pod2man recent enough to regenerate manpages?
5032 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5033 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5034 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5035 echo "$as_me:$LINENO: result: yes" >&5
5036 echo "${ECHO_T}yes" >&6
5037 GENERATED_MANPAGES
=generated-manpages
5039 echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6
5045 if test -f $srcdir/..
/flex
/skel.c
; then
5046 FLEX
='$(objdir)/../flex/flex'
5048 # Extract the first word of "flex", so it can be a program name with args.
5049 set dummy flex
; ac_word
=$2
5050 echo "$as_me:$LINENO: checking for $ac_word" >&5
5051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5052 if test "${ac_cv_prog_FLEX+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 if test -n "$FLEX"; then
5056 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir
=.
5063 for ac_exec_ext
in '' $ac_executable_extensions; do
5064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_prog_FLEX
="flex"
5066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5075 FLEX
=$ac_cv_prog_FLEX
5076 if test -n "$FLEX"; then
5077 echo "$as_me:$LINENO: result: $FLEX" >&5
5078 echo "${ECHO_T}$FLEX" >&6
5080 echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6
5087 # The -L switch is so bison can find its skeleton file.
5088 if test -f $srcdir/..
/bison
/bison.simple
; then
5089 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5091 # Extract the first word of "bison", so it can be a program name with args.
5092 set dummy bison
; ac_word
=$2
5093 echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095 if test "${ac_cv_prog_BISON+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 if test -n "$BISON"; then
5099 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir
=.
5106 for ac_exec_ext
in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_prog_BISON
="bison"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5118 BISON
=$ac_cv_prog_BISON
5119 if test -n "$BISON"; then
5120 echo "$as_me:$LINENO: result: $BISON" >&5
5121 echo "${ECHO_T}$BISON" >&6
5123 echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6
5129 # --------------------
5130 # Checks for C headers
5131 # --------------------
5133 echo "$as_me:$LINENO: checking for GNU C library" >&5
5134 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5135 if test "${gcc_cv_glibc+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 cat >conftest.
$ac_ext <<_ACEOF
5139 #line $LINENO "configure"
5142 cat confdefs.h
>>conftest.
$ac_ext
5143 cat >>conftest.
$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 #include <features.h>
5150 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5151 #error Not a GNU C library system
5157 rm -f conftest.
$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159 (eval $ac_compile) 2>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try
='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.
$ac_ext >&5
5176 rm -f conftest.
$ac_objext conftest.
$ac_ext
5179 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5180 echo "${ECHO_T}$gcc_cv_glibc" >&6
5181 if test $gcc_cv_glibc = yes; then
5183 cat >>confdefs.h
<<\_ACEOF
5184 #define _GNU_SOURCE 1
5189 # Need to reject headers which give warnings, so that the -Werror bootstrap
5190 # works later. *sigh* This needs to come before all header checks.
5192 ac_c_preproc_warn_flag
=yes
5194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5196 if test "${ac_cv_header_stdc+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 cat >conftest.
$ac_ext <<_ACEOF
5200 #line $LINENO "configure"
5203 cat confdefs.h
>>conftest.
$ac_ext
5204 cat >>conftest.
$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5219 rm -f conftest.
$ac_objext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try
='test -s conftest.$ac_objext'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; }; then
5231 ac_cv_header_stdc
=yes
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.
$ac_ext >&5
5236 ac_cv_header_stdc
=no
5238 rm -f conftest.
$ac_objext conftest.
$ac_ext
5240 if test $ac_cv_header_stdc = yes; then
5241 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5242 cat >conftest.
$ac_ext <<_ACEOF
5243 #line $LINENO "configure"
5246 cat confdefs.h
>>conftest.
$ac_ext
5247 cat >>conftest.
$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5253 $EGREP "memchr" >/dev
/null
2>&1; then
5256 ac_cv_header_stdc
=no
5262 if test $ac_cv_header_stdc = yes; then
5263 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5264 cat >conftest.
$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5268 cat confdefs.h
>>conftest.
$ac_ext
5269 cat >>conftest.
$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5275 $EGREP "free" >/dev
/null
2>&1; then
5278 ac_cv_header_stdc
=no
5284 if test $ac_cv_header_stdc = yes; then
5285 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5286 if test "$cross_compiling" = yes; then
5289 cat >conftest.
$ac_ext <<_ACEOF
5290 #line $LINENO "configure"
5293 cat confdefs.h
>>conftest.
$ac_ext
5294 cat >>conftest.
$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5297 #if ((' ' & 0x0FF) == 0x020)
5298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5301 # define ISLOWER(c) \
5302 (('a' <= (c) && (c) <= 'i') \
5303 || ('j' <= (c) && (c) <= 'r') \
5304 || ('s' <= (c) && (c) <= 'z'))
5305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5313 for (i = 0; i < 256; i++)
5314 if (XOR (islower (i), ISLOWER (i))
5315 || toupper (i) != TOUPPER (i))
5320 rm -f conftest
$ac_exeext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5322 (eval $ac_link) 2>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5333 echo "$as_me: program exited with status $ac_status" >&5
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.
$ac_ext >&5
5338 ac_cv_header_stdc
=no
5340 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5344 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5345 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5346 if test $ac_cv_header_stdc = yes; then
5348 cat >>confdefs.h
<<\_ACEOF
5349 #define STDC_HEADERS 1
5354 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5355 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5356 if test "${ac_cv_header_time+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 cat >conftest.
$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5363 cat confdefs.h
>>conftest.
$ac_ext
5364 cat >>conftest.
$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <sys/types.h>
5367 #include <sys/time.h>
5373 if ((struct tm *) 0)
5379 rm -f conftest.
$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try
='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 ac_cv_header_time
=yes
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.
$ac_ext >&5
5396 ac_cv_header_time
=no
5398 rm -f conftest.
$ac_objext conftest.
$ac_ext
5400 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5401 echo "${ECHO_T}$ac_cv_header_time" >&6
5402 if test $ac_cv_header_time = yes; then
5404 cat >>confdefs.h
<<\_ACEOF
5405 #define TIME_WITH_SYS_TIME 1
5410 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5411 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5412 if test "${ac_cv_header_stdbool_h+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 cat >conftest.
$ac_ext <<_ACEOF
5416 #line $LINENO "configure"
5419 cat confdefs.h
>>conftest.
$ac_ext
5420 cat >>conftest.
$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <stdbool.h>
5431 rm -f conftest.
$ac_objext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433 (eval $ac_compile) 2>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try
='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_cv_header_stdbool_h
=yes
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.
$ac_ext >&5
5448 ac_cv_header_stdbool_h
=no
5450 rm -f conftest.
$ac_objext conftest.
$ac_ext
5452 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5453 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5454 if test $ac_cv_header_stdbool_h = yes; then
5456 cat >>confdefs.h
<<\_ACEOF
5457 #define HAVE_STDBOOL_H 1
5462 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5463 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5464 if test "${gcc_cv_header_string+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 cat >conftest.
$ac_ext <<_ACEOF
5468 #line $LINENO "configure"
5471 cat confdefs.h
>>conftest.
$ac_ext
5472 cat >>conftest.
$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5475 #include <strings.h>
5484 rm -f conftest.
$ac_objext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486 (eval $ac_compile) 2>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try
='test -s conftest.$ac_objext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 gcc_cv_header_string
=yes
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.
$ac_ext >&5
5501 gcc_cv_header_string
=no
5503 rm -f conftest.
$ac_objext conftest.
$ac_ext
5505 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5506 echo "${ECHO_T}$gcc_cv_header_string" >&6
5507 if test $gcc_cv_header_string = yes; then
5509 cat >>confdefs.h
<<\_ACEOF
5510 #define STRING_WITH_STRINGS 1
5515 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5516 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5517 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 cat >conftest.
$ac_ext <<_ACEOF
5521 #line $LINENO "configure"
5524 cat confdefs.h
>>conftest.
$ac_ext
5525 cat >>conftest.
$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #include <sys/types.h>
5528 #include <sys/wait.h>
5530 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5533 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5541 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5546 rm -f conftest.
$ac_objext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5548 (eval $ac_compile) 2>&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } &&
5552 { ac_try
='test -s conftest.$ac_objext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_header_sys_wait_h
=yes
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.
$ac_ext >&5
5563 ac_cv_header_sys_wait_h
=no
5565 rm -f conftest.
$ac_objext conftest.
$ac_ext
5567 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5568 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5569 if test $ac_cv_header_sys_wait_h = yes; then
5571 cat >>confdefs.h
<<\_ACEOF
5572 #define HAVE_SYS_WAIT_H 1
5598 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5599 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
5600 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5601 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5603 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5604 echo "$as_me:$LINENO: checking for $ac_header" >&5
5605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 cat >conftest.
$ac_ext <<_ACEOF
5610 #line $LINENO "configure"
5613 cat confdefs.h
>>conftest.
$ac_ext
5614 cat >>conftest.
$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 #include <$ac_header>
5618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5619 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5621 grep -v '^ *+' conftest.er1
>conftest.err
5623 cat conftest.err
>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } >/dev
/null
; then
5626 if test -s conftest.err
; then
5627 ac_cpp_err
=$ac_c_preproc_warn_flag
5634 if test -z "$ac_cpp_err"; then
5635 eval "$as_ac_Header=yes"
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.
$ac_ext >&5
5640 eval "$as_ac_Header=no"
5642 rm -f conftest.err conftest.
$ac_ext
5644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647 cat >>confdefs.h
<<_ACEOF
5648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5655 # Check for thread headers.
5656 echo "$as_me:$LINENO: checking for thread.h" >&5
5657 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5658 if test "${ac_cv_header_thread_h+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 cat >conftest.
$ac_ext <<_ACEOF
5662 #line $LINENO "configure"
5665 cat confdefs.h
>>conftest.
$ac_ext
5666 cat >>conftest.
$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5671 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5673 grep -v '^ *+' conftest.er1
>conftest.err
5675 cat conftest.err
>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } >/dev
/null
; then
5678 if test -s conftest.err
; then
5679 ac_cpp_err
=$ac_c_preproc_warn_flag
5686 if test -z "$ac_cpp_err"; then
5687 ac_cv_header_thread_h
=yes
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.
$ac_ext >&5
5692 ac_cv_header_thread_h
=no
5694 rm -f conftest.err conftest.
$ac_ext
5696 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5697 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5698 if test $ac_cv_header_thread_h = yes; then
5704 echo "$as_me:$LINENO: checking for pthread.h" >&5
5705 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5706 if test "${ac_cv_header_pthread_h+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 cat >conftest.
$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5713 cat confdefs.h
>>conftest.
$ac_ext
5714 cat >>conftest.
$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #include <pthread.h>
5718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5719 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5721 grep -v '^ *+' conftest.er1
>conftest.err
5723 cat conftest.err
>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } >/dev
/null
; then
5726 if test -s conftest.err
; then
5727 ac_cpp_err
=$ac_c_preproc_warn_flag
5734 if test -z "$ac_cpp_err"; then
5735 ac_cv_header_pthread_h
=yes
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.
$ac_ext >&5
5740 ac_cv_header_pthread_h
=no
5742 rm -f conftest.err conftest.
$ac_ext
5744 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5745 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5746 if test $ac_cv_header_pthread_h = yes; then
5753 # These tests can't be done till we know if we have limits.h.
5754 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5755 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5756 if test "${gcc_cv_decl_char_bit+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 cat >conftest.
$ac_ext <<_ACEOF
5760 #line $LINENO "configure"
5763 cat confdefs.h
>>conftest.
$ac_ext
5764 cat >>conftest.
$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #ifdef HAVE_LIMITS_H
5773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5774 $EGREP "found" >/dev
/null
2>&1; then
5775 gcc_cv_decl_char_bit
=yes
5777 gcc_cv_decl_char_bit
=no
5783 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5784 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5785 if test $gcc_cv_decl_char_bit = no
; then
5786 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5787 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5788 if test "${gcc_cv_c_nbby+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 while test $i -lt 65; do
5794 cat >conftest.
$ac_ext <<_ACEOF
5795 #line $LINENO "configure"
5798 cat confdefs.h
>>conftest.
$ac_ext
5799 cat >>conftest.
$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5806 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5807 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5813 rm -f conftest.
$ac_objext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815 (eval $ac_compile) 2>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try
='test -s conftest.$ac_objext'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 gcc_cv_c_nbby
=$i; break
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.
$ac_ext >&5
5831 rm -f conftest.
$ac_objext conftest.
$ac_ext
5834 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
5837 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5838 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
5839 if test $gcc_cv_c_nbby = failed
; then
5840 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5841 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5842 { (exit 1); exit 1; }; }
5845 cat >>confdefs.h
<<_ACEOF
5846 #define CHAR_BIT $gcc_cv_c_nbby
5851 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5852 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5853 if test "${ac_cv_c_bigendian+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 ac_cv_c_bigendian
=unknown
5857 # See if sys/param.h defines the BYTE_ORDER macro.
5858 cat >conftest.
$ac_ext <<_ACEOF
5859 #line $LINENO "configure"
5862 cat confdefs.h
>>conftest.
$ac_ext
5863 cat >>conftest.
$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 #include <sys/types.h>
5866 #include <sys/param.h>
5871 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5878 rm -f conftest.
$ac_objext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880 (eval $ac_compile) 2>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try
='test -s conftest.$ac_objext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 # It does; now see whether it defined to BIG_ENDIAN or not.
5891 cat >conftest.
$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5895 cat confdefs.h
>>conftest.
$ac_ext
5896 cat >>conftest.
$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #include <sys/types.h>
5899 #include <sys/param.h>
5904 #if BYTE_ORDER != BIG_ENDIAN
5911 rm -f conftest.
$ac_objext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913 (eval $ac_compile) 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try
='test -s conftest.$ac_objext'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 ac_cv_c_bigendian
=yes
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.
$ac_ext >&5
5928 ac_cv_c_bigendian
=no
5930 rm -f conftest.
$ac_objext conftest.
$ac_ext
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.
$ac_ext >&5
5936 rm -f conftest.
$ac_objext conftest.
$ac_ext
5937 if test $ac_cv_c_bigendian = unknown
; then
5938 if test "$cross_compiling" = yes; then
5939 echo $ac_n "cross-compiling... " 2>&6
5941 cat >conftest.
$ac_ext <<_ACEOF
5942 #line $LINENO "configure"
5945 cat confdefs.h
>>conftest.
$ac_ext
5946 cat >>conftest.
$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5949 /* Are we little or big endian? From Harbison&Steele. */
5953 char c[sizeof (long)];
5956 exit (u.c[sizeof (long) - 1] == 1);
5959 rm -f conftest
$ac_exeext
5960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5961 (eval $ac_link) 2>&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 ac_cv_c_bigendian
=no
5972 echo "$as_me: program exited with status $ac_status" >&5
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.
$ac_ext >&5
5977 ac_cv_c_bigendian
=yes
5979 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5983 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5984 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5985 if test $ac_cv_c_bigendian = unknown
; then
5986 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5987 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5989 cat >conftest.c
<<EOF
5990 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5991 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5992 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
5993 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5994 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5995 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
5996 int main() { _ascii (); _ebcdic (); return 0; }
5998 if test -f conftest.c
; then
5999 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
6000 if test `grep -l BIGenDianSyS conftest.o` ; then
6001 echo $ac_n ' big endian probe OK, ' 1>&6
6002 ac_cv_c_bigendian
=yes
6004 if test `grep -l LiTTleEnDian conftest.o` ; then
6005 echo $ac_n ' little endian probe OK, ' 1>&6
6006 if test $ac_cv_c_bigendian = yes ; then
6007 ac_cv_c_bigendian
=unknown
;
6009 ac_cv_c_bigendian
=no
6012 echo $ac_n 'guessing bigendian ... ' >&6
6015 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6016 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6018 if test $ac_cv_c_bigendian = yes; then
6020 cat >>confdefs.h
<<\_ACEOF
6021 #define WORDS_BIGENDIAN 1
6025 cat >>confdefs.h
<<\_ACEOF
6026 #define HOST_WORDS_BIG_ENDIAN 1
6034 cat >>confdefs.h
<<_ACEOF
6035 #define BYTEORDER $BYTEORDER
6038 if test $ac_cv_c_bigendian = unknown
; then
6039 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6040 echo "$as_me: error: unknown endianess - sorry" >&2;}
6041 { (exit please pre-set ac_cv_c_bigendian
); exit please pre-set ac_cv_c_bigendian
; }; }
6049 # Stage specific cflags for build.
6053 if test x
$GCC = xyes
6055 stage1_cflags
="-Wa,-J"
6061 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6062 # sources; use -no-cpp-precomp to get to GNU cpp.
6063 # Apple's GCC has bugs in designated initializer handling, so disable
6065 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6070 # These libraries may be used by collect2.
6071 # We may need a special search path to get them linked.
6072 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6073 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6074 if test "${gcc_cv_collect2_libs+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 for libs
in '' -lld -lmld \
6079 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6080 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6083 cat >conftest.
$ac_ext <<_ACEOF
6084 #line $LINENO "configure"
6087 cat confdefs.h
>>conftest.
$ac_ext
6088 cat >>conftest.
$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6091 /* Override any gcc2 internal prototype to avoid an error. */
6095 /* We use char because int might match the return type of a gcc2
6096 builtin and then its argument prototype would still apply. */
6106 rm -f conftest.
$ac_objext conftest
$ac_exeext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6108 (eval $ac_link) 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try
='test -s conftest$ac_exeext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 gcc_cv_collect2_libs
="$libs"; break
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.
$ac_ext >&5
6124 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6127 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6129 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6130 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6131 case $gcc_cv_collect2_libs in
6133 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6137 # When building Ada code on Alpha, we need exc_resume which is usually in
6138 # -lexc. So test for it.
6141 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6142 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6143 if test "${ac_cv_search_exc_resume+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 ac_func_search_save_LIBS
=$LIBS
6147 ac_cv_search_exc_resume
=no
6148 cat >conftest.
$ac_ext <<_ACEOF
6149 #line $LINENO "configure"
6152 cat confdefs.h
>>conftest.
$ac_ext
6153 cat >>conftest.
$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6156 /* Override any gcc2 internal prototype to avoid an error. */
6160 /* We use char because int might match the return type of a gcc2
6161 builtin and then its argument prototype would still apply. */
6171 rm -f conftest.
$ac_objext conftest
$ac_exeext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6173 (eval $ac_link) 2>&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try
='test -s conftest$ac_exeext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 ac_cv_search_exc_resume
="none required"
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.
$ac_ext >&5
6189 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6190 if test "$ac_cv_search_exc_resume" = no
; then
6191 for ac_lib
in exc
; do
6192 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6193 cat >conftest.
$ac_ext <<_ACEOF
6194 #line $LINENO "configure"
6197 cat confdefs.h
>>conftest.
$ac_ext
6198 cat >>conftest.
$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6201 /* Override any gcc2 internal prototype to avoid an error. */
6205 /* We use char because int might match the return type of a gcc2
6206 builtin and then its argument prototype would still apply. */
6216 rm -f conftest.
$ac_objext conftest
$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try
='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_search_exc_resume
="-l$ac_lib"
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.
$ac_ext >&5
6235 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6238 LIBS
=$ac_func_search_save_LIBS
6240 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6241 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6242 if test "$ac_cv_search_exc_resume" != no
; then
6243 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6251 # Some systems put ldexp and frexp in libm instead of libc; assume
6252 # they're both in the same place. jcf-dump needs them.
6255 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6256 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6257 if test "${ac_cv_search_ldexp+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 ac_func_search_save_LIBS
=$LIBS
6261 ac_cv_search_ldexp
=no
6262 cat >conftest.
$ac_ext <<_ACEOF
6263 #line $LINENO "configure"
6266 cat confdefs.h
>>conftest.
$ac_ext
6267 cat >>conftest.
$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6270 /* Override any gcc2 internal prototype to avoid an error. */
6274 /* We use char because int might match the return type of a gcc2
6275 builtin and then its argument prototype would still apply. */
6285 rm -f conftest.
$ac_objext conftest
$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try
='test -s conftest$ac_exeext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_search_ldexp
="none required"
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.
$ac_ext >&5
6303 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6304 if test "$ac_cv_search_ldexp" = no
; then
6306 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6307 cat >conftest.
$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6311 cat confdefs.h
>>conftest.
$ac_ext
6312 cat >>conftest.
$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6315 /* Override any gcc2 internal prototype to avoid an error. */
6319 /* We use char because int might match the return type of a gcc2
6320 builtin and then its argument prototype would still apply. */
6330 rm -f conftest.
$ac_objext conftest
$ac_exeext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332 (eval $ac_link) 2>&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try
='test -s conftest$ac_exeext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 ac_cv_search_ldexp
="-l$ac_lib"
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.
$ac_ext >&5
6349 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6352 LIBS
=$ac_func_search_save_LIBS
6354 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6355 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6356 if test "$ac_cv_search_ldexp" != no
; then
6357 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6365 # Use <inttypes.h> only if it exists,
6366 # doesn't clash with <sys/types.h>, and declares intmax_t.
6367 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6368 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6369 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 cat >conftest.
$ac_ext <<_ACEOF
6373 #line $LINENO "configure"
6376 cat confdefs.h
>>conftest.
$ac_ext
6377 cat >>conftest.
$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 #include <sys/types.h>
6380 #include <inttypes.h>
6389 rm -f conftest.
$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try
='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 gcc_cv_header_inttypes_h
=yes
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.
$ac_ext >&5
6406 gcc_cv_header_inttypes_h
=no
6408 rm -f conftest.
$ac_objext conftest.
$ac_ext
6411 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6412 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6413 if test $gcc_cv_header_inttypes_h = yes; then
6415 cat >>confdefs.h
<<\_ACEOF
6416 #define HAVE_INTTYPES_H 1
6447 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6448 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6449 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6450 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6453 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6454 echo "$as_me:$LINENO: checking for $ac_func" >&5
6455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6456 if eval "test \"\${$as_ac_var+set}\" = set"; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 cat >conftest.
$ac_ext <<_ACEOF
6460 #line $LINENO "configure"
6463 cat confdefs.h
>>conftest.
$ac_ext
6464 cat >>conftest.
$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 /* System header to define __stub macros and hopefully few prototypes,
6467 which can conflict with char $ac_func (); below.
6468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6469 <limits.h> exists even on freestanding compilers. */
6471 # include <limits.h>
6473 # include <assert.h>
6475 /* Override any gcc2 internal prototype to avoid an error. */
6480 /* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6483 /* The GNU C library defines this for functions which it implements
6484 to always fail with ENOSYS. Some functions are actually named
6485 something starting with __ and the normal name is an alias. */
6486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6489 char (*f) () = $ac_func;
6498 return f != $ac_func;
6503 rm -f conftest.
$ac_objext conftest
$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
6509 { ac_try
='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 eval "$as_ac_var=yes"
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.
$ac_ext >&5
6520 eval "$as_ac_var=no"
6522 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6526 if test `eval echo '${'$as_ac_var'}'` = yes; then
6527 cat >>confdefs.h
<<_ACEOF
6528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6535 if test x
$ac_cv_func_mbstowcs = xyes
; then
6536 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6537 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6538 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 if test "$cross_compiling" = yes; then
6542 gcc_cv_func_mbstowcs_works
=yes
6544 cat >conftest.
$ac_ext <<_ACEOF
6545 #line $LINENO "configure"
6548 cat confdefs.h
>>conftest.
$ac_ext
6549 cat >>conftest.
$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6558 rm -f conftest
$ac_exeext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560 (eval $ac_link) 2>&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 gcc_cv_func_mbstowcs_works
=yes
6571 echo "$as_me: program exited with status $ac_status" >&5
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6576 gcc_cv_func_mbstowcs_works
=no
6578 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6581 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6582 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6583 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
6585 cat >>confdefs.h
<<\_ACEOF
6586 #define HAVE_WORKING_MBSTOWCS 1
6592 echo "$as_me:$LINENO: checking for ssize_t" >&5
6593 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6594 if test "${ac_cv_type_ssize_t+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 cat >conftest.
$ac_ext <<_ACEOF
6598 #line $LINENO "configure"
6601 cat confdefs.h
>>conftest.
$ac_ext
6602 cat >>conftest.
$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 $ac_includes_default
6610 if (sizeof (ssize_t))
6616 rm -f conftest.
$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try
='test -s conftest.$ac_objext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 ac_cv_type_ssize_t
=yes
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.
$ac_ext >&5
6633 ac_cv_type_ssize_t
=no
6635 rm -f conftest.
$ac_objext conftest.
$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6638 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6639 if test $ac_cv_type_ssize_t = yes; then
6643 cat >>confdefs.h
<<_ACEOF
6650 # Try to determine the array type of the second argument of getgroups
6651 # for the target system (int or gid_t).
6652 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6653 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6654 if test "${ac_cv_type_uid_t+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 cat >conftest.
$ac_ext <<_ACEOF
6658 #line $LINENO "configure"
6661 cat confdefs.h
>>conftest.
$ac_ext
6662 cat >>conftest.
$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 #include <sys/types.h>
6667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6668 $EGREP "uid_t" >/dev
/null
2>&1; then
6669 ac_cv_type_uid_t
=yes
6676 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6677 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6678 if test $ac_cv_type_uid_t = no
; then
6680 cat >>confdefs.h
<<\_ACEOF
6685 cat >>confdefs.h
<<\_ACEOF
6691 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6692 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6693 if test "${ac_cv_type_getgroups+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 if test "$cross_compiling" = yes; then
6697 ac_cv_type_getgroups
=cross
6699 cat >conftest.
$ac_ext <<_ACEOF
6700 #line $LINENO "configure"
6703 cat confdefs.h
>>conftest.
$ac_ext
6704 cat >>conftest.
$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 /* Thanks to Mike Rendell for this test. */
6707 #include <sys/types.h>
6710 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6717 union { gid_t gval; long lval; } val;
6720 for (i = 0; i < NGID; i++)
6721 gidset[i] = val.gval;
6722 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6724 /* Exit non-zero if getgroups seems to require an array of ints. This
6725 happens when gid_t is short but getgroups modifies an array of ints. */
6726 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6729 rm -f conftest
$ac_exeext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731 (eval $ac_link) 2>&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; }; then
6740 ac_cv_type_getgroups
=gid_t
6742 echo "$as_me: program exited with status $ac_status" >&5
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.
$ac_ext >&5
6747 ac_cv_type_getgroups
=int
6749 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6751 if test $ac_cv_type_getgroups = cross
; then
6752 cat >conftest.
$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6756 cat confdefs.h
>>conftest.
$ac_ext
6757 cat >>conftest.
$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6763 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
6764 ac_cv_type_getgroups
=gid_t
6766 ac_cv_type_getgroups
=int
6772 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6773 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6775 cat >>confdefs.h
<<_ACEOF
6776 #define GETGROUPS_T $ac_cv_type_getgroups
6780 if test "${target}" = "${build}"; then
6781 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
6784 # This condition may need some tweaking. It should include all
6785 # targets where the array type of the second argument of getgroups
6786 # is int and the type of gid_t is not equivalent to int.
6787 *-*-sunos* |
*-*-ultrix*)
6788 TARGET_GETGROUPS_T
=int
6791 TARGET_GETGROUPS_T
=gid_t
6797 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
6798 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
6799 if test "${gcc_cv_func_printf_ptr+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 if test "$cross_compiling" = yes; then
6803 gcc_cv_func_printf_ptr
=no
6805 cat >conftest.
$ac_ext <<_ACEOF
6806 #line $LINENO "configure"
6809 cat confdefs.h
>>conftest.
$ac_ext
6810 cat >>conftest.
$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6817 char *p = buf, *q = NULL;
6818 sprintf(buf, "%p", p);
6819 sscanf(buf, "%p", &q);
6823 rm -f conftest
$ac_exeext
6824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6825 (eval $ac_link) 2>&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834 gcc_cv_func_printf_ptr
=yes
6836 echo "$as_me: program exited with status $ac_status" >&5
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.
$ac_ext >&5
6841 gcc_cv_func_printf_ptr
=no
6843 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6845 rm -f core core.
* *.core
6847 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
6848 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
6849 if test $gcc_cv_func_printf_ptr = yes ; then
6851 cat >>confdefs.h
<<\_ACEOF
6852 #define HAVE_PRINTF_PTR 1
6857 if test $ac_cv_header_sys_mman_h != yes \
6858 ||
test $ac_cv_func_mmap != yes; then
6859 gcc_cv_func_mmap_file
=no
6860 gcc_cv_func_mmap_dev_zero
=no
6861 gcc_cv_func_mmap_anon
=no
6863 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
6864 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
6865 if test "${gcc_cv_func_mmap_file+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 # Add a system to this blacklist if
6869 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
6870 # memory area containing the same data that you'd get if you applied
6871 # read() to the same fd. The only system known to have a problem here
6872 # is VMS, where text files have record structure.
6875 gcc_cv_func_mmap_file
=no
;;
6877 gcc_cv_func_mmap_file
=yes;;
6880 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
6881 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
6882 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
6883 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
6884 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 # Add a system to this blacklist if it has mmap() but /dev/zero
6888 # does not exist, or if mmapping /dev/zero does not give anonymous
6889 # zeroed pages with both the following properties:
6890 # 1. If you map N consecutive pages in with one call, and then
6891 # unmap any subset of those pages, the pages that were not
6892 # explicitly unmapped remain accessible.
6893 # 2. If you map two adjacent blocks of memory and then unmap them
6894 # both at once, they must both go away.
6895 # Systems known to be in this category are Windows (all variants),
6898 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
6899 gcc_cv_func_mmap_dev_zero
=no
;;
6901 gcc_cv_func_mmap_dev_zero
=yes;;
6904 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
6905 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
6907 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
6908 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
6909 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
6910 if test "${gcc_cv_decl_map_anon+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 cat >conftest.
$ac_ext <<_ACEOF
6914 #line $LINENO "configure"
6917 cat confdefs.h
>>conftest.
$ac_ext
6918 cat >>conftest.
$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <sys/types.h>
6921 #include <sys/mman.h>
6924 #ifndef MAP_ANONYMOUS
6925 #define MAP_ANONYMOUS MAP_ANON
6931 int n = MAP_ANONYMOUS;
6936 rm -f conftest.
$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try
='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 gcc_cv_decl_map_anon
=yes
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.
$ac_ext >&5
6953 gcc_cv_decl_map_anon
=no
6955 rm -f conftest.
$ac_objext conftest.
$ac_ext
6957 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6958 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6960 if test $gcc_cv_decl_map_anon = no
; then
6961 gcc_cv_func_mmap_anon
=no
6963 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6964 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6965 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 # Add a system to this blacklist if it has mmap() and MAP_ANON or
6969 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6970 # doesn't give anonymous zeroed pages with the same properties listed
6971 # above for use of /dev/zero.
6972 # Systems known to be in this category are Windows, VMS, and SCO Unix.
6974 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
6975 gcc_cv_func_mmap_anon
=no
;;
6977 gcc_cv_func_mmap_anon
=yes;;
6980 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6981 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6985 if test $gcc_cv_func_mmap_file = yes; then
6987 cat >>confdefs.h
<<\_ACEOF
6988 #define HAVE_MMAP_FILE 1
6992 if test $gcc_cv_func_mmap_dev_zero = yes; then
6994 cat >>confdefs.h
<<\_ACEOF
6995 #define HAVE_MMAP_DEV_ZERO 1
6999 if test $gcc_cv_func_mmap_anon = yes; then
7001 cat >>confdefs.h
<<\_ACEOF
7002 #define HAVE_MMAP_ANON 1
7010 # Under VMS, vfork works very differently than on Unix. The standard test
7011 # won't work, and it isn't easily adaptable. It makes more sense to
7013 ac_cv_func_vfork_works
=yes
7016 echo "$as_me:$LINENO: checking for pid_t" >&5
7017 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7018 if test "${ac_cv_type_pid_t+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 cat >conftest.
$ac_ext <<_ACEOF
7022 #line $LINENO "configure"
7025 cat confdefs.h
>>conftest.
$ac_ext
7026 cat >>conftest.
$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7040 rm -f conftest.
$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try
='test -s conftest.$ac_objext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 ac_cv_type_pid_t
=yes
7054 echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.
$ac_ext >&5
7059 rm -f conftest.
$ac_objext conftest.
$ac_ext
7061 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7062 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7063 if test $ac_cv_type_pid_t = yes; then
7067 cat >>confdefs.h
<<_ACEOF
7075 for ac_header
in unistd.h vfork.h
7077 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7078 echo "$as_me:$LINENO: checking for $ac_header" >&5
7079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 cat >conftest.
$ac_ext <<_ACEOF
7084 #line $LINENO "configure"
7087 cat confdefs.h
>>conftest.
$ac_ext
7088 cat >>conftest.
$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 #include <$ac_header>
7092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7093 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7095 grep -v '^ *+' conftest.er1
>conftest.err
7097 cat conftest.err
>&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } >/dev
/null
; then
7100 if test -s conftest.err
; then
7101 ac_cpp_err
=$ac_c_preproc_warn_flag
7108 if test -z "$ac_cpp_err"; then
7109 eval "$as_ac_Header=yes"
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.
$ac_ext >&5
7114 eval "$as_ac_Header=no"
7116 rm -f conftest.err conftest.
$ac_ext
7118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7121 cat >>confdefs.h
<<_ACEOF
7122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7130 for ac_func
in fork vfork
7132 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7133 echo "$as_me:$LINENO: checking for $ac_func" >&5
7134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7135 if eval "test \"\${$as_ac_var+set}\" = set"; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 cat >conftest.
$ac_ext <<_ACEOF
7139 #line $LINENO "configure"
7142 cat confdefs.h
>>conftest.
$ac_ext
7143 cat >>conftest.
$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 /* System header to define __stub macros and hopefully few prototypes,
7146 which can conflict with char $ac_func (); below.
7147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7148 <limits.h> exists even on freestanding compilers. */
7150 # include <limits.h>
7152 # include <assert.h>
7154 /* Override any gcc2 internal prototype to avoid an error. */
7159 /* We use char because int might match the return type of a gcc2
7160 builtin and then its argument prototype would still apply. */
7162 /* The GNU C library defines this for functions which it implements
7163 to always fail with ENOSYS. Some functions are actually named
7164 something starting with __ and the normal name is an alias. */
7165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7168 char (*f) () = $ac_func;
7177 return f != $ac_func;
7182 rm -f conftest.
$ac_objext conftest
$ac_exeext
7183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7184 (eval $ac_link) 2>&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
7188 { ac_try
='test -s conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 eval "$as_ac_var=yes"
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.
$ac_ext >&5
7199 eval "$as_ac_var=no"
7201 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7205 if test `eval echo '${'$as_ac_var'}'` = yes; then
7206 cat >>confdefs.h
<<_ACEOF
7207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7213 if test "x$ac_cv_func_fork" = xyes
; then
7214 echo "$as_me:$LINENO: checking for working fork" >&5
7215 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7216 if test "${ac_cv_func_fork_works+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 if test "$cross_compiling" = yes; then
7220 ac_cv_func_fork_works
=cross
7222 cat >conftest.
$ac_ext <<_ACEOF
7223 /* By Ruediger Kuhlmann. */
7224 #include <sys/types.h>
7226 # include <unistd.h>
7228 /* Some systems only have a dummy stub for fork() */
7236 rm -f conftest
$ac_exeext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7238 (eval $ac_link) 2>&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_cv_func_fork_works
=yes
7249 echo "$as_me: program exited with status $ac_status" >&5
7250 echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.
$ac_ext >&5
7254 ac_cv_func_fork_works
=no
7256 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7259 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7260 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7263 ac_cv_func_fork_works
=$ac_cv_func_fork
7265 if test "x$ac_cv_func_fork_works" = xcross
; then
7267 *-*-amigaos* |
*-*-msdosdjgpp*)
7268 # Override, as these systems have only a dummy fork() stub
7269 ac_cv_func_fork_works
=no
7272 ac_cv_func_fork_works
=yes
7275 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7276 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7278 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7279 if test "x$ac_cv_func_vfork" = xyes
; then
7280 echo "$as_me:$LINENO: checking for working vfork" >&5
7281 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7282 if test "${ac_cv_func_vfork_works+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 if test "$cross_compiling" = yes; then
7286 ac_cv_func_vfork_works
=cross
7288 cat >conftest.
$ac_ext <<_ACEOF
7289 #line $LINENO "configure"
7292 cat confdefs.h
>>conftest.
$ac_ext
7293 cat >>conftest.
$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 /* Thanks to Paul Eggert for this test. */
7298 #include <sys/types.h>
7299 #include <sys/stat.h>
7300 #include <sys/wait.h>
7302 # include <unistd.h>
7307 /* On some sparc systems, changes by the child to local and incoming
7308 argument registers are propagated back to the parent. The compiler
7309 is told about this with #include <vfork.h>, but some compilers
7310 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7311 static variable whose address is put into a register that is
7312 clobbered by the vfork. */
7315 sparc_address_test (int arg)
7317 sparc_address_test (arg) int arg;
7338 pid_t parent = getpid ();
7341 sparc_address_test (0);
7346 /* Here is another test for sparc vfork register problems. This
7347 test uses lots of local variables, at least as many local
7348 variables as main has allocated so far including compiler
7349 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7350 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7351 reuse the register of parent for one of the local variables,
7352 since it will think that parent can't possibly be used any more
7353 in this routine. Assigning to the local variable will thus
7354 munge parent in the parent process. */
7356 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7357 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7358 /* Convince the compiler that p..p7 are live; otherwise, it might
7359 use the same hardware register for all 8 local variables. */
7360 if (p != p1 || p != p2 || p != p3 || p != p4
7361 || p != p5 || p != p6 || p != p7)
7364 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7365 from child file descriptors. If the child closes a descriptor
7366 before it execs or exits, this munges the parent's descriptor
7367 as well. Test for this by closing stdout in the child. */
7368 _exit(close(fileno(stdout)) != 0);
7373 while (wait(&status) != child)
7376 /* Was there some problem with vforking? */
7379 /* Did the child fail? (This shouldn't happen.) */
7382 /* Did the vfork/compiler bug occur? */
7383 || parent != getpid()
7385 /* Did the file descriptor bug occur? */
7386 || fstat(fileno(stdout), &st) != 0
7391 rm -f conftest
$ac_exeext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402 ac_cv_func_vfork_works
=yes
7404 echo "$as_me: program exited with status $ac_status" >&5
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.
$ac_ext >&5
7409 ac_cv_func_vfork_works
=no
7411 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7414 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7415 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7418 if test "x$ac_cv_func_fork_works" = xcross
; then
7419 ac_cv_func_vfork_works
=ac_cv_func_vfork
7420 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7421 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7424 if test "x$ac_cv_func_vfork_works" = xyes
; then
7426 cat >>confdefs.h
<<\_ACEOF
7427 #define HAVE_WORKING_VFORK 1
7432 cat >>confdefs.h
<<\_ACEOF
7437 if test "x$ac_cv_func_fork_works" = xyes
; then
7439 cat >>confdefs.h
<<\_ACEOF
7440 #define HAVE_WORKING_FORK 1
7448 am_cv_lib_iconv_ldpath
=
7450 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7451 if test "${with_libiconv_prefix+set}" = set; then
7452 withval
="$with_libiconv_prefix"
7454 for dir
in `echo "$withval" | tr : ' '`; do
7455 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7456 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
7462 for ac_header
in iconv.h
7464 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7465 echo "$as_me:$LINENO: checking for $ac_header" >&5
7466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 cat >conftest.
$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7474 cat confdefs.h
>>conftest.
$ac_ext
7475 cat >>conftest.
$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 #include <$ac_header>
7479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7480 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7482 grep -v '^ *+' conftest.er1
>conftest.err
7484 cat conftest.err
>&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } >/dev
/null
; then
7487 if test -s conftest.err
; then
7488 ac_cpp_err
=$ac_c_preproc_warn_flag
7495 if test -z "$ac_cpp_err"; then
7496 eval "$as_ac_Header=yes"
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.
$ac_ext >&5
7501 eval "$as_ac_Header=no"
7503 rm -f conftest.err conftest.
$ac_ext
7505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7508 cat >>confdefs.h
<<_ACEOF
7509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7516 echo "$as_me:$LINENO: checking for iconv" >&5
7517 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7518 if test "${am_cv_func_iconv+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 am_cv_func_iconv
="no, consider installing GNU libiconv"
7524 cat >conftest.
$ac_ext <<_ACEOF
7525 #line $LINENO "configure"
7528 cat confdefs.h
>>conftest.
$ac_ext
7529 cat >>conftest.
$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7536 iconv_t cd = iconv_open("","");
7537 iconv(cd,NULL,NULL,NULL,NULL);
7543 rm -f conftest.
$ac_objext conftest
$ac_exeext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try
='test -s conftest$ac_exeext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 am_cv_func_iconv
=yes
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.
$ac_ext >&5
7561 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7562 if test "$am_cv_func_iconv" != yes; then
7563 am_save_LIBS
="$LIBS"
7564 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
7565 cat >conftest.
$ac_ext <<_ACEOF
7566 #line $LINENO "configure"
7569 cat confdefs.h
>>conftest.
$ac_ext
7570 cat >>conftest.
$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7577 iconv_t cd = iconv_open("","");
7578 iconv(cd,NULL,NULL,NULL,NULL);
7584 rm -f conftest.
$ac_objext conftest
$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try
='test -s conftest$ac_exeext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7597 am_cv_func_iconv
=yes
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.
$ac_ext >&5
7603 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7604 LIBS
="$am_save_LIBS"
7608 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7609 echo "${ECHO_T}$am_cv_func_iconv" >&6
7610 if test "$am_cv_func_iconv" = yes; then
7612 cat >>confdefs.h
<<\_ACEOF
7613 #define HAVE_ICONV 1
7616 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7617 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7618 if test "${am_cv_proto_iconv+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 cat >conftest.
$ac_ext <<_ACEOF
7623 #line $LINENO "configure"
7626 cat confdefs.h
>>conftest.
$ac_ext
7627 cat >>conftest.
$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7636 #if defined(__STDC__) || defined(__cplusplus)
7637 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7650 rm -f conftest.
$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try
='test -s conftest.$ac_objext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 am_cv_proto_iconv_arg1
=""
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.
$ac_ext >&5
7667 am_cv_proto_iconv_arg1
="const"
7669 rm -f conftest.
$ac_objext conftest.
$ac_ext
7670 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);"
7673 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7674 echo "$as_me:$LINENO: result: ${ac_t:-
7675 }$am_cv_proto_iconv" >&5
7676 echo "${ECHO_T}${ac_t:-
7677 }$am_cv_proto_iconv" >&6
7679 cat >>confdefs.h
<<_ACEOF
7680 #define ICONV_CONST $am_cv_proto_iconv_arg1
7685 if test "$am_cv_lib_iconv" = yes; then
7686 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
7690 # Until we have in-tree GNU iconv:
7695 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7696 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7697 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 cat >conftest.
$ac_ext <<_ACEOF
7701 #line $LINENO "configure"
7704 cat confdefs.h
>>conftest.
$ac_ext
7705 cat >>conftest.
$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7716 rm -f conftest.
$ac_objext conftest
$ac_exeext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7718 (eval $ac_link) 2>&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try
='test -s conftest$ac_exeext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 am_cv_val_LC_MESSAGES
=yes
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.
$ac_ext >&5
7733 am_cv_val_LC_MESSAGES
=no
7735 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7737 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7738 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7739 if test $am_cv_val_LC_MESSAGES = yes; then
7741 cat >>confdefs.h
<<\_ACEOF
7742 #define HAVE_LC_MESSAGES 1
7748 # We will need to find libiberty.h and ansidecl.h
7749 saved_CFLAGS
="$CFLAGS"
7750 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
7751 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
7752 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
7753 fprintf_unlocked strstr errno snprintf vasprintf \
7754 malloc realloc calloc free
basename getopt
clock
7756 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7757 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7758 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7759 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 cat >conftest.
$ac_ext <<_ACEOF
7763 #line $LINENO "configure"
7766 cat confdefs.h
>>conftest.
$ac_ext
7767 cat >>conftest.
$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7770 #define $ac_tr_decl 1
7772 #include "ansidecl.h"
7779 char *(*pfn) = (char *(*)) $ac_func ;
7785 rm -f conftest.
$ac_objext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7787 (eval $ac_compile) 2>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try
='test -s conftest.$ac_objext'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; }; then
7797 eval "gcc_cv_have_decl_$ac_func=yes"
7799 echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.
$ac_ext >&5
7802 eval "gcc_cv_have_decl_$ac_func=no"
7804 rm -f conftest.
$ac_objext conftest.
$ac_ext
7807 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7808 echo "$as_me:$LINENO: result: yes" >&5
7809 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
7810 #define $ac_tr_decl 1
7814 echo "$as_me:$LINENO: result: no" >&5
7815 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
7816 #define $ac_tr_decl 0
7822 if test x
= y
; then
7824 cat >>confdefs.h
<<\_ACEOF
7825 #define HAVE_DECL_GETENV 1
7828 cat >>confdefs.h
<<\_ACEOF
7829 #define HAVE_DECL_ATOL 1
7832 cat >>confdefs.h
<<\_ACEOF
7833 #define HAVE_DECL_SBRK 1
7836 cat >>confdefs.h
<<\_ACEOF
7837 #define HAVE_DECL_ABORT 1
7840 cat >>confdefs.h
<<\_ACEOF
7841 #define HAVE_DECL_ATOF 1
7844 cat >>confdefs.h
<<\_ACEOF
7845 #define HAVE_DECL_GETCWD 1
7848 cat >>confdefs.h
<<\_ACEOF
7849 #define HAVE_DECL_GETWD 1
7853 cat >>confdefs.h
<<\_ACEOF
7854 #define HAVE_DECL_STRSIGNAL 1
7857 cat >>confdefs.h
<<\_ACEOF
7858 #define HAVE_DECL_PUTC_UNLOCKED 1
7861 cat >>confdefs.h
<<\_ACEOF
7862 #define HAVE_DECL_FPUTS_UNLOCKED 1
7865 cat >>confdefs.h
<<\_ACEOF
7866 #define HAVE_DECL_FWRITE_UNLOCKED 1
7870 cat >>confdefs.h
<<\_ACEOF
7871 #define HAVE_DECL_FPRINTF_UNLOCKED 1
7874 cat >>confdefs.h
<<\_ACEOF
7875 #define HAVE_DECL_STRSTR 1
7878 cat >>confdefs.h
<<\_ACEOF
7879 #define HAVE_DECL_ERRNO 1
7882 cat >>confdefs.h
<<\_ACEOF
7883 #define HAVE_DECL_SNPRINTF 1
7886 cat >>confdefs.h
<<\_ACEOF
7887 #define HAVE_DECL_VASPRINTF 1
7891 cat >>confdefs.h
<<\_ACEOF
7892 #define HAVE_DECL_MALLOC 1
7895 cat >>confdefs.h
<<\_ACEOF
7896 #define HAVE_DECL_REALLOC 1
7899 cat >>confdefs.h
<<\_ACEOF
7900 #define HAVE_DECL_CALLOC 1
7903 cat >>confdefs.h
<<\_ACEOF
7904 #define HAVE_DECL_FREE 1
7907 cat >>confdefs.h
<<\_ACEOF
7908 #define HAVE_DECL_BASENAME 1
7911 cat >>confdefs.h
<<\_ACEOF
7912 #define HAVE_DECL_GETOPT 1
7915 cat >>confdefs.h
<<\_ACEOF
7916 #define HAVE_DECL_CLOCK 1
7921 for ac_func
in getrlimit setrlimit getrusage
7923 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7924 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7925 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7926 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 cat >conftest.
$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7933 cat confdefs.h
>>conftest.
$ac_ext
7934 cat >>conftest.
$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7937 #define $ac_tr_decl 1
7939 #include "ansidecl.h"
7941 #ifdef HAVE_SYS_RESOURCE_H
7942 #include <sys/resource.h>
7950 char *(*pfn) = (char *(*)) $ac_func ;
7956 rm -f conftest.
$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958 (eval $ac_compile) 2>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try
='test -s conftest.$ac_objext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 eval "gcc_cv_have_decl_$ac_func=yes"
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.
$ac_ext >&5
7973 eval "gcc_cv_have_decl_$ac_func=no"
7975 rm -f conftest.
$ac_objext conftest.
$ac_ext
7978 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7979 echo "$as_me:$LINENO: result: yes" >&5
7980 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
7981 #define $ac_tr_decl 1
7985 echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
7987 #define $ac_tr_decl 0
7993 if test x
= y
; then
7995 cat >>confdefs.h
<<\_ACEOF
7996 #define HAVE_DECL_GETRLIMIT 1
7999 cat >>confdefs.h
<<\_ACEOF
8000 #define HAVE_DECL_SETRLIMIT 1
8003 cat >>confdefs.h
<<\_ACEOF
8004 #define HAVE_DECL_GETRUSAGE 1
8009 cat >conftest.
$ac_ext <<_ACEOF
8010 #line $LINENO "configure"
8013 cat confdefs.h
>>conftest.
$ac_ext
8014 cat >>conftest.
$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8017 #include "ansidecl.h"
8019 #ifdef HAVE_SYS_RESOURCE_H
8020 #include <sys/resource.h>
8031 rm -f conftest.
$ac_objext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033 (eval $ac_compile) 2>&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try
='test -s conftest.$ac_objext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.
$ac_ext >&5
8049 cat >>confdefs.h
<<\_ACEOF
8054 rm -f conftest.
$ac_objext conftest.
$ac_ext
8056 for ac_func
in ldgetname
8058 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8059 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8060 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8061 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 cat >conftest.
$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8068 cat confdefs.h
>>conftest.
$ac_ext
8069 cat >>conftest.
$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8072 #define $ac_tr_decl 1
8074 #include "ansidecl.h"
8085 char *(*pfn) = (char *(*)) $ac_func ;
8091 rm -f conftest.
$ac_objext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093 (eval $ac_compile) 2>&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } &&
8097 { ac_try
='test -s conftest.$ac_objext'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8103 eval "gcc_cv_have_decl_$ac_func=yes"
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.
$ac_ext >&5
8108 eval "gcc_cv_have_decl_$ac_func=no"
8110 rm -f conftest.
$ac_objext conftest.
$ac_ext
8113 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8114 echo "$as_me:$LINENO: result: yes" >&5
8115 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8116 #define $ac_tr_decl 1
8120 echo "$as_me:$LINENO: result: no" >&5
8121 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8122 #define $ac_tr_decl 0
8128 if test x
= y
; then
8130 cat >>confdefs.h
<<\_ACEOF
8131 #define HAVE_DECL_LDGETNAME 1
8136 for ac_func
in times
8138 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8139 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8140 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8141 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 cat >conftest.
$ac_ext <<_ACEOF
8145 #line $LINENO "configure"
8148 cat confdefs.h
>>conftest.
$ac_ext
8149 cat >>conftest.
$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8152 #define $ac_tr_decl 1
8154 #include "ansidecl.h"
8156 #ifdef HAVE_SYS_TIMES_H
8157 #include <sys/times.h>
8165 char *(*pfn) = (char *(*)) $ac_func ;
8171 rm -f conftest.
$ac_objext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8173 (eval $ac_compile) 2>&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try
='test -s conftest.$ac_objext'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8183 eval "gcc_cv_have_decl_$ac_func=yes"
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.
$ac_ext >&5
8188 eval "gcc_cv_have_decl_$ac_func=no"
8190 rm -f conftest.
$ac_objext conftest.
$ac_ext
8193 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8194 echo "$as_me:$LINENO: result: yes" >&5
8195 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8196 #define $ac_tr_decl 1
8200 echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8202 #define $ac_tr_decl 0
8208 if test x
= y
; then
8210 cat >>confdefs.h
<<\_ACEOF
8211 #define HAVE_DECL_TIMES 1
8216 # More time-related stuff.
8217 echo "$as_me:$LINENO: checking for struct tms" >&5
8218 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8219 if test "${ac_cv_struct_tms+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 cat >conftest.
$ac_ext <<_ACEOF
8224 #line $LINENO "configure"
8227 cat confdefs.h
>>conftest.
$ac_ext
8228 cat >>conftest.
$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8231 #include "ansidecl.h"
8233 #ifdef HAVE_SYS_TIMES_H
8234 #include <sys/times.h>
8245 rm -f conftest.
$ac_objext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8247 (eval $ac_compile) 2>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try
='test -s conftest.$ac_objext'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_struct_tms
=yes
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.
$ac_ext >&5
8264 rm -f conftest.
$ac_objext conftest.
$ac_ext
8266 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8267 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8268 if test $ac_cv_struct_tms = yes; then
8270 cat >>confdefs.h
<<\_ACEOF
8271 #define HAVE_STRUCT_TMS 1
8276 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8277 # revisit after autoconf 2.50.
8278 echo "$as_me:$LINENO: checking for clock_t" >&5
8279 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8280 if test "${gcc_cv_type_clock_t+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 cat >conftest.
$ac_ext <<_ACEOF
8285 #line $LINENO "configure"
8288 cat confdefs.h
>>conftest.
$ac_ext
8289 cat >>conftest.
$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8292 #include "ansidecl.h"
8303 rm -f conftest.
$ac_objext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try
='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 gcc_cv_type_clock_t
=yes
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.
$ac_ext >&5
8320 gcc_cv_type_clock_t
=no
8322 rm -f conftest.
$ac_objext conftest.
$ac_ext
8324 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8325 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8326 if test $gcc_cv_type_clock_t = yes; then
8328 cat >>confdefs.h
<<\_ACEOF
8329 #define HAVE_CLOCK_T 1
8334 echo "$as_me:$LINENO: checking for uchar" >&5
8335 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8336 if test "${gcc_cv_type_uchar+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 cat >conftest.
$ac_ext <<_ACEOF
8340 #line $LINENO "configure"
8343 cat confdefs.h
>>conftest.
$ac_ext
8344 cat >>conftest.
$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8347 #include "ansidecl.h"
8353 if ((uchar *)0) return 0;
8354 if (sizeof(uchar)) return 0;
8359 rm -f conftest.
$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try
='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_type_uchar
=yes
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.
$ac_ext >&5
8378 rm -f conftest.
$ac_objext conftest.
$ac_ext
8380 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8381 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8382 if test $ac_cv_type_uchar = yes; then
8384 cat >>confdefs.h
<<\_ACEOF
8385 #define HAVE_UCHAR 1
8390 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8391 CFLAGS
="$saved_CFLAGS"
8393 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8394 if test "${enable_initfini_array+set}" = set; then
8395 enableval
="$enable_initfini_array"
8399 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8400 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8401 if test "${gcc_cv_initfini_array+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 if test "$cross_compiling" = yes; then
8405 gcc_cv_initfini_array
=no
8407 cat >conftest.
$ac_ext <<_ACEOF
8408 #line $LINENO "configure"
8411 cat confdefs.h
>>conftest.
$ac_ext
8412 cat >>conftest.
$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8416 int main (void) { return x; }
8417 int foo (void) { x = 0; }
8418 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8420 rm -f conftest
$ac_exeext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8422 (eval $ac_link) 2>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 gcc_cv_initfini_array
=yes
8433 echo "$as_me: program exited with status $ac_status" >&5
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.
$ac_ext >&5
8438 gcc_cv_initfini_array
=no
8440 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8443 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8444 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8445 enable_initfini_array
=$gcc_cv_initfini_array
8448 if test $enable_initfini_array = yes; then
8450 cat >>confdefs.h
<<\_ACEOF
8451 #define HAVE_INITFINI_ARRAY 1
8456 # mkdir takes a single argument on some systems.
8457 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8458 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8459 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 cat >conftest.
$ac_ext <<_ACEOF
8463 #line $LINENO "configure"
8466 cat confdefs.h
>>conftest.
$ac_ext
8467 cat >>conftest.
$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8470 #include <sys/types.h>
8471 #ifdef HAVE_SYS_STAT_H
8472 # include <sys/stat.h>
8474 #ifdef HAVE_UNISTD_H
8475 # include <unistd.h>
8477 #ifdef HAVE_DIRECT_H
8478 # include <direct.h>
8488 rm -f conftest.
$ac_objext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try
='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 gcc_cv_mkdir_takes_one_arg
=no
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.
$ac_ext >&5
8505 gcc_cv_mkdir_takes_one_arg
=yes
8507 rm -f conftest.
$ac_objext conftest.
$ac_ext
8509 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8510 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8511 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8513 cat >>confdefs.h
<<\_ACEOF
8514 #define MKDIR_TAKES_ONE_ARG 1
8526 # With Setjmp/Longjmp based exception handling.
8527 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8528 if test "${enable_sjlj_exceptions+set}" = set; then
8529 enableval
="$enable_sjlj_exceptions"
8530 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8532 cat >>confdefs.h
<<_ACEOF
8533 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8538 if test x
$host = x
$target; then
8539 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8540 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8541 if test "${ac_cv_lib_unwind_main+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 ac_check_lib_save_LIBS
=$LIBS
8545 LIBS
="-lunwind $LIBS"
8546 cat >conftest.
$ac_ext <<_ACEOF
8547 #line $LINENO "configure"
8550 cat confdefs.h
>>conftest.
$ac_ext
8551 cat >>conftest.
$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8563 rm -f conftest.
$ac_objext conftest
$ac_exeext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8565 (eval $ac_link) 2>&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try
='test -s conftest$ac_exeext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_cv_lib_unwind_main
=yes
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.
$ac_ext >&5
8580 ac_cv_lib_unwind_main
=no
8582 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8583 LIBS
=$ac_check_lib_save_LIBS
8585 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8586 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8587 if test $ac_cv_lib_unwind_main = yes; then
8588 use_libunwind_default
=yes
8590 use_libunwind_default
=no
8594 use_libunwind_default
=no
8596 # Use libunwind based exception handling.
8597 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8598 if test "${enable_libunwind_exceptions+set}" = set; then
8599 enableval
="$enable_libunwind_exceptions"
8600 use_libunwind_exceptions
=$enableval
8602 use_libunwind_exceptions
=$use_libunwind_default
8604 if test x
"$use_libunwind_exceptions" = xyes
; then
8606 cat >>confdefs.h
<<\_ACEOF
8607 #define USE_LIBUNWIND_EXCEPTIONS 1
8612 # --------------------------------------------------------
8613 # Build, host, and target specific configuration fragments
8614 # --------------------------------------------------------
8616 # Collect build-machine-specific information.
8617 .
${srcdir}/config.build
8619 # Collect host-machine-specific information.
8620 .
${srcdir}/config.
host
8624 # Collect target-machine-specific information.
8625 .
${srcdir}/config.gcc
8627 extra_objs
="${host_extra_objs} ${extra_objs}"
8629 # Default the target-machine variables that were not explicitly set.
8630 if test x
"$tm_file" = x
8631 then tm_file
=$cpu_type/$cpu_type.h
; fi
8633 if test x
"$extra_headers" = x
8634 then extra_headers
=; fi
8636 if test x
$md_file = x
8637 then md_file
=$cpu_type/$cpu_type.md
; fi
8639 if test x
$out_file = x
8640 then out_file
=$cpu_type/$cpu_type.c
; fi
8642 if test x
"$tmake_file" = x
8643 then tmake_file
=$cpu_type/t-
$cpu_type
8646 if test x
"$dwarf2" = xyes
8647 then tm_file
="$tm_file tm-dwarf2.h"
8650 # Say what files are being used for the output code and MD file.
8651 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8652 echo "Using \`$srcdir/config/$md_file' as machine description file."
8654 # If any of the xm_file variables contain nonexistent files, warn
8655 # about them and drop them.
8658 for x
in $build_xm_file; do
8659 if test -f $srcdir/config
/$x
8661 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8662 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8668 for x
in $host_xm_file; do
8669 if test -f $srcdir/config
/$x
8671 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8672 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8678 for x
in $xm_file; do
8679 if test -f $srcdir/config
/$x
8681 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8682 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8688 for f
in $tm_file; do
8691 if test $count = ax
; then
8692 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8694 echo "Using the following target machine macro files:"
8695 for f
in $tm_file; do
8696 echo " $srcdir/config/$f"
8700 if test x
$need_64bit_hwint = xyes
; then
8702 cat >>confdefs.h
<<\_ACEOF
8703 #define NEED_64BIT_HOST_WIDE_INT 1
8709 for f
in $host_xm_file; do
8712 if test $count = a
; then
8714 elif test $count = ax
; then
8715 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8717 echo "Using the following host machine macro files:"
8718 for f
in $host_xm_file; do
8719 echo " $srcdir/config/$f"
8722 echo "Using ${out_host_hook_obj} for host machine hooks."
8724 if test "$host_xm_file" != "$build_xm_file"; then
8726 for f
in $build_xm_file; do
8729 if test $count = a
; then
8731 elif test $count = ax
; then
8732 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
8734 echo "Using the following build machine macro files:"
8735 for f
in $build_xm_file; do
8736 echo " $srcdir/config/$f"
8741 # Check if a valid thread package
8742 case ${enable_threads_flag} in
8745 target_thread_file
='single'
8749 target_thread_file
='single'
8751 aix | dce | gnat | irix | posix | rtems | \
8752 single | solaris | vxworks | win32
)
8753 target_thread_file
=${enable_threads_flag}
8756 echo "${enable_threads_flag} is an unknown thread package" 1>&2
8761 if test x
${thread_file} = x
; then
8762 # No thread file set by target-specific clauses in config.gcc,
8763 # so use file chosen by default logic above
8764 thread_file
=${target_thread_file}
8767 if test x
$enable___cxa_atexit = xyes || \
8768 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
8770 cat >>confdefs.h
<<\_ACEOF
8771 #define DEFAULT_USE_CXA_ATEXIT 1
8776 # Look for a file containing extra machine modes.
8777 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
8778 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
8781 cat >>confdefs.h
<<_ACEOF
8782 #define EXTRA_MODES_FILE "config/$extra_modes"
8787 # auto-host.h is the file containing items generated by autoconf and is
8788 # the first file included by config.h.
8789 # If host=build, it is correct to have bconfig include auto-host.h
8790 # as well. If host!=build, we are in error and need to do more
8791 # work to find out the build config parameters.
8792 if test x
$host = x
$build
8794 build_auto
=auto-host.h
8797 # We create a subdir, then run autoconf in the subdir.
8798 # To prevent recursion we set host and build for the new
8799 # invocation of configure to the build for this invocation
8806 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
8807 *) realsrcdir
=..
/${srcdir};;
8809 saved_CFLAGS
="${CFLAGS}"
8810 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
8811 ${realsrcdir}/configure \
8812 --target=$target_alias --host=$build_alias --build=$build_alias
8813 CFLAGS
="${saved_CFLAGS}"
8815 # We just finished tests for the build machine, so rename
8816 # the file auto-build.h in the gcc directory.
8817 mv auto-host.h ..
/auto-build.h
8820 build_auto
=auto-build.h
8821 FORBUILD
=..
/${build_subdir}
8825 tm_file
="${tm_file} defaults.h"
8826 tm_p_file
="${tm_p_file} tm-preds.h"
8827 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
8828 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
8829 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
8830 # put this back in temporarily.
8831 xm_file
="ansidecl.h ${xm_file}"
8837 # Get the version trigger filename from the toplevel
8838 if test "${with_gcc_version_trigger+set}" = set; then
8839 gcc_version_trigger
=$with_gcc_version_trigger
8841 gcc_version_trigger
=${srcdir}/version.c
8843 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
8844 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8846 # Compile in configure arguments.
8847 if test -f configargs.h
; then
8848 # Being re-configured.
8849 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
8850 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
8852 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
8855 # Double all backslashes and backslash all quotes to turn
8856 # gcc_config_arguments into a C string.
8857 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
8858 $gcc_config_arguments
8860 gcc_config_arguments_str
=`cat conftest.out`
8863 cat > configargs.h
<<EOF
8864 /* Generated automatically. */
8865 static const char configuration_arguments[] = "$gcc_config_arguments_str";
8866 static const char thread_model[] = "$thread_file";
8868 static const struct {
8869 const char *name, *value;
8870 } configure_default_options[] = $configure_default_options;
8873 # Internationalization
8875 VERSION
="$gcc_version"
8879 # If we haven't got the data from the intl directory,
8880 # assume NLS is disabled.
8888 if test -f ..
/intl
/config.intl
; then
8889 . ..
/intl
/config.intl
8891 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8892 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8893 if test x
"$USE_NLS" != xyes
; then
8894 echo "$as_me:$LINENO: result: no" >&5
8895 echo "${ECHO_T}no" >&6
8897 echo "$as_me:$LINENO: result: yes" >&5
8898 echo "${ECHO_T}yes" >&6
8900 cat >>confdefs.h
<<\_ACEOF
8901 #define ENABLE_NLS 1
8905 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8906 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8907 # Look for .po and .gmo files in the source directory.
8910 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
8911 # If there aren't any .gmo files the shell will give us the
8912 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8914 case "$cat" in *\
**)
8917 # The quadruple backslash is collapsed to a double backslash
8918 # by the backticks, then collapsed again by the double quotes,
8919 # leaving us with one backslash in the sed expression (right
8920 # before the dot that mustn't act as a wildcard).
8921 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
8922 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
8923 # The user is allowed to set LINGUAS to a list of languages to
8924 # install catalogs for. If it's empty that means "all of them."
8925 if test "x$LINGUAS" = x
; then
8926 CATALOGS
="$CATALOGS $cat"
8927 XLINGUAS
="$XLINGUAS $lang"
8929 case "$LINGUAS" in *$lang*)
8930 CATALOGS
="$CATALOGS $cat"
8931 XLINGUAS
="$XLINGUAS $lang"
8937 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8938 echo "${ECHO_T}$LINGUAS" >&6
8941 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
8942 # -liconv on the link line twice.
8943 case "$LIBINTL" in *$LIBICONV*)
8947 # Windows32 Registry support for specifying GCC installation paths.
8948 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8949 if test "${enable_win32_registry+set}" = set; then
8950 enableval
="$enable_win32_registry"
8954 win32 | pe | cygwin
* | mingw32
* | uwin
*)
8955 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
8956 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
8957 if test "x$enable_win32_registry" != xno
; then
8959 cat >>confdefs.h
<<\_ACEOF
8960 #define ENABLE_WIN32_REGISTRY 1
8963 echo "$as_me:$LINENO: result: yes" >&5
8964 echo "${ECHO_T}yes" >&6
8965 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
8966 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
8967 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 ac_func_search_save_LIBS
=$LIBS
8971 ac_cv_search_RegOpenKeyExA
=no
8972 cat >conftest.
$ac_ext <<_ACEOF
8973 #line $LINENO "configure"
8976 cat confdefs.h
>>conftest.
$ac_ext
8977 cat >>conftest.
$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8980 /* Override any gcc2 internal prototype to avoid an error. */
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8986 char RegOpenKeyExA ();
8995 rm -f conftest.
$ac_objext conftest
$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try
='test -s conftest$ac_exeext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 ac_cv_search_RegOpenKeyExA
="none required"
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.
$ac_ext >&5
9013 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9014 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
9015 for ac_lib
in advapi32
; do
9016 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9017 cat >conftest.
$ac_ext <<_ACEOF
9018 #line $LINENO "configure"
9021 cat confdefs.h
>>conftest.
$ac_ext
9022 cat >>conftest.
$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9025 /* Override any gcc2 internal prototype to avoid an error. */
9029 /* We use char because int might match the return type of a gcc2
9030 builtin and then its argument prototype would still apply. */
9031 char RegOpenKeyExA ();
9040 rm -f conftest.
$ac_objext conftest
$ac_exeext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042 (eval $ac_link) 2>&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try
='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.
$ac_ext >&5
9059 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9062 LIBS
=$ac_func_search_save_LIBS
9064 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9065 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9066 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
9067 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
9072 echo "$as_me:$LINENO: result: no" >&5
9073 echo "${ECHO_T}no" >&6
9076 # Check if user specified a different registry key.
9077 case "x${enable_win32_registry}" in
9080 gcc_cv_win32_registry_key
="$VERSION"
9083 # no registry lookup.
9084 gcc_cv_win32_registry_key
=''
9087 # user-specified key.
9088 gcc_cv_win32_registry_key
="$enable_win32_registry"
9092 if test "x$enable_win32_registry" != xno
; then
9093 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9094 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9096 cat >>confdefs.h
<<_ACEOF
9097 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9100 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9101 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9106 # Get an absolute path to the GCC top-level source directory
9107 holddir
=`${PWDCMD-pwd}`
9109 topdir
=`${PWDCMD-pwd}`
9112 # Conditionalize the makefile for this host machine.
9114 for f
in ${host_xmake_file}
9116 if test -f ${srcdir}/config
/$f
9118 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
9122 # Conditionalize the makefile for this target machine.
9124 for f
in ${tmake_file}
9126 if test -f ${srcdir}/config
/$f
9128 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
9131 tmake_file
="${tmake_file_}"
9133 symbolic_link
='ln -s'
9135 # If the host doesn't support symlinks, modify CC in
9136 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9137 # Otherwise, we can use "CC=$(CC)".
9139 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
9141 cc_set_by_configure
="\$(CC)"
9142 quoted_cc_set_by_configure
="\$(CC)"
9143 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9144 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9147 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
9149 symbolic_link
="cp -p"
9153 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9154 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9155 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9156 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9160 out_object_file
=`basename $out_file .c`.o
9164 for f
in $tm_file; do
9167 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
9168 tm_include_list
="${tm_include_list} $f"
9171 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
9172 tm_include_list
="${tm_include_list} config/$f"
9179 for f
in $tm_p_file; do
9182 tm_p_file_list
="${tm_p_file_list} $f"
9183 tm_p_include_list
="${tm_p_include_list} $f"
9186 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
9187 tm_p_include_list
="${tm_p_include_list} config/$f"
9193 for f
in $xm_file; do
9196 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
9197 xm_include_list
="${xm_include_list} $f"
9200 xm_file_list
="${xm_file_list} $f"
9201 xm_include_list
="${xm_include_list} $f"
9204 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
9205 xm_include_list
="${xm_include_list} config/$f"
9211 host_xm_include_list
=
9212 for f
in $host_xm_file; do
9215 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
9216 host_xm_include_list
="${host_xm_include_list} $f"
9219 host_xm_file_list
="${host_xm_file_list} $f"
9220 host_xm_include_list
="${host_xm_include_list} $f"
9223 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
9224 host_xm_include_list
="${host_xm_include_list} config/$f"
9230 for f
in $build_xm_file; do
9233 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
9234 build_xm_include_list
="${build_xm_include_list} $f"
9236 auto-build.h | auto-host.h
)
9237 build_xm_file_list
="${build_xm_file_list} $f"
9238 build_xm_include_list
="${build_xm_include_list} $f"
9241 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
9242 build_xm_include_list
="${build_xm_include_list} config/$f"
9247 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9248 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9251 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9252 if test x
$host != x
$target
9254 CROSS
="-DCROSS_COMPILE"
9256 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9257 case "$host","$target" in
9258 # Darwin crosses can use the host system's libraries and headers,
9259 # because of the fat library support. Of course, it must be the
9260 # same version of Darwin on both sides. Allow the user to
9261 # just say --target=foo-darwin without a version number to mean
9262 # "the version on this system".
9263 *-*-darwin*,*-*-darwin*)
9264 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
9265 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
9266 if test $hostos = $targetos -o $targetos = darwin
; then
9268 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9273 i?
86-*-*,x86_64-
*-* \
9274 | powerpc
*-*-*,powerpc64
*-*-*)
9275 CROSS
="$CROSS -DNATIVE_CROSS" ;;
9277 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
9278 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9279 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9282 # If this is a cross-compiler that does not
9283 # have its own set of headers then define
9286 # If this is using newlib, without having the headers available now,
9287 # then define inhibit_libc in LIBGCC2_CFLAGS.
9288 # This prevents libgcc2 from containing any code which requires libc
9291 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
9292 test x
$with_newlib = xyes
; } &&
9293 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
9294 inhibit_libc
=-Dinhibit_libc
9298 # When building gcc with a cross-compiler, we need to adjust things so
9299 # that the generator programs are still built with the native compiler.
9300 # Also, we cannot run fixincludes or fix-header.
9302 # These are the normal (build=host) settings:
9304 BUILD_PREFIX_1
=ignore-
9305 CC_FOR_BUILD
='$(CC)'
9306 BUILD_CFLAGS
='$(ALL_CFLAGS)'
9308 STMP_FIXINC
=stmp-fixinc
9310 # Possibly disable fixproto, on a per-target basis.
9311 case ${use_fixproto} in
9316 STMP_FIXPROTO
=stmp-fixproto
9321 # And these apply if build != host, or we are generating coverage data
9322 if test x
$build != x
$host ||
test "x$coverage_flags" != x
9325 BUILD_PREFIX_1
=build-
9326 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9328 if test "x$TARGET_SYSTEM_ROOT" = x
; then
9334 # Expand extra_headers to include complete path.
9335 # This substitutes for lots of t-* files.
9337 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9338 for file in ${extra_headers} ; do
9339 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9342 # Add a definition of USE_COLLECT2 if system wants one.
9343 case $use_collect2 in
9344 no
) use_collect2
= ;;
9347 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
9348 xm_defines
="${xm_defines} USE_COLLECT2"
9352 # Identify the assembler which will work hand-in-glove with the newly
9353 # built GCC, so that we can examine its features. This is the assembler
9354 # which will be driven by the driver program.
9356 # If build != host, and we aren't building gas in-tree, we identify a
9357 # build->target assembler and hope that it will have the same features
9358 # as the host->target assembler we'll be using.
9359 echo "$as_me:$LINENO: checking what assembler to use" >&5
9360 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9363 gcc_cv_gas_major_version
=
9364 gcc_cv_gas_minor_version
=
9365 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9366 if test -x "$DEFAULT_ASSEMBLER"; then
9367 gcc_cv_as
="$DEFAULT_ASSEMBLER"
9368 elif test -x "$AS"; then
9370 elif test -x as
$host_exeext; then
9371 # Build using assembler in the current directory.
9372 gcc_cv_as
=.
/as
$host_exeext
9373 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
9374 && test -f ..
/gas
/Makefile
; then
9375 # Single tree build which includes gas.
9377 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9378 for f
in $gcc_cv_as_bfd_srcdir/configure \
9379 $gcc_cv_as_gas_srcdir/configure \
9380 $gcc_cv_as_gas_srcdir/configure.
in \
9381 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
9382 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9383 if test x
$gcc_cv_gas_version != x
; then
9387 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9388 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9389 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9390 case $gcc_cv_gas_patch_version in
9391 "") gcc_cv_gas_patch_version
="0" ;;
9393 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9394 + $gcc_cv_gas_minor_version \) \* 1000 \
9395 + $gcc_cv_gas_patch_version`
9397 rm -f as
$host_exeext
9398 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
9399 in_tree_gas_is_elf
=no
9400 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
9401 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
9402 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
9404 in_tree_gas_is_elf
=yes
9408 if test "x$gcc_cv_as" = x
; then
9409 # Search the same directories that the installed compiler will
9410 # search. Else we may find the wrong assembler and lose. If we
9411 # do not find a suitable assembler binary, then try the user's
9414 # Also note we have to check MD_EXEC_PREFIX before checking the
9415 # user's path. Unfortunately, there is no good way to get at the
9416 # value of MD_EXEC_PREFIX here. So we do a brute force search
9417 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9418 # to be fixed as part of the make/configure rewrite too.
9420 if test "x$exec_prefix" = xNONE
; then
9421 if test "x$prefix" = xNONE
; then
9422 test_prefix
=/usr
/local
9427 test_prefix
=$exec_prefix
9430 # If the loop below does not find an assembler, then use whatever
9431 # one we can find in the users's path.
9433 if test "x$program_prefix" != xNONE
; then
9434 gcc_cv_as
=${program_prefix}as
$host_exeext
9436 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
9439 test_dirs
="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9440 $test_prefix/lib/gcc-lib/$target_noncanonical \
9441 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9442 /usr/lib/gcc/$target_noncanonical \
9443 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9444 $test_prefix/$target_noncanonical/bin"
9446 if test x
$host = x
$target; then
9447 test_dirs
="$test_dirs \
9452 /bsd43/usr/lib/cmplrs/cc \
9453 /usr/cross64/usr/bin \
9454 /usr/lib/cmplrs/cc \
9455 /sysv/usr/lib/cmplrs/cc \
9456 /svr4/usr/lib/cmplrs/cc \
9460 for dir
in $test_dirs; do
9461 if test -x $dir/as
$host_exeext; then
9462 gcc_cv_as
=$dir/as
$host_exeext
9467 case $in_tree_gas in
9469 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9470 echo "${ECHO_T}\"newly built gas\"" >&6
9473 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9474 echo "${ECHO_T}$gcc_cv_as" >&6
9478 # Identify the linker which will work hand-in-glove with the newly
9479 # built GCC, so that we can examine its features. This is the linker
9480 # which will be driven by the driver program.
9482 # If build != host, and we aren't building gas in-tree, we identify a
9483 # build->target linker and hope that it will have the same features
9484 # as the host->target linker we'll be using.
9485 echo "$as_me:$LINENO: checking what linker to use" >&5
9486 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9489 gcc_cv_gld_major_version
=
9490 gcc_cv_gld_minor_version
=
9491 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9492 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9493 if test -x "$DEFAULT_LINKER"; then
9494 gcc_cv_ld
="$DEFAULT_LINKER"
9495 elif test -x "$LD"; then
9497 elif test -x collect-ld
$host_exeext; then
9498 # Build using linker in the current directory.
9499 gcc_cv_ld
=.
/collect-ld
$host_exeext
9500 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
9501 && test -f ..
/ld
/Makefile
; then
9502 # Single tree build which includes ld.
9504 in_tree_ld_is_elf
=no
9505 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
9506 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
9507 in_tree_ld_is_elf
=yes
9509 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
9511 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9512 if test x
$gcc_cv_gld_version != x
; then
9516 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9517 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9518 rm -f collect-ld
$host_exeext
9519 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
9523 if test "x$gcc_cv_ld" = x
; then
9524 # Search the same directories that the installed compiler will
9525 # search. Else we may find the wrong linker and lose. If we
9526 # do not find a suitable linker binary, then try the user's
9529 # Also note we have to check MD_EXEC_PREFIX before checking the
9530 # user's path. Unfortunately, there is no good way to get at the
9531 # value of MD_EXEC_PREFIX here. So we do a brute force search
9532 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9533 # to be fixed as part of the make/configure rewrite too.
9535 if test "x$exec_prefix" = xNONE
; then
9536 if test "x$prefix" = xNONE
; then
9537 test_prefix
=/usr
/local
9542 test_prefix
=$exec_prefix
9545 # If the loop below does not find an linker, then use whatever
9546 # one we can find in the users's path.
9548 if test "x$program_prefix" != xNONE
; then
9549 gcc_cv_ld
=${program_prefix}ld
$host_exeext
9551 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
9554 test_dirs
="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9555 $test_prefix/lib/gcc-lib/$target_noncanonical \
9556 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9557 /usr/lib/gcc/$target_noncanonical \
9558 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9559 $test_prefix/$target_noncanonical/bin"
9561 if test x
$host = x
$target; then
9562 test_dirs
="$test_dirs \
9567 /bsd43/usr/lib/cmplrs/cc \
9568 /usr/cross64/usr/bin \
9569 /usr/lib/cmplrs/cc \
9570 /sysv/usr/lib/cmplrs/cc \
9571 /svr4/usr/lib/cmplrs/cc \
9575 for dir
in $test_dirs; do
9576 if test -x $dir/ld
$host_exeext; then
9577 gcc_cv_ld
=$dir/ld
$host_exeext
9584 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9585 echo "${ECHO_T}\"newly built ld\"" >&6
9588 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9589 echo "${ECHO_T}$gcc_cv_ld" >&6
9593 # Figure out what nm we will be using.
9594 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9595 echo "$as_me:$LINENO: checking what nm to use" >&5
9596 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
9598 if test -x nm
$host_exeext; then
9599 gcc_cv_nm
=.
/nm
$host_exeext
9600 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
9601 && test -f ..
/binutils
/Makefile
; then
9602 # Single tree build which includes binutils.
9604 gcc_cv_nm
=.
/nm
$host_exeext
9605 rm -f nm
$host_exeext
9606 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
9607 elif test "x$program_prefix" != xNONE
; then
9608 gcc_cv_nm
=${program_prefix}nm
$host_exeext
9610 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
9613 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
9614 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
9615 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
9616 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
9619 # Figure out what objdump we will be using.
9620 echo "$as_me:$LINENO: checking what objdump to use" >&5
9621 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
9623 if test -x objdump
$host_exeext; then
9624 gcc_cv_objdump
=.
/objdump
$host_exeext
9625 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
9626 && test -f ..
/binutils
/Makefile
; then
9627 # Single tree build which includes binutils.
9629 gcc_cv_objdump
=.
/objdump
$host_exeext
9630 rm -f objdump
$host_exeext
9631 $symbolic_link ..
/binutils
/objdump
$host_exeext \
9632 objdump
$host_exeext 2>/dev
/null
9633 elif test "x$program_prefix" != xNONE
; then
9634 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
9636 gcc_cv_objdump
=`echo objdump | \
9637 sed ${program_transform_name}`$host_exeext
9639 case $in_tree_objdump in
9640 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
9641 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
9642 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
9643 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
9646 # Figure out what assembler alignment features are present.
9647 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
9648 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
9649 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 gcc_cv_as_balign_and_p2align
=no
9653 if test $in_tree_gas = yes; then
9654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
9655 then gcc_cv_as_balign_and_p2align
=yes
9657 elif test x
$gcc_cv_as != x
; then
9659 .p2align 2' > conftest.s
9660 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }
9667 gcc_cv_as_balign_and_p2align
=yes
9669 echo "configure: failed program was" >&5
9672 rm -f conftest.o conftest.s
9675 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
9676 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
9677 if test $gcc_cv_as_balign_and_p2align = yes; then
9679 cat >>confdefs.h
<<\_ACEOF
9680 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9685 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
9686 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
9687 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 gcc_cv_as_max_skip_p2align
=no
9691 if test $in_tree_gas = yes; then
9692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
9693 then gcc_cv_as_max_skip_p2align
=yes
9695 elif test x
$gcc_cv_as != x
; then
9696 echo '.p2align 4,,7' > conftest.s
9697 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }
9704 gcc_cv_as_max_skip_p2align
=yes
9706 echo "configure: failed program was" >&5
9709 rm -f conftest.o conftest.s
9712 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
9713 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
9714 if test $gcc_cv_as_max_skip_p2align = yes; then
9716 cat >>confdefs.h
<<\_ACEOF
9717 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9722 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
9723 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
9724 if test "${gcc_cv_as_subsection_m1+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 gcc_cv_as_subsection_m1
=no
9728 if test $in_tree_gas = yes; then
9729 if test $in_tree_gas_is_elf = yes \
9730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
9731 then gcc_cv_as_subsection_m1
=yes
9733 elif test x
$gcc_cv_as != x
; then
9734 echo 'conftest_label1: .word 0
9736 conftest_label2: .word 0
9737 .previous' > conftest.s
9738 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }
9745 if test x
$gcc_cv_nm != x
; then
9746 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9747 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9748 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
9750 else gcc_cv_as_subsection_m1
=yes
9752 rm -f conftest.nm1 conftest.nm2
9755 echo "configure: failed program was" >&5
9758 rm -f conftest.o conftest.s
9761 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
9762 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
9763 if test $gcc_cv_as_subsection_m1 = yes; then
9765 cat >>confdefs.h
<<\_ACEOF
9766 #define HAVE_GAS_SUBSECTION_ORDERING 1
9771 echo "$as_me:$LINENO: checking assembler for .weak" >&5
9772 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
9773 if test "${gcc_cv_as_weak+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 if test $in_tree_gas = yes; then
9778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
9779 then gcc_cv_as_weak
=yes
9781 elif test x
$gcc_cv_as != x
; then
9782 echo ' .weak foobar' > conftest.s
9783 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }
9792 echo "configure: failed program was" >&5
9795 rm -f conftest.o conftest.s
9798 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
9799 echo "${ECHO_T}$gcc_cv_as_weak" >&6
9800 if test $gcc_cv_as_weak = yes; then
9802 cat >>confdefs.h
<<\_ACEOF
9803 #define HAVE_GAS_WEAK 1
9808 # .hidden needs to be supported in both the assembler and the linker,
9809 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
9810 # This is irritatingly difficult to feature test for; we have to check the
9811 # date string after the version number. If we've got an in-tree
9812 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
9814 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
9815 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
9816 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
9817 if test "${gcc_cv_as_hidden+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 if test $in_tree_gas = yes; then
9822 if test $in_tree_gas_is_elf = yes \
9823 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
9824 then gcc_cv_as_hidden
=yes
9826 elif test x
$gcc_cv_as != x
; then
9827 echo ' .hidden foobar
9828 foobar:' > conftest.s
9829 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; }
9836 gcc_cv_as_hidden
=yes
9838 echo "configure: failed program was" >&5
9841 rm -f conftest.o conftest.s
9844 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
9845 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
9848 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
9849 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
9850 if test "${gcc_cv_ld_hidden+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 if test $in_tree_ld = yes ; then
9855 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 \
9856 && test $in_tree_ld_is_elf = yes; then
9857 gcc_cv_ld_hidden
=yes
9860 gcc_cv_ld_hidden
=yes
9861 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
9862 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
9863 ld_vers
=`echo $ld_ver | sed -n \
9864 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9865 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9866 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9867 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9868 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9869 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
9870 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'`
9871 if test 0"$ld_date" -lt 20020404; then
9872 if test -n "$ld_date"; then
9873 # If there was date string, but was earlier than 2002-04-04, fail
9875 elif test -z "$ld_vers"; then
9876 # If there was no date string nor ld version number, something is wrong
9879 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
9880 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
9881 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9882 test -z "$ld_vers_patch" && ld_vers_patch
=0
9883 if test "$ld_vers_major" -lt 2; then
9885 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
9886 gcc_cv_ld_hidden
="no"
9887 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
9894 hppa64
*-*-hpux* | ia64
*-*-hpux*)
9895 gcc_cv_ld_hidden
=yes
9904 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
9905 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
9906 libgcc_visibility
=no
9908 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
9909 libgcc_visibility
=yes
9911 cat >>confdefs.h
<<\_ACEOF
9912 #define HAVE_GAS_HIDDEN 1
9917 # Check if we have .[us]leb128, and support symbol arithmetic with it.
9918 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
9919 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
9920 if test "${gcc_cv_as_leb128+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 if test $in_tree_gas = yes; then
9925 if test $in_tree_gas_is_elf = yes \
9926 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
9927 then gcc_cv_as_leb128
=yes
9929 elif test x
$gcc_cv_as != x
; then
9936 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }
9943 # GAS versions before 2.11 do not support uleb128,
9944 # despite appearing to.
9945 # ??? There exists an elf-specific test that will crash
9946 # the assembler. Perhaps it's better to figure out whether
9947 # arbitrary sections are supported and try the test.
9948 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
9949 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
9950 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
9951 as_major
=`echo $as_ver | sed 's/\..*//'`
9952 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
9953 if test $as_major -eq 2 && test $as_minor -lt 11
9955 else gcc_cv_as_leb128
=yes
9959 echo "configure: failed program was" >&5
9962 rm -f conftest.o conftest.s
9965 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
9966 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
9967 if test $gcc_cv_as_leb128 = yes; then
9969 cat >>confdefs.h
<<\_ACEOF
9970 #define HAVE_AS_LEB128 1
9975 # GAS versions up to and including 2.11.0 may mis-optimize
9977 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
9978 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
9979 if test "${gcc_cv_as_eh_frame+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 gcc_cv_as_eh_frame
=no
9983 if test $in_tree_gas = yes; then
9984 if test $in_tree_gas_is_elf = yes \
9985 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
9986 then gcc_cv_as_eh_frame
=yes
9988 elif test x
$gcc_cv_as != x
; then
9995 .section .eh_frame,"aw",@progbits
9997 .4byte .LECIE1-.LSCIE1
10011 .4byte .LEFDE1-.LASFDE1
10013 .4byte .LASFDE1-__FRAME_BEGIN__
10020 .LEFDE1:' > conftest.s
10021 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }
10028 cat > conftest.lit
<<EOF
10029 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10030 0010 01000000 12000000 18000000 00000000 ................
10031 0020 08000000 04080000 0044 .........D
10033 cat > conftest.big
<<EOF
10034 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10035 0010 00000001 00000012 00000018 00000000 ................
10036 0020 00000008 04000000 0844 .........D
10038 # If the assembler didn't choke, and we can objdump,
10039 # and we got the correct data, then succeed.
10040 if test x
$gcc_cv_objdump != x \
10041 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
10042 |
tail -3 > conftest.got \
10043 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
10044 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
10046 gcc_cv_as_eh_frame
=yes
10047 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 gcc_cv_as_eh_frame
=buggy
10055 # Uh oh, what do we do now?
10056 gcc_cv_as_eh_frame
=no
10059 echo "configure: failed program was" >&5
10062 rm -f conftest.o conftest.s
10065 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10066 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10069 if test $gcc_cv_as_eh_frame = buggy
; then
10071 cat >>confdefs.h
<<\_ACEOF
10072 #define USE_AS_TRADITIONAL_FORMAT 1
10077 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10078 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10079 if test "${gcc_cv_as_shf_merge+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 gcc_cv_as_shf_merge
=no
10083 if test $in_tree_gas = yes; then
10084 if test $in_tree_gas_is_elf = yes \
10085 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10086 then gcc_cv_as_shf_merge
=yes
10088 elif test x
$gcc_cv_as != x
; then
10089 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10090 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }
10097 gcc_cv_as_shf_merge
=yes
10099 echo "configure: failed program was" >&5
10102 rm -f conftest.o conftest.s
10105 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10106 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10109 cat >>confdefs.h
<<_ACEOF
10110 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10114 # Thread-local storage - the check is heavily parametrized.
10122 .section ".tdata","awT",@progbits
10125 ldq $27,__tls_get_addr($29) !literal!1
10126 lda $16,foo($29) !tlsgd!1
10127 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10128 ldq $27,__tls_get_addr($29) !literal!2
10129 lda $16,foo($29) !tlsldm!2
10130 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10131 ldq $1,foo($29) !gotdtprel
10132 ldah $2,foo($29) !dtprelhi
10133 lda $3,foo($2) !dtprello
10134 lda $4,foo($29) !dtprel
10135 ldq $1,foo($29) !gottprel
10136 ldah $2,foo($29) !tprelhi
10137 lda $3,foo($2) !tprello
10138 lda $4,foo($29) !tprel'
10144 .section ".tdata","awT",@progbits
10148 leal foo@TLSGD(,%ebx,1), %eax
10149 leal foo@TLSLDM(%ebx), %eax
10150 leal foo@DTPOFF(%eax), %edx
10151 movl foo@GOTTPOFF(%ebx), %eax
10152 subl foo@GOTTPOFF(%ebx), %eax
10153 addl foo@GOTNTPOFF(%ebx), %eax
10154 movl foo@INDNTPOFF, %eax
10155 movl $foo@TPOFF, %eax
10156 subl $foo@TPOFF, %eax
10157 leal foo@NTPOFF(%ecx), %eax'
10163 .section ".tdata","awT",@progbits
10167 leaq foo@TLSGD(%rip), %rdi
10168 leaq foo@TLSLD(%rip), %rdi
10169 leaq foo@DTPOFF(%rax), %rdx
10170 movq foo@GOTTPOFF(%rip), %rax
10171 movq $foo@TPOFF, %rax'
10177 .section ".tdata","awT",@progbits
10180 addl r16 = @ltoff(@dtpmod(foo#)), gp
10181 addl r17 = @ltoff(@dtprel(foo#)), gp
10182 addl r18 = @ltoff(@tprel(foo#)), gp
10183 addl r19 = @dtprel(foo#), gp
10184 adds r21 = @dtprel(foo#), r13
10185 movl r23 = @dtprel(foo#)
10186 addl r20 = @tprel(foo#), gp
10187 adds r22 = @tprel(foo#), r13
10188 movl r24 = @tprel(foo#)'
10194 .section ".tdata","awT",@progbits
10202 addi 3,31,ld0@got@tlsgd
10204 addi 3,31,x1@got@tlsld
10207 addis 9,3,x2@dtprel@ha
10208 addi 9,9,x2@dtprel@l
10209 lwz 9,x3@got@tprel(31)
10212 addis 9,2,x2@tprel@ha
10213 addi 9,9,x2@tprel@l'
10220 .section ".tdata","awT",@progbits
10228 addi 3,2,ld0@got@tlsgd
10234 addi 3,2,x1@got@tlsld
10240 addis 9,3,x2@dtprel@ha
10241 addi 9,9,x2@dtprel@l
10244 ld 9,x3@got@dtprel(2)
10254 .section ".tdata","awT",@progbits
10261 .long foo@GOTNTPOFF
10262 .long foo@INDNTPOFF
10263 l %r1,foo@GOTNTPOFF(%r12)
10264 l %r1,0(%r1):tls_load:foo
10265 bas %r14,0(%r1,%r13):tls_gdcall:foo
10266 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10273 .section ".tdata","awT",@progbits
10280 .quad foo@GOTNTPOFF
10281 lg %r1,foo@GOTNTPOFF(%r12)
10282 larl %r1,foo@INDNTPOFF
10283 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10284 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10287 tls_as_opt
="-m64 -Aesame"
10289 sh-
*-* | sh
[34]-*-*)
10291 .section ".tdata","awT",@progbits
10304 .section ".tdata","awT",@progbits
10307 sethi %tgd_hi22(foo), %o0
10308 add %o0, %tgd_lo10(foo), %o1
10309 add %l7, %o1, %o0, %tgd_add(foo)
10310 call __tls_get_addr, %tgd_call(foo)
10311 sethi %tldm_hi22(foo), %l1
10312 add %l1, %tldm_lo10(foo), %l2
10313 add %l7, %l2, %o0, %tldm_add(foo)
10314 call __tls_get_addr, %tldm_call(foo)
10315 sethi %tldo_hix22(foo), %l3
10316 xor %l3, %tldo_lox10(foo), %l4
10317 add %o0, %l4, %l5, %tldo_add(foo)
10318 sethi %tie_hi22(foo), %o3
10319 add %o3, %tie_lo10(foo), %o3
10320 ld [%l7 + %o3], %o2, %tie_ld(foo)
10321 add %g7, %o2, %o4, %tie_add(foo)
10322 sethi %tle_hix22(foo), %l1
10323 xor %l1, %tle_lox10(foo), %o5
10324 ld [%g7 + %o5], %o1'
10330 if test -z "$tls_first_major"; then
10331 : # If we don't have a check, assume no support.
10333 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10334 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10335 if test "${gcc_cv_as_tls+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 if test $in_tree_gas = yes; then
10340 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10341 then gcc_cv_as_tls
=yes
10343 elif test x
$gcc_cv_as != x
; then
10344 echo "$conftest_s" > conftest.s
10345 if { ac_try
='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }
10354 echo "configure: failed program was" >&5
10357 rm -f conftest.o conftest.s
10360 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10361 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10362 if test $gcc_cv_as_tls = yes; then
10364 cat >>confdefs.h
<<\_ACEOF
10365 #define HAVE_AS_TLS 1
10371 # Target-specific assembler checks.
10374 # All TARGET_ABI_OSF targets.
10375 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
10376 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10377 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10378 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 gcc_cv_as_alpha_explicit_relocs
=no
10382 if test $in_tree_gas = yes; then
10383 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10384 then gcc_cv_as_alpha_explicit_relocs
=yes
10386 elif test x
$gcc_cv_as != x
; then
10387 echo ' .set nomacro
10389 extbl $3, $2, $3 !lituse_bytoff!1
10390 ldq $2, a($29) !literal!1
10391 ldq $4, b($29) !literal!2
10392 ldq_u $3, 0($2) !lituse_base!1
10393 ldq $27, f($29) !literal!5
10394 jsr $26, ($27), f !lituse_jsr!5
10395 ldah $29, 0($26) !gpdisp!3
10396 lda $0, c($29) !gprel
10397 ldah $1, d($29) !gprelhigh
10398 lda $1, d($1) !gprellow
10399 lda $29, 0($29) !gpdisp!3' > conftest.s
10400 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }
10407 gcc_cv_as_alpha_explicit_relocs
=yes
10409 echo "configure: failed program was" >&5
10412 rm -f conftest.o conftest.s
10415 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10416 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10417 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10419 cat >>confdefs.h
<<\_ACEOF
10420 #define HAVE_AS_EXPLICIT_RELOCS 1
10427 echo "$as_me:$LINENO: checking assembler for .register" >&5
10428 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10429 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 gcc_cv_as_sparc_register_op
=no
10433 if test x
$gcc_cv_as != x
; then
10434 echo '.register %g2, #scratch' > conftest.s
10435 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }
10442 gcc_cv_as_sparc_register_op
=yes
10444 echo "configure: failed program was" >&5
10447 rm -f conftest.o conftest.s
10450 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10451 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10452 if test $gcc_cv_as_sparc_register_op = yes; then
10454 cat >>confdefs.h
<<\_ACEOF
10455 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10460 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10461 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10462 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 gcc_cv_as_sparc_relax
=no
10466 if test x
$gcc_cv_as != x
; then
10467 echo '.text' > conftest.s
10468 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }
10475 gcc_cv_as_sparc_relax
=yes
10477 echo "configure: failed program was" >&5
10480 rm -f conftest.o conftest.s
10483 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10484 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10485 if test $gcc_cv_as_sparc_relax = yes; then
10487 cat >>confdefs.h
<<\_ACEOF
10488 #define HAVE_AS_RELAX_OPTION 1
10493 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10494 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10495 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 gcc_cv_as_sparc_ua_pcrel
=no
10499 if test x
$gcc_cv_as != x
; then
10506 .uaword %r_disp32(foo)' > conftest.s
10507 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }
10514 if test x
$gcc_cv_ld != x \
10515 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
10516 gcc_cv_as_sparc_ua_pcrel
=yes
10520 echo "configure: failed program was" >&5
10523 rm -f conftest.o conftest.s
10526 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10527 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10528 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10530 cat >>confdefs.h
<<\_ACEOF
10531 #define HAVE_AS_SPARC_UA_PCREL 1
10535 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10536 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10537 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 gcc_cv_as_sparc_ua_pcrel_hidden
=no
10541 if test x
$gcc_cv_as != x
; then
10545 .uaword %r_disp32(foo)
10546 .byte 0x32, 0x33, 0x34
10550 .skip 4' > conftest.s
10551 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }
10558 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
10559 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
10560 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
10561 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
10562 if $gcc_cv_objdump -R conftest
2> /dev
/null \
10563 |
grep 'DISP32' > /dev
/null
2>&1; then
10566 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
10571 echo "configure: failed program was" >&5
10574 rm -f conftest.o conftest.s
10577 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10578 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10579 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10581 cat >>confdefs.h
<<\_ACEOF
10582 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10587 fi # unaligned pcrel relocs
10589 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10590 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10591 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 gcc_cv_as_sparc_offsetable_lo10
=no
10595 if test x
$gcc_cv_as != x
; then
10597 or %g1, %lo(ab) + 12, %g1
10598 or %g1, %lo(ab + 12), %g1' > conftest.s
10599 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; }
10606 if test x
$gcc_cv_objdump != x \
10607 && %gcc_cv_objdump
-s -j .text conftest.o
2> /dev
/null \
10608 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
10609 gcc_cv_as_offsetable_lo10
=yes
10612 echo "configure: failed program was" >&5
10615 rm -f conftest.o conftest.s
10618 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
10619 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
10620 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
10622 cat >>confdefs.h
<<\_ACEOF
10623 #define HAVE_AS_OFFSETABLE_LO10 1
10629 i
[34567]86-*-* | x86_64-
*-*)
10630 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
10631 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
10632 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 gcc_cv_as_ix86_filds_fists
=no
10636 if test $in_tree_gas = yes; then
10637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10638 then gcc_cv_as_ix86_filds_fists
=yes
10640 elif test x
$gcc_cv_as != x
; then
10641 echo 'filds mem; fists mem' > conftest.s
10642 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }
10649 gcc_cv_as_ix86_filds_fists
=yes
10651 echo "configure: failed program was" >&5
10654 rm -f conftest.o conftest.s
10657 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
10658 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
10659 if test $gcc_cv_as_ix86_filds_fists = yes; then
10661 cat >>confdefs.h
<<\_ACEOF
10662 #define HAVE_GAS_FILDS_FISTS 1
10667 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
10668 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
10669 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 gcc_cv_as_ix86_cmov_sun_syntax
=no
10673 if test x
$gcc_cv_as != x
; then
10674 echo 'cmovl.l %edx, %eax' > conftest.s
10675 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }
10682 gcc_cv_as_ix86_cmov_sun_syntax
=yes
10684 echo "configure: failed program was" >&5
10687 rm -f conftest.o conftest.s
10690 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
10691 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
10692 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
10694 cat >>confdefs.h
<<\_ACEOF
10695 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
10700 # This one is used unconditionally by i386.[ch]; it is to be defined
10701 # to 1 if the feature is present, 0 otherwise.
10702 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
10703 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
10704 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 gcc_cv_as_ix86_gotoff_in_data
=no
10708 if test $in_tree_gas = yes; then
10709 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10710 then gcc_cv_as_ix86_gotoff_in_data
=yes
10712 elif test x
$gcc_cv_as != x
; then
10717 .long .L0@GOTOFF' > conftest.s
10718 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }
10725 gcc_cv_as_ix86_gotoff_in_data
=yes
10727 echo "configure: failed program was" >&5
10730 rm -f conftest.o conftest.s
10733 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
10734 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
10737 cat >>confdefs.h
<<_ACEOF
10738 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
10744 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
10745 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
10746 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
10750 if test $in_tree_gas = yes; then
10751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10752 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
10754 elif test x
$gcc_cv_as != x
; then
10756 addl r15 = @ltoffx(x#), gp
10758 ld8.mov r16 = [r15], x#' > conftest.s
10759 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }
10766 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
10768 echo "configure: failed program was" >&5
10771 rm -f conftest.o conftest.s
10774 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
10775 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
10776 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
10778 cat >>confdefs.h
<<\_ACEOF
10779 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
10788 *-*-aix) conftest_s
=' .csect .textPR';;
10789 *) conftest_s
=' .text';;
10791 conftest_s
="$conftest_s
10794 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
10795 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
10796 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 gcc_cv_as_powerpc_mfcrf
=no
10800 if test $in_tree_gas = yes; then
10801 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10802 then gcc_cv_as_powerpc_mfcrf
=yes
10804 elif test x
$gcc_cv_as != x
; then
10805 echo "$conftest_s" > conftest.s
10806 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }
10813 gcc_cv_as_powerpc_mfcrf
=yes
10815 echo "configure: failed program was" >&5
10818 rm -f conftest.o conftest.s
10821 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
10822 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
10823 if test $gcc_cv_as_powerpc_mfcrf = yes; then
10825 cat >>confdefs.h
<<\_ACEOF
10826 #define HAVE_AS_MFCRF 1
10833 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10834 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10835 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 gcc_cv_as_mips_explicit_relocs
=no
10839 if test $in_tree_gas = yes; then
10840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10841 then gcc_cv_as_mips_explicit_relocs
=yes
10843 elif test x
$gcc_cv_as != x
; then
10844 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
10845 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }
10852 gcc_cv_as_mips_explicit_relocs
=yes
10854 echo "configure: failed program was" >&5
10857 rm -f conftest.o conftest.s
10860 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
10861 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
10862 if test $gcc_cv_as_mips_explicit_relocs = yes; then
10863 if test x
$target_cpu_default = x
10864 then target_cpu_default
=MASK_EXPLICIT_RELOCS
10865 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
10871 # ??? Not all targets support dwarf2 debug_line, even within a version
10872 # of gas. Moreover, we need to emit a valid instruction to trigger any
10873 # info to the output file. So, as supported targets are added to gas 2.11,
10874 # add some instruction here to (also) show we expect this might work.
10875 # ??? Once 2.11 is released, probably need to add first known working
10876 # version to the per-target configury.
10878 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
10879 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
10880 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
10890 if test x
"$insn" != x
; then
10892 .file 1 \"conftest.s\"
10895 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
10896 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
10897 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 gcc_cv_as_dwarf2_debug_line
=no
10901 if test $in_tree_gas = yes; then
10902 if test $in_tree_gas_is_elf = yes \
10903 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10904 then gcc_cv_as_dwarf2_debug_line
=yes
10906 elif test x
$gcc_cv_as != x
; then
10907 echo "$conftest_s" > conftest.s
10908 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }
10915 # ??? This fails with non-gnu grep. Maybe use objdump?
10916 if grep debug_line conftest.o
> /dev
/null
2>&1; then
10917 gcc_cv_as_dwarf2_debug_line
=yes
10920 echo "configure: failed program was" >&5
10923 rm -f conftest.o conftest.s
10926 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
10927 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
10930 # The .debug_line file table must be in the exact order that
10931 # we specified the files, since these indices are also used
10932 # by DW_AT_decl_file. Approximate this test by testing if
10933 # the assembler bitches if the same index is assigned twice.
10934 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
10935 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
10936 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 gcc_cv_as_dwarf2_file_buggy
=no
10940 if test x
$gcc_cv_as != x
; then
10941 echo ' .file 1 "foo.s"
10942 .file 1 "bar.s"' > conftest.s
10943 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }
10950 gcc_cv_as_dwarf2_file_buggy
=yes
10952 echo "configure: failed program was" >&5
10955 rm -f conftest.o conftest.s
10958 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
10959 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
10962 if test $gcc_cv_as_dwarf2_debug_line = yes \
10963 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
10965 cat >>confdefs.h
<<\_ACEOF
10966 #define HAVE_AS_DWARF2_DEBUG_LINE 1
10971 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
10972 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
10973 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 gcc_cv_as_gdwarf2_flag
=no
10977 if test $in_tree_gas = yes; then
10978 if test $in_tree_gas_is_elf = yes \
10979 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10980 then gcc_cv_as_gdwarf2_flag
=yes
10982 elif test x
$gcc_cv_as != x
; then
10983 echo "$insn" > conftest.s
10984 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }
10991 gcc_cv_as_gdwarf2_flag
=yes
10993 echo "configure: failed program was" >&5
10996 rm -f conftest.o conftest.s
10999 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11000 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11001 if test $gcc_cv_as_gdwarf2_flag = yes; then
11003 cat >>confdefs.h
<<\_ACEOF
11004 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11009 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11010 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11011 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 gcc_cv_as_gstabs_flag
=no
11015 if test $in_tree_gas = yes; then
11016 if test $in_tree_gas_is_elf = yes \
11017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11018 then gcc_cv_as_gstabs_flag
=yes
11020 elif test x
$gcc_cv_as != x
; then
11021 echo "$insn" > conftest.s
11022 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }
11029 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11030 # and warns about it, but still exits successfully. So check for
11032 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }
11039 else gcc_cv_as_gstabs_flag
=yes
11042 echo "configure: failed program was" >&5
11045 rm -f conftest.o conftest.s
11048 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11049 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11050 if test $gcc_cv_as_gstabs_flag = yes; then
11052 cat >>confdefs.h
<<\_ACEOF
11053 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11059 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11060 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11061 gcc_cv_ld_ro_rw_mix
=unknown
11062 if test $in_tree_ld = yes ; then
11063 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 \
11064 && test $in_tree_ld_is_elf = yes; then
11065 gcc_cv_ld_ro_rw_mix
=read-write
11067 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
11068 echo '.section myfoosect, "a"' > conftest1.s
11069 echo '.section myfoosect, "aw"' > conftest2.s
11070 echo '.byte 1' >> conftest2.s
11071 echo '.section myfoosect, "a"' > conftest3.s
11072 echo '.byte 0' >> conftest3.s
11073 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
11074 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
11075 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
11076 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11077 conftest2.o conftest3.o
> /dev
/null
2>&1; then
11078 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
11079 | sed -e '/myfoosect/!d' -e N`
11080 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
11081 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
11082 gcc_cv_ld_ro_rw_mix
=read-only
11084 gcc_cv_ld_ro_rw_mix
=read-write
11088 rm -f conftest.
* conftest
[123].
*
11090 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
11092 cat >>confdefs.h
<<\_ACEOF
11093 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11097 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11098 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11100 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11101 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11102 gcc_cv_ld_eh_frame_hdr
=no
11103 if test $in_tree_ld = yes ; then
11104 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 \
11105 && test $in_tree_ld_is_elf = yes; then
11106 gcc_cv_ld_eh_frame_hdr
=yes
11108 elif test x
$gcc_cv_ld != x
; then
11109 # Check if linker supports --eh-frame-hdr option
11110 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
11111 gcc_cv_ld_eh_frame_hdr
=yes
11114 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
11116 cat >>confdefs.h
<<\_ACEOF
11117 #define HAVE_LD_EH_FRAME_HDR 1
11121 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11122 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11124 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11125 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11127 if test $in_tree_ld = yes ; then
11128 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 \
11129 && test $in_tree_ld_is_elf = yes; then
11132 elif test x
$gcc_cv_ld != x
; then
11133 # Check if linker supports -pie option
11134 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
11138 if test x
"$gcc_cv_ld_pie" = xyes
; then
11140 cat >>confdefs.h
<<\_ACEOF
11141 #define HAVE_LD_PIE 1
11145 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11146 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11148 if test x
$with_sysroot = x
&& test x
$host = x
$target \
11149 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11151 cat >>confdefs.h
<<_ACEOF
11152 #define PREFIX_INCLUDE_DIR "$prefix/include"
11157 # Figure out what language subdirectories are present.
11158 # Look if the user specified --enable-languages="..."; if not, use
11159 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11160 # go away some day.
11161 # NB: embedded tabs in this IF block -- do not untabify
11162 if test x
"${enable_languages+set}" != xset
; then
11163 if test x
"${LANGUAGES+set}" = xset
; then
11164 enable_languages
="${LANGUAGES}"
11165 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11166 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11169 enable_languages
=all
11172 if test x
"${enable_languages}" = x \
11173 ||
test x
"${enable_languages}" = xyes
;
11175 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11176 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11177 { (exit 1); exit 1; }; }
11180 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11182 # First scan to see if an enabled language requires some other language.
11183 # We assume that a given config-lang.in will list all the language
11184 # front ends it requires, even if some are required indirectly.
11185 for lang
in ${srcdir}/*/config-lang.
in
11188 # The odd quoting in the next line works around
11189 # an apparent bug in bash 1.12 on linux.
11190 ${srcdir}/[*]/config-lang.
in)
11193 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11194 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11195 for other
in $this_lang_requires
11197 case ,${enable_languages}, in
11203 enable_languages
="$enable_languages,$other"
11211 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11214 for lang
in ${srcdir}/*/config-lang.
in
11217 # The odd quoting in the next line works around
11218 # an apparent bug in bash 1.12 on linux.
11219 ${srcdir}/[*]/config-lang.
in) ;;
11221 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11222 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11223 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11224 if test "x$lang_alias" = x
11226 echo "$lang doesn't set \$language." 1>&2
11229 case ${build_by_default},${enable_languages}, in
11230 *,$lang_alias,*) add_this_lang
=yes ;;
11231 no
,*) add_this_lang
=no
;;
11232 *,all
,*) add_this_lang
=yes ;;
11233 *) add_this_lang
=no
;;
11235 found_languages
="${found_languages} ${lang_alias}"
11236 if test x
"${add_this_lang}" = xyes
; then
11238 ${srcdir}/ada
/config-lang.
in)
11239 if test x
$have_gnat = xyes
; then
11240 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11244 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11253 for expected_language
in ${expected_languages} ..
11255 if test "${expected_language}" != ..
; then
11256 missing_language
="${expected_language}"
11257 if test "${expected_language}" = "c" \
11258 ||
test "${expected_language}" = "all"; then
11261 for found_language
in ${found_languages} ..
11263 if test "${found_language}" != ..
; then
11264 if test "${expected_language}" = "${found_language}"; then
11269 if test "x${missing_language}" != x
; then
11270 missing_languages
="${missing_languages} ${missing_language}"
11275 if test "x$missing_languages" != x
; then
11276 { { echo "$as_me:$LINENO: error:
11277 The following requested languages were not found:${missing_languages}
11278 The following languages were available: c${found_languages}" >&5
11279 echo "$as_me: error:
11280 The following requested languages were not found:${missing_languages}
11281 The following languages were available: c${found_languages}" >&2;}
11282 { (exit 1); exit 1; }; }
11285 # Make gthr-default.h if we have a thread file.
11287 if test $thread_file != single
; then
11288 rm -f gthr-default.h
11289 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11290 gthread_flags
=-DHAVE_GTHR_DEFAULT
11294 # Find out what GC implementation we want, or may, use.
11296 # Check whether --with-gc or --without-gc was given.
11297 if test "${with_gc+set}" = set; then
11300 simple | page | zone
)
11304 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11305 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11306 { (exit 1); exit 1; }; }
11313 echo "Using $GGC for garbage collection."
11315 # Use the system's zlib library.
11317 zlibinc
="-I\$(srcdir)/../zlib"
11319 # Check whether --with-system-zlib or --without-system-zlib was given.
11320 if test "${with_system_zlib+set}" = set; then
11321 withval
="$with_system_zlib"
11330 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11331 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11332 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11333 if test "${enable_maintainer_mode+set}" = set; then
11334 enableval
="$enable_maintainer_mode"
11335 maintainer_mode
=$enableval
11340 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11341 echo "${ECHO_T}$maintainer_mode" >&6
11343 if test "$maintainer_mode" = "yes"; then
11349 # Make empty files to contain the specs and options for each language.
11350 # Then add #include lines to for a compiler that has specs and/or options.
11355 for subdir
in .
$subdirs
11357 if test -f $srcdir/$subdir/lang.opt
; then
11358 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
11360 if test -f $srcdir/$subdir/lang-specs.h
; then
11361 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11363 if test -f $srcdir/$subdir/$subdir-tree.def
; then
11364 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11368 # These (without "all_") are set in each config-lang.in.
11369 # `language' must be a single word so is spelled singularly.
11371 all_boot_languages
=
11374 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11375 # List of language makefile fragments.
11376 all_lang_makefrags
=
11377 # List of language subdirectory makefiles. Deprecated.
11378 all_lang_makefiles
=
11379 # Files for gengtype
11380 all_gtfiles
="$target_gtfiles"
11381 # Files for gengtype with language
11382 all_gtfiles_files_langs
=
11383 all_gtfiles_files_files
=
11385 # Add the language fragments.
11386 # Languages are added via two mechanisms. Some information must be
11387 # recorded in makefile variables, these are defined in config-lang.in.
11388 # We accumulate them and plug them into the main Makefile.
11389 # The other mechanism is a set of hooks for each of the main targets
11390 # like `clean', `install', etc.
11392 language_hooks
="Make-hooks"
11402 .
${srcdir}/$s/config-lang.
in
11403 if test "x$language" = x
11405 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11408 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11409 if test -f ${srcdir}/$s/Makefile.
in
11410 then all_lang_makefiles
="$s/Makefile"
11412 all_languages
="$all_languages $language"
11413 if test "x$boot_language" = xyes
11415 all_boot_languages
="$all_boot_languages $language"
11417 all_compilers
="$all_compilers $compilers"
11418 all_stagestuff
="$all_stagestuff $stagestuff"
11419 all_outputs
="$all_outputs $outputs"
11420 all_gtfiles
="$all_gtfiles $gtfiles"
11423 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11424 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11428 # Pick up gtfiles for c
11431 .
${srcdir}/c-config-lang.
in
11432 all_gtfiles
="$all_gtfiles $gtfiles"
11435 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11436 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11440 for language
in $all_languages
11442 check_languages
="$check_languages check-$language"
11445 # We link each language in with a set of hooks, reached indirectly via
11450 target_list
="all.build all.cross start.encap rest.encap tags \
11451 install-normal install-common install-man \
11452 uninstall srcextra \
11453 mostlyclean clean distclean maintainer-clean \
11454 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11455 for t
in $target_list
11458 for lang
in $all_languages
11462 echo "lang.$t: $x" >> Make-hooks
11467 echo "dir ." > .gdbinit
11468 echo "dir ${srcdir}" >> .gdbinit
11469 if test x
$gdb_needs_out_file_path = xyes
11471 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11473 if test "x$subdirs" != x
; then
11476 echo "dir ${srcdir}/$s" >> .gdbinit
11479 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11481 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11482 # absolute path for gcc_tooldir based on inserting the number of up-directory
11483 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11484 # $(libsubdir)/@(unlibsubdir) based path.
11485 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11486 # make and thus we'd get different behavior depending on where we built the
11488 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
11489 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11491 # An explanation of the sed strings:
11492 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11493 # -e 's|/$||' match a trailing forward slash and eliminates it
11494 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11495 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11497 # (*) Note this pattern overwrites the first character of the string
11498 # with a forward slash if one is not already present. This is not a
11499 # problem because the exact names of the sub-directories concerned is
11500 # unimportant, just the number of them matters.
11502 # The practical upshot of these patterns is like this:
11504 # prefix exec_prefix result
11505 # ------ ----------- ------
11506 # /foo /foo/bar ../
11507 # /foo/ /foo/bar ../
11508 # /foo /foo/bar/ ../
11509 # /foo/ /foo/bar/ ../
11510 # /foo /foo/bar/ugg ../../
11513 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11518 # Find a directory in which to install a shared libgcc.
11520 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11521 if test "${enable_version_specific_runtime_libs+set}" = set; then
11522 enableval
="$enable_version_specific_runtime_libs"
11527 # Check whether --with-slibdir or --without-slibdir was given.
11528 if test "${with_slibdir+set}" = set; then
11529 withval
="$with_slibdir"
11530 slibdir
="$with_slibdir"
11532 if test "${enable_version_specific_runtime_libs+set}" = set; then
11533 slibdir
='$(libsubdir)'
11534 elif test "$host" != "$target"; then
11535 slibdir
='$(build_tooldir)/lib'
11537 slibdir
='$(libdir)'
11542 objdir
=`${PWDCMD-pwd}`
11545 # Substitute configuration variables
11616 if test x
${build} = x
${host} ; then
11617 if test x
${host} = x
${target} ; then
11618 echo "Links are now set up to build a native compiler for ${target}." 1>&2
11620 echo "Links are now set up to build a cross-compiler" 1>&2
11621 echo " from ${host} to ${target}." 1>&2
11624 if test x
${host} = x
${target} ; then
11625 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
11626 echo " for ${target}." 1>&2
11628 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
11629 echo " from ${host} to ${target}." 1>&2
11633 # Configure the subdirectories
11634 # AC_CONFIG_SUBDIRS($subdirs)
11636 # Create the Makefile
11637 # and configure language subdirectories
11638 ac_config_files
="$ac_config_files $all_outputs"
11641 ac_config_commands
="$ac_config_commands default"
11643 cat >confcache
<<\_ACEOF
11644 # This file is a shell script that caches the results of configure
11645 # tests run on this system so they can be shared between configure
11646 # scripts and configure runs, see configure's option --config-cache.
11647 # It is not useful on other systems. If it contains results you don't
11648 # want to keep, you may remove or edit it.
11650 # config.status only pays attention to the cache file if you give it
11651 # the --recheck option to rerun configure.
11653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11655 # following values.
11659 # The following way of writing the cache mishandles newlines in values,
11660 # but we know of no workaround that is simple, portable, and efficient.
11661 # So, don't put newlines in cache variables' values.
11662 # Ultrix sh set writes to stderr and can't be redirected directly,
11663 # and sets the high bit in the cache file unless we assign to the vars.
11666 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11668 # `set' does not quote correctly, so add quotes (double-quote
11669 # substitution turns \\\\ into \\, and sed turns \\ into \).
11672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11675 # `set' quotes correctly as required by POSIX, so do not add quotes.
11677 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11686 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11688 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
11689 if test -w $cache_file; then
11690 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11691 cat confcache
>$cache_file
11693 echo "not updating unwritable cache $cache_file"
11698 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11699 # Let make expand exec_prefix.
11700 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11702 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11703 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11704 # trailing colons and then remove the whole line if VPATH becomes empty
11705 # (actually we leave an empty line to preserve line numbers).
11706 if test "x$srcdir" = x.
; then
11707 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11708 s/:*\$(srcdir):*/:/;
11709 s/:*\${srcdir}:*/:/;
11711 s/^\([^=]*=[ ]*\):*/\1/;
11717 DEFS
=-DHAVE_CONFIG_H
11721 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11722 # 1. Remove the extension, and $U if already installed.
11723 ac_i
=`echo "$ac_i" |
11724 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11726 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
11727 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
11729 LIBOBJS
=$ac_libobjs
11731 LTLIBOBJS
=$ac_ltlibobjs
11735 : ${CONFIG_STATUS=./config.status}
11736 ac_clean_files_save
=$ac_clean_files
11737 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11738 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11739 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11740 cat >$CONFIG_STATUS <<_ACEOF
11742 # Generated by $as_me.
11743 # Run this file to recreate the current configuration.
11744 # Compiler output produced by configure, useful for debugging
11745 # configure, is in config.log if it exists.
11748 ac_cs_recheck=false
11750 SHELL=\${CONFIG_SHELL-$SHELL}
11753 cat >>$CONFIG_STATUS <<\_ACEOF
11754 ## --------------------- ##
11755 ## M4sh Initialization. ##
11756 ## --------------------- ##
11758 # Be Bourne compatible
11759 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11762 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11763 # is contrary to our usage. Disable this feature.
11764 alias -g '${1+"$@"}'='"$@"'
11765 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
11769 # Support unset when possible.
11770 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
11777 # Work around bugs in pre-3.0 UWIN ksh.
11778 $as_unset ENV MAIL MAILPATH
11785 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11786 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11787 LC_TELEPHONE LC_TIME
11789 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11790 eval $as_var=C
; export $as_var
11796 # Required to use basename.
11797 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11803 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
11804 as_basename
=basename
11810 # Name of the executable.
11811 as_me
=`$as_basename "$0" ||
11812 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11813 X"$0" : 'X\(//\)$' \| \
11814 X"$0" : 'X\(/\)$' \| \
11815 . : '\(.\)' 2>/dev/null ||
11817 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11818 /^X\/\(\/\/\)$/{ s//\1/; q; }
11819 /^X\/\(\/\).*/{ s//\1/; q; }
11823 # PATH needs CR, and LINENO needs CR and PATH.
11824 # Avoid depending upon Character Ranges.
11825 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11826 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11827 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11828 as_cr_digits
='0123456789'
11829 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11831 # The user is always right.
11832 if test "${PATH_SEPARATOR+set}" != set; then
11833 echo "#! /bin/sh" >conf$$.sh
11834 echo "exit 0" >>conf$$.sh
11836 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11845 as_lineno_1
=$LINENO
11846 as_lineno_2
=$LINENO
11847 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
11848 test "x$as_lineno_1" != "x$as_lineno_2" &&
11849 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
11850 # Find who we are. Look in the path if we contain no path at all
11853 *[\\/]* ) as_myself
=$0 ;;
11854 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11855 for as_dir
in $PATH
11858 test -z "$as_dir" && as_dir
=.
11859 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11864 # We did not find ourselves, most probably we were run as `sh COMMAND'
11865 # in which case we are not to be found in the path.
11866 if test "x$as_myself" = x
; then
11869 if test ! -f "$as_myself"; then
11870 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11871 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11872 { (exit 1); exit 1; }; }
11874 case $CONFIG_SHELL in
11876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11877 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
11880 test -z "$as_dir" && as_dir
=.
11881 for as_base
in sh bash ksh sh5
; do
11884 if ("$as_dir/$as_base" -c '
11885 as_lineno_1=$LINENO
11886 as_lineno_2=$LINENO
11887 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11888 test "x$as_lineno_1" != "x$as_lineno_2" &&
11889 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
11890 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
11891 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
11892 CONFIG_SHELL
=$as_dir/$as_base
11893 export CONFIG_SHELL
11894 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11902 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11903 # uniformly replaced by the line number. The first 'sed' inserts a
11904 # line-number line before each line; the second 'sed' does the real
11905 # work. The second script uses 'N' to pair each line-number line
11906 # with the numbered line, and appends trailing '-' during
11907 # substitution so that $LINENO is not a special case at line end.
11908 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11909 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11910 sed '=' <$as_myself |
11915 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11918 s,^['$as_cr_digits']*\n,,
11919 ' >$as_me.lineno
&&
11920 chmod +x
$as_me.lineno ||
11921 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11922 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11923 { (exit 1); exit 1; }; }
11925 # Don't try to exec as it changes $[0], causing all sort of problems
11926 # (the dirname of $[0] is not the place where we might find the
11927 # original and so on. Autoconf is especially sensible to this).
11929 # Exit status is that of the last command.
11934 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11935 *c
*,-n*) ECHO_N
= ECHO_C
='
11937 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
11938 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
11941 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11947 rm -f conf$$ conf$$.exe conf$$.
file
11949 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11950 # We could just check for DJGPP; but this test a) works b) is more generic
11951 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11952 if test -f conf$$.exe
; then
11953 # Don't use ln at all; we don't have any links
11958 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11963 rm -f conf$$ conf$$.exe conf$$.
file
11965 if mkdir
-p .
2>/dev
/null
; then
11971 as_executable_p
="test -f"
11973 # Sed expression to map a string onto a valid CPP name.
11974 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11976 # Sed expression to map a string onto a valid variable name.
11977 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11981 # We need space, tab and new line, in precisely that order.
11991 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11992 # report actual input values of CONFIG_FILES etc. instead of their
11993 # values after options handling. Logging --version etc. is OK.
11997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11998 ## Running $as_me. ##
12003 This file was extended by $as_me, which was
12004 generated by GNU Autoconf 2.57. Invocation command line was
12006 CONFIG_FILES = $CONFIG_FILES
12007 CONFIG_HEADERS = $CONFIG_HEADERS
12008 CONFIG_LINKS = $CONFIG_LINKS
12009 CONFIG_COMMANDS = $CONFIG_COMMANDS
12013 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12017 # Files that config.status was made for.
12018 if test -n "$ac_config_files"; then
12019 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12022 if test -n "$ac_config_headers"; then
12023 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12026 if test -n "$ac_config_links"; then
12027 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12030 if test -n "$ac_config_commands"; then
12031 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12034 cat >>$CONFIG_STATUS <<\_ACEOF
12037 \`$as_me' instantiates files from templates according to the
12038 current configuration.
12040 Usage: $0 [OPTIONS] [FILE]...
12042 -h, --help print this help, then exit
12043 -V, --version print version number, then exit
12044 -q, --quiet do not print progress messages
12045 -d, --debug don't remove temporary files
12046 --recheck update $as_me by reconfiguring in the same conditions
12047 --file=FILE[:TEMPLATE]
12048 instantiate the configuration file FILE
12049 --header=FILE[:TEMPLATE]
12050 instantiate the configuration header FILE
12052 Configuration files:
12055 Configuration headers:
12058 Configuration commands:
12061 Report bugs to <bug-autoconf@gnu.org>."
12064 cat >>$CONFIG_STATUS <<_ACEOF
12067 configured by $0, generated by GNU Autoconf 2.57,
12068 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12070 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12071 Free Software Foundation, Inc.
12072 This config.status script is free software; the Free Software Foundation
12073 gives unlimited permission to copy, distribute and modify it."
12077 cat >>$CONFIG_STATUS <<\_ACEOF
12078 # If no file are specified by the user, then we need to provide default
12079 # value. By we need to know if files were specified by the user.
12085 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12086 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12094 *) # This is not an option, so the user has probably given explicit
12097 ac_need_defaults
=false
;;
12101 # Handling of the options.
12103 cat >>$CONFIG_STATUS <<\_ACEOF
12104 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12106 --version |
--vers* |
-V )
12107 echo "$ac_cs_version"; exit 0 ;;
12109 # Conflict between --help and --header
12110 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12111 Try \`$0 --help' for more information." >&5
12112 echo "$as_me: error: ambiguous option: $1
12113 Try \`$0 --help' for more information." >&2;}
12114 { (exit 1); exit 1; }; };;
12115 --help |
--hel |
-h )
12116 echo "$ac_cs_usage"; exit 0 ;;
12117 --debug |
--d* |
-d )
12119 --file |
--fil |
--fi |
--f )
12121 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12122 ac_need_defaults
=false
;;
12123 --header |
--heade |
--head |
--hea )
12125 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12126 ac_need_defaults
=false
;;
12127 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12128 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12131 # This is an error.
12132 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12133 Try \`$0 --help' for more information." >&5
12134 echo "$as_me: error: unrecognized option: $1
12135 Try \`$0 --help' for more information." >&2;}
12136 { (exit 1); exit 1; }; } ;;
12138 *) ac_config_targets
="$ac_config_targets $1" ;;
12144 ac_configure_extra_args
=
12146 if $ac_cs_silent; then
12148 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12152 cat >>$CONFIG_STATUS <<_ACEOF
12153 if \$ac_cs_recheck; then
12154 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12155 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12160 cat >>$CONFIG_STATUS <<_ACEOF
12162 # INIT-COMMANDS section.
12166 symbolic_link='$symbolic_link'
12173 cat >>$CONFIG_STATUS <<\_ACEOF
12174 for ac_config_target
in $ac_config_targets
12176 case "$ac_config_target" in
12177 # Handling of arguments.
12178 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
12179 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12180 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
12181 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12182 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12183 { (exit 1); exit 1; }; };;
12187 # If the user did not use the arguments to specify the items to instantiate,
12188 # then the envvar interface is used. Set only those that are not.
12189 # We use the long form for the default assignment because of an extremely
12190 # bizarre bug on SunOS 4.1.3.
12191 if $ac_need_defaults; then
12192 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12193 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12194 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12197 # Have a temporary directory for convenience. Make it in the build tree
12198 # simply because there is no reason to put it here, and in addition,
12199 # creating and moving files from /tmp can sometimes cause problems.
12200 # Create a temporary directory, and hook for its removal unless debugging.
12203 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12204 trap '{ (exit 1); exit 1; }' 1 2 13 15
12207 # Create a (secure) tmp directory for tmp files.
12210 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12211 test -n "$tmp" && test -d "$tmp"
12214 tmp
=.
/confstat$$
-$RANDOM
12215 (umask 077 && mkdir
$tmp)
12218 echo "$me: cannot create a temporary directory in ." >&2
12219 { (exit 1); exit 1; }
12224 cat >>$CONFIG_STATUS <<_ACEOF
12227 # CONFIG_FILES section.
12230 # No need to generate the scripts if there are no CONFIG_FILES.
12231 # This happens for instance when ./config.status config.h
12232 if test -n "\$CONFIG_FILES"; then
12233 # Protect against being on the right side of a sed subst in config.status.
12234 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12235 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12236 s,@SHELL@,$SHELL,;t t
12237 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12238 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12239 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12240 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12241 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12242 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12243 s,@exec_prefix@,$exec_prefix,;t t
12244 s,@prefix@,$prefix,;t t
12245 s,@program_transform_name@,$program_transform_name,;t t
12246 s,@bindir@,$bindir,;t t
12247 s,@sbindir@,$sbindir,;t t
12248 s,@libexecdir@,$libexecdir,;t t
12249 s,@datadir@,$datadir,;t t
12250 s,@sysconfdir@,$sysconfdir,;t t
12251 s,@sharedstatedir@,$sharedstatedir,;t t
12252 s,@localstatedir@,$localstatedir,;t t
12253 s,@libdir@,$libdir,;t t
12254 s,@includedir@,$includedir,;t t
12255 s,@oldincludedir@,$oldincludedir,;t t
12256 s,@infodir@,$infodir,;t t
12257 s,@mandir@,$mandir,;t t
12258 s,@build_alias@,$build_alias,;t t
12259 s,@host_alias@,$host_alias,;t t
12260 s,@target_alias@,$target_alias,;t t
12261 s,@DEFS@,$DEFS,;t t
12262 s,@ECHO_C@,$ECHO_C,;t t
12263 s,@ECHO_N@,$ECHO_N,;t t
12264 s,@ECHO_T@,$ECHO_T,;t t
12265 s,@LIBS@,$LIBS,;t t
12266 s,@build@,$build,;t t
12267 s,@build_cpu@,$build_cpu,;t t
12268 s,@build_vendor@,$build_vendor,;t t
12269 s,@build_os@,$build_os,;t t
12270 s,@host@,$host,;t t
12271 s,@host_cpu@,$host_cpu,;t t
12272 s,@host_vendor@,$host_vendor,;t t
12273 s,@host_os@,$host_os,;t t
12274 s,@target@,$target,;t t
12275 s,@target_cpu@,$target_cpu,;t t
12276 s,@target_vendor@,$target_vendor,;t t
12277 s,@target_os@,$target_os,;t t
12278 s,@build_subdir@,$build_subdir,;t t
12279 s,@host_subdir@,$host_subdir,;t t
12280 s,@target_subdir@,$target_subdir,;t t
12281 s,@GENINSRC@,$GENINSRC,;t t
12283 s,@CFLAGS@,$CFLAGS,;t t
12284 s,@LDFLAGS@,$LDFLAGS,;t t
12285 s,@CPPFLAGS@,$CPPFLAGS,;t t
12286 s,@ac_ct_CC@,$ac_ct_CC,;t t
12287 s,@EXEEXT@,$EXEEXT,;t t
12288 s,@OBJEXT@,$OBJEXT,;t t
12289 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12290 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12292 s,@GNATBIND@,$GNATBIND,;t t
12293 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12294 s,@strict1_warn@,$strict1_warn,;t t
12295 s,@warn_cflags@,$warn_cflags,;t t
12296 s,@WERROR@,$WERROR,;t t
12297 s,@nocommon_flag@,$nocommon_flag,;t t
12298 s,@EGREP@,$EGREP,;t t
12299 s,@valgrind_path@,$valgrind_path,;t t
12300 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12301 s,@valgrind_command@,$valgrind_command,;t t
12302 s,@coverage_flags@,$coverage_flags,;t t
12303 s,@enable_multilib@,$enable_multilib,;t t
12304 s,@enable_shared@,$enable_shared,;t t
12305 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12306 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12307 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12308 s,@onestep@,$onestep,;t t
12309 s,@SET_MAKE@,$SET_MAKE,;t t
12312 s,@LN_S@,$LN_S,;t t
12313 s,@RANLIB@,$RANLIB,;t t
12314 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12315 s,@INSTALL@,$INSTALL,;t t
12316 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12317 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12318 s,@make_compare_target@,$make_compare_target,;t t
12319 s,@have_mktemp_command@,$have_mktemp_command,;t t
12320 s,@MAKEINFO@,$MAKEINFO,;t t
12321 s,@BUILD_INFO@,$BUILD_INFO,;t t
12322 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12323 s,@FLEX@,$FLEX,;t t
12324 s,@BISON@,$BISON,;t t
12325 s,@stage1_cflags@,$stage1_cflags,;t t
12326 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12327 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12328 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12329 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12330 s,@LIBICONV@,$LIBICONV,;t t
12331 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12332 s,@manext@,$manext,;t t
12333 s,@objext@,$objext,;t t
12334 s,@extra_modes_file@,$extra_modes_file,;t t
12335 s,@FORBUILD@,$FORBUILD,;t t
12336 s,@PACKAGE@,$PACKAGE,;t t
12337 s,@VERSION@,$VERSION,;t t
12338 s,@USE_NLS@,$USE_NLS,;t t
12339 s,@LIBINTL@,$LIBINTL,;t t
12340 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12341 s,@INCINTL@,$INCINTL,;t t
12342 s,@XGETTEXT@,$XGETTEXT,;t t
12343 s,@GMSGFMT@,$GMSGFMT,;t t
12344 s,@POSUB@,$POSUB,;t t
12345 s,@CATALOGS@,$CATALOGS,;t t
12346 s,@CROSS@,$CROSS,;t t
12348 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12349 s,@inhibit_libc@,$inhibit_libc,;t t
12350 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12351 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12352 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12353 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12354 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12355 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12356 s,@libgcc_visibility@,$libgcc_visibility,;t t
12357 s,@gthread_flags@,$gthread_flags,;t t
12359 s,@zlibdir@,$zlibdir,;t t
12360 s,@zlibinc@,$zlibinc,;t t
12361 s,@MAINT@,$MAINT,;t t
12362 s,@gcc_tooldir@,$gcc_tooldir,;t t
12363 s,@dollar@,$dollar,;t t
12364 s,@slibdir@,$slibdir,;t t
12365 s,@objdir@,$objdir,;t t
12366 s,@subdirs@,$subdirs,;t t
12367 s,@srcdir@,$srcdir,;t t
12368 s,@docobjdir@,$docobjdir,;t t
12369 s,@all_boot_languages@,$all_boot_languages,;t t
12370 s,@all_compilers@,$all_compilers,;t t
12371 s,@all_gtfiles@,$all_gtfiles,;t t
12372 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12373 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12374 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12375 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12376 s,@all_languages@,$all_languages,;t t
12377 s,@all_stagestuff@,$all_stagestuff,;t t
12378 s,@build_exeext@,$build_exeext,;t t
12379 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12380 s,@build_xm_file_list@,$build_xm_file_list,;t t
12381 s,@build_xm_include_list@,$build_xm_include_list,;t t
12382 s,@build_xm_defines@,$build_xm_defines,;t t
12383 s,@check_languages@,$check_languages,;t t
12384 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12385 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12386 s,@cpp_install_dir@,$cpp_install_dir,;t t
12387 s,@xmake_file@,$xmake_file,;t t
12388 s,@tmake_file@,$tmake_file,;t t
12389 s,@extra_headers_list@,$extra_headers_list,;t t
12390 s,@extra_objs@,$extra_objs,;t t
12391 s,@extra_parts@,$extra_parts,;t t
12392 s,@extra_passes@,$extra_passes,;t t
12393 s,@extra_programs@,$extra_programs,;t t
12394 s,@float_h_file@,$float_h_file,;t t
12395 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12396 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12397 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12398 s,@gcc_version@,$gcc_version,;t t
12399 s,@gcc_version_full@,$gcc_version_full,;t t
12400 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12401 s,@host_exeext@,$host_exeext,;t t
12402 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12403 s,@host_xm_file_list@,$host_xm_file_list,;t t
12404 s,@host_xm_include_list@,$host_xm_include_list,;t t
12405 s,@host_xm_defines@,$host_xm_defines,;t t
12406 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12407 s,@install@,$install,;t t
12408 s,@lang_opt_files@,$lang_opt_files,;t t
12409 s,@lang_specs_files@,$lang_specs_files,;t t
12410 s,@lang_tree_files@,$lang_tree_files,;t t
12411 s,@local_prefix@,$local_prefix,;t t
12412 s,@md_file@,$md_file,;t t
12413 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12414 s,@out_file@,$out_file,;t t
12415 s,@out_object_file@,$out_object_file,;t t
12416 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12417 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12418 s,@symbolic_link@,$symbolic_link,;t t
12419 s,@thread_file@,$thread_file,;t t
12420 s,@tm_file_list@,$tm_file_list,;t t
12421 s,@tm_include_list@,$tm_include_list,;t t
12422 s,@tm_defines@,$tm_defines,;t t
12423 s,@tm_p_file_list@,$tm_p_file_list,;t t
12424 s,@tm_p_include_list@,$tm_p_include_list,;t t
12425 s,@xm_file_list@,$xm_file_list,;t t
12426 s,@xm_include_list@,$xm_include_list,;t t
12427 s,@xm_defines@,$xm_defines,;t t
12428 s,@target_noncanonical@,$target_noncanonical,;t t
12429 s,@c_target_objs@,$c_target_objs,;t t
12430 s,@cxx_target_objs@,$cxx_target_objs,;t t
12431 s,@target_cpu_default@,$target_cpu_default,;t t
12432 s,@LIBOBJS@,$LIBOBJS,;t t
12433 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12434 /@language_hooks@/r $language_hooks
12435 s,@language_hooks@,,;t t
12440 cat >>$CONFIG_STATUS <<\_ACEOF
12441 # Split the substitutions into bite-sized pieces for seds with
12442 # small command number limits, like on Digital OSF/1 and HP-UX.
12443 ac_max_sed_lines
=48
12444 ac_sed_frag
=1 # Number of current file.
12445 ac_beg
=1 # First line for current file.
12446 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12449 while $ac_more_lines; do
12450 if test $ac_beg -gt 1; then
12451 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12453 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12455 if test ! -s $tmp/subs.frag
; then
12456 ac_more_lines
=false
12458 # The purpose of the label and of the branching condition is to
12459 # speed up the sed processing (if there are no `@' at all, there
12460 # is no need to browse any of the substitutions).
12461 # These are the two extra sed commands mentioned above.
12463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12464 if test -z "$ac_sed_cmds"; then
12465 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12467 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12469 ac_sed_frag
=`expr $ac_sed_frag + 1`
12471 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12474 if test -z "$ac_sed_cmds"; then
12477 fi # test -n "$CONFIG_FILES"
12480 cat >>$CONFIG_STATUS <<\_ACEOF
12481 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12482 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12484 - |
*:- |
*:-:* ) # input from stdin
12486 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12487 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12488 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12489 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12490 * ) ac_file_in
=$ac_file.
in ;;
12493 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12494 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12495 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12496 X"$ac_file" : 'X\(//\)[^/]' \| \
12497 X"$ac_file" : 'X\(//\)$' \| \
12498 X"$ac_file" : 'X\(/\)' \| \
12499 . : '\(.\)' 2>/dev/null ||
12501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12503 /^X\(\/\/\)$/{ s//\1/; q; }
12504 /^X\(\/\).*/{ s//\1/; q; }
12506 { if $as_mkdir_p; then
12511 while test ! -d "$as_dir"; do
12512 as_dirs
="$as_dir $as_dirs"
12513 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12515 X"$as_dir" : 'X\(//\)[^/]' \| \
12516 X"$as_dir" : 'X\(//\)$' \| \
12517 X"$as_dir" : 'X\(/\)' \| \
12518 . : '\(.\)' 2>/dev/null ||
12520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12522 /^X\(\/\/\)$/{ s//\1/; q; }
12523 /^X\(\/\).*/{ s//\1/; q; }
12526 test ! -n "$as_dirs" || mkdir
$as_dirs
12527 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12528 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12529 { (exit 1); exit 1; }; }; }
12533 if test "$ac_dir" != .
; then
12534 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12535 # A "../" for each directory in $ac_dir_suffix.
12536 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12538 ac_dir_suffix
= ac_top_builddir
=
12542 .
) # No --srcdir option. We are building in place.
12544 if test -z "$ac_top_builddir"; then
12547 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12549 [\\/]* | ?
:[\\/]* ) # Absolute path.
12550 ac_srcdir
=$srcdir$ac_dir_suffix;
12551 ac_top_srcdir
=$srcdir ;;
12552 *) # Relative path.
12553 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12554 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12556 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12558 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12559 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12560 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12561 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12565 if test x
"$ac_file" != x-
; then
12566 { echo "$as_me:$LINENO: creating $ac_file" >&5
12567 echo "$as_me: creating $ac_file" >&6;}
12570 # Let's still pretend it is `configure' which instantiates (i.e., don't
12571 # use $as_me), people would be surprised to read:
12572 # /* config.h. Generated by config.status. */
12573 if test x
"$ac_file" = x-
; then
12576 configure_input
="$ac_file. "
12578 configure_input
=$configure_input"Generated from `echo $ac_file_in |
12579 sed 's,.*/,,'` by configure."
12581 # First look for the input files in the build tree, otherwise in the
12583 ac_file_inputs
=`IFS=:
12584 for f in $ac_file_in; do
12586 -) echo $tmp/stdin ;;
12588 # Absolute (can't be DOS-style, as IFS=:)
12589 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12590 echo "$as_me: error: cannot find input file: $f" >&2;}
12591 { (exit 1); exit 1; }; }
12594 if test -f "$f"; then
12597 elif test -f "$srcdir/$f"; then
12602 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12603 echo "$as_me: error: cannot find input file: $f" >&2;}
12604 { (exit 1); exit 1; }; }
12607 done` ||
{ (exit 1); exit 1; }
12609 cat >>$CONFIG_STATUS <<_ACEOF
12613 cat >>$CONFIG_STATUS <<\_ACEOF
12615 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12616 s
,@configure_input@
,$configure_input,;t t
12617 s
,@srcdir@
,$ac_srcdir,;t t
12618 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
12619 s
,@top_srcdir@
,$ac_top_srcdir,;t t
12620 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
12621 s
,@builddir@
,$ac_builddir,;t t
12622 s
,@abs_builddir@
,$ac_abs_builddir,;t t
12623 s
,@top_builddir@
,$ac_top_builddir,;t t
12624 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
12625 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12627 if test x"$ac_file" != x-; then
12628 mv $tmp/out $ac_file
12636 cat >>$CONFIG_STATUS <<\_ACEOF
12639 # CONFIG_HEADER section.
12642 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
12643 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12645 # ac_d sets the value in "#define NAME VALUE" lines.
12646 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12647 ac_dB
='[ ].*$,\1#\2'
12650 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12651 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12652 ac_uB
='$,\1#\2define\3'
12656 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
12657 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12659 - |
*:- |
*:-:* ) # input from stdin
12661 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12662 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12663 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12664 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12665 * ) ac_file_in
=$ac_file.
in ;;
12668 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
12669 echo "$as_me: creating $ac_file" >&6;}
12671 # First look for the input files in the build tree, otherwise in the
12673 ac_file_inputs
=`IFS=:
12674 for f in $ac_file_in; do
12676 -) echo $tmp/stdin ;;
12678 # Absolute (can't be DOS-style, as IFS=:)
12679 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12680 echo "$as_me: error: cannot find input file: $f" >&2;}
12681 { (exit 1); exit 1; }; }
12684 if test -f "$f"; then
12687 elif test -f "$srcdir/$f"; then
12692 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12693 echo "$as_me: error: cannot find input file: $f" >&2;}
12694 { (exit 1); exit 1; }; }
12697 done` ||
{ (exit 1); exit 1; }
12698 # Remove the trailing spaces.
12699 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12703 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12704 # `conftest.undefs', that substitutes the proper values into
12705 # config.h.in to produce config.h. The first handles `#define'
12706 # templates, and the second `#undef' templates.
12707 # And first: Protect against being on the right side of a sed subst in
12708 # config.status. Protect against being in an unquoted here document
12709 # in config.status.
12710 rm -f conftest.defines conftest.undefs
12711 # Using a here document instead of a string reduces the quoting nightmare.
12712 # Putting comments in sed scripts is not portable.
12714 # `end' is used to avoid that the second main sed command (meant for
12715 # 0-ary CPP macros) applies to n-ary macro definitions.
12716 # See the Autoconf documentation for `clear'.
12717 cat >confdef2sed.
sed <<\_ACEOF
12722 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12724 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12727 # If some macros were called several times there might be several times
12728 # the same #defines, which is useless. Nevertheless, we may not want to
12729 # sort them, since we want the *last* AC-DEFINE to be honored.
12730 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12731 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12732 rm -f confdef2sed.sed
12734 # This sed command replaces #undef with comments. This is necessary, for
12735 # example, in the case of _POSIX_SOURCE, which is predefined and required
12736 # on some systems where configure will not decide to define it.
12737 cat >>conftest.undefs <<\_ACEOF
12738 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12741 # Break up conftest.defines because some shells have a limit on the size
12742 # of here documents, and old seds have small limits too (100 cmds).
12743 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12744 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12745 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12746 echo ' :' >>$CONFIG_STATUS
12747 rm -f conftest.tail
12748 while grep . conftest.defines >/dev/null
12750 # Write a limited-size here document to $tmp/defines.sed.
12751 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12752 # Speed up: don't consider the non `#define' lines.
12753 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12754 # Work around the forget-to-reset-the-flag bug.
12755 echo 't clr' >>$CONFIG_STATUS
12756 echo ': clr' >>$CONFIG_STATUS
12757 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
12759 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12761 mv $tmp/out $tmp/in
12763 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
12764 rm -f conftest.defines
12765 mv conftest.
tail conftest.defines
12767 rm -f conftest.defines
12768 echo ' fi # grep' >>$CONFIG_STATUS
12769 echo >>$CONFIG_STATUS
12771 # Break up conftest.undefs because some shells have a limit on the size
12772 # of here documents, and old seds have small limits too (100 cmds).
12773 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12774 rm -f conftest.
tail
12775 while grep . conftest.undefs
>/dev
/null
12777 # Write a limited-size here document to $tmp/undefs.sed.
12778 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12779 # Speed up: don't consider the non
`#undef'
12780 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12781 # Work around the forget-to-reset-the-flag bug.
12782 echo 't clr' >>$CONFIG_STATUS
12783 echo ': clr' >>$CONFIG_STATUS
12784 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12786 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12788 mv $tmp/out $tmp/in
12790 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12791 rm -f conftest.undefs
12792 mv conftest.tail conftest.undefs
12794 rm -f conftest.undefs
12796 cat >>$CONFIG_STATUS <<\_ACEOF
12797 # Let's still pretend it is `configure
' which instantiates (i.e., don't
12798 # use $as_me), people would be surprised to read:
12799 # /* config.h. Generated by config.status. */
12800 if test x
"$ac_file" = x-
; then
12801 echo "/* Generated by configure. */" >$tmp/config.h
12803 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12805 cat $tmp/in >>$tmp/config.h
12807 if test x
"$ac_file" != x-
; then
12808 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
12809 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12810 echo "$as_me: $ac_file is unchanged" >&6;}
12812 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12814 X"$ac_file" : 'X\(//\)[^/]' \| \
12815 X"$ac_file" : 'X\(//\)$' \| \
12816 X"$ac_file" : 'X\(/\)' \| \
12817 . : '\(.\)' 2>/dev/null ||
12819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12821 /^X\(\/\/\)$/{ s//\1/; q; }
12822 /^X\(\/\).*/{ s//\1/; q; }
12824 { if $as_mkdir_p; then
12829 while test ! -d "$as_dir"; do
12830 as_dirs
="$as_dir $as_dirs"
12831 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12833 X"$as_dir" : 'X\(//\)[^/]' \| \
12834 X"$as_dir" : 'X\(//\)$' \| \
12835 X"$as_dir" : 'X\(/\)' \| \
12836 . : '\(.\)' 2>/dev/null ||
12838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12840 /^X\(\/\/\)$/{ s//\1/; q; }
12841 /^X\(\/\).*/{ s//\1/; q; }
12844 test ! -n "$as_dirs" || mkdir
$as_dirs
12845 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12847 { (exit 1); exit 1; }; }; }
12850 mv $tmp/config.h
$ac_file
12854 rm -f $tmp/config.h
12858 cat >>$CONFIG_STATUS <<\_ACEOF
12861 # CONFIG_COMMANDS section.
12863 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
12864 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
12865 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12866 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
12867 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12868 X"$ac_dest" : 'X\(//\)[^/]' \| \
12869 X"$ac_dest" : 'X\(//\)$' \| \
12870 X"$ac_dest" : 'X\(/\)' \| \
12871 . : '\(.\)' 2>/dev/null ||
12873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12875 /^X\(\/\/\)$/{ s//\1/; q; }
12876 /^X\(\/\).*/{ s//\1/; q; }
12880 if test "$ac_dir" != .
; then
12881 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12882 # A "../" for each directory in $ac_dir_suffix.
12883 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12885 ac_dir_suffix
= ac_top_builddir
=
12889 .
) # No --srcdir option. We are building in place.
12891 if test -z "$ac_top_builddir"; then
12894 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12896 [\\/]* | ?
:[\\/]* ) # Absolute path.
12897 ac_srcdir
=$srcdir$ac_dir_suffix;
12898 ac_top_srcdir
=$srcdir ;;
12899 *) # Relative path.
12900 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12901 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12903 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12905 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12906 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12907 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12908 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12911 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12912 echo "$as_me: executing $ac_dest commands" >&6;}
12915 case ${CONFIG_HEADERS} in
12916 *auto-host.h
:config.
in*)
12919 # Make sure all the subdirs exist.
12922 test -d $d || mkdir
$d
12924 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
12925 # bootstrapping and the installation procedure can still use
12926 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
12927 # FLAGS_TO_PASS has been modified to solve the problem there.
12928 # This is virtually a duplicate of what happens in configure.lang; we do
12929 # an extra check to make sure this only happens if ln -s can be used.
12930 if test "$symbolic_link" = "ln -s"; then
12931 for d
in ${subdirs} fixinc
; do
12932 STARTDIR
=`${PWDCMD-pwd}`
12934 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
12937 $symbolic_link ..
/$t $t 2>/dev
/null
12947 cat >>$CONFIG_STATUS <<\_ACEOF
12949 { (exit 0); exit 0; }
12951 chmod +x
$CONFIG_STATUS
12952 ac_clean_files
=$ac_clean_files_save
12955 # configure is writing to config.log, and then calls config.status.
12956 # config.status does its own redirection, appending to config.log.
12957 # Unfortunately, on DOS this fails, as config.log is still kept open
12958 # by configure, so config.status won't be able to write to it; its
12959 # output is simply discarded. So we exec the FD to /dev/null,
12960 # effectively closing config.log, so it can be properly (re)opened and
12961 # appended to by config.status. When coming back to configure, we
12962 # need to make the FD available again.
12963 if test "$no_create" != yes; then
12965 ac_config_status_args
=
12966 test "$silent" = yes &&
12967 ac_config_status_args
="$ac_config_status_args --quiet"
12969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12972 # would make configure fail if this is the last instruction.
12973 $ac_cs_success ||
{ (exit 1); exit 1; }