2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default
="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP GNATBIND ac_ct_GNATBIND strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir docobjdir parsedir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_extra_gcc_objs host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files
='language_hooks'
314 # Initialize some variables set by options.
316 ac_init_version
=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name
=s
,x
,x
,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir
='${exec_prefix}/bin'
340 sbindir
='${exec_prefix}/sbin'
341 libexecdir
='${exec_prefix}/libexec'
342 datadir
='${prefix}/share'
343 sysconfdir
='${prefix}/etc'
344 sharedstatedir
='${prefix}/com'
345 localstatedir
='${prefix}/var'
346 libdir
='${exec_prefix}/lib'
347 includedir
='${prefix}/include'
348 oldincludedir
='/usr/include'
349 infodir
='${prefix}/info'
350 mandir
='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
370 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
373 -build |
--build |
--buil |
--bui |
--bu)
374 ac_prev
=build_alias
;;
375 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
376 build_alias
=$ac_optarg ;;
378 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
379 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
380 ac_prev
=cache_file
;;
381 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
382 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
383 cache_file
=$ac_optarg ;;
386 cache_file
=config.cache
;;
388 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
390 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
392 datadir
=$ac_optarg ;;
394 -disable-* |
--disable-*)
395 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* |
--enable-*)
404 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
417 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
418 |
--exec |
--exe |
--ex)
419 ac_prev
=exec_prefix
;;
420 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
421 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
422 |
--exec=* |
--exe=* |
--ex=*)
423 exec_prefix
=$ac_optarg ;;
425 -gas |
--gas |
--ga |
--g)
426 # Obsolete; use --with-gas.
429 -help |
--help |
--hel |
--he |
-h)
431 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
432 ac_init_help
=recursive
;;
433 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
434 ac_init_help
=short
;;
436 -host |
--host |
--hos |
--ho)
437 ac_prev
=host_alias
;;
438 -host=* |
--host=* |
--hos=* |
--ho=*)
439 host_alias
=$ac_optarg ;;
441 -includedir |
--includedir |
--includedi |
--included |
--include \
442 |
--includ |
--inclu |
--incl |
--inc)
443 ac_prev
=includedir
;;
444 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
445 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
446 includedir
=$ac_optarg ;;
448 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
450 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
451 infodir
=$ac_optarg ;;
453 -libdir |
--libdir |
--libdi |
--libd)
455 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
458 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
459 |
--libexe |
--libex |
--libe)
460 ac_prev
=libexecdir
;;
461 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
462 |
--libexe=* |
--libex=* |
--libe=*)
463 libexecdir
=$ac_optarg ;;
465 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
466 |
--localstate |
--localstat |
--localsta |
--localst \
467 |
--locals |
--local |
--loca |
--loc |
--lo)
468 ac_prev
=localstatedir
;;
469 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
470 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
471 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
472 localstatedir
=$ac_optarg ;;
474 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
476 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
480 # Obsolete; use --without-fp.
483 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
484 |
--no-cr |
--no-c |
-n)
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
491 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
492 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
493 |
--oldin |
--oldi |
--old |
--ol |
--o)
494 ac_prev
=oldincludedir
;;
495 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
496 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
497 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
498 oldincludedir
=$ac_optarg ;;
500 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
502 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
505 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
506 |
--program-pre |
--program-pr |
--program-p)
507 ac_prev
=program_prefix
;;
508 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
509 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
510 program_prefix
=$ac_optarg ;;
512 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
513 |
--program-suf |
--program-su |
--program-s)
514 ac_prev
=program_suffix
;;
515 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
516 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
517 program_suffix
=$ac_optarg ;;
519 -program-transform-name |
--program-transform-name \
520 |
--program-transform-nam |
--program-transform-na \
521 |
--program-transform-n |
--program-transform- \
522 |
--program-transform |
--program-transfor \
523 |
--program-transfo |
--program-transf \
524 |
--program-trans |
--program-tran \
525 |
--progr-tra |
--program-tr |
--program-t)
526 ac_prev
=program_transform_name
;;
527 -program-transform-name=* |
--program-transform-name=* \
528 |
--program-transform-nam=* |
--program-transform-na=* \
529 |
--program-transform-n=* |
--program-transform-=* \
530 |
--program-transform=* |
--program-transfor=* \
531 |
--program-transfo=* |
--program-transf=* \
532 |
--program-trans=* |
--program-tran=* \
533 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
534 program_transform_name
=$ac_optarg ;;
536 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
537 |
-silent |
--silent |
--silen |
--sile |
--sil)
540 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
542 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
544 sbindir
=$ac_optarg ;;
546 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
547 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
548 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
550 ac_prev
=sharedstatedir
;;
551 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
552 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
553 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
555 sharedstatedir
=$ac_optarg ;;
557 -site |
--site |
--sit)
559 -site=* |
--site=* |
--sit=*)
562 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
564 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
567 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
568 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
569 ac_prev
=sysconfdir
;;
570 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
571 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
572 sysconfdir
=$ac_optarg ;;
574 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
575 ac_prev
=target_alias
;;
576 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
577 target_alias
=$ac_optarg ;;
579 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
582 -version |
--version |
--versio |
--versi |
--vers |
-V)
586 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package
=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* |
--without-*)
599 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package
=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
612 |
--x-incl |
--x-inc |
--x-in |
--x-i)
613 ac_prev
=x_includes
;;
614 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
615 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
616 x_includes
=$ac_optarg ;;
618 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
619 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
620 ac_prev
=x_libraries
;;
621 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
622 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
623 x_libraries
=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var
in exec_prefix prefix
660 eval ac_val
=$
`echo $ac_var`
662 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val
=$
`echo $ac_var`
674 [\\/$
]* | ?
:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x
; then
689 if test "x$build_alias" = x
; then
690 cross_compiling
=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
701 test "$silent" = yes && exec 6>/dev
/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted
=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir
=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted
=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set
=${build_alias+set}
741 ac_env_build_alias_value
=$build_alias
742 ac_cv_env_build_alias_set
=${build_alias+set}
743 ac_cv_env_build_alias_value
=$build_alias
744 ac_env_host_alias_set
=${host_alias+set}
745 ac_env_host_alias_value
=$host_alias
746 ac_cv_env_host_alias_set
=${host_alias+set}
747 ac_cv_env_host_alias_value
=$host_alias
748 ac_env_target_alias_set
=${target_alias+set}
749 ac_env_target_alias_value
=$target_alias
750 ac_cv_env_target_alias_set
=${target_alias+set}
751 ac_cv_env_target_alias_value
=$target_alias
752 ac_env_CC_set
=${CC+set}
754 ac_cv_env_CC_set
=${CC+set}
755 ac_cv_env_CC_value
=$CC
756 ac_env_CFLAGS_set
=${CFLAGS+set}
757 ac_env_CFLAGS_value
=$CFLAGS
758 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value
=$CFLAGS
760 ac_env_LDFLAGS_set
=${LDFLAGS+set}
761 ac_env_LDFLAGS_value
=$LDFLAGS
762 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value
=$LDFLAGS
764 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value
=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_env_CPP_set
=${CPP+set}
769 ac_env_CPP_value
=$CPP
770 ac_cv_env_CPP_set
=${CPP+set}
771 ac_cv_env_CPP_value
=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
839 --build=BUILD configure
for building on BUILD
[guessed
]
840 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
841 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-generated-files-in-srcdir Put generated files
in source dir
853 --enable-werror enable -Werror in bootstrap stage2 and later
854 --enable-checking=LIST
855 enable expensive run-time checks. With LIST
,
856 enable only specific categories of checks.
857 Categories are
: misc
,tree
,rtl
,rtlflag
,gc
,gcac
,fold;
858 default is misc
,tree
,gc
,rtlflag
859 --enable-coverage=LEVEL
860 enable compiler
\'s code coverage collection.
861 Use to measure compiler performance and
locate
862 unused parts of the compiler. With LEVEL
, specify
863 optimization. Values are opt
, noopt
,
865 --enable-multilib enable library support
for multiple ABIs
866 --enable-__cxa_atexit enable __cxa_atexit
for C
++
867 --enable-threads enable thread usage
for target GCC
868 --enable-threads=LIB use LIB thread package
for target GCC
869 --enable-objc-gc enable the use of Boehm
's garbage collector with
870 the GNU Objective-C runtime
871 --disable-shared don't provide a shared libgcc
872 --enable-intermodule build the compiler
in one step
873 --enable-initfini-array use .init_array
/.fini_array sections
874 --enable-sjlj-exceptions
875 arrange to use setjmp
/longjmp exception handling
876 --enable-libunwind-exceptions force use libunwind
for exceptions
877 --disable-win32-registry
878 disable lookup of installation paths
in the
879 Registry on Windows hosts
880 --enable-win32-registry enable registry lookup
(default
)
881 --enable-win32-registry=KEY
882 use KEY instead of GCC version as the last portion
884 --enable-maintainer-mode
885 enable make rules and dependencies not useful
886 (and sometimes confusing
) to the casual installer
887 --enable-version-specific-runtime-libs
888 specify that runtime libraries should be
889 installed
in a compiler-specific directory
892 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
893 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
894 --with-local-prefix=DIR specifies directory to put
local include
895 --with-gxx-include-dir=DIR
896 specifies directory to put g
++ header files
897 --with-cpp-install-dir=DIR
898 install the user visible C preprocessor
in DIR
899 (relative to PREFIX
) as well as PREFIX
/bin
900 --with-gnu-ld arrange to work with GNU ld.
901 --with-ld arrange to use the specified ld
(full pathname
)
902 --with-gnu-as arrange to work with GNU as
903 --with-as arrange to use the specified as
(full pathname
)
904 --with-stabs arrange to use stabs instead of
host debug format
905 --with-dwarf2 force the default debug format to be DWARF
2
906 --with-sysroot=DIR Search
for usr
/lib
, usr
/include
, et al
, within DIR.
907 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
908 --with-gc={simple
,page
,zone
} choose the garbage collection mechanism to use
910 --with-system-zlib use installed libz
911 --with-slibdir=DIR shared libraries
in DIR LIBDIR
913 Some influential environment variables
:
914 CC C compiler
command
915 CFLAGS C compiler flags
916 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
917 nonstandard directory
<lib dir
>
918 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
919 headers
in a nonstandard directory
<include dir
>
922 Use these variables to override the choices made by
`configure' or to help
923 it to find libraries and programs with nonstandard names/locations.
928 if test "$ac_init_help" = "recursive"; then
929 # If there are subdirs, report their specific --help.
931 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
932 test -d $ac_dir || continue
935 if test "$ac_dir" != .; then
936 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
937 # A "../" for each directory in $ac_dir_suffix.
938 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
940 ac_dir_suffix= ac_top_builddir=
944 .) # No --srcdir option. We are building in place.
946 if test -z "$ac_top_builddir"; then
949 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
951 [\\/]* | ?:[\\/]* ) # Absolute path.
952 ac_srcdir=$srcdir$ac_dir_suffix;
953 ac_top_srcdir=$srcdir ;;
955 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
956 ac_top_srcdir=$ac_top_builddir$srcdir ;;
958 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
960 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
961 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
962 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
963 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
988 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
989 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
1000 It was created by $as_me, which was
1001 generated by GNU Autoconf 2.57. Invocation command line was
1012 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1013 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1014 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1015 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1016 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1018 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1019 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1021 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1022 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1023 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1024 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1025 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1027 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_must_keep_next=false
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 -* ) ac_must_keep_next=true ;;
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log. We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close
' the trap.
1107 trap 'exit_status
=$?
1108 # Save into config.log some information that might help in debugging.
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1118 # The following way of writing the cache mishandles newlines in values,
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1141 for ac_var
in $ac_subst_vars
1143 eval ac_val
=$
`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -n "$ac_subst_files"; then
1155 for ac_var
in $ac_subst_files
1157 eval ac_val
=$
`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1163 if test -s confdefs.h
; then
1170 sed "/^$/d" confdefs.h |
sort
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1177 rm -f core
*.core
&&
1178 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1181 for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 # Predefined preprocessor variables.
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 for ac_site_file in $CONFIG_SITE; do
1228 if test -r "$ac_site_file"; then
1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's
/^
/|
/' "$ac_site_file" >&5
1236 if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1253 # Check that the precious variables saved in the cache have kept the same
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
1262 case $ac_old_set,$ac_new_set in
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1266 ac_cache_corrupted=: ;;
1268 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1275 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277 echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279 echo "$as_me: current value: $ac_new_val" >&2;}
1280 ac_cache_corrupted=:
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1300 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1307 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1331 # Determine the host, build, and target systems
1333 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1334 if test -f $ac_dir/install-sh; then
1336 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 elif test -f $ac_dir/install.sh; then
1340 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 elif test -f $ac_dir/shtool; then
1344 ac_install_sh="$ac_aux_dir/shtool install -c"
1348 if test -z "$ac_aux_dir"; then
1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1350 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1351 { (exit 1); exit 1; }; }
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1357 # Make sure we can run config.sub.
1358 $ac_config_sub sun4 >/dev/null 2>&1 ||
1359 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1360 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1361 { (exit 1); exit 1; }; }
1363 echo "$as_me:$LINENO: checking build system type" >&5
1364 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1365 if test "${ac_cv_build+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 ac_cv_build_alias=$build_alias
1369 test -z "$ac_cv_build_alias" &&
1370 ac_cv_build_alias=`$ac_config_guess`
1371 test -z "$ac_cv_build_alias" &&
1372 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1373 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1374 { (exit 1); exit 1; }; }
1375 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1376 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1377 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1378 { (exit 1); exit 1; }; }
1381 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1382 echo "${ECHO_T}$ac_cv_build" >&6
1384 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1385 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1386 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1389 echo "$as_me:$LINENO: checking host system type" >&5
1390 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1391 if test "${ac_cv_host+set}" = set; then
1392 echo $ECHO_N "(cached) $ECHO_C" >&6
1394 ac_cv_host_alias=$host_alias
1395 test -z "$ac_cv_host_alias" &&
1396 ac_cv_host_alias=$ac_cv_build_alias
1397 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1398 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1399 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1400 { (exit 1); exit 1; }; }
1403 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1404 echo "${ECHO_T}$ac_cv_host" >&6
1406 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1407 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1408 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1411 echo "$as_me:$LINENO: checking target system type" >&5
1412 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1413 if test "${ac_cv_target+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 ac_cv_target_alias=$target_alias
1417 test "x$ac_cv_target_alias" = "x" &&
1418 ac_cv_target_alias=$ac_cv_host_alias
1419 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1420 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1422 { (exit 1); exit 1; }; }
1425 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1426 echo "${ECHO_T}$ac_cv_target" >&6
1427 target=$ac_cv_target
1428 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1429 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1430 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1433 # The aliases save the names the user supplied, while $host etc.
1434 # will get canonicalized.
1435 test -n "$target_alias" &&
1436 test "$program_prefix$program_suffix$program_transform_name" = \
1438 program_prefix=${target_alias}-
1440 # Determine the noncanonical target name, for directory use.
1441 case ${build_alias} in
1442 "") build_noncanonical=${build} ;;
1443 *) build_noncanonical=${build_alias} ;;
1446 case ${host_alias} in
1447 "") host_noncanonical=${build_noncanonical} ;;
1448 *) host_noncanonical=${host_alias} ;;
1451 case ${target_alias} in
1452 "") target_noncanonical=${host_noncanonical} ;;
1453 *) target_noncanonical=${target_alias} ;;
1457 # Determine the target- and build-specific subdirectories
1458 # Prefix 'build-
' so this never conflicts with target_subdir.
1459 build_subdir="build-${build_noncanonical}"
1460 # Not really a subdirectory, but here for completeness.
1463 target_subdir=${target_noncanonical}
1466 # Set program_transform_name
1467 test "$program_prefix" != NONE &&
1468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1469 # Use a double $ so make ignores it.
1470 test "$program_suffix" != NONE &&
1471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1472 # Double any \ or $. echo might interpret backslashes.
1473 # By default was `s,x,x', remove it
if useless.
1474 cat <<\_ACEOF
>conftest.
sed
1475 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1477 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1481 # Check for bogus environment variables.
1482 # Test if LIBRARY_PATH contains the notation for the current directory
1483 # since this would lead to problems installing/building glibc.
1484 # LIBRARY_PATH contains the current directory if one of the following
1486 # - one of the terminals (":" and ";") is the first or last sign
1487 # - two terminals occur directly after each other
1488 # - the path contains an element with a dot in it
1489 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1490 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1491 case ${LIBRARY_PATH} in
1492 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1493 library_path_setting
="contains current directory"
1496 library_path_setting
="ok"
1499 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1500 echo "${ECHO_T}$library_path_setting" >&6
1501 if test "$library_path_setting" != "ok"; then
1502 { { echo "$as_me:$LINENO: error:
1503 *** LIBRARY_PATH shouldn't contain the current directory when
1504 *** building gcc. Please change the environment variable
1505 *** and run configure again." >&5
1506 echo "$as_me: error:
1507 *** LIBRARY_PATH shouldn't contain the current directory when
1508 *** building gcc. Please change the environment variable
1509 *** and run configure again." >&2;}
1510 { (exit 1); exit 1; }; }
1513 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1514 # since this would lead to problems installing/building glibc.
1515 # GCC_EXEC_PREFIX contains the current directory if one of the following
1517 # - one of the terminals (":" and ";") is the first or last sign
1518 # - two terminals occur directly after each other
1519 # - the path contains an element with a dot in it
1520 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1521 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1522 case ${GCC_EXEC_PREFIX} in
1523 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1524 gcc_exec_prefix_setting
="contains current directory"
1527 gcc_exec_prefix_setting
="ok"
1530 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1531 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1532 if test "$gcc_exec_prefix_setting" != "ok"; then
1533 { { echo "$as_me:$LINENO: error:
1534 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1535 *** building gcc. Please change the environment variable
1536 *** and run configure again." >&5
1537 echo "$as_me: error:
1538 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1539 *** building gcc. Please change the environment variable
1540 *** and run configure again." >&2;}
1541 { (exit 1); exit 1; }; }
1548 # Specify the local prefix
1551 # Check whether --with-local-prefix or --without-local-prefix was given.
1552 if test "${with_local_prefix+set}" = set; then
1553 withval
="$with_local_prefix"
1554 case "${withval}" in
1555 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1556 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1557 { (exit 1); exit 1; }; } ;;
1559 *) local_prefix
=$with_local_prefix ;;
1563 # Default local prefix if it is empty
1564 if test x
$local_prefix = x
; then
1565 local_prefix
=/usr
/local
1568 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1569 # passed in by the toplevel make and thus we'd get different behavior
1570 # depending on where we built the sources.
1571 gcc_gxx_include_dir
=
1572 # Specify the g++ header file directory
1574 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1575 if test "${with_gxx_include_dir+set}" = set; then
1576 withval
="$with_gxx_include_dir"
1577 case "${withval}" in
1578 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1579 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1580 { (exit 1); exit 1; }; } ;;
1582 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1586 if test x
${gcc_gxx_include_dir} = x
; then
1587 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1588 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1590 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
1591 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1596 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1597 if test "${with_cpp_install_dir+set}" = set; then
1598 withval
="$with_cpp_install_dir"
1599 if test x
$withval = xyes
; then
1600 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1601 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1602 { (exit 1); exit 1; }; }
1603 elif test x
$withval != xno
; then
1604 cpp_install_dir
=$withval
1608 # We would like to our source tree to be readonly. However when releases or
1609 # pre-releases are generated, the flex/bison generated files as well as the
1610 # various formats of manuals need to be included along with the rest of the
1611 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1614 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1615 if test "${enable_generated_files_in_srcdir+set}" = set; then
1616 enableval
="$enable_generated_files_in_srcdir"
1617 case ${enableval} in
1618 no
) parsedir
='$(objdir)'; docobjdir
='$(objdir)/doc';;
1619 *) parsedir
='$(srcdir)'; docobjdir
='$(srcdir)/doc';;
1622 parsedir
='$(objdir)'; docobjdir
='$(objdir)/doc';
1625 # -------------------
1626 # Find default linker
1627 # -------------------
1631 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1632 if test "${with_gnu_ld+set}" = set; then
1633 withval
="$with_gnu_ld"
1634 gnu_ld_flag
="$with_gnu_ld"
1639 # With pre-defined ld
1641 # Check whether --with-ld or --without-ld was given.
1642 if test "${with_ld+set}" = set; then
1644 DEFAULT_LINKER
="$with_ld"
1646 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1647 if test ! -x "$DEFAULT_LINKER"; then
1648 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1649 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1650 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1654 cat >>confdefs.h
<<_ACEOF
1655 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1660 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1661 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1662 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1663 if test x
"$gnu_ld_flag" = x
"no"; then
1664 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1665 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1667 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1668 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 # ----------------------
1676 # Find default assembler
1677 # ----------------------
1681 # Check whether --with-gnu-as or --without-gnu-as was given.
1682 if test "${with_gnu_as+set}" = set; then
1683 withval
="$with_gnu_as"
1684 gas_flag
="$with_gnu_as"
1690 # Check whether --with-as or --without-as was given.
1691 if test "${with_as+set}" = set; then
1693 DEFAULT_ASSEMBLER
="$with_as"
1695 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1696 if test ! -x "$DEFAULT_ASSEMBLER"; then
1697 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1698 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1699 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1703 cat >>confdefs.h
<<_ACEOF
1704 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1709 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1710 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1711 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1712 if test x
"$gas_flag" = x
"no"; then
1713 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1714 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1716 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1717 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1728 # Find the native compiler
1730 ac_cpp
='$CPP $CPPFLAGS'
1731 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1732 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1733 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1734 if test -n "$ac_tool_prefix"; then
1735 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1736 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_CC+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 if test -n "$CC"; then
1743 ac_cv_prog_CC
="$CC" # Let the user override the test.
1745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1749 test -z "$as_dir" && as_dir
=.
1750 for ac_exec_ext
in '' $ac_executable_extensions; do
1751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 if test -n "$CC"; then
1763 echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1766 echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1771 if test -z "$ac_cv_prog_CC"; then
1773 # Extract the first word of "gcc", so it can be a program name with args.
1774 set dummy gcc
; ac_word
=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 if test -n "$ac_ct_CC"; then
1781 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1787 test -z "$as_dir" && as_dir
=.
1788 for ac_exec_ext
in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_ac_ct_CC
="gcc"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1800 if test -n "$ac_ct_CC"; then
1801 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1802 echo "${ECHO_T}$ac_ct_CC" >&6
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1813 if test -z "$CC"; then
1814 if test -n "$ac_tool_prefix"; then
1815 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1816 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC
="$CC" # Let the user override the test.
1825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir
=.
1830 for ac_exec_ext
in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844 echo "${ECHO_T}$CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1851 if test -z "$ac_cv_prog_CC"; then
1853 # Extract the first word of "cc", so it can be a program name with args.
1854 set dummy cc
; ac_word
=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$ac_ct_CC"; then
1861 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir
=.
1868 for ac_exec_ext
in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_ac_ct_CC
="cc"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1880 if test -n "$ac_ct_CC"; then
1881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1882 echo "${ECHO_T}$ac_ct_CC" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1894 if test -z "$CC"; then
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc
; ac_word
=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$CC"; then
1903 ac_cv_prog_CC
="$CC" # Let the user override the test.
1906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1910 test -z "$as_dir" && as_dir
=.
1911 for ac_exec_ext
in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1914 ac_prog_rejected
=yes
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 if test $ac_prog_rejected = yes; then
1925 # We found a bogon in the path, so make sure we never use it.
1926 set dummy
$ac_cv_prog_CC
1928 if test $# != 0; then
1929 # We chose a different compiler from the bogus one.
1930 # However, it has the same basename, so the bogon will be chosen
1931 # first if we set CC to just the basename; use the full file name.
1933 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1939 if test -n "$CC"; then
1940 echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1948 if test -z "$CC"; then
1949 if test -n "$ac_tool_prefix"; then
1952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1953 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC
="$CC" # Let the user override the test.
1962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1966 test -z "$as_dir" && as_dir
=.
1967 for ac_exec_ext
in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 if test -n "$CC"; then
1980 echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1987 test -n "$CC" && break
1990 if test -z "$CC"; then
1994 # Extract the first word of "$ac_prog", so it can be a program name with args.
1995 set dummy
$ac_prog; ac_word
=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$ac_ct_CC"; then
2002 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir
=.
2009 for ac_exec_ext
in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_ac_ct_CC
="$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2021 if test -n "$ac_ct_CC"; then
2022 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2023 echo "${ECHO_T}$ac_ct_CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$ac_ct_CC" && break
2038 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&2;}
2042 { (exit 1); exit 1; }; }
2044 # Provide some information about the compiler.
2045 echo "$as_me:$LINENO:" \
2046 "checking for C compiler version" >&5
2047 ac_compiler
=`set X $ac_compile; echo $2`
2048 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2049 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2054 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }
2058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2059 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }
2064 cat >conftest.
$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2068 cat confdefs.h
>>conftest.
$ac_ext
2069 cat >>conftest.
$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2080 ac_clean_files_save
=$ac_clean_files
2081 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2082 # Try to create an executable without -o first, disregard a.out.
2083 # It will help us diagnose broken compilers, and finding out an intuition
2085 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2086 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2087 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2088 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2089 (eval $ac_link_default) 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; then
2093 # Find the output, starting from the most likely. This scheme is
2094 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2097 # Be careful to initialize this variable, since it used to be cached.
2098 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2100 # b.out is created by i960 compilers.
2101 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2103 test -f "$ac_file" ||
continue
2105 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2108 # This is the source file.
2111 # We found the default executable, but exeext='' is most
2115 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2116 # FIXME: I believe we export ac_cv_exeext for Libtool,
2117 # but it would be cool to find out if it's true. Does anybody
2118 # maintain Libtool? --akim.
2126 echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.
$ac_ext >&5
2129 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: C compiler cannot create executables
2132 See \`config.log' for more details." >&2;}
2133 { (exit 77); exit 77; }; }
2136 ac_exeext
=$ac_cv_exeext
2137 echo "$as_me:$LINENO: result: $ac_file" >&5
2138 echo "${ECHO_T}$ac_file" >&6
2140 # Check the compiler produces executables we can run. If not, either
2141 # the compiler is broken, or we cross compile.
2142 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2143 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2144 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2145 # If not cross compiling, check that we can run a simple program.
2146 if test "$cross_compiling" != yes; then
2147 if { ac_try
='./$ac_file'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; }; then
2155 if test "$cross_compiling" = maybe
; then
2158 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2159 If you meant to cross compile, use \`--host'.
2160 See \`config.log' for more details." >&5
2161 echo "$as_me: error: cannot run C compiled programs.
2162 If you meant to cross compile, use \`--host'.
2163 See \`config.log' for more details." >&2;}
2164 { (exit 1); exit 1; }; }
2168 echo "$as_me:$LINENO: result: yes" >&5
2169 echo "${ECHO_T}yes" >&6
2171 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2172 ac_clean_files
=$ac_clean_files_save
2173 # Check the compiler produces executables we can run. If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2176 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2177 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2178 echo "${ECHO_T}$cross_compiling" >&6
2180 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2181 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2183 (eval $ac_link) 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2188 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2189 # work properly (i.e., refer to `conftest.exe'), while it won't with
2191 for ac_file
in conftest.exe conftest conftest.
*; do
2192 test -f "$ac_file" ||
continue
2194 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2195 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2205 See \`config.log' for more details." >&2;}
2206 { (exit 1); exit 1; }; }
2209 rm -f conftest
$ac_cv_exeext
2210 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2211 echo "${ECHO_T}$ac_cv_exeext" >&6
2213 rm -f conftest.
$ac_ext
2214 EXEEXT
=$ac_cv_exeext
2216 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2217 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2218 if test "${ac_cv_objext+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 cat >conftest.
$ac_ext <<_ACEOF
2222 #line $LINENO "configure"
2225 cat confdefs.h
>>conftest.
$ac_ext
2226 cat >>conftest.
$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2237 rm -f conftest.o conftest.obj
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; then
2243 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2245 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2246 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.
$ac_ext >&5
2254 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2257 See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2261 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2263 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2264 echo "${ECHO_T}$ac_cv_objext" >&6
2265 OBJEXT
=$ac_cv_objext
2267 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2268 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2269 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 cat >conftest.
$ac_ext <<_ACEOF
2273 #line $LINENO "configure"
2276 cat confdefs.h
>>conftest.
$ac_ext
2277 cat >>conftest.
$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2291 rm -f conftest.
$ac_objext
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try
='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.
$ac_ext >&5
2310 rm -f conftest.
$ac_objext conftest.
$ac_ext
2311 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2314 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2315 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2316 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2317 ac_test_CFLAGS
=${CFLAGS+set}
2318 ac_save_CFLAGS
=$CFLAGS
2320 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2322 if test "${ac_cv_prog_cc_g+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 cat >conftest.
$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2329 cat confdefs.h
>>conftest.
$ac_ext
2330 cat >>conftest.
$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2341 rm -f conftest.
$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try
='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.
$ac_ext >&5
2360 rm -f conftest.
$ac_objext conftest.
$ac_ext
2362 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2364 if test "$ac_test_CFLAGS" = set; then
2365 CFLAGS
=$ac_save_CFLAGS
2366 elif test $ac_cv_prog_cc_g = yes; then
2367 if test "$GCC" = yes; then
2373 if test "$GCC" = yes; then
2379 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2380 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2381 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 ac_cv_prog_cc_stdc
=no
2386 cat >conftest.
$ac_ext <<_ACEOF
2387 #line $LINENO "configure"
2390 cat confdefs.h
>>conftest.
$ac_ext
2391 cat >>conftest.
$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2395 #include <sys/types.h>
2396 #include <sys/stat.h>
2397 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2398 struct buf { int x; };
2399 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2400 static char *e (p, i)
2406 static char *f (char * (*g) (char **, int), char **p, ...)
2411 s = g (p, va_arg (v,int));
2415 int test (int i, double x);
2416 struct s1 {int (*f) (int a);};
2417 struct s2 {int (*f) (double a);};
2418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2429 # Don't try gcc -ansi; that turns off useful extensions and
2430 # breaks some systems' header files.
2431 # AIX -qlanglvl=ansi
2432 # Ultrix and OSF/1 -std1
2433 # HP-UX 10.20 and later -Ae
2434 # HP-UX older versions -Aa -D_HPUX_SOURCE
2435 # SVR4 -Xc -D__EXTENSIONS__
2436 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2438 CC
="$ac_save_CC $ac_arg"
2439 rm -f conftest.
$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } &&
2445 { ac_try
='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 ac_cv_prog_cc_stdc
=$ac_arg
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.
$ac_ext >&5
2458 rm -f conftest.
$ac_objext
2460 rm -f conftest.
$ac_ext conftest.
$ac_objext
2465 case "x$ac_cv_prog_cc_stdc" in
2467 echo "$as_me:$LINENO: result: none needed" >&5
2468 echo "${ECHO_T}none needed" >&6 ;;
2470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2471 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2472 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2475 # Some people use a C++ compiler to compile C. Since we use `exit',
2476 # in C++ we need to declare it. In case someone uses the same compiler
2477 # for both compiling C and C++ we need to have the C++ compiler decide
2478 # the declaration of exit, since it's the most demanding environment.
2479 cat >conftest.
$ac_ext <<_ACEOF
2484 rm -f conftest.
$ac_objext
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486 (eval $ac_compile) 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try
='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 for ac_declaration
in \
2498 'extern "C" void std::exit (int) throw (); using std::exit;' \
2499 'extern "C" void std::exit (int); using std::exit;' \
2500 'extern "C" void exit (int) throw ();' \
2501 'extern "C" void exit (int);' \
2504 cat >conftest.
$ac_ext <<_ACEOF
2505 #line $LINENO "configure"
2508 cat confdefs.h
>>conftest.
$ac_ext
2509 cat >>conftest.
$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2521 rm -f conftest.
$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try
='test -s conftest.$ac_objext'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.
$ac_ext >&5
2540 rm -f conftest.
$ac_objext conftest.
$ac_ext
2541 cat >conftest.
$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2545 cat confdefs.h
>>conftest.
$ac_ext
2546 cat >>conftest.
$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2557 rm -f conftest.
$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try
='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.
$ac_ext >&5
2575 rm -f conftest.
$ac_objext conftest.
$ac_ext
2578 if test -n "$ac_declaration"; then
2579 echo '#ifdef __cplusplus' >>confdefs.h
2580 echo $ac_declaration >>confdefs.h
2581 echo '#endif' >>confdefs.h
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.
$ac_ext >&5
2589 rm -f conftest.
$ac_objext conftest.
$ac_ext
2591 ac_cpp
='$CPP $CPPFLAGS'
2592 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2596 if test "x$CC" != xcc
; then
2597 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2598 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2600 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2601 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2603 set dummy
$CC; ac_cc
=`echo $2 |
2604 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2605 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 cat >conftest.
$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2612 cat confdefs.h
>>conftest.
$ac_ext
2613 cat >>conftest.
$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2624 # Make sure it works both with $CC and with simple cc.
2625 # We do the test twice because some compilers refuse to overwrite an
2626 # existing .o file with -o, though they will create one.
2627 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2628 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); };
2639 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2640 if test "x$CC" != xcc
; then
2641 # Test first that cc exists at all.
2642 if { ac_try
='cc -c conftest.$ac_ext >&5'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2649 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); };
2663 # cc exists but doesn't like -o.
2664 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2669 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2674 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2675 echo "$as_me:$LINENO: result: yes" >&5
2676 echo "${ECHO_T}yes" >&6
2678 echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2681 cat >>confdefs.h
<<\_ACEOF
2682 #define NO_MINUS_C_MINUS_O 1
2687 # autoconf is lame and doesn't give us any substitution variable for this.
2688 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2689 NO_MINUS_C_MINUS_O
=yes
2691 OUTPUT_OPTION
='-o $@'
2696 # -------------------------
2697 # Check C compiler features
2698 # -------------------------
2701 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2702 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2703 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 save_CFLAGS
="$CFLAGS"
2707 CFLAGS
="-Wno-long-long"
2708 cat >conftest.
$ac_ext <<_ACEOF
2709 #line $LINENO "configure"
2712 cat confdefs.h
>>conftest.
$ac_ext
2713 cat >>conftest.
$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2724 rm -f conftest.
$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } &&
2730 { ac_try
='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_cv_prog_cc_no_long_long
=yes
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.
$ac_ext >&5
2741 ac_cv_prog_cc_no_long_long
=no
2743 rm -f conftest.
$ac_objext conftest.
$ac_ext
2744 CFLAGS
="$save_CFLAGS"
2746 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2747 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2750 ac_cpp
='$CPP $CPPFLAGS'
2751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2754 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2755 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2756 # On Suns, sometimes $CPP names a directory.
2757 if test -n "$CPP" && test -d "$CPP"; then
2760 if test -z "$CPP"; then
2761 if test "${ac_cv_prog_CPP+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 # Double quotes because CPP needs to be expanded
2765 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2768 for ac_c_preproc_warn_flag
in '' yes
2770 # Use a header file that comes with gcc, so configuring glibc
2771 # with a fresh cross-compiler works.
2772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2773 # <limits.h> exists even on freestanding compilers.
2774 # On the NeXT, cc -E runs the code through the compiler's parser,
2775 # not just through cpp. "Syntax error" is here to catch this case.
2776 cat >conftest.
$ac_ext <<_ACEOF
2777 #line $LINENO "configure"
2780 cat confdefs.h
>>conftest.
$ac_ext
2781 cat >>conftest.
$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2784 # include <limits.h>
2786 # include <assert.h>
2790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2791 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2793 grep -v '^ *+' conftest.er1
>conftest.err
2795 cat conftest.err
>&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } >/dev
/null
; then
2798 if test -s conftest.err
; then
2799 ac_cpp_err
=$ac_c_preproc_warn_flag
2806 if test -z "$ac_cpp_err"; then
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.
$ac_ext >&5
2812 # Broken: fails on valid input.
2815 rm -f conftest.err conftest.
$ac_ext
2817 # OK, works on sane cases. Now check whether non-existent headers
2818 # can be detected and how.
2819 cat >conftest.
$ac_ext <<_ACEOF
2820 #line $LINENO "configure"
2823 cat confdefs.h
>>conftest.
$ac_ext
2824 cat >>conftest.
$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2826 #include <ac_nonexistent.h>
2828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2829 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2831 grep -v '^ *+' conftest.er1
>conftest.err
2833 cat conftest.err
>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } >/dev
/null
; then
2836 if test -s conftest.err
; then
2837 ac_cpp_err
=$ac_c_preproc_warn_flag
2844 if test -z "$ac_cpp_err"; then
2845 # Broken: success on invalid input.
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.
$ac_ext >&5
2851 # Passes both tests.
2855 rm -f conftest.err conftest.
$ac_ext
2858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2859 rm -f conftest.err conftest.
$ac_ext
2860 if $ac_preproc_ok; then
2872 echo "$as_me:$LINENO: result: $CPP" >&5
2873 echo "${ECHO_T}$CPP" >&6
2875 for ac_c_preproc_warn_flag
in '' yes
2877 # Use a header file that comes with gcc, so configuring glibc
2878 # with a fresh cross-compiler works.
2879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2880 # <limits.h> exists even on freestanding compilers.
2881 # On the NeXT, cc -E runs the code through the compiler's parser,
2882 # not just through cpp. "Syntax error" is here to catch this case.
2883 cat >conftest.
$ac_ext <<_ACEOF
2884 #line $LINENO "configure"
2887 cat confdefs.h
>>conftest.
$ac_ext
2888 cat >>conftest.
$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2891 # include <limits.h>
2893 # include <assert.h>
2897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2898 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2900 grep -v '^ *+' conftest.er1
>conftest.err
2902 cat conftest.err
>&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } >/dev
/null
; then
2905 if test -s conftest.err
; then
2906 ac_cpp_err
=$ac_c_preproc_warn_flag
2913 if test -z "$ac_cpp_err"; then
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.
$ac_ext >&5
2919 # Broken: fails on valid input.
2922 rm -f conftest.err conftest.
$ac_ext
2924 # OK, works on sane cases. Now check whether non-existent headers
2925 # can be detected and how.
2926 cat >conftest.
$ac_ext <<_ACEOF
2927 #line $LINENO "configure"
2930 cat confdefs.h
>>conftest.
$ac_ext
2931 cat >>conftest.
$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2933 #include <ac_nonexistent.h>
2935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2936 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2938 grep -v '^ *+' conftest.er1
>conftest.err
2940 cat conftest.err
>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } >/dev
/null
; then
2943 if test -s conftest.err
; then
2944 ac_cpp_err
=$ac_c_preproc_warn_flag
2951 if test -z "$ac_cpp_err"; then
2952 # Broken: success on invalid input.
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.
$ac_ext >&5
2958 # Passes both tests.
2962 rm -f conftest.err conftest.
$ac_ext
2965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2966 rm -f conftest.err conftest.
$ac_ext
2967 if $ac_preproc_ok; then
2970 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&5
2972 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&2;}
2974 { (exit 1); exit 1; }; }
2978 ac_cpp
='$CPP $CPPFLAGS'
2979 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2983 echo "$as_me:$LINENO: checking for inline" >&5
2984 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2985 if test "${ac_cv_c_inline+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 for ac_kw
in inline __inline__ __inline
; do
2990 cat >conftest.
$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2994 cat confdefs.h
>>conftest.
$ac_ext
2995 cat >>conftest.
$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2999 static $ac_kw foo_t static_foo () {return 0; }
3000 $ac_kw foo_t foo () {return 0; }
3004 rm -f conftest.
$ac_objext
3005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3006 (eval $ac_compile) 2>&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } &&
3010 { ac_try
='test -s conftest.$ac_objext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 ac_cv_c_inline
=$ac_kw; break
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.
$ac_ext >&5
3022 rm -f conftest.
$ac_objext conftest.
$ac_ext
3026 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3027 echo "${ECHO_T}$ac_cv_c_inline" >&6
3028 case $ac_cv_c_inline in
3031 cat >>confdefs.h
<<\_ACEOF
3035 *) cat >>confdefs.h
<<_ACEOF
3036 #define inline $ac_cv_c_inline
3042 echo "$as_me:$LINENO: checking for long long int" >&5
3043 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3044 if test "${ac_cv_c_long_long+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 cat >conftest.
$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3051 cat confdefs.h
>>conftest.
$ac_ext
3052 cat >>conftest.
$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 rm -f conftest.
$ac_objext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065 (eval $ac_compile) 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } &&
3069 { ac_try
='test -s conftest.$ac_objext'
3070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; }; then
3075 ac_cv_c_long_long
=yes
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.
$ac_ext >&5
3080 ac_cv_c_long_long
=no
3082 rm -f conftest.
$ac_objext conftest.
$ac_ext
3084 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3085 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3086 if test $ac_cv_c_long_long = yes; then
3088 cat >>confdefs.h
<<\_ACEOF
3089 #define HAVE_LONG_LONG 1
3093 echo "$as_me:$LINENO: checking for __int64" >&5
3094 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3095 if test "${ac_cv_c___int64+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 cat >conftest.
$ac_ext <<_ACEOF
3099 #line $LINENO "configure"
3102 cat confdefs.h
>>conftest.
$ac_ext
3103 cat >>conftest.
$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3114 rm -f conftest.
$ac_objext
3115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3116 (eval $ac_compile) 2>&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try
='test -s conftest.$ac_objext'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.
$ac_ext >&5
3133 rm -f conftest.
$ac_objext conftest.
$ac_ext
3135 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3136 echo "${ECHO_T}$ac_cv_c___int64" >&6
3137 if test $ac_cv_c___int64 = yes; then
3139 cat >>confdefs.h
<<\_ACEOF
3140 #define HAVE___INT64 1
3145 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3146 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3147 if test "${gcc_cv_c__bool+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 cat >conftest.
$ac_ext <<_ACEOF
3151 #line $LINENO "configure"
3154 cat confdefs.h
>>conftest.
$ac_ext
3155 cat >>conftest.
$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3166 rm -f conftest.
$ac_objext
3167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168 (eval $ac_compile) 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try
='test -s conftest.$ac_objext'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.
$ac_ext >&5
3185 rm -f conftest.
$ac_objext conftest.
$ac_ext
3188 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3189 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3190 if test $gcc_cv_c__bool = yes; then
3192 cat >>confdefs.h
<<\_ACEOF
3193 #define HAVE__BOOL 1
3199 # sizeof(char) is 1 by definition.
3200 echo "$as_me:$LINENO: checking size of void *" >&5
3201 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3202 if test "${ac_cv_sizeof_void_p+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3206 cat >conftest.
$ac_ext <<_ACEOF
3207 #line $LINENO "configure"
3210 cat confdefs.h
>>conftest.
$ac_ext
3211 cat >>conftest.
$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213 #include "confdefs.h"
3214 #include <sys/types.h>
3220 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3225 rm -f conftest.
$ac_objext
3226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227 (eval $ac_compile) 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 { ac_try
='test -s conftest.$ac_objext'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 ac_cv_sizeof_void_p
=$ac_size
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.
$ac_ext >&5
3243 rm -f conftest.
$ac_objext conftest.
$ac_ext
3244 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3249 if test x
$ac_cv_sizeof_void_p = x
; then
3250 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3251 echo "$as_me: error: cannot determine a size for void *" >&2;}
3252 { (exit 1); exit 1; }; }
3254 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3255 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3257 cat >>confdefs.h
<<_ACEOF
3258 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3262 echo "$as_me:$LINENO: checking size of short" >&5
3263 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3264 if test "${ac_cv_sizeof_short+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3268 cat >conftest.
$ac_ext <<_ACEOF
3269 #line $LINENO "configure"
3272 cat confdefs.h
>>conftest.
$ac_ext
3273 cat >>conftest.
$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include "confdefs.h"
3276 #include <sys/types.h>
3282 switch (0) case 0: case (sizeof (short) == $ac_size):;
3287 rm -f conftest.
$ac_objext
3288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 (eval $ac_compile) 2>&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try
='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_cv_sizeof_short
=$ac_size
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.
$ac_ext >&5
3305 rm -f conftest.
$ac_objext conftest.
$ac_ext
3306 if test x
$ac_cv_sizeof_short != x
; then break; fi
3311 if test x
$ac_cv_sizeof_short = x
; then
3312 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3313 echo "$as_me: error: cannot determine a size for short" >&2;}
3314 { (exit 1); exit 1; }; }
3316 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3317 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3319 cat >>confdefs.h
<<_ACEOF
3320 #define SIZEOF_SHORT $ac_cv_sizeof_short
3324 echo "$as_me:$LINENO: checking size of int" >&5
3325 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3326 if test "${ac_cv_sizeof_int+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3330 cat >conftest.
$ac_ext <<_ACEOF
3331 #line $LINENO "configure"
3334 cat confdefs.h
>>conftest.
$ac_ext
3335 cat >>conftest.
$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337 #include "confdefs.h"
3338 #include <sys/types.h>
3344 switch (0) case 0: case (sizeof (int) == $ac_size):;
3349 rm -f conftest.
$ac_objext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3351 (eval $ac_compile) 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try
='test -s conftest.$ac_objext'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_cv_sizeof_int
=$ac_size
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.
$ac_ext >&5
3367 rm -f conftest.
$ac_objext conftest.
$ac_ext
3368 if test x
$ac_cv_sizeof_int != x
; then break; fi
3373 if test x
$ac_cv_sizeof_int = x
; then
3374 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3375 echo "$as_me: error: cannot determine a size for int" >&2;}
3376 { (exit 1); exit 1; }; }
3378 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3379 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3381 cat >>confdefs.h
<<_ACEOF
3382 #define SIZEOF_INT $ac_cv_sizeof_int
3386 echo "$as_me:$LINENO: checking size of long" >&5
3387 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3388 if test "${ac_cv_sizeof_long+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3392 cat >conftest.
$ac_ext <<_ACEOF
3393 #line $LINENO "configure"
3396 cat confdefs.h
>>conftest.
$ac_ext
3397 cat >>conftest.
$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 #include "confdefs.h"
3400 #include <sys/types.h>
3406 switch (0) case 0: case (sizeof (long) == $ac_size):;
3411 rm -f conftest.
$ac_objext
3412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3413 (eval $ac_compile) 2>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try
='test -s conftest.$ac_objext'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 ac_cv_sizeof_long
=$ac_size
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.
$ac_ext >&5
3429 rm -f conftest.
$ac_objext conftest.
$ac_ext
3430 if test x
$ac_cv_sizeof_long != x
; then break; fi
3435 if test x
$ac_cv_sizeof_long = x
; then
3436 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3437 echo "$as_me: error: cannot determine a size for long" >&2;}
3438 { (exit 1); exit 1; }; }
3440 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3441 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3443 cat >>confdefs.h
<<_ACEOF
3444 #define SIZEOF_LONG $ac_cv_sizeof_long
3448 if test $ac_cv_c_long_long = yes; then
3449 echo "$as_me:$LINENO: checking size of long long" >&5
3450 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3451 if test "${ac_cv_sizeof_long_long+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3455 cat >conftest.
$ac_ext <<_ACEOF
3456 #line $LINENO "configure"
3459 cat confdefs.h
>>conftest.
$ac_ext
3460 cat >>conftest.
$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 #include "confdefs.h"
3463 #include <sys/types.h>
3469 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3474 rm -f conftest.
$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 { ac_try
='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_cv_sizeof_long_long
=$ac_size
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.
$ac_ext >&5
3492 rm -f conftest.
$ac_objext conftest.
$ac_ext
3493 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3498 if test x
$ac_cv_sizeof_long_long = x
; then
3499 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3500 echo "$as_me: error: cannot determine a size for long long" >&2;}
3501 { (exit 1); exit 1; }; }
3503 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3504 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3506 cat >>confdefs.h
<<_ACEOF
3507 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3512 if test $ac_cv_c___int64 = yes; then
3513 echo "$as_me:$LINENO: checking size of __int64" >&5
3514 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3515 if test "${ac_cv_sizeof___int64+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3519 cat >conftest.
$ac_ext <<_ACEOF
3520 #line $LINENO "configure"
3523 cat confdefs.h
>>conftest.
$ac_ext
3524 cat >>conftest.
$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #include "confdefs.h"
3527 #include <sys/types.h>
3533 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3538 rm -f conftest.
$ac_objext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540 (eval $ac_compile) 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try
='test -s conftest.$ac_objext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3550 ac_cv_sizeof___int64
=$ac_size
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.
$ac_ext >&5
3556 rm -f conftest.
$ac_objext conftest.
$ac_ext
3557 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3562 if test x
$ac_cv_sizeof___int64 = x
; then
3563 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3564 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3565 { (exit 1); exit 1; }; }
3567 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3568 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3570 cat >>confdefs.h
<<_ACEOF
3571 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3581 # See if GNAT has been installed
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3587 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3588 echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3590 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 if test -n "$GNATBIND"; then
3594 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir
=.
3601 for ac_exec_ext
in '' $ac_executable_extensions; do
3602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 GNATBIND
=$ac_cv_prog_GNATBIND
3613 if test -n "$GNATBIND"; then
3614 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3615 echo "${ECHO_T}$GNATBIND" >&6
3617 echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3622 if test -z "$ac_cv_prog_GNATBIND"; then
3623 ac_ct_GNATBIND
=$GNATBIND
3624 # Extract the first word of "gnatbind", so it can be a program name with args.
3625 set dummy gnatbind
; ac_word
=$2
3626 echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3628 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 if test -n "$ac_ct_GNATBIND"; then
3632 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir
=.
3639 for ac_exec_ext
in '' $ac_executable_extensions; do
3640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3641 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3651 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3652 if test -n "$ac_ct_GNATBIND"; then
3653 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3654 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3656 echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6
3660 GNATBIND
=$ac_ct_GNATBIND
3662 GNATBIND
="$ac_cv_prog_GNATBIND"
3665 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3666 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3667 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 cat >conftest.adb
<<EOF
3671 procedure conftest is begin null; end conftest;
3673 gcc_cv_cc_supports_ada
=no
3674 # There is a bug in old released versions of GCC which causes the
3675 # driver to exit successfully when the appropriate language module
3676 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3677 # Therefore we must check for the error message as well as an
3678 # unsuccessful exit.
3679 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3680 if test x
"$errors" = x
; then
3681 gcc_cv_cc_supports_ada
=yes
3686 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3687 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3689 if test x
$GNATBIND != xno
&& test x
$gcc_cv_supports_ada != xno
; then
3696 # ---------------------
3697 # Warnings and checking
3698 # ---------------------
3701 if test $ac_cv_prog_cc_no_long_long = yes ; then
3702 strict1_warn
="-pedantic -Wno-long-long"
3706 # If the native compiler is GCC, we can enable warnings even in stage1.
3707 # That's useful for people building cross-compilers, or just running a
3710 if test "x$GCC" = "xyes"; then
3711 warn_cflags
='$(GCC_WARN_CFLAGS)'
3715 # Enable -Werror in bootstrap stage2 and later.
3716 # Change the default to "no" on release branches.
3717 # Check whether --enable-werror or --disable-werror was given.
3718 if test "${enable_werror+set}" = set; then
3719 enableval
="$enable_werror"
3724 if test x
$enable_werror = xyes
; then
3729 # Enable expensive internal checks
3730 # Check whether --enable-checking or --disable-checking was given.
3731 if test "${enable_checking+set}" = set; then
3732 enableval
="$enable_checking"
3736 ac_rtlflag_checking
=
3738 ac_gc_always_collect
=
3740 case "${enableval}" in
3741 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3742 ac_rtlflag_checking
=1 ;;
3744 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3745 set fnord
$enableval; shift
3750 misc
) ac_checking
=1 ;;
3751 tree
) ac_tree_checking
=1 ;;
3752 rtlflag
) ac_rtlflag_checking
=1 ;;
3753 rtl
) ac_rtl_checking
=1 ;;
3754 gc
) ac_gc_checking
=1 ;;
3755 gcac
) ac_gc_always_collect
=1 ;;
3756 fold) ac_fold_checking
=1 ;;
3757 valgrind
) ac_checking_valgrind
=1 ;;
3758 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3759 echo "$as_me: error: unknown check category $check" >&2;}
3760 { (exit 1); exit 1; }; } ;;
3767 # Enable some checks by default for development versions of GCC
3768 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
3771 if test x
$ac_checking != x
; then
3773 cat >>confdefs.h
<<\_ACEOF
3774 #define ENABLE_CHECKING 1
3777 nocommon_flag
=-fno-common
3780 if test x
$ac_tree_checking != x
; then
3782 cat >>confdefs.h
<<\_ACEOF
3783 #define ENABLE_TREE_CHECKING 1
3787 if test x
$ac_rtl_checking != x
; then
3789 cat >>confdefs.h
<<\_ACEOF
3790 #define ENABLE_RTL_CHECKING 1
3794 if test x
$ac_rtlflag_checking != x
; then
3796 cat >>confdefs.h
<<\_ACEOF
3797 #define ENABLE_RTL_FLAG_CHECKING 1
3801 if test x
$ac_gc_checking != x
; then
3803 cat >>confdefs.h
<<\_ACEOF
3804 #define ENABLE_GC_CHECKING 1
3808 if test x
$ac_gc_always_collect != x
; then
3810 cat >>confdefs.h
<<\_ACEOF
3811 #define ENABLE_GC_ALWAYS_COLLECT 1
3815 if test x
$ac_fold_checking != x
; then
3817 cat >>confdefs.h
<<\_ACEOF
3818 #define ENABLE_FOLD_CHECKING 1
3822 valgrind_path_defines
=
3826 echo "$as_me:$LINENO: checking for egrep" >&5
3827 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3828 if test "${ac_cv_prog_egrep+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3832 then ac_cv_prog_egrep
='grep -E'
3833 else ac_cv_prog_egrep
='egrep'
3836 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3837 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3838 EGREP
=$ac_cv_prog_egrep
3841 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3842 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3843 if test "${ac_cv_header_stdc+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 cat >conftest.
$ac_ext <<_ACEOF
3847 #line $LINENO "configure"
3850 cat confdefs.h
>>conftest.
$ac_ext
3851 cat >>conftest.
$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3866 rm -f conftest.
$ac_objext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try
='test -s conftest.$ac_objext'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
3878 ac_cv_header_stdc
=yes
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.
$ac_ext >&5
3883 ac_cv_header_stdc
=no
3885 rm -f conftest.
$ac_objext conftest.
$ac_ext
3887 if test $ac_cv_header_stdc = yes; then
3888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3889 cat >conftest.
$ac_ext <<_ACEOF
3890 #line $LINENO "configure"
3893 cat confdefs.h
>>conftest.
$ac_ext
3894 cat >>conftest.
$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 $EGREP "memchr" >/dev
/null
2>&1; then
3903 ac_cv_header_stdc
=no
3909 if test $ac_cv_header_stdc = yes; then
3910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911 cat >conftest.
$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3915 cat confdefs.h
>>conftest.
$ac_ext
3916 cat >>conftest.
$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3922 $EGREP "free" >/dev
/null
2>&1; then
3925 ac_cv_header_stdc
=no
3931 if test $ac_cv_header_stdc = yes; then
3932 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3933 if test "$cross_compiling" = yes; then
3936 cat >conftest.
$ac_ext <<_ACEOF
3937 #line $LINENO "configure"
3940 cat confdefs.h
>>conftest.
$ac_ext
3941 cat >>conftest.
$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3944 #if ((' ' & 0x0FF) == 0x020)
3945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3948 # define ISLOWER(c) \
3949 (('a' <= (c) && (c) <= 'i') \
3950 || ('j' <= (c) && (c) <= 'r') \
3951 || ('s' <= (c) && (c) <= 'z'))
3952 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3960 for (i = 0; i < 256; i++)
3961 if (XOR (islower (i), ISLOWER (i))
3962 || toupper (i) != TOUPPER (i))
3967 rm -f conftest
$ac_exeext
3968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3969 (eval $ac_link) 2>&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3980 echo "$as_me: program exited with status $ac_status" >&5
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.
$ac_ext >&5
3985 ac_cv_header_stdc
=no
3987 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3991 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3992 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3993 if test $ac_cv_header_stdc = yes; then
3995 cat >>confdefs.h
<<\_ACEOF
3996 #define STDC_HEADERS 1
4001 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4011 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4012 inttypes.h stdint.h unistd.h
4014 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4015 echo "$as_me:$LINENO: checking for $ac_header" >&5
4016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 cat >conftest.
$ac_ext <<_ACEOF
4021 #line $LINENO "configure"
4024 cat confdefs.h
>>conftest.
$ac_ext
4025 cat >>conftest.
$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 $ac_includes_default
4029 #include <$ac_header>
4031 rm -f conftest.
$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try
='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 eval "$as_ac_Header=yes"
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.
$ac_ext >&5
4048 eval "$as_ac_Header=no"
4050 rm -f conftest.
$ac_objext conftest.
$ac_ext
4052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4055 cat >>confdefs.h
<<_ACEOF
4056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4064 if test "${ac_cv_header_valgrind_h+set}" = set; then
4065 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4066 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4067 if test "${ac_cv_header_valgrind_h+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4071 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4073 # Is the header compilable?
4074 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4075 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4076 cat >conftest.
$ac_ext <<_ACEOF
4077 #line $LINENO "configure"
4080 cat confdefs.h
>>conftest.
$ac_ext
4081 cat >>conftest.
$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 $ac_includes_default
4084 #include <valgrind.h>
4086 rm -f conftest.
$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try
='test -s conftest.$ac_objext'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 ac_header_compiler
=yes
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.
$ac_ext >&5
4103 ac_header_compiler
=no
4105 rm -f conftest.
$ac_objext conftest.
$ac_ext
4106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4107 echo "${ECHO_T}$ac_header_compiler" >&6
4109 # Is the header present?
4110 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4111 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4112 cat >conftest.
$ac_ext <<_ACEOF
4113 #line $LINENO "configure"
4116 cat confdefs.h
>>conftest.
$ac_ext
4117 cat >>conftest.
$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #include <valgrind.h>
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4124 grep -v '^ *+' conftest.er1
>conftest.err
4126 cat conftest.err
>&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } >/dev
/null
; then
4129 if test -s conftest.err
; then
4130 ac_cpp_err
=$ac_c_preproc_warn_flag
4137 if test -z "$ac_cpp_err"; then
4138 ac_header_preproc
=yes
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.
$ac_ext >&5
4143 ac_header_preproc
=no
4145 rm -f conftest.err conftest.
$ac_ext
4146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4147 echo "${ECHO_T}$ac_header_preproc" >&6
4149 # So? What about this header?
4150 case $ac_header_compiler:$ac_header_preproc in
4152 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4153 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4154 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4155 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4158 ## ------------------------------------ ##
4159 ## Report this to bug-autoconf@gnu.org. ##
4160 ## ------------------------------------ ##
4163 sed "s/^/$as_me: WARNING: /" >&2
4166 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4167 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4168 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4169 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4170 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4171 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4174 ## ------------------------------------ ##
4175 ## Report this to bug-autoconf@gnu.org. ##
4176 ## ------------------------------------ ##
4179 sed "s/^/$as_me: WARNING: /" >&2
4182 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4183 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4184 if test "${ac_cv_header_valgrind_h+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ac_cv_header_valgrind_h
=$ac_header_preproc
4189 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4190 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4193 if test $ac_cv_header_valgrind_h = yes; then
4201 if test x
$ac_checking_valgrind != x
; then
4202 # It is certainly possible that there's valgrind but no valgrind.h.
4203 # GCC relies on making annotations so we must have both.
4204 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4205 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4206 cat >conftest.
$ac_ext <<_ACEOF
4207 #line $LINENO "configure"
4210 cat confdefs.h
>>conftest.
$ac_ext
4211 cat >>conftest.
$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4213 #include <valgrind/memcheck.h>
4214 #ifndef VALGRIND_DISCARD
4215 #error VALGRIND_DISCARD not defined
4218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4221 grep -v '^ *+' conftest.er1
>conftest.err
4223 cat conftest.err
>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev
/null
; then
4226 if test -s conftest.err
; then
4227 ac_cpp_err
=$ac_c_preproc_warn_flag
4234 if test -z "$ac_cpp_err"; then
4235 gcc_cv_header_valgrind_memcheck_h
=yes
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.
$ac_ext >&5
4240 gcc_cv_header_valgrind_memcheck_h
=no
4242 rm -f conftest.err conftest.
$ac_ext
4243 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4244 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4245 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4246 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4247 cat >conftest.
$ac_ext <<_ACEOF
4248 #line $LINENO "configure"
4251 cat confdefs.h
>>conftest.
$ac_ext
4252 cat >>conftest.
$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 #include <memcheck.h>
4255 #ifndef VALGRIND_DISCARD
4256 #error VALGRIND_DISCARD not defined
4259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4260 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4262 grep -v '^ *+' conftest.er1
>conftest.err
4264 cat conftest.err
>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } >/dev
/null
; then
4267 if test -s conftest.err
; then
4268 ac_cpp_err
=$ac_c_preproc_warn_flag
4275 if test -z "$ac_cpp_err"; then
4276 gcc_cv_header_memcheck_h
=yes
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.
$ac_ext >&5
4281 gcc_cv_header_memcheck_h
=no
4283 rm -f conftest.err conftest.
$ac_ext
4284 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4285 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4287 # Prepare PATH_SEPARATOR.
4288 # The user is always right.
4289 if test "${PATH_SEPARATOR+set}" != set; then
4290 echo "#! /bin/sh" >conf$$.sh
4291 echo "exit 0" >>conf$$.sh
4293 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4301 # Find out how to test for executable files. Don't use a zero-byte file,
4302 # as systems may use methods other than mode bits to determine executability.
4303 cat >conf$$.
file <<_ASEOF
4307 chmod +x conf$$.
file
4308 if test -x conf$$.
file >/dev
/null
2>&1; then
4309 ac_executable_p
="test -x"
4311 ac_executable_p
="test -f"
4315 # Extract the first word of "valgrind", so it can be a program name with args.
4316 set dummy valgrind
; ac_word
=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_path_valgrind_path+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 case "$valgrind_path" in
4324 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4327 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4328 for ac_dir
in $PATH; do
4330 test -z "$ac_dir" && ac_dir
=.
4331 for ac_exec_ext
in '' $ac_executable_extensions; do
4332 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4333 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4334 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
4344 valgrind_path
="$ac_cv_path_valgrind_path"
4345 if test -n "$valgrind_path"; then
4346 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4347 echo "${ECHO_T}$valgrind_path" >&6
4349 echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4353 if test "x$valgrind_path" = "x" \
4354 ||
(test $have_valgrind_h = no \
4355 && test $gcc_cv_header_memcheck_h = no \
4356 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
4357 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4358 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4359 { (exit 1); exit 1; }; }
4361 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4362 valgrind_command
="$valgrind_path -q"
4364 cat >>confdefs.h
<<\_ACEOF
4365 #define ENABLE_VALGRIND_CHECKING 1
4368 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4370 cat >>confdefs.h
<<\_ACEOF
4371 #define HAVE_VALGRIND_MEMCHECK_H 1
4375 if test $gcc_cv_header_memcheck_h = yes; then
4377 cat >>confdefs.h
<<\_ACEOF
4378 #define HAVE_MEMCHECK_H 1
4386 # Enable code coverage collection
4387 # Check whether --enable-coverage or --disable-coverage was given.
4388 if test "${enable_coverage+set}" = set; then
4389 enableval
="$enable_coverage"
4390 case "${enableval}" in
4392 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4395 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4398 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4399 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4400 { (exit 1); exit 1; }; }
4408 # -------------------------------
4409 # Miscenalleous configure options
4410 # -------------------------------
4414 # Check whether --with-stabs or --without-stabs was given.
4415 if test "${with_stabs+set}" = set; then
4416 withval
="$with_stabs"
4422 # Determine whether or not multilibs are enabled.
4423 # Check whether --enable-multilib or --disable-multilib was given.
4424 if test "${enable_multilib+set}" = set; then
4425 enableval
="$enable_multilib"
4432 # Enable __cxa_atexit for C++.
4433 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4434 if test "${enable___cxa_atexit+set}" = set; then
4435 enableval
="$enable___cxa_atexit"
4440 # Pass with no value to take the default
4441 # Pass with a value to specify a thread package
4442 # Check whether --enable-threads or --disable-threads was given.
4443 if test "${enable_threads+set}" = set; then
4444 enableval
="$enable_threads"
4449 # Save in case it gets overwritten in config.gcc
4450 enable_threads_flag
=$enable_threads
4452 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4453 if test "${enable_objc_gc+set}" = set; then
4454 enableval
="$enable_objc_gc"
4455 if test x
$enable_objc_gc = xno
; then
4465 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4466 if test "${with_dwarf2+set}" = set; then
4467 withval
="$with_dwarf2"
4468 dwarf2
="$with_dwarf2"
4473 # Check whether --enable-shared or --disable-shared was given.
4474 if test "${enable_shared+set}" = set; then
4475 enableval
="$enable_shared"
4477 case $enable_shared in
4481 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4482 for pkg
in $enableval; do
4483 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4497 # Check whether --with-sysroot or --without-sysroot was given.
4498 if test "${with_sysroot+set}" = set; then
4499 withval
="$with_sysroot"
4501 case ${with_sysroot} in
4502 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4503 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4506 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4507 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4509 if test "x$exec_prefix" = xNONE
; then
4510 if test "x$prefix" = xNONE
; then
4511 test_prefix
=/usr
/local
4516 test_prefix
=$exec_prefix
4518 case ${TARGET_SYSTEM_ROOT} in
4519 "${test_prefix}"|
"${test_prefix}/"*|\
4520 '${exec_prefix}'|
'${exec_prefix}/'*)
4521 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4522 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4529 TARGET_SYSTEM_ROOT_DEFINE
=
4530 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4537 # Build with intermodule optimisations
4538 # Check whether --enable-intermodule or --disable-intermodule was given.
4539 if test "${enable_intermodule+set}" = set; then
4540 enableval
="$enable_intermodule"
4541 case ${enable_intermodule} in
4542 yes) onestep
="-onestep";;
4550 # -------------------------
4551 # Checks for other programs
4552 # -------------------------
4554 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4555 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4556 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
4557 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 cat >conftest.
make <<\_ACEOF
4562 @
echo 'ac_maketemp="$(MAKE)"'
4564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4565 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4566 if test -n "$ac_maketemp"; then
4567 eval ac_cv_prog_make_
${ac_make}_set
=yes
4569 eval ac_cv_prog_make_
${ac_make}_set
=no
4573 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4574 echo "$as_me:$LINENO: result: yes" >&5
4575 echo "${ECHO_T}yes" >&6
4578 echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6
4580 SET_MAKE
="MAKE=${MAKE-make}"
4584 # Find some useful tools
4585 for ac_prog
in gawk mawk nawk
awk
4587 # Extract the first word of "$ac_prog", so it can be a program name with args.
4588 set dummy
$ac_prog; ac_word
=$2
4589 echo "$as_me:$LINENO: checking for $ac_word" >&5
4590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4591 if test "${ac_cv_prog_AWK+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 if test -n "$AWK"; then
4595 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4601 test -z "$as_dir" && as_dir
=.
4602 for ac_exec_ext
in '' $ac_executable_extensions; do
4603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604 ac_cv_prog_AWK
="$ac_prog"
4605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 if test -n "$AWK"; then
4615 echo "$as_me:$LINENO: result: $AWK" >&5
4616 echo "${ECHO_T}$AWK" >&6
4618 echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4622 test -n "$AWK" && break
4625 # We need awk to run opts.sh (to create options.c and options.h).
4626 # Bail out if it's missing.
4628 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4629 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4630 { (exit 1); exit 1; }; } ;;
4633 echo "$as_me:$LINENO: checking whether ln works" >&5
4634 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4635 if test "${gcc_cv_prog_LN+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 rm -f conftestdata_t
4639 echo >conftestdata_f
4640 if ln conftestdata_f conftestdata_t
2>/dev
/null
4644 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4646 gcc_cv_prog_LN
="ln -s"
4651 rm -f conftestdata_f conftestdata_t
4654 LN
="$gcc_cv_prog_LN"
4655 if test "$gcc_cv_prog_LN" = "ln"; then
4656 echo "$as_me:$LINENO: result: yes" >&5
4657 echo "${ECHO_T}yes" >&6
4659 if test "$gcc_cv_prog_LN" = "ln -s"; then
4660 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4661 echo "${ECHO_T}no, using ln -s" >&6
4663 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4664 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4668 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4669 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4670 if test "${gcc_cv_prog_LN_S+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 rm -f conftestdata_t
4674 echo >conftestdata_f
4675 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4677 gcc_cv_prog_LN_S
="ln -s"
4679 if ln conftestdata_f conftestdata_t
2>/dev
/null
4686 rm -f conftestdata_f conftestdata_t
4689 LN_S
="$gcc_cv_prog_LN_S"
4690 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4691 echo "$as_me:$LINENO: result: yes" >&5
4692 echo "${ECHO_T}yes" >&6
4694 if test "$gcc_cv_prog_LN_S" = "ln"; then
4695 echo "$as_me:$LINENO: result: no, using ln" >&5
4696 echo "${ECHO_T}no, using ln" >&6
4698 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4699 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4705 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_prog_RANLIB+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test -n "$RANLIB"; then
4712 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir
=.
4719 for ac_exec_ext
in '' $ac_executable_extensions; do
4720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 RANLIB
=$ac_cv_prog_RANLIB
4731 if test -n "$RANLIB"; then
4732 echo "$as_me:$LINENO: result: $RANLIB" >&5
4733 echo "${ECHO_T}$RANLIB" >&6
4735 echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6
4740 if test -z "$ac_cv_prog_RANLIB"; then
4741 ac_ct_RANLIB
=$RANLIB
4742 # Extract the first word of "ranlib", so it can be a program name with args.
4743 set dummy ranlib
; ac_word
=$2
4744 echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 if test -n "$ac_ct_RANLIB"; then
4750 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir
=.
4757 for ac_exec_ext
in '' $ac_executable_extensions; do
4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4769 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4770 if test -n "$ac_ct_RANLIB"; then
4771 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4772 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4774 echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6
4778 RANLIB
=$ac_ct_RANLIB
4780 RANLIB
="$ac_cv_prog_RANLIB"
4783 # Find a good install program. We prefer a C program (faster),
4784 # so one script is as good as another. But avoid the broken or
4785 # incompatible versions:
4786 # SysV /etc/install, /usr/sbin/install
4787 # SunOS /usr/etc/install
4788 # IRIX /sbin/install
4790 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4791 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4792 # ./install, which can be erroneously created by make from ./install.sh.
4793 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4794 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4795 if test -z "$INSTALL"; then
4796 if test "${ac_cv_path_install+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
4800 for ac_dir
in $PATH; do
4801 # Account for people who put trailing slashes in PATH elements.
4803 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4805 # OSF1 and SCO ODT 3.0 have their own names for install.
4806 for ac_prog
in ginstall scoinst
install; do
4807 if test -f $ac_dir/$ac_prog; then
4808 if test $ac_prog = install &&
4809 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4810 # AIX install. It has an incompatible calling convention.
4811 # OSF/1 installbsd also uses dspmsg, but is usable.
4814 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4825 if test "${ac_cv_path_install+set}" = set; then
4826 INSTALL
="$ac_cv_path_install"
4828 # As a last resort, use the slow shell script. We don't cache a
4829 # path for INSTALL within a source directory, because that will
4830 # break other packages using the cache if that directory is
4831 # removed, or if the path is relative.
4832 INSTALL
="$ac_install_sh"
4835 echo "$as_me:$LINENO: result: $INSTALL" >&5
4836 echo "${ECHO_T}$INSTALL" >&6
4838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4839 # It thinks the first close brace ends the variable substitution.
4840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4842 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4845 # See if cmp has --ignore-initial.
4846 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4847 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4848 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 gcc_cv_prog_cmp_skip
=slowcompare
4854 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
4855 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
4858 gcc_cv_prog_cmp_skip
=gnucompare
4861 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
4862 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
4863 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
4866 gcc_cv_prog_cmp_skip
=fastcompare
4873 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4874 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4875 make_compare_target
=$gcc_cv_prog_cmp_skip
4879 # See if we have the mktemp command.
4880 # Extract the first word of "mktemp", so it can be a program name with args.
4881 set dummy mktemp
; ac_word
=$2
4882 echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4884 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 if test -n "$have_mktemp_command"; then
4888 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
4890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir
=.
4895 for ac_exec_ext
in '' $ac_executable_extensions; do
4896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897 ac_cv_prog_have_mktemp_command
="yes"
4898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
4907 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
4908 if test -n "$have_mktemp_command"; then
4909 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4910 echo "${ECHO_T}$have_mktemp_command" >&6
4912 echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6
4917 # Do we have a single-tree copy of texinfo?
4918 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
4919 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
4920 gcc_cv_prog_makeinfo_modern
=yes
4921 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4922 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4924 # See if makeinfo has been installed and is modern enough
4925 # that we can use it.
4926 # Extract the first word of "makeinfo", so it can be a program name with args.
4927 set dummy makeinfo
; ac_word
=$2
4928 echo "$as_me:$LINENO: checking for $ac_word" >&5
4929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4930 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 if test -n "$MAKEINFO"; then
4934 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir
=.
4941 for ac_exec_ext
in '' $ac_executable_extensions; do
4942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 ac_cv_prog_MAKEINFO
="makeinfo"
4944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 MAKEINFO
=$ac_cv_prog_MAKEINFO
4953 if test -n "$MAKEINFO"; then
4954 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4955 echo "${ECHO_T}$MAKEINFO" >&6
4957 echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6
4961 if test -n "$MAKEINFO"; then
4962 # Found it, now check the version.
4963 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4964 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4965 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 ac_prog_version
=`$MAKEINFO --version 2>&1 |
4969 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4970 echo "configure:4970: version of makeinfo is $ac_prog_version" >&5
4971 case $ac_prog_version in
4972 '') gcc_cv_prog_makeinfo_modern
=no
;;
4974 gcc_cv_prog_makeinfo_modern
=yes;;
4975 *) gcc_cv_prog_makeinfo_modern
=no
;;
4979 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
4980 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
4982 gcc_cv_prog_makeinfo_modern
=no
4987 if test $gcc_cv_prog_makeinfo_modern = no
; then
4988 { echo "$as_me:$LINENO: WARNING:
4989 *** Makeinfo is missing or too old.
4990 *** Info documentation will not be built." >&5
4991 echo "$as_me: WARNING:
4992 *** Makeinfo is missing or too old.
4993 *** Info documentation will not be built." >&2;}
4999 # Is pod2man recent enough to regenerate manpages?
5000 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5001 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5002 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5003 echo "$as_me:$LINENO: result: yes" >&5
5004 echo "${ECHO_T}yes" >&6
5005 GENERATED_MANPAGES
=generated-manpages
5007 echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6
5013 if test -f $srcdir/..
/flex
/skel.c
; then
5014 FLEX
='$(objdir)/../flex/flex'
5016 # Extract the first word of "flex", so it can be a program name with args.
5017 set dummy flex
; ac_word
=$2
5018 echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5020 if test "${ac_cv_prog_FLEX+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 if test -n "$FLEX"; then
5024 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir
=.
5031 for ac_exec_ext
in '' $ac_executable_extensions; do
5032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_prog_FLEX
="flex"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5043 FLEX
=$ac_cv_prog_FLEX
5044 if test -n "$FLEX"; then
5045 echo "$as_me:$LINENO: result: $FLEX" >&5
5046 echo "${ECHO_T}$FLEX" >&6
5048 echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5055 # The -L switch is so bison can find its skeleton file.
5056 if test -f $srcdir/..
/bison
/bison.simple
; then
5057 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5059 # Extract the first word of "bison", so it can be a program name with args.
5060 set dummy bison
; ac_word
=$2
5061 echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063 if test "${ac_cv_prog_BISON+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 if test -n "$BISON"; then
5067 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir
=.
5074 for ac_exec_ext
in '' $ac_executable_extensions; do
5075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076 ac_cv_prog_BISON
="bison"
5077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5086 BISON
=$ac_cv_prog_BISON
5087 if test -n "$BISON"; then
5088 echo "$as_me:$LINENO: result: $BISON" >&5
5089 echo "${ECHO_T}$BISON" >&6
5091 echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6
5097 # --------------------
5098 # Checks for C headers
5099 # --------------------
5101 echo "$as_me:$LINENO: checking for GNU C library" >&5
5102 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5103 if test "${gcc_cv_glibc+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.
$ac_ext <<_ACEOF
5107 #line $LINENO "configure"
5110 cat confdefs.h
>>conftest.
$ac_ext
5111 cat >>conftest.
$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 #include <features.h>
5118 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5119 #error Not a GNU C library system
5125 rm -f conftest.
$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127 (eval $ac_compile) 2>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try
='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.
$ac_ext >&5
5144 rm -f conftest.
$ac_objext conftest.
$ac_ext
5147 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5148 echo "${ECHO_T}$gcc_cv_glibc" >&6
5149 if test $gcc_cv_glibc = yes; then
5151 cat >>confdefs.h
<<\_ACEOF
5152 #define _GNU_SOURCE 1
5157 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5158 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5159 if test "${ac_cv_header_stdc+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 cat >conftest.
$ac_ext <<_ACEOF
5163 #line $LINENO "configure"
5166 cat confdefs.h
>>conftest.
$ac_ext
5167 cat >>conftest.
$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5182 rm -f conftest.
$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try
='test -s conftest.$ac_objext'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 ac_cv_header_stdc
=yes
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.
$ac_ext >&5
5199 ac_cv_header_stdc
=no
5201 rm -f conftest.
$ac_objext conftest.
$ac_ext
5203 if test $ac_cv_header_stdc = yes; then
5204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5205 cat >conftest.
$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5209 cat confdefs.h
>>conftest.
$ac_ext
5210 cat >>conftest.
$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5216 $EGREP "memchr" >/dev
/null
2>&1; then
5219 ac_cv_header_stdc
=no
5225 if test $ac_cv_header_stdc = yes; then
5226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5227 cat >conftest.
$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5231 cat confdefs.h
>>conftest.
$ac_ext
5232 cat >>conftest.
$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5238 $EGREP "free" >/dev
/null
2>&1; then
5241 ac_cv_header_stdc
=no
5247 if test $ac_cv_header_stdc = yes; then
5248 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5249 if test "$cross_compiling" = yes; then
5252 cat >conftest.
$ac_ext <<_ACEOF
5253 #line $LINENO "configure"
5256 cat confdefs.h
>>conftest.
$ac_ext
5257 cat >>conftest.
$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5260 #if ((' ' & 0x0FF) == 0x020)
5261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5264 # define ISLOWER(c) \
5265 (('a' <= (c) && (c) <= 'i') \
5266 || ('j' <= (c) && (c) <= 'r') \
5267 || ('s' <= (c) && (c) <= 'z'))
5268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5276 for (i = 0; i < 256; i++)
5277 if (XOR (islower (i), ISLOWER (i))
5278 || toupper (i) != TOUPPER (i))
5283 rm -f conftest
$ac_exeext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285 (eval $ac_link) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5296 echo "$as_me: program exited with status $ac_status" >&5
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.
$ac_ext >&5
5301 ac_cv_header_stdc
=no
5303 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5307 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5308 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5309 if test $ac_cv_header_stdc = yes; then
5311 cat >>confdefs.h
<<\_ACEOF
5312 #define STDC_HEADERS 1
5317 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5318 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5319 if test "${ac_cv_header_time+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 cat >conftest.
$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5326 cat confdefs.h
>>conftest.
$ac_ext
5327 cat >>conftest.
$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 #include <sys/types.h>
5330 #include <sys/time.h>
5336 if ((struct tm *) 0)
5342 rm -f conftest.
$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try
='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_header_time
=yes
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.
$ac_ext >&5
5359 ac_cv_header_time
=no
5361 rm -f conftest.
$ac_objext conftest.
$ac_ext
5363 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5364 echo "${ECHO_T}$ac_cv_header_time" >&6
5365 if test $ac_cv_header_time = yes; then
5367 cat >>confdefs.h
<<\_ACEOF
5368 #define TIME_WITH_SYS_TIME 1
5373 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5374 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5375 if test "${ac_cv_header_stdbool_h+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.
$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5382 cat confdefs.h
>>conftest.
$ac_ext
5383 cat >>conftest.
$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 #include <stdbool.h>
5394 rm -f conftest.
$ac_objext
5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396 (eval $ac_compile) 2>&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try
='test -s conftest.$ac_objext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_cv_header_stdbool_h
=yes
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.
$ac_ext >&5
5411 ac_cv_header_stdbool_h
=no
5413 rm -f conftest.
$ac_objext conftest.
$ac_ext
5415 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5416 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5417 if test $ac_cv_header_stdbool_h = yes; then
5419 cat >>confdefs.h
<<\_ACEOF
5420 #define HAVE_STDBOOL_H 1
5425 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5426 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5427 if test "${gcc_cv_header_string+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 cat >conftest.
$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5434 cat confdefs.h
>>conftest.
$ac_ext
5435 cat >>conftest.
$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5438 #include <strings.h>
5447 rm -f conftest.
$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try
='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 gcc_cv_header_string
=yes
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.
$ac_ext >&5
5464 gcc_cv_header_string
=no
5466 rm -f conftest.
$ac_objext conftest.
$ac_ext
5468 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5469 echo "${ECHO_T}$gcc_cv_header_string" >&6
5470 if test $gcc_cv_header_string = yes; then
5472 cat >>confdefs.h
<<\_ACEOF
5473 #define STRING_WITH_STRINGS 1
5478 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5479 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5480 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 cat >conftest.
$ac_ext <<_ACEOF
5484 #line $LINENO "configure"
5487 cat confdefs.h
>>conftest.
$ac_ext
5488 cat >>conftest.
$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 #include <sys/types.h>
5491 #include <sys/wait.h>
5493 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5496 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5504 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5509 rm -f conftest.
$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try
='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_cv_header_sys_wait_h
=yes
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.
$ac_ext >&5
5526 ac_cv_header_sys_wait_h
=no
5528 rm -f conftest.
$ac_objext conftest.
$ac_ext
5530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5531 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5532 if test $ac_cv_header_sys_wait_h = yes; then
5534 cat >>confdefs.h
<<\_ACEOF
5535 #define HAVE_SYS_WAIT_H 1
5561 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5562 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
5563 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5564 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5566 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5568 echo "$as_me:$LINENO: checking for $ac_header" >&5
5569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5576 # Is the header compilable?
5577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5579 cat >conftest.
$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5583 cat confdefs.h
>>conftest.
$ac_ext
5584 cat >>conftest.
$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 $ac_includes_default
5587 #include <$ac_header>
5589 rm -f conftest.
$ac_objext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591 (eval $ac_compile) 2>&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try
='test -s conftest.$ac_objext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 ac_header_compiler
=yes
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.
$ac_ext >&5
5606 ac_header_compiler
=no
5608 rm -f conftest.
$ac_objext conftest.
$ac_ext
5609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5610 echo "${ECHO_T}$ac_header_compiler" >&6
5612 # Is the header present?
5613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5615 cat >conftest.
$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5619 cat confdefs.h
>>conftest.
$ac_ext
5620 cat >>conftest.
$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <$ac_header>
5624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5625 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5627 grep -v '^ *+' conftest.er1
>conftest.err
5629 cat conftest.err
>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } >/dev
/null
; then
5632 if test -s conftest.err
; then
5633 ac_cpp_err
=$ac_c_preproc_warn_flag
5640 if test -z "$ac_cpp_err"; then
5641 ac_header_preproc
=yes
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.
$ac_ext >&5
5646 ac_header_preproc
=no
5648 rm -f conftest.err conftest.
$ac_ext
5649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5650 echo "${ECHO_T}$ac_header_preproc" >&6
5652 # So? What about this header?
5653 case $ac_header_compiler:$ac_header_preproc in
5655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5661 ## ------------------------------------ ##
5662 ## Report this to bug-autoconf@gnu.org. ##
5663 ## ------------------------------------ ##
5666 sed "s/^/$as_me: WARNING: /" >&2
5669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5677 ## ------------------------------------ ##
5678 ## Report this to bug-autoconf@gnu.org. ##
5679 ## ------------------------------------ ##
5682 sed "s/^/$as_me: WARNING: /" >&2
5685 echo "$as_me:$LINENO: checking for $ac_header" >&5
5686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 eval "$as_ac_Header=$ac_header_preproc"
5692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5697 cat >>confdefs.h
<<_ACEOF
5698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5706 # Check for thread headers.
5707 if test "${ac_cv_header_thread_h+set}" = set; then
5708 echo "$as_me:$LINENO: checking for thread.h" >&5
5709 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5710 if test "${ac_cv_header_thread_h+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5714 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5716 # Is the header compilable?
5717 echo "$as_me:$LINENO: checking thread.h usability" >&5
5718 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
5719 cat >conftest.
$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5723 cat confdefs.h
>>conftest.
$ac_ext
5724 cat >>conftest.
$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 $ac_includes_default
5729 rm -f conftest.
$ac_objext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try
='test -s conftest.$ac_objext'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
5741 ac_header_compiler
=yes
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.
$ac_ext >&5
5746 ac_header_compiler
=no
5748 rm -f conftest.
$ac_objext conftest.
$ac_ext
5749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5750 echo "${ECHO_T}$ac_header_compiler" >&6
5752 # Is the header present?
5753 echo "$as_me:$LINENO: checking thread.h presence" >&5
5754 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
5755 cat >conftest.
$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5759 cat confdefs.h
>>conftest.
$ac_ext
5760 cat >>conftest.
$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5765 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5767 grep -v '^ *+' conftest.er1
>conftest.err
5769 cat conftest.err
>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } >/dev
/null
; then
5772 if test -s conftest.err
; then
5773 ac_cpp_err
=$ac_c_preproc_warn_flag
5780 if test -z "$ac_cpp_err"; then
5781 ac_header_preproc
=yes
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.
$ac_ext >&5
5786 ac_header_preproc
=no
5788 rm -f conftest.err conftest.
$ac_ext
5789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5790 echo "${ECHO_T}$ac_header_preproc" >&6
5792 # So? What about this header?
5793 case $ac_header_compiler:$ac_header_preproc in
5795 { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5796 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5797 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5798 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5801 ## ------------------------------------ ##
5802 ## Report this to bug-autoconf@gnu.org. ##
5803 ## ------------------------------------ ##
5806 sed "s/^/$as_me: WARNING: /" >&2
5809 { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
5810 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
5811 { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
5812 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
5813 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5814 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5817 ## ------------------------------------ ##
5818 ## Report this to bug-autoconf@gnu.org. ##
5819 ## ------------------------------------ ##
5822 sed "s/^/$as_me: WARNING: /" >&2
5825 echo "$as_me:$LINENO: checking for thread.h" >&5
5826 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5827 if test "${ac_cv_header_thread_h+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 ac_cv_header_thread_h
=$ac_header_preproc
5832 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5833 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5836 if test $ac_cv_header_thread_h = yes; then
5843 if test "${ac_cv_header_pthread_h+set}" = set; then
5844 echo "$as_me:$LINENO: checking for pthread.h" >&5
5845 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5846 if test "${ac_cv_header_pthread_h+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5850 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5852 # Is the header compilable?
5853 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5854 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5855 cat >conftest.
$ac_ext <<_ACEOF
5856 #line $LINENO "configure"
5859 cat confdefs.h
>>conftest.
$ac_ext
5860 cat >>conftest.
$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 $ac_includes_default
5863 #include <pthread.h>
5865 rm -f conftest.
$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try
='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_header_compiler
=yes
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.
$ac_ext >&5
5882 ac_header_compiler
=no
5884 rm -f conftest.
$ac_objext conftest.
$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5886 echo "${ECHO_T}$ac_header_compiler" >&6
5888 # Is the header present?
5889 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5890 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
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 <pthread.h>
5900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5901 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5903 grep -v '^ *+' conftest.er1
>conftest.err
5905 cat conftest.err
>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } >/dev
/null
; then
5908 if test -s conftest.err
; then
5909 ac_cpp_err
=$ac_c_preproc_warn_flag
5916 if test -z "$ac_cpp_err"; then
5917 ac_header_preproc
=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.
$ac_ext >&5
5922 ac_header_preproc
=no
5924 rm -f conftest.err conftest.
$ac_ext
5925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5926 echo "${ECHO_T}$ac_header_preproc" >&6
5928 # So? What about this header?
5929 case $ac_header_compiler:$ac_header_preproc in
5931 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5932 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5933 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5934 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5937 ## ------------------------------------ ##
5938 ## Report this to bug-autoconf@gnu.org. ##
5939 ## ------------------------------------ ##
5942 sed "s/^/$as_me: WARNING: /" >&2
5945 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5946 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5948 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5950 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5953 ## ------------------------------------ ##
5954 ## Report this to bug-autoconf@gnu.org. ##
5955 ## ------------------------------------ ##
5958 sed "s/^/$as_me: WARNING: /" >&2
5961 echo "$as_me:$LINENO: checking for pthread.h" >&5
5962 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5963 if test "${ac_cv_header_pthread_h+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 ac_cv_header_pthread_h
=$ac_header_preproc
5968 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5969 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5972 if test $ac_cv_header_pthread_h = yes; then
5980 # These tests can't be done till we know if we have limits.h.
5981 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5982 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5983 if test "${gcc_cv_decl_char_bit+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 cat >conftest.
$ac_ext <<_ACEOF
5987 #line $LINENO "configure"
5990 cat confdefs.h
>>conftest.
$ac_ext
5991 cat >>conftest.
$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 #ifdef HAVE_LIMITS_H
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001 $EGREP "found" >/dev
/null
2>&1; then
6002 gcc_cv_decl_char_bit
=yes
6004 gcc_cv_decl_char_bit
=no
6010 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6011 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6012 if test $gcc_cv_decl_char_bit = no
; then
6013 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6014 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6015 if test "${gcc_cv_c_nbby+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 while test $i -lt 65; do
6021 cat >conftest.
$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6025 cat confdefs.h
>>conftest.
$ac_ext
6026 cat >>conftest.
$ac_ext <<_ACEOF
6027 /* end confdefs.h. */
6033 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6034 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6040 rm -f conftest.
$ac_objext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try
='test -s conftest.$ac_objext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 gcc_cv_c_nbby
=$i; break
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.
$ac_ext >&5
6058 rm -f conftest.
$ac_objext conftest.
$ac_ext
6061 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
6064 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6065 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6066 if test $gcc_cv_c_nbby = failed
; then
6067 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6068 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6069 { (exit 1); exit 1; }; }
6072 cat >>confdefs.h
<<_ACEOF
6073 #define CHAR_BIT $gcc_cv_c_nbby
6078 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6079 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6080 if test "${ac_cv_c_bigendian+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 ac_cv_c_bigendian
=unknown
6084 # See if sys/param.h defines the BYTE_ORDER macro.
6085 cat >conftest.
$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6089 cat confdefs.h
>>conftest.
$ac_ext
6090 cat >>conftest.
$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <sys/types.h>
6093 #include <sys/param.h>
6098 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6105 rm -f conftest.
$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try
='test -s conftest.$ac_objext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6117 # It does; now see whether it defined to BIG_ENDIAN or not.
6118 cat >conftest.
$ac_ext <<_ACEOF
6119 #line $LINENO "configure"
6122 cat confdefs.h
>>conftest.
$ac_ext
6123 cat >>conftest.
$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <sys/types.h>
6126 #include <sys/param.h>
6131 #if BYTE_ORDER != BIG_ENDIAN
6138 rm -f conftest.
$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try
='test -s conftest.$ac_objext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 ac_cv_c_bigendian
=yes
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.
$ac_ext >&5
6155 ac_cv_c_bigendian
=no
6157 rm -f conftest.
$ac_objext conftest.
$ac_ext
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.
$ac_ext >&5
6163 rm -f conftest.
$ac_objext conftest.
$ac_ext
6164 if test $ac_cv_c_bigendian = unknown
; then
6165 if test "$cross_compiling" = yes; then
6166 echo $ac_n "cross-compiling... " 2>&6
6168 cat >conftest.
$ac_ext <<_ACEOF
6169 #line $LINENO "configure"
6172 cat confdefs.h
>>conftest.
$ac_ext
6173 cat >>conftest.
$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6176 /* Are we little or big endian? From Harbison&Steele. */
6180 char c[sizeof (long)];
6183 exit (u.c[sizeof (long) - 1] == 1);
6186 rm -f conftest
$ac_exeext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188 (eval $ac_link) 2>&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_c_bigendian
=no
6199 echo "$as_me: program exited with status $ac_status" >&5
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.
$ac_ext >&5
6204 ac_cv_c_bigendian
=yes
6206 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6210 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6211 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6212 if test $ac_cv_c_bigendian = unknown
; then
6213 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6214 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6216 cat >conftest.c
<<EOF
6217 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6218 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6219 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6220 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6221 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6222 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6223 int main() { _ascii (); _ebcdic (); return 0; }
6225 if test -f conftest.c
; then
6226 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
6227 if test `grep -l BIGenDianSyS conftest.o` ; then
6228 echo $ac_n ' big endian probe OK, ' 1>&6
6229 ac_cv_c_bigendian
=yes
6231 if test `grep -l LiTTleEnDian conftest.o` ; then
6232 echo $ac_n ' little endian probe OK, ' 1>&6
6233 if test $ac_cv_c_bigendian = yes ; then
6234 ac_cv_c_bigendian
=unknown
;
6236 ac_cv_c_bigendian
=no
6239 echo $ac_n 'guessing bigendian ... ' >&6
6242 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6243 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6245 if test $ac_cv_c_bigendian = yes; then
6247 cat >>confdefs.h
<<\_ACEOF
6248 #define WORDS_BIGENDIAN 1
6252 cat >>confdefs.h
<<\_ACEOF
6253 #define HOST_WORDS_BIG_ENDIAN 1
6261 cat >>confdefs.h
<<_ACEOF
6262 #define BYTEORDER $BYTEORDER
6265 if test $ac_cv_c_bigendian = unknown
; then
6266 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6267 echo "$as_me: error: unknown endianess - sorry" >&2;}
6268 { (exit please pre-set ac_cv_c_bigendian
); exit please pre-set ac_cv_c_bigendian
; }; }
6276 # Stage specific cflags for build.
6280 if test x
$GCC = xyes
6282 stage1_cflags
="-Wa,-J"
6288 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6289 # sources; use -no-cpp-precomp to get to GNU cpp.
6290 # Apple's GCC has bugs in designated initializer handling, so disable
6292 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6297 # These libraries may be used by collect2.
6298 # We may need a special search path to get them linked.
6299 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6300 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6301 if test "${gcc_cv_collect2_libs+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 for libs
in '' -lld -lmld \
6306 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6307 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6310 cat >conftest.
$ac_ext <<_ACEOF
6311 #line $LINENO "configure"
6314 cat confdefs.h
>>conftest.
$ac_ext
6315 cat >>conftest.
$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6318 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6333 rm -f conftest.
$ac_objext conftest
$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try
='test -s conftest$ac_exeext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6345 gcc_cv_collect2_libs
="$libs"; break
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.
$ac_ext >&5
6351 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6354 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6356 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6357 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6358 case $gcc_cv_collect2_libs in
6360 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6364 # When building Ada code on Alpha, we need exc_resume which is usually in
6365 # -lexc. So test for it.
6368 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6369 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6370 if test "${ac_cv_search_exc_resume+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 ac_func_search_save_LIBS
=$LIBS
6374 ac_cv_search_exc_resume
=no
6375 cat >conftest.
$ac_ext <<_ACEOF
6376 #line $LINENO "configure"
6379 cat confdefs.h
>>conftest.
$ac_ext
6380 cat >>conftest.
$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6383 /* Override any gcc2 internal prototype to avoid an error. */
6387 /* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6398 rm -f conftest.
$ac_objext conftest
$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try
='test -s conftest$ac_exeext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_search_exc_resume
="none required"
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.
$ac_ext >&5
6416 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6417 if test "$ac_cv_search_exc_resume" = no
; then
6418 for ac_lib
in exc
; do
6419 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6420 cat >conftest.
$ac_ext <<_ACEOF
6421 #line $LINENO "configure"
6424 cat confdefs.h
>>conftest.
$ac_ext
6425 cat >>conftest.
$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6428 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6443 rm -f conftest.
$ac_objext conftest
$ac_exeext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try
='test -s conftest$ac_exeext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 ac_cv_search_exc_resume
="-l$ac_lib"
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.
$ac_ext >&5
6462 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6465 LIBS
=$ac_func_search_save_LIBS
6467 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6468 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6469 if test "$ac_cv_search_exc_resume" != no
; then
6470 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6478 # Some systems put ldexp and frexp in libm instead of libc; assume
6479 # they're both in the same place. jcf-dump needs them.
6482 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6483 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6484 if test "${ac_cv_search_ldexp+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 ac_func_search_save_LIBS
=$LIBS
6488 ac_cv_search_ldexp
=no
6489 cat >conftest.
$ac_ext <<_ACEOF
6490 #line $LINENO "configure"
6493 cat confdefs.h
>>conftest.
$ac_ext
6494 cat >>conftest.
$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6497 /* Override any gcc2 internal prototype to avoid an error. */
6501 /* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6512 rm -f conftest.
$ac_objext conftest
$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try
='test -s conftest$ac_exeext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_cv_search_ldexp
="none required"
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.
$ac_ext >&5
6530 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6531 if test "$ac_cv_search_ldexp" = no
; then
6533 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6534 cat >conftest.
$ac_ext <<_ACEOF
6535 #line $LINENO "configure"
6538 cat confdefs.h
>>conftest.
$ac_ext
6539 cat >>conftest.
$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6542 /* Override any gcc2 internal prototype to avoid an error. */
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6557 rm -f conftest.
$ac_objext conftest
$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try
='test -s 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 ac_cv_search_ldexp
="-l$ac_lib"
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6576 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6579 LIBS
=$ac_func_search_save_LIBS
6581 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6582 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6583 if test "$ac_cv_search_ldexp" != no
; then
6584 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6592 # Use <inttypes.h> only if it exists,
6593 # doesn't clash with <sys/types.h>, and declares intmax_t.
6594 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6595 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6596 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 cat >conftest.
$ac_ext <<_ACEOF
6600 #line $LINENO "configure"
6603 cat confdefs.h
>>conftest.
$ac_ext
6604 cat >>conftest.
$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 #include <sys/types.h>
6607 #include <inttypes.h>
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 gcc_cv_header_inttypes_h
=yes
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.
$ac_ext >&5
6633 gcc_cv_header_inttypes_h
=no
6635 rm -f conftest.
$ac_objext conftest.
$ac_ext
6638 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6639 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6640 if test $gcc_cv_header_inttypes_h = yes; then
6642 cat >>confdefs.h
<<\_ACEOF
6643 #define HAVE_INTTYPES_H 1
6674 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6675 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6676 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6677 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6680 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6681 echo "$as_me:$LINENO: checking for $ac_func" >&5
6682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6683 if eval "test \"\${$as_ac_var+set}\" = set"; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 cat >conftest.
$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6690 cat confdefs.h
>>conftest.
$ac_ext
6691 cat >>conftest.
$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 /* System header to define __stub macros and hopefully few prototypes,
6694 which can conflict with char $ac_func (); below.
6695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6696 <limits.h> exists even on freestanding compilers. */
6698 # include <limits.h>
6700 # include <assert.h>
6702 /* Override any gcc2 internal prototype to avoid an error. */
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6710 /* The GNU C library defines this for functions which it implements
6711 to always fail with ENOSYS. Some functions are actually named
6712 something starting with __ and the normal name is an alias. */
6713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6716 char (*f) () = $ac_func;
6725 return f != $ac_func;
6730 rm -f conftest.
$ac_objext conftest
$ac_exeext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6732 (eval $ac_link) 2>&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try
='test -s conftest$ac_exeext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 eval "$as_ac_var=yes"
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.
$ac_ext >&5
6747 eval "$as_ac_var=no"
6749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6753 if test `eval echo '${'$as_ac_var'}'` = yes; then
6754 cat >>confdefs.h
<<_ACEOF
6755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6762 if test x
$ac_cv_func_mbstowcs = xyes
; then
6763 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6764 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6765 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 if test "$cross_compiling" = yes; then
6769 gcc_cv_func_mbstowcs_works
=yes
6771 cat >conftest.
$ac_ext <<_ACEOF
6772 #line $LINENO "configure"
6775 cat confdefs.h
>>conftest.
$ac_ext
6776 cat >>conftest.
$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6785 rm -f conftest
$ac_exeext
6786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6787 (eval $ac_link) 2>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }; then
6796 gcc_cv_func_mbstowcs_works
=yes
6798 echo "$as_me: program exited with status $ac_status" >&5
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.
$ac_ext >&5
6803 gcc_cv_func_mbstowcs_works
=no
6805 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6808 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6809 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6810 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
6812 cat >>confdefs.h
<<\_ACEOF
6813 #define HAVE_WORKING_MBSTOWCS 1
6819 echo "$as_me:$LINENO: checking for ssize_t" >&5
6820 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6821 if test "${ac_cv_type_ssize_t+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 cat >conftest.
$ac_ext <<_ACEOF
6825 #line $LINENO "configure"
6828 cat confdefs.h
>>conftest.
$ac_ext
6829 cat >>conftest.
$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 $ac_includes_default
6837 if (sizeof (ssize_t))
6843 rm -f conftest.
$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try
='test -s conftest.$ac_objext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 ac_cv_type_ssize_t
=yes
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.
$ac_ext >&5
6860 ac_cv_type_ssize_t
=no
6862 rm -f conftest.
$ac_objext conftest.
$ac_ext
6864 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6865 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6866 if test $ac_cv_type_ssize_t = yes; then
6870 cat >>confdefs.h
<<_ACEOF
6877 # Try to determine the array type of the second argument of getgroups
6878 # for the target system (int or gid_t).
6879 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6880 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6881 if test "${ac_cv_type_uid_t+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 cat >conftest.
$ac_ext <<_ACEOF
6885 #line $LINENO "configure"
6888 cat confdefs.h
>>conftest.
$ac_ext
6889 cat >>conftest.
$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 #include <sys/types.h>
6894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6895 $EGREP "uid_t" >/dev
/null
2>&1; then
6896 ac_cv_type_uid_t
=yes
6903 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6904 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6905 if test $ac_cv_type_uid_t = no
; then
6907 cat >>confdefs.h
<<\_ACEOF
6912 cat >>confdefs.h
<<\_ACEOF
6918 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6919 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6920 if test "${ac_cv_type_getgroups+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 if test "$cross_compiling" = yes; then
6924 ac_cv_type_getgroups
=cross
6926 cat >conftest.
$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6930 cat confdefs.h
>>conftest.
$ac_ext
6931 cat >>conftest.
$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 /* Thanks to Mike Rendell for this test. */
6934 #include <sys/types.h>
6937 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6944 union { gid_t gval; long lval; } val;
6947 for (i = 0; i < NGID; i++)
6948 gidset[i] = val.gval;
6949 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6951 /* Exit non-zero if getgroups seems to require an array of ints. This
6952 happens when gid_t is short but getgroups modifies an array of ints. */
6953 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6956 rm -f conftest
$ac_exeext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_cv_type_getgroups
=gid_t
6969 echo "$as_me: program exited with status $ac_status" >&5
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.
$ac_ext >&5
6974 ac_cv_type_getgroups
=int
6976 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6978 if test $ac_cv_type_getgroups = cross
; then
6979 cat >conftest.
$ac_ext <<_ACEOF
6980 #line $LINENO "configure"
6983 cat confdefs.h
>>conftest.
$ac_ext
6984 cat >>conftest.
$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6990 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
6991 ac_cv_type_getgroups
=gid_t
6993 ac_cv_type_getgroups
=int
6999 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7000 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7002 cat >>confdefs.h
<<_ACEOF
7003 #define GETGROUPS_T $ac_cv_type_getgroups
7007 if test "${target}" = "${build}"; then
7008 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
7011 # This condition may need some tweaking. It should include all
7012 # targets where the array type of the second argument of getgroups
7013 # is int and the type of gid_t is not equivalent to int.
7014 *-*-sunos* |
*-*-ultrix*)
7015 TARGET_GETGROUPS_T
=int
7018 TARGET_GETGROUPS_T
=gid_t
7024 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7025 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7026 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 if test "$cross_compiling" = yes; then
7030 gcc_cv_func_printf_ptr
=no
7032 cat >conftest.
$ac_ext <<_ACEOF
7033 #line $LINENO "configure"
7036 cat confdefs.h
>>conftest.
$ac_ext
7037 cat >>conftest.
$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7044 char *p = buf, *q = NULL;
7045 sprintf(buf, "%p", p);
7046 sscanf(buf, "%p", &q);
7050 rm -f conftest
$ac_exeext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052 (eval $ac_link) 2>&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 gcc_cv_func_printf_ptr
=yes
7063 echo "$as_me: program exited with status $ac_status" >&5
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.
$ac_ext >&5
7068 gcc_cv_func_printf_ptr
=no
7070 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7072 rm -f core core.
* *.core
7074 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7075 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7076 if test $gcc_cv_func_printf_ptr = yes ; then
7078 cat >>confdefs.h
<<\_ACEOF
7079 #define HAVE_PRINTF_PTR 1
7084 if test $ac_cv_header_sys_mman_h != yes \
7085 ||
test $ac_cv_func_mmap != yes; then
7086 gcc_cv_func_mmap_file
=no
7087 gcc_cv_func_mmap_dev_zero
=no
7088 gcc_cv_func_mmap_anon
=no
7090 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7091 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7092 if test "${gcc_cv_func_mmap_file+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 # Add a system to this blacklist if
7096 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7097 # memory area containing the same data that you'd get if you applied
7098 # read() to the same fd. The only system known to have a problem here
7099 # is VMS, where text files have record structure.
7102 gcc_cv_func_mmap_file
=no
;;
7104 gcc_cv_func_mmap_file
=yes;;
7107 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7108 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7109 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7110 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7111 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 # Add a system to this blacklist if it has mmap() but /dev/zero
7115 # does not exist, or if mmapping /dev/zero does not give anonymous
7116 # zeroed pages with both the following properties:
7117 # 1. If you map N consecutive pages in with one call, and then
7118 # unmap any subset of those pages, the pages that were not
7119 # explicitly unmapped remain accessible.
7120 # 2. If you map two adjacent blocks of memory and then unmap them
7121 # both at once, they must both go away.
7122 # Systems known to be in this category are Windows (all variants),
7125 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
7126 gcc_cv_func_mmap_dev_zero
=no
;;
7128 gcc_cv_func_mmap_dev_zero
=yes;;
7131 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7132 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7134 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7135 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7136 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7137 if test "${gcc_cv_decl_map_anon+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 cat >conftest.
$ac_ext <<_ACEOF
7141 #line $LINENO "configure"
7144 cat confdefs.h
>>conftest.
$ac_ext
7145 cat >>conftest.
$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <sys/types.h>
7148 #include <sys/mman.h>
7151 #ifndef MAP_ANONYMOUS
7152 #define MAP_ANONYMOUS MAP_ANON
7158 int n = MAP_ANONYMOUS;
7163 rm -f conftest.
$ac_objext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165 (eval $ac_compile) 2>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try
='test -s conftest.$ac_objext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7175 gcc_cv_decl_map_anon
=yes
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.
$ac_ext >&5
7180 gcc_cv_decl_map_anon
=no
7182 rm -f conftest.
$ac_objext conftest.
$ac_ext
7184 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7185 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7187 if test $gcc_cv_decl_map_anon = no
; then
7188 gcc_cv_func_mmap_anon
=no
7190 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7191 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7192 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7196 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7197 # doesn't give anonymous zeroed pages with the same properties listed
7198 # above for use of /dev/zero.
7199 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7201 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
7202 gcc_cv_func_mmap_anon
=no
;;
7204 gcc_cv_func_mmap_anon
=yes;;
7207 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7208 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7212 if test $gcc_cv_func_mmap_file = yes; then
7214 cat >>confdefs.h
<<\_ACEOF
7215 #define HAVE_MMAP_FILE 1
7219 if test $gcc_cv_func_mmap_dev_zero = yes; then
7221 cat >>confdefs.h
<<\_ACEOF
7222 #define HAVE_MMAP_DEV_ZERO 1
7226 if test $gcc_cv_func_mmap_anon = yes; then
7228 cat >>confdefs.h
<<\_ACEOF
7229 #define HAVE_MMAP_ANON 1
7237 # Under VMS, vfork works very differently than on Unix. The standard test
7238 # won't work, and it isn't easily adaptable. It makes more sense to
7240 ac_cv_func_vfork_works
=yes
7243 echo "$as_me:$LINENO: checking for pid_t" >&5
7244 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7245 if test "${ac_cv_type_pid_t+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 cat >conftest.
$ac_ext <<_ACEOF
7249 #line $LINENO "configure"
7252 cat confdefs.h
>>conftest.
$ac_ext
7253 cat >>conftest.
$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7267 rm -f conftest.
$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269 (eval $ac_compile) 2>&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try
='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_cv_type_pid_t
=yes
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.
$ac_ext >&5
7286 rm -f conftest.
$ac_objext conftest.
$ac_ext
7288 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7289 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7290 if test $ac_cv_type_pid_t = yes; then
7294 cat >>confdefs.h
<<_ACEOF
7302 for ac_header
in unistd.h vfork.h
7304 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7306 echo "$as_me:$LINENO: checking for $ac_header" >&5
7307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7314 # Is the header compilable?
7315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7317 cat >conftest.
$ac_ext <<_ACEOF
7318 #line $LINENO "configure"
7321 cat confdefs.h
>>conftest.
$ac_ext
7322 cat >>conftest.
$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 $ac_includes_default
7325 #include <$ac_header>
7327 rm -f conftest.
$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } &&
7333 { ac_try
='test -s conftest.$ac_objext'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7339 ac_header_compiler
=yes
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.
$ac_ext >&5
7344 ac_header_compiler
=no
7346 rm -f conftest.
$ac_objext conftest.
$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6
7350 # Is the header present?
7351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7353 cat >conftest.
$ac_ext <<_ACEOF
7354 #line $LINENO "configure"
7357 cat confdefs.h
>>conftest.
$ac_ext
7358 cat >>conftest.
$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360 #include <$ac_header>
7362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7363 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7365 grep -v '^ *+' conftest.er1
>conftest.err
7367 cat conftest.err
>&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } >/dev
/null
; then
7370 if test -s conftest.err
; then
7371 ac_cpp_err
=$ac_c_preproc_warn_flag
7378 if test -z "$ac_cpp_err"; then
7379 ac_header_preproc
=yes
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.
$ac_ext >&5
7384 ac_header_preproc
=no
7386 rm -f conftest.err conftest.
$ac_ext
7387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388 echo "${ECHO_T}$ac_header_preproc" >&6
7390 # So? What about this header?
7391 case $ac_header_compiler:$ac_header_preproc in
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7399 ## ------------------------------------ ##
7400 ## Report this to bug-autoconf@gnu.org. ##
7401 ## ------------------------------------ ##
7404 sed "s/^/$as_me: WARNING: /" >&2
7407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7415 ## ------------------------------------ ##
7416 ## Report this to bug-autoconf@gnu.org. ##
7417 ## ------------------------------------ ##
7420 sed "s/^/$as_me: WARNING: /" >&2
7423 echo "$as_me:$LINENO: checking for $ac_header" >&5
7424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 eval "$as_ac_Header=$ac_header_preproc"
7430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7435 cat >>confdefs.h
<<_ACEOF
7436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7445 for ac_func
in fork vfork
7447 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7448 echo "$as_me:$LINENO: checking for $ac_func" >&5
7449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7450 if eval "test \"\${$as_ac_var+set}\" = set"; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 cat >conftest.
$ac_ext <<_ACEOF
7454 #line $LINENO "configure"
7457 cat confdefs.h
>>conftest.
$ac_ext
7458 cat >>conftest.
$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 /* System header to define __stub macros and hopefully few prototypes,
7461 which can conflict with char $ac_func (); below.
7462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7463 <limits.h> exists even on freestanding compilers. */
7465 # include <limits.h>
7467 # include <assert.h>
7469 /* Override any gcc2 internal prototype to avoid an error. */
7474 /* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */
7477 /* The GNU C library defines this for functions which it implements
7478 to always fail with ENOSYS. Some functions are actually named
7479 something starting with __ and the normal name is an alias. */
7480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7483 char (*f) () = $ac_func;
7492 return f != $ac_func;
7497 rm -f conftest.
$ac_objext conftest
$ac_exeext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499 (eval $ac_link) 2>&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try
='test -s conftest$ac_exeext'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; }; then
7509 eval "$as_ac_var=yes"
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.
$ac_ext >&5
7514 eval "$as_ac_var=no"
7516 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7520 if test `eval echo '${'$as_ac_var'}'` = yes; then
7521 cat >>confdefs.h
<<_ACEOF
7522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7528 if test "x$ac_cv_func_fork" = xyes
; then
7529 echo "$as_me:$LINENO: checking for working fork" >&5
7530 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7531 if test "${ac_cv_func_fork_works+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 if test "$cross_compiling" = yes; then
7535 ac_cv_func_fork_works
=cross
7537 cat >conftest.
$ac_ext <<_ACEOF
7538 /* By Ruediger Kuhlmann. */
7539 #include <sys/types.h>
7541 # include <unistd.h>
7543 /* Some systems only have a dummy stub for fork() */
7551 rm -f conftest
$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_func_fork_works
=yes
7564 echo "$as_me: program exited with status $ac_status" >&5
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.
$ac_ext >&5
7569 ac_cv_func_fork_works
=no
7571 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7574 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7575 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7578 ac_cv_func_fork_works
=$ac_cv_func_fork
7580 if test "x$ac_cv_func_fork_works" = xcross
; then
7582 *-*-amigaos* |
*-*-msdosdjgpp*)
7583 # Override, as these systems have only a dummy fork() stub
7584 ac_cv_func_fork_works
=no
7587 ac_cv_func_fork_works
=yes
7590 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7591 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7593 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7594 if test "x$ac_cv_func_vfork" = xyes
; then
7595 echo "$as_me:$LINENO: checking for working vfork" >&5
7596 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7597 if test "${ac_cv_func_vfork_works+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 if test "$cross_compiling" = yes; then
7601 ac_cv_func_vfork_works
=cross
7603 cat >conftest.
$ac_ext <<_ACEOF
7604 #line $LINENO "configure"
7607 cat confdefs.h
>>conftest.
$ac_ext
7608 cat >>conftest.
$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 /* Thanks to Paul Eggert for this test. */
7613 #include <sys/types.h>
7614 #include <sys/stat.h>
7615 #include <sys/wait.h>
7617 # include <unistd.h>
7622 /* On some sparc systems, changes by the child to local and incoming
7623 argument registers are propagated back to the parent. The compiler
7624 is told about this with #include <vfork.h>, but some compilers
7625 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7626 static variable whose address is put into a register that is
7627 clobbered by the vfork. */
7630 sparc_address_test (int arg)
7632 sparc_address_test (arg) int arg;
7653 pid_t parent = getpid ();
7656 sparc_address_test (0);
7661 /* Here is another test for sparc vfork register problems. This
7662 test uses lots of local variables, at least as many local
7663 variables as main has allocated so far including compiler
7664 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7665 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7666 reuse the register of parent for one of the local variables,
7667 since it will think that parent can't possibly be used any more
7668 in this routine. Assigning to the local variable will thus
7669 munge parent in the parent process. */
7671 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7672 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7673 /* Convince the compiler that p..p7 are live; otherwise, it might
7674 use the same hardware register for all 8 local variables. */
7675 if (p != p1 || p != p2 || p != p3 || p != p4
7676 || p != p5 || p != p6 || p != p7)
7679 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7680 from child file descriptors. If the child closes a descriptor
7681 before it execs or exits, this munges the parent's descriptor
7682 as well. Test for this by closing stdout in the child. */
7683 _exit(close(fileno(stdout)) != 0);
7688 while (wait(&status) != child)
7691 /* Was there some problem with vforking? */
7694 /* Did the child fail? (This shouldn't happen.) */
7697 /* Did the vfork/compiler bug occur? */
7698 || parent != getpid()
7700 /* Did the file descriptor bug occur? */
7701 || fstat(fileno(stdout), &st) != 0
7706 rm -f conftest
$ac_exeext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708 (eval $ac_link) 2>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_cv_func_vfork_works
=yes
7719 echo "$as_me: program exited with status $ac_status" >&5
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.
$ac_ext >&5
7724 ac_cv_func_vfork_works
=no
7726 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7729 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7730 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7733 if test "x$ac_cv_func_fork_works" = xcross
; then
7734 ac_cv_func_vfork_works
=ac_cv_func_vfork
7735 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7736 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7739 if test "x$ac_cv_func_vfork_works" = xyes
; then
7741 cat >>confdefs.h
<<\_ACEOF
7742 #define HAVE_WORKING_VFORK 1
7747 cat >>confdefs.h
<<\_ACEOF
7752 if test "x$ac_cv_func_fork_works" = xyes
; then
7754 cat >>confdefs.h
<<\_ACEOF
7755 #define HAVE_WORKING_FORK 1
7763 am_cv_lib_iconv_ldpath
=
7765 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7766 if test "${with_libiconv_prefix+set}" = set; then
7767 withval
="$with_libiconv_prefix"
7769 for dir
in `echo "$withval" | tr : ' '`; do
7770 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7771 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
7777 for ac_header
in iconv.h
7779 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7781 echo "$as_me:$LINENO: checking for $ac_header" >&5
7782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7789 # Is the header compilable?
7790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7792 cat >conftest.
$ac_ext <<_ACEOF
7793 #line $LINENO "configure"
7796 cat confdefs.h
>>conftest.
$ac_ext
7797 cat >>conftest.
$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 $ac_includes_default
7800 #include <$ac_header>
7802 rm -f conftest.
$ac_objext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7804 (eval $ac_compile) 2>&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } &&
7808 { ac_try
='test -s conftest.$ac_objext'
7809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); }; }; then
7814 ac_header_compiler
=yes
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.
$ac_ext >&5
7819 ac_header_compiler
=no
7821 rm -f conftest.
$ac_objext conftest.
$ac_ext
7822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7823 echo "${ECHO_T}$ac_header_compiler" >&6
7825 # Is the header present?
7826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7828 cat >conftest.
$ac_ext <<_ACEOF
7829 #line $LINENO "configure"
7832 cat confdefs.h
>>conftest.
$ac_ext
7833 cat >>conftest.
$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #include <$ac_header>
7837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7838 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7840 grep -v '^ *+' conftest.er1
>conftest.err
7842 cat conftest.err
>&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } >/dev
/null
; then
7845 if test -s conftest.err
; then
7846 ac_cpp_err
=$ac_c_preproc_warn_flag
7853 if test -z "$ac_cpp_err"; then
7854 ac_header_preproc
=yes
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.
$ac_ext >&5
7859 ac_header_preproc
=no
7861 rm -f conftest.err conftest.
$ac_ext
7862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7863 echo "${ECHO_T}$ac_header_preproc" >&6
7865 # So? What about this header?
7866 case $ac_header_compiler:$ac_header_preproc in
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7874 ## ------------------------------------ ##
7875 ## Report this to bug-autoconf@gnu.org. ##
7876 ## ------------------------------------ ##
7879 sed "s/^/$as_me: WARNING: /" >&2
7882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7890 ## ------------------------------------ ##
7891 ## Report this to bug-autoconf@gnu.org. ##
7892 ## ------------------------------------ ##
7895 sed "s/^/$as_me: WARNING: /" >&2
7898 echo "$as_me:$LINENO: checking for $ac_header" >&5
7899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 eval "$as_ac_Header=$ac_header_preproc"
7905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7910 cat >>confdefs.h
<<_ACEOF
7911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7919 echo "$as_me:$LINENO: checking for iconv" >&5
7920 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7921 if test "${am_cv_func_iconv+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 am_cv_func_iconv
="no, consider installing GNU libiconv"
7927 cat >conftest.
$ac_ext <<_ACEOF
7928 #line $LINENO "configure"
7931 cat confdefs.h
>>conftest.
$ac_ext
7932 cat >>conftest.
$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7939 iconv_t cd = iconv_open("","");
7940 iconv(cd,NULL,NULL,NULL,NULL);
7946 rm -f conftest.
$ac_objext conftest
$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try
='test -s conftest$ac_exeext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 am_cv_func_iconv
=yes
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.
$ac_ext >&5
7964 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7965 if test "$am_cv_func_iconv" != yes; then
7966 am_save_LIBS
="$LIBS"
7967 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
7968 cat >conftest.
$ac_ext <<_ACEOF
7969 #line $LINENO "configure"
7972 cat confdefs.h
>>conftest.
$ac_ext
7973 cat >>conftest.
$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7980 iconv_t cd = iconv_open("","");
7981 iconv(cd,NULL,NULL,NULL,NULL);
7987 rm -f conftest.
$ac_objext conftest
$ac_exeext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
7993 { ac_try
='test -s conftest$ac_exeext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
8000 am_cv_func_iconv
=yes
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.
$ac_ext >&5
8006 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8007 LIBS
="$am_save_LIBS"
8011 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8012 echo "${ECHO_T}$am_cv_func_iconv" >&6
8013 if test "$am_cv_func_iconv" = yes; then
8015 cat >>confdefs.h
<<\_ACEOF
8016 #define HAVE_ICONV 1
8019 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8020 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8021 if test "${am_cv_proto_iconv+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 cat >conftest.
$ac_ext <<_ACEOF
8026 #line $LINENO "configure"
8029 cat confdefs.h
>>conftest.
$ac_ext
8030 cat >>conftest.
$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8039 #if defined(__STDC__) || defined(__cplusplus)
8040 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8053 rm -f conftest.
$ac_objext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055 (eval $ac_compile) 2>&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try
='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 am_cv_proto_iconv_arg1
=""
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.
$ac_ext >&5
8070 am_cv_proto_iconv_arg1
="const"
8072 rm -f conftest.
$ac_objext conftest.
$ac_ext
8073 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);"
8076 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8077 echo "$as_me:$LINENO: result: ${ac_t:-
8078 }$am_cv_proto_iconv" >&5
8079 echo "${ECHO_T}${ac_t:-
8080 }$am_cv_proto_iconv" >&6
8082 cat >>confdefs.h
<<_ACEOF
8083 #define ICONV_CONST $am_cv_proto_iconv_arg1
8088 if test "$am_cv_lib_iconv" = yes; then
8089 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
8093 # Until we have in-tree GNU iconv:
8098 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8099 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8100 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 cat >conftest.
$ac_ext <<_ACEOF
8104 #line $LINENO "configure"
8107 cat confdefs.h
>>conftest.
$ac_ext
8108 cat >>conftest.
$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8119 rm -f conftest.
$ac_objext conftest
$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121 (eval $ac_link) 2>&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try
='test -s conftest$ac_exeext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 am_cv_val_LC_MESSAGES
=yes
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.
$ac_ext >&5
8136 am_cv_val_LC_MESSAGES
=no
8138 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8140 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8141 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8142 if test $am_cv_val_LC_MESSAGES = yes; then
8144 cat >>confdefs.h
<<\_ACEOF
8145 #define HAVE_LC_MESSAGES 1
8151 # We will need to find libiberty.h and ansidecl.h
8152 saved_CFLAGS
="$CFLAGS"
8153 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8154 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
8155 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8156 fprintf_unlocked strstr errno snprintf vasprintf \
8157 malloc realloc calloc free
basename getopt
clock
8159 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8160 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8161 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8162 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 cat >conftest.
$ac_ext <<_ACEOF
8166 #line $LINENO "configure"
8169 cat confdefs.h
>>conftest.
$ac_ext
8170 cat >>conftest.
$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 #define $ac_tr_decl 1
8175 #include "ansidecl.h"
8182 char *(*pfn) = (char *(*)) $ac_func ;
8188 rm -f conftest.
$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try
='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 eval "gcc_cv_have_decl_$ac_func=yes"
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.
$ac_ext >&5
8205 eval "gcc_cv_have_decl_$ac_func=no"
8207 rm -f conftest.
$ac_objext conftest.
$ac_ext
8210 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8211 echo "$as_me:$LINENO: result: yes" >&5
8212 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8213 #define $ac_tr_decl 1
8217 echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8219 #define $ac_tr_decl 0
8225 if test x
= y
; then
8227 cat >>confdefs.h
<<\_ACEOF
8228 #define HAVE_DECL_GETENV 1
8231 cat >>confdefs.h
<<\_ACEOF
8232 #define HAVE_DECL_ATOL 1
8235 cat >>confdefs.h
<<\_ACEOF
8236 #define HAVE_DECL_SBRK 1
8239 cat >>confdefs.h
<<\_ACEOF
8240 #define HAVE_DECL_ABORT 1
8243 cat >>confdefs.h
<<\_ACEOF
8244 #define HAVE_DECL_ATOF 1
8247 cat >>confdefs.h
<<\_ACEOF
8248 #define HAVE_DECL_GETCWD 1
8251 cat >>confdefs.h
<<\_ACEOF
8252 #define HAVE_DECL_GETWD 1
8256 cat >>confdefs.h
<<\_ACEOF
8257 #define HAVE_DECL_STRSIGNAL 1
8260 cat >>confdefs.h
<<\_ACEOF
8261 #define HAVE_DECL_PUTC_UNLOCKED 1
8264 cat >>confdefs.h
<<\_ACEOF
8265 #define HAVE_DECL_FPUTS_UNLOCKED 1
8268 cat >>confdefs.h
<<\_ACEOF
8269 #define HAVE_DECL_FWRITE_UNLOCKED 1
8273 cat >>confdefs.h
<<\_ACEOF
8274 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8277 cat >>confdefs.h
<<\_ACEOF
8278 #define HAVE_DECL_STRSTR 1
8281 cat >>confdefs.h
<<\_ACEOF
8282 #define HAVE_DECL_ERRNO 1
8285 cat >>confdefs.h
<<\_ACEOF
8286 #define HAVE_DECL_SNPRINTF 1
8289 cat >>confdefs.h
<<\_ACEOF
8290 #define HAVE_DECL_VASPRINTF 1
8294 cat >>confdefs.h
<<\_ACEOF
8295 #define HAVE_DECL_MALLOC 1
8298 cat >>confdefs.h
<<\_ACEOF
8299 #define HAVE_DECL_REALLOC 1
8302 cat >>confdefs.h
<<\_ACEOF
8303 #define HAVE_DECL_CALLOC 1
8306 cat >>confdefs.h
<<\_ACEOF
8307 #define HAVE_DECL_FREE 1
8310 cat >>confdefs.h
<<\_ACEOF
8311 #define HAVE_DECL_BASENAME 1
8314 cat >>confdefs.h
<<\_ACEOF
8315 #define HAVE_DECL_GETOPT 1
8318 cat >>confdefs.h
<<\_ACEOF
8319 #define HAVE_DECL_CLOCK 1
8324 for ac_func
in getrlimit setrlimit getrusage
8326 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8327 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8328 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8329 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 cat >conftest.
$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8336 cat confdefs.h
>>conftest.
$ac_ext
8337 cat >>conftest.
$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8340 #define $ac_tr_decl 1
8342 #include "ansidecl.h"
8344 #ifdef HAVE_SYS_RESOURCE_H
8345 #include <sys/resource.h>
8353 char *(*pfn) = (char *(*)) $ac_func ;
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 eval "gcc_cv_have_decl_$ac_func=yes"
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.
$ac_ext >&5
8376 eval "gcc_cv_have_decl_$ac_func=no"
8378 rm -f conftest.
$ac_objext conftest.
$ac_ext
8381 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8382 echo "$as_me:$LINENO: result: yes" >&5
8383 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8384 #define $ac_tr_decl 1
8388 echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8390 #define $ac_tr_decl 0
8396 if test x
= y
; then
8398 cat >>confdefs.h
<<\_ACEOF
8399 #define HAVE_DECL_GETRLIMIT 1
8402 cat >>confdefs.h
<<\_ACEOF
8403 #define HAVE_DECL_SETRLIMIT 1
8406 cat >>confdefs.h
<<\_ACEOF
8407 #define HAVE_DECL_GETRUSAGE 1
8412 cat >conftest.
$ac_ext <<_ACEOF
8413 #line $LINENO "configure"
8416 cat confdefs.h
>>conftest.
$ac_ext
8417 cat >>conftest.
$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8420 #include "ansidecl.h"
8422 #ifdef HAVE_SYS_RESOURCE_H
8423 #include <sys/resource.h>
8434 rm -f conftest.
$ac_objext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8436 (eval $ac_compile) 2>&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try
='test -s conftest.$ac_objext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.
$ac_ext >&5
8452 cat >>confdefs.h
<<\_ACEOF
8457 rm -f conftest.
$ac_objext conftest.
$ac_ext
8459 for ac_func
in ldgetname
8461 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8462 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8463 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8464 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 cat >conftest.
$ac_ext <<_ACEOF
8468 #line $LINENO "configure"
8471 cat confdefs.h
>>conftest.
$ac_ext
8472 cat >>conftest.
$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8475 #define $ac_tr_decl 1
8477 #include "ansidecl.h"
8488 char *(*pfn) = (char *(*)) $ac_func ;
8494 rm -f conftest.
$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try
='test -s conftest.$ac_objext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 eval "gcc_cv_have_decl_$ac_func=yes"
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.
$ac_ext >&5
8511 eval "gcc_cv_have_decl_$ac_func=no"
8513 rm -f conftest.
$ac_objext conftest.
$ac_ext
8516 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8517 echo "$as_me:$LINENO: result: yes" >&5
8518 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8519 #define $ac_tr_decl 1
8523 echo "$as_me:$LINENO: result: no" >&5
8524 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8525 #define $ac_tr_decl 0
8531 if test x
= y
; then
8533 cat >>confdefs.h
<<\_ACEOF
8534 #define HAVE_DECL_LDGETNAME 1
8539 for ac_func
in times
8541 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8542 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8543 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8544 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 cat >conftest.
$ac_ext <<_ACEOF
8548 #line $LINENO "configure"
8551 cat confdefs.h
>>conftest.
$ac_ext
8552 cat >>conftest.
$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8555 #define $ac_tr_decl 1
8557 #include "ansidecl.h"
8559 #ifdef HAVE_SYS_TIMES_H
8560 #include <sys/times.h>
8568 char *(*pfn) = (char *(*)) $ac_func ;
8574 rm -f conftest.
$ac_objext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8576 (eval $ac_compile) 2>&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try
='test -s conftest.$ac_objext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 eval "gcc_cv_have_decl_$ac_func=yes"
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.
$ac_ext >&5
8591 eval "gcc_cv_have_decl_$ac_func=no"
8593 rm -f conftest.
$ac_objext conftest.
$ac_ext
8596 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8597 echo "$as_me:$LINENO: result: yes" >&5
8598 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8599 #define $ac_tr_decl 1
8603 echo "$as_me:$LINENO: result: no" >&5
8604 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8605 #define $ac_tr_decl 0
8611 if test x
= y
; then
8613 cat >>confdefs.h
<<\_ACEOF
8614 #define HAVE_DECL_TIMES 1
8619 # More time-related stuff.
8620 echo "$as_me:$LINENO: checking for struct tms" >&5
8621 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8622 if test "${ac_cv_struct_tms+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 cat >conftest.
$ac_ext <<_ACEOF
8627 #line $LINENO "configure"
8630 cat confdefs.h
>>conftest.
$ac_ext
8631 cat >>conftest.
$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8634 #include "ansidecl.h"
8636 #ifdef HAVE_SYS_TIMES_H
8637 #include <sys/times.h>
8648 rm -f conftest.
$ac_objext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8650 (eval $ac_compile) 2>&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
8654 { ac_try
='test -s conftest.$ac_objext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_cv_struct_tms
=yes
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.
$ac_ext >&5
8667 rm -f conftest.
$ac_objext conftest.
$ac_ext
8669 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8670 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8671 if test $ac_cv_struct_tms = yes; then
8673 cat >>confdefs.h
<<\_ACEOF
8674 #define HAVE_STRUCT_TMS 1
8679 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8680 # revisit after autoconf 2.50.
8681 echo "$as_me:$LINENO: checking for clock_t" >&5
8682 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8683 if test "${gcc_cv_type_clock_t+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 cat >conftest.
$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8691 cat confdefs.h
>>conftest.
$ac_ext
8692 cat >>conftest.
$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8695 #include "ansidecl.h"
8706 rm -f conftest.
$ac_objext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708 (eval $ac_compile) 2>&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try
='test -s conftest.$ac_objext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 gcc_cv_type_clock_t
=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.
$ac_ext >&5
8723 gcc_cv_type_clock_t
=no
8725 rm -f conftest.
$ac_objext conftest.
$ac_ext
8727 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8728 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8729 if test $gcc_cv_type_clock_t = yes; then
8731 cat >>confdefs.h
<<\_ACEOF
8732 #define HAVE_CLOCK_T 1
8737 echo "$as_me:$LINENO: checking for uchar" >&5
8738 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8739 if test "${gcc_cv_type_uchar+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 cat >conftest.
$ac_ext <<_ACEOF
8743 #line $LINENO "configure"
8746 cat confdefs.h
>>conftest.
$ac_ext
8747 cat >>conftest.
$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8750 #include "ansidecl.h"
8756 if ((uchar *)0) return 0;
8757 if (sizeof(uchar)) return 0;
8762 rm -f conftest.
$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try
='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_cv_type_uchar
=yes
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.
$ac_ext >&5
8781 rm -f conftest.
$ac_objext conftest.
$ac_ext
8783 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8784 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8785 if test $ac_cv_type_uchar = yes; then
8787 cat >>confdefs.h
<<\_ACEOF
8788 #define HAVE_UCHAR 1
8793 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8794 CFLAGS
="$saved_CFLAGS"
8796 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8797 if test "${enable_initfini_array+set}" = set; then
8798 enableval
="$enable_initfini_array"
8802 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8803 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8804 if test "${gcc_cv_initfini_array+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 if test "$cross_compiling" = yes; then
8808 gcc_cv_initfini_array
=no
8810 cat >conftest.
$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8814 cat confdefs.h
>>conftest.
$ac_ext
8815 cat >>conftest.
$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8819 int main (void) { return x; }
8820 int foo (void) { x = 0; }
8821 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8823 rm -f conftest
$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 gcc_cv_initfini_array
=yes
8836 echo "$as_me: program exited with status $ac_status" >&5
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.
$ac_ext >&5
8841 gcc_cv_initfini_array
=no
8843 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8846 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8847 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8848 enable_initfini_array
=$gcc_cv_initfini_array
8851 if test $enable_initfini_array = yes; then
8853 cat >>confdefs.h
<<\_ACEOF
8854 #define HAVE_INITFINI_ARRAY 1
8859 # mkdir takes a single argument on some systems.
8860 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8861 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8862 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 cat >conftest.
$ac_ext <<_ACEOF
8866 #line $LINENO "configure"
8869 cat confdefs.h
>>conftest.
$ac_ext
8870 cat >>conftest.
$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8873 #include <sys/types.h>
8874 #ifdef HAVE_SYS_STAT_H
8875 # include <sys/stat.h>
8877 #ifdef HAVE_UNISTD_H
8878 # include <unistd.h>
8880 #ifdef HAVE_DIRECT_H
8881 # include <direct.h>
8891 rm -f conftest.
$ac_objext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893 (eval $ac_compile) 2>&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
8897 { ac_try
='test -s conftest.$ac_objext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 gcc_cv_mkdir_takes_one_arg
=no
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.
$ac_ext >&5
8908 gcc_cv_mkdir_takes_one_arg
=yes
8910 rm -f conftest.
$ac_objext conftest.
$ac_ext
8912 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8913 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8914 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8916 cat >>confdefs.h
<<\_ACEOF
8917 #define MKDIR_TAKES_ONE_ARG 1
8929 # With Setjmp/Longjmp based exception handling.
8930 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8931 if test "${enable_sjlj_exceptions+set}" = set; then
8932 enableval
="$enable_sjlj_exceptions"
8933 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8935 cat >>confdefs.h
<<_ACEOF
8936 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8941 if test x
$host = x
$target; then
8942 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8943 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8944 if test "${ac_cv_lib_unwind_main+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 ac_check_lib_save_LIBS
=$LIBS
8948 LIBS
="-lunwind $LIBS"
8949 cat >conftest.
$ac_ext <<_ACEOF
8950 #line $LINENO "configure"
8953 cat confdefs.h
>>conftest.
$ac_ext
8954 cat >>conftest.
$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8966 rm -f conftest.
$ac_objext conftest
$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try
='test -s conftest$ac_exeext'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 ac_cv_lib_unwind_main
=yes
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.
$ac_ext >&5
8983 ac_cv_lib_unwind_main
=no
8985 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8986 LIBS
=$ac_check_lib_save_LIBS
8988 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8989 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8990 if test $ac_cv_lib_unwind_main = yes; then
8991 use_libunwind_default
=yes
8993 use_libunwind_default
=no
8997 use_libunwind_default
=no
8999 # Use libunwind based exception handling.
9000 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9001 if test "${enable_libunwind_exceptions+set}" = set; then
9002 enableval
="$enable_libunwind_exceptions"
9003 use_libunwind_exceptions
=$enableval
9005 use_libunwind_exceptions
=$use_libunwind_default
9007 if test x
"$use_libunwind_exceptions" = xyes
; then
9009 cat >>confdefs.h
<<\_ACEOF
9010 #define USE_LIBUNWIND_EXCEPTIONS 1
9015 # --------------------------------------------------------
9016 # Build, host, and target specific configuration fragments
9017 # --------------------------------------------------------
9019 # Collect build-machine-specific information.
9020 .
${srcdir}/config.build
9022 # Collect host-machine-specific information.
9023 .
${srcdir}/config.
host
9027 # Collect target-machine-specific information.
9028 .
${srcdir}/config.gcc
9030 extra_objs
="${host_extra_objs} ${extra_objs}"
9032 # Default the target-machine variables that were not explicitly set.
9033 if test x
"$tm_file" = x
9034 then tm_file
=$cpu_type/$cpu_type.h
; fi
9036 if test x
"$extra_headers" = x
9037 then extra_headers
=; fi
9039 if test x
$md_file = x
9040 then md_file
=$cpu_type/$cpu_type.md
; fi
9042 if test x
$out_file = x
9043 then out_file
=$cpu_type/$cpu_type.c
; fi
9045 if test x
"$tmake_file" = x
9046 then tmake_file
=$cpu_type/t-
$cpu_type
9049 if test x
"$dwarf2" = xyes
9050 then tm_file
="$tm_file tm-dwarf2.h"
9053 # Say what files are being used for the output code and MD file.
9054 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9055 echo "Using \`$srcdir/config/$md_file' as machine description file."
9057 # If any of the xm_file variables contain nonexistent files, warn
9058 # about them and drop them.
9061 for x
in $build_xm_file; do
9062 if test -f $srcdir/config
/$x
9064 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9065 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9071 for x
in $host_xm_file; do
9072 if test -f $srcdir/config
/$x
9074 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9075 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9081 for x
in $xm_file; do
9082 if test -f $srcdir/config
/$x
9084 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9085 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9091 for f
in $tm_file; do
9094 if test $count = ax
; then
9095 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9097 echo "Using the following target machine macro files:"
9098 for f
in $tm_file; do
9099 echo " $srcdir/config/$f"
9103 if test x
$need_64bit_hwint = xyes
; then
9105 cat >>confdefs.h
<<\_ACEOF
9106 #define NEED_64BIT_HOST_WIDE_INT 1
9112 for f
in $host_xm_file; do
9115 if test $count = a
; then
9117 elif test $count = ax
; then
9118 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9120 echo "Using the following host machine macro files:"
9121 for f
in $host_xm_file; do
9122 echo " $srcdir/config/$f"
9125 echo "Using ${out_host_hook_obj} for host machine hooks."
9127 if test "$host_xm_file" != "$build_xm_file"; then
9129 for f
in $build_xm_file; do
9132 if test $count = a
; then
9134 elif test $count = ax
; then
9135 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9137 echo "Using the following build machine macro files:"
9138 for f
in $build_xm_file; do
9139 echo " $srcdir/config/$f"
9144 # Check if a valid thread package
9145 case ${enable_threads_flag} in
9148 target_thread_file
='single'
9152 target_thread_file
='single'
9154 aix | dce | gnat | irix | posix | rtems | \
9155 single | solaris | vxworks | win32
)
9156 target_thread_file
=${enable_threads_flag}
9159 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9164 if test x
${thread_file} = x
; then
9165 # No thread file set by target-specific clauses in config.gcc,
9166 # so use file chosen by default logic above
9167 thread_file
=${target_thread_file}
9170 if test x
$enable___cxa_atexit = xyes || \
9171 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
9173 cat >>confdefs.h
<<\_ACEOF
9174 #define DEFAULT_USE_CXA_ATEXIT 1
9179 # Look for a file containing extra machine modes.
9180 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
9181 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
9184 cat >>confdefs.h
<<_ACEOF
9185 #define EXTRA_MODES_FILE "config/$extra_modes"
9190 # auto-host.h is the file containing items generated by autoconf and is
9191 # the first file included by config.h.
9192 # If host=build, it is correct to have bconfig include auto-host.h
9193 # as well. If host!=build, we are in error and need to do more
9194 # work to find out the build config parameters.
9195 if test x
$host = x
$build
9197 build_auto
=auto-host.h
9200 # We create a subdir, then run autoconf in the subdir.
9201 # To prevent recursion we set host and build for the new
9202 # invocation of configure to the build for this invocation
9209 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
9210 *) realsrcdir
=..
/${srcdir};;
9212 saved_CFLAGS
="${CFLAGS}"
9213 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
9214 ${realsrcdir}/configure \
9215 --target=$target_alias --host=$build_alias --build=$build_alias
9216 CFLAGS
="${saved_CFLAGS}"
9218 # We just finished tests for the build machine, so rename
9219 # the file auto-build.h in the gcc directory.
9220 mv auto-host.h ..
/auto-build.h
9223 build_auto
=auto-build.h
9224 FORBUILD
=..
/${build_subdir}
9228 tm_file
="${tm_file} defaults.h"
9229 tm_p_file
="${tm_p_file} tm-preds.h"
9230 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
9231 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
9232 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9233 # put this back in temporarily.
9234 xm_file
="ansidecl.h ${xm_file}"
9240 # Get the version trigger filename from the toplevel
9241 if test "${with_gcc_version_trigger+set}" = set; then
9242 gcc_version_trigger
=$with_gcc_version_trigger
9244 gcc_version_trigger
=${srcdir}/version.c
9246 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9247 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9249 # Compile in configure arguments.
9250 if test -f configargs.h
; then
9251 # Being re-configured.
9252 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9253 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9255 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9258 # Double all backslashes and backslash all quotes to turn
9259 # gcc_config_arguments into a C string.
9260 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9261 $gcc_config_arguments
9263 gcc_config_arguments_str
=`cat conftest.out`
9266 cat > configargs.h
<<EOF
9267 /* Generated automatically. */
9268 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9269 static const char thread_model[] = "$thread_file";
9271 static const struct {
9272 const char *name, *value;
9273 } configure_default_options[] = $configure_default_options;
9276 # Internationalization
9278 VERSION
="$gcc_version"
9282 # If we haven't got the data from the intl directory,
9283 # assume NLS is disabled.
9291 if test -f ..
/intl
/config.intl
; then
9292 . ..
/intl
/config.intl
9294 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9295 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9296 if test x
"$USE_NLS" != xyes
; then
9297 echo "$as_me:$LINENO: result: no" >&5
9298 echo "${ECHO_T}no" >&6
9300 echo "$as_me:$LINENO: result: yes" >&5
9301 echo "${ECHO_T}yes" >&6
9303 cat >>confdefs.h
<<\_ACEOF
9304 #define ENABLE_NLS 1
9308 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9309 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9310 # Look for .po and .gmo files in the source directory.
9313 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9314 # If there aren't any .gmo files the shell will give us the
9315 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9317 case "$cat" in *\
**)
9320 # The quadruple backslash is collapsed to a double backslash
9321 # by the backticks, then collapsed again by the double quotes,
9322 # leaving us with one backslash in the sed expression (right
9323 # before the dot that mustn't act as a wildcard).
9324 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9325 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9326 # The user is allowed to set LINGUAS to a list of languages to
9327 # install catalogs for. If it's empty that means "all of them."
9328 if test "x$LINGUAS" = x
; then
9329 CATALOGS
="$CATALOGS $cat"
9330 XLINGUAS
="$XLINGUAS $lang"
9332 case "$LINGUAS" in *$lang*)
9333 CATALOGS
="$CATALOGS $cat"
9334 XLINGUAS
="$XLINGUAS $lang"
9340 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9341 echo "${ECHO_T}$LINGUAS" >&6
9344 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9345 # -liconv on the link line twice.
9346 case "$LIBINTL" in *$LIBICONV*)
9350 # Windows32 Registry support for specifying GCC installation paths.
9351 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9352 if test "${enable_win32_registry+set}" = set; then
9353 enableval
="$enable_win32_registry"
9357 win32 | pe | cygwin
* | mingw32
* | uwin
*)
9358 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9359 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9360 if test "x$enable_win32_registry" != xno
; then
9362 cat >>confdefs.h
<<\_ACEOF
9363 #define ENABLE_WIN32_REGISTRY 1
9366 echo "$as_me:$LINENO: result: yes" >&5
9367 echo "${ECHO_T}yes" >&6
9368 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9369 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9370 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 ac_func_search_save_LIBS
=$LIBS
9374 ac_cv_search_RegOpenKeyExA
=no
9375 cat >conftest.
$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9379 cat confdefs.h
>>conftest.
$ac_ext
9380 cat >>conftest.
$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9383 /* Override any gcc2 internal prototype to avoid an error. */
9387 /* We use char because int might match the return type of a gcc2
9388 builtin and then its argument prototype would still apply. */
9389 char RegOpenKeyExA ();
9398 rm -f conftest.
$ac_objext conftest
$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400 (eval $ac_link) 2>&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try
='test -s conftest$ac_exeext'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_search_RegOpenKeyExA
="none required"
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.
$ac_ext >&5
9416 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9417 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
9418 for ac_lib
in advapi32
; do
9419 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9420 cat >conftest.
$ac_ext <<_ACEOF
9421 #line $LINENO "configure"
9424 cat confdefs.h
>>conftest.
$ac_ext
9425 cat >>conftest.
$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9428 /* Override any gcc2 internal prototype to avoid an error. */
9432 /* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434 char RegOpenKeyExA ();
9443 rm -f conftest.
$ac_objext conftest
$ac_exeext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445 (eval $ac_link) 2>&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try
='test -s conftest$ac_exeext'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; }; then
9455 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.
$ac_ext >&5
9462 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9465 LIBS
=$ac_func_search_save_LIBS
9467 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9468 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9469 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
9470 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
9475 echo "$as_me:$LINENO: result: no" >&5
9476 echo "${ECHO_T}no" >&6
9479 # Check if user specified a different registry key.
9480 case "x${enable_win32_registry}" in
9483 gcc_cv_win32_registry_key
="$VERSION"
9486 # no registry lookup.
9487 gcc_cv_win32_registry_key
=''
9490 # user-specified key.
9491 gcc_cv_win32_registry_key
="$enable_win32_registry"
9495 if test "x$enable_win32_registry" != xno
; then
9496 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9497 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9499 cat >>confdefs.h
<<_ACEOF
9500 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9503 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9504 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9509 # Get an absolute path to the GCC top-level source directory
9510 holddir
=`${PWDCMD-pwd}`
9512 topdir
=`${PWDCMD-pwd}`
9515 # Conditionalize the makefile for this host machine.
9517 for f
in ${host_xmake_file}
9519 if test -f ${srcdir}/config
/$f
9521 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
9525 # Conditionalize the makefile for this target machine.
9527 for f
in ${tmake_file}
9529 if test -f ${srcdir}/config
/$f
9531 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
9534 tmake_file
="${tmake_file_}"
9536 symbolic_link
='ln -s'
9538 # If the host doesn't support symlinks, modify CC in
9539 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9540 # Otherwise, we can use "CC=$(CC)".
9542 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
9544 cc_set_by_configure
="\$(CC)"
9545 quoted_cc_set_by_configure
="\$(CC)"
9546 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9547 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9550 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
9552 symbolic_link
="cp -p"
9556 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9557 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9558 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9559 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9563 out_object_file
=`basename $out_file .c`.o
9567 for f
in $tm_file; do
9570 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
9571 tm_include_list
="${tm_include_list} $f"
9574 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
9575 tm_include_list
="${tm_include_list} config/$f"
9582 for f
in $tm_p_file; do
9585 tm_p_file_list
="${tm_p_file_list} $f"
9586 tm_p_include_list
="${tm_p_include_list} $f"
9589 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
9590 tm_p_include_list
="${tm_p_include_list} config/$f"
9596 for f
in $xm_file; do
9599 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
9600 xm_include_list
="${xm_include_list} $f"
9603 xm_file_list
="${xm_file_list} $f"
9604 xm_include_list
="${xm_include_list} $f"
9607 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
9608 xm_include_list
="${xm_include_list} config/$f"
9614 host_xm_include_list
=
9615 for f
in $host_xm_file; do
9618 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
9619 host_xm_include_list
="${host_xm_include_list} $f"
9622 host_xm_file_list
="${host_xm_file_list} $f"
9623 host_xm_include_list
="${host_xm_include_list} $f"
9626 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
9627 host_xm_include_list
="${host_xm_include_list} config/$f"
9633 for f
in $build_xm_file; do
9636 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
9637 build_xm_include_list
="${build_xm_include_list} $f"
9639 auto-build.h | auto-host.h
)
9640 build_xm_file_list
="${build_xm_file_list} $f"
9641 build_xm_include_list
="${build_xm_include_list} $f"
9644 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
9645 build_xm_include_list
="${build_xm_include_list} config/$f"
9650 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9651 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9654 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9655 if test x
$host != x
$target
9657 CROSS
="-DCROSS_COMPILE"
9659 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9660 case "$host","$target" in
9661 # Darwin crosses can use the host system's libraries and headers,
9662 # because of the fat library support. Of course, it must be the
9663 # same version of Darwin on both sides. Allow the user to
9664 # just say --target=foo-darwin without a version number to mean
9665 # "the version on this system".
9666 *-*-darwin*,*-*-darwin*)
9667 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
9668 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
9669 if test $hostos = $targetos -o $targetos = darwin
; then
9671 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9676 i?
86-*-*,x86_64-
*-* \
9677 | powerpc
*-*-*,powerpc64
*-*-*)
9678 CROSS
="$CROSS -DNATIVE_CROSS" ;;
9680 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
9681 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9682 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9685 # If this is a cross-compiler that does not
9686 # have its own set of headers then define
9689 # If this is using newlib, without having the headers available now,
9690 # then define inhibit_libc in LIBGCC2_CFLAGS.
9691 # This prevents libgcc2 from containing any code which requires libc
9694 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
9695 test x
$with_newlib = xyes
; } &&
9696 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
9697 inhibit_libc
=-Dinhibit_libc
9701 # When building gcc with a cross-compiler, we need to adjust things so
9702 # that the generator programs are still built with the native compiler.
9703 # Also, we cannot run fixincludes or fix-header.
9705 # These are the normal (build=host) settings:
9707 BUILD_PREFIX_1
=ignore-
9708 CC_FOR_BUILD
='$(CC)'
9709 BUILD_CFLAGS
='$(ALL_CFLAGS)'
9711 STMP_FIXINC
=stmp-fixinc
9713 # Possibly disable fixproto, on a per-target basis.
9714 case ${use_fixproto} in
9719 STMP_FIXPROTO
=stmp-fixproto
9724 # And these apply if build != host, or we are generating coverage data
9725 if test x
$build != x
$host ||
test "x$coverage_flags" != x
9728 BUILD_PREFIX_1
=build-
9729 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9731 if test "x$TARGET_SYSTEM_ROOT" = x
; then
9737 # Expand extra_headers to include complete path.
9738 # This substitutes for lots of t-* files.
9740 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9741 for file in ${extra_headers} ; do
9742 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9745 # Add a definition of USE_COLLECT2 if system wants one.
9746 case $use_collect2 in
9747 no
) use_collect2
= ;;
9750 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
9751 xm_defines
="${xm_defines} USE_COLLECT2"
9755 # Identify the assembler which will work hand-in-glove with the newly
9756 # built GCC, so that we can examine its features. This is the assembler
9757 # which will be driven by the driver program.
9759 # If build != host, and we aren't building gas in-tree, we identify a
9760 # build->target assembler and hope that it will have the same features
9761 # as the host->target assembler we'll be using.
9762 echo "$as_me:$LINENO: checking what assembler to use" >&5
9763 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9766 gcc_cv_gas_major_version
=
9767 gcc_cv_gas_minor_version
=
9768 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9769 if test -x "$DEFAULT_ASSEMBLER"; then
9770 gcc_cv_as
="$DEFAULT_ASSEMBLER"
9771 elif test -x "$AS"; then
9773 elif test -x as
$host_exeext; then
9774 # Build using assembler in the current directory.
9775 gcc_cv_as
=.
/as
$host_exeext
9776 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
9777 && test -f ..
/gas
/Makefile
; then
9778 # Single tree build which includes gas.
9780 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9781 for f
in $gcc_cv_as_bfd_srcdir/configure \
9782 $gcc_cv_as_gas_srcdir/configure \
9783 $gcc_cv_as_gas_srcdir/configure.
in \
9784 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
9785 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9786 if test x
$gcc_cv_gas_version != x
; then
9790 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9791 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9792 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9793 case $gcc_cv_gas_patch_version in
9794 "") gcc_cv_gas_patch_version
="0" ;;
9796 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9797 + $gcc_cv_gas_minor_version \) \* 1000 \
9798 + $gcc_cv_gas_patch_version`
9800 rm -f as
$host_exeext
9801 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
9802 in_tree_gas_is_elf
=no
9803 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
9804 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
9805 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
9807 in_tree_gas_is_elf
=yes
9811 if test "x$gcc_cv_as" = x
; then
9812 # Search the same directories that the installed compiler will
9813 # search. Else we may find the wrong assembler and lose. If we
9814 # do not find a suitable assembler binary, then try the user's
9817 # Also note we have to check MD_EXEC_PREFIX before checking the
9818 # user's path. Unfortunately, there is no good way to get at the
9819 # value of MD_EXEC_PREFIX here. So we do a brute force search
9820 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9821 # to be fixed as part of the make/configure rewrite too.
9823 if test "x$exec_prefix" = xNONE
; then
9824 if test "x$prefix" = xNONE
; then
9825 test_prefix
=/usr
/local
9830 test_prefix
=$exec_prefix
9833 # If the loop below does not find an assembler, then use whatever
9834 # one we can find in the users's path.
9836 if test "x$program_prefix" != xNONE
; then
9837 gcc_cv_as
=${program_prefix}as
$host_exeext
9839 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
9842 test_dirs
="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9843 $test_prefix/lib/gcc-lib/$target_noncanonical \
9844 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9845 /usr/lib/gcc/$target_noncanonical \
9846 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9847 $test_prefix/$target_noncanonical/bin"
9849 if test x
$host = x
$target; then
9850 test_dirs
="$test_dirs \
9855 /bsd43/usr/lib/cmplrs/cc \
9856 /usr/cross64/usr/bin \
9857 /usr/lib/cmplrs/cc \
9858 /sysv/usr/lib/cmplrs/cc \
9859 /svr4/usr/lib/cmplrs/cc \
9863 for dir
in $test_dirs; do
9864 if test -x $dir/as
$host_exeext; then
9865 gcc_cv_as
=$dir/as
$host_exeext
9870 case $in_tree_gas in
9872 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9873 echo "${ECHO_T}\"newly built gas\"" >&6
9876 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9877 echo "${ECHO_T}$gcc_cv_as" >&6
9881 # Identify the linker which will work hand-in-glove with the newly
9882 # built GCC, so that we can examine its features. This is the linker
9883 # which will be driven by the driver program.
9885 # If build != host, and we aren't building gas in-tree, we identify a
9886 # build->target linker and hope that it will have the same features
9887 # as the host->target linker we'll be using.
9888 echo "$as_me:$LINENO: checking what linker to use" >&5
9889 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9892 gcc_cv_gld_major_version
=
9893 gcc_cv_gld_minor_version
=
9894 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9895 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9896 if test -x "$DEFAULT_LINKER"; then
9897 gcc_cv_ld
="$DEFAULT_LINKER"
9898 elif test -x "$LD"; then
9900 elif test -x collect-ld
$host_exeext; then
9901 # Build using linker in the current directory.
9902 gcc_cv_ld
=.
/collect-ld
$host_exeext
9903 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
9904 && test -f ..
/ld
/Makefile
; then
9905 # Single tree build which includes ld.
9907 in_tree_ld_is_elf
=no
9908 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
9909 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
9910 in_tree_ld_is_elf
=yes
9912 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
9914 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9915 if test x
$gcc_cv_gld_version != x
; then
9919 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9920 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9921 rm -f collect-ld
$host_exeext
9922 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
9926 if test "x$gcc_cv_ld" = x
; then
9927 # Search the same directories that the installed compiler will
9928 # search. Else we may find the wrong linker and lose. If we
9929 # do not find a suitable linker binary, then try the user's
9932 # Also note we have to check MD_EXEC_PREFIX before checking the
9933 # user's path. Unfortunately, there is no good way to get at the
9934 # value of MD_EXEC_PREFIX here. So we do a brute force search
9935 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9936 # to be fixed as part of the make/configure rewrite too.
9938 if test "x$exec_prefix" = xNONE
; then
9939 if test "x$prefix" = xNONE
; then
9940 test_prefix
=/usr
/local
9945 test_prefix
=$exec_prefix
9948 # If the loop below does not find an linker, then use whatever
9949 # one we can find in the users's path.
9951 if test "x$program_prefix" != xNONE
; then
9952 gcc_cv_ld
=${program_prefix}ld
$host_exeext
9954 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
9957 test_dirs
="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9958 $test_prefix/lib/gcc-lib/$target_noncanonical \
9959 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9960 /usr/lib/gcc/$target_noncanonical \
9961 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9962 $test_prefix/$target_noncanonical/bin"
9964 if test x
$host = x
$target; then
9965 test_dirs
="$test_dirs \
9970 /bsd43/usr/lib/cmplrs/cc \
9971 /usr/cross64/usr/bin \
9972 /usr/lib/cmplrs/cc \
9973 /sysv/usr/lib/cmplrs/cc \
9974 /svr4/usr/lib/cmplrs/cc \
9978 for dir
in $test_dirs; do
9979 if test -x $dir/ld
$host_exeext; then
9980 gcc_cv_ld
=$dir/ld
$host_exeext
9987 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9988 echo "${ECHO_T}\"newly built ld\"" >&6
9991 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9992 echo "${ECHO_T}$gcc_cv_ld" >&6
9996 # Figure out what nm we will be using.
9997 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9998 echo "$as_me:$LINENO: checking what nm to use" >&5
9999 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10001 if test -x nm
$host_exeext; then
10002 gcc_cv_nm
=.
/nm
$host_exeext
10003 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10004 && test -f ..
/binutils
/Makefile
; then
10005 # Single tree build which includes binutils.
10007 gcc_cv_nm
=.
/nm
$host_exeext
10008 rm -f nm
$host_exeext
10009 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
10010 elif test "x$program_prefix" != xNONE
; then
10011 gcc_cv_nm
=${program_prefix}nm
$host_exeext
10013 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
10015 case $in_tree_nm in
10016 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10017 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10018 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10019 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10022 # Figure out what objdump we will be using.
10023 echo "$as_me:$LINENO: checking what objdump to use" >&5
10024 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10026 if test -x objdump
$host_exeext; then
10027 gcc_cv_objdump
=.
/objdump
$host_exeext
10028 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10029 && test -f ..
/binutils
/Makefile
; then
10030 # Single tree build which includes binutils.
10031 in_tree_objdump
=yes
10032 gcc_cv_objdump
=.
/objdump
$host_exeext
10033 rm -f objdump
$host_exeext
10034 $symbolic_link ..
/binutils
/objdump
$host_exeext \
10035 objdump
$host_exeext 2>/dev
/null
10036 elif test "x$program_prefix" != xNONE
; then
10037 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
10039 gcc_cv_objdump
=`echo objdump | \
10040 sed ${program_transform_name}`$host_exeext
10042 case $in_tree_objdump in
10043 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10044 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10045 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10046 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10049 # Figure out what assembler alignment features are present.
10050 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10051 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10052 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 gcc_cv_as_balign_and_p2align
=no
10056 if test $in_tree_gas = yes; then
10057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10058 then gcc_cv_as_balign_and_p2align
=yes
10060 elif test x
$gcc_cv_as != x
; then
10062 .p2align 2' > conftest.s
10063 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; }
10070 gcc_cv_as_balign_and_p2align
=yes
10072 echo "configure: failed program was" >&5
10075 rm -f conftest.o conftest.s
10078 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10079 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10080 if test $gcc_cv_as_balign_and_p2align = yes; then
10082 cat >>confdefs.h
<<\_ACEOF
10083 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10088 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10089 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10090 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 gcc_cv_as_max_skip_p2align
=no
10094 if test $in_tree_gas = yes; then
10095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10096 then gcc_cv_as_max_skip_p2align
=yes
10098 elif test x
$gcc_cv_as != x
; then
10099 echo '.p2align 4,,7' > conftest.s
10100 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; }
10107 gcc_cv_as_max_skip_p2align
=yes
10109 echo "configure: failed program was" >&5
10112 rm -f conftest.o conftest.s
10115 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10116 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10117 if test $gcc_cv_as_max_skip_p2align = yes; then
10119 cat >>confdefs.h
<<\_ACEOF
10120 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10125 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10126 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10127 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 gcc_cv_as_subsection_m1
=no
10131 if test $in_tree_gas = yes; then
10132 if test $in_tree_gas_is_elf = yes \
10133 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10134 then gcc_cv_as_subsection_m1
=yes
10136 elif test x
$gcc_cv_as != x
; then
10137 echo 'conftest_label1: .word 0
10139 conftest_label2: .word 0
10140 .previous' > conftest.s
10141 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }
10148 if test x
$gcc_cv_nm != x
; then
10149 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
10150 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
10151 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
10153 else gcc_cv_as_subsection_m1
=yes
10155 rm -f conftest.nm1 conftest.nm2
10158 echo "configure: failed program was" >&5
10161 rm -f conftest.o conftest.s
10164 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10165 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10166 if test $gcc_cv_as_subsection_m1 = yes; then
10168 cat >>confdefs.h
<<\_ACEOF
10169 #define HAVE_GAS_SUBSECTION_ORDERING 1
10174 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10175 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10176 if test "${gcc_cv_as_weak+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 if test $in_tree_gas = yes; then
10181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10182 then gcc_cv_as_weak
=yes
10184 elif test x
$gcc_cv_as != x
; then
10185 echo ' .weak foobar' > conftest.s
10186 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }
10195 echo "configure: failed program was" >&5
10198 rm -f conftest.o conftest.s
10201 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10202 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10203 if test $gcc_cv_as_weak = yes; then
10205 cat >>confdefs.h
<<\_ACEOF
10206 #define HAVE_GAS_WEAK 1
10211 # .hidden needs to be supported in both the assembler and the linker,
10212 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10213 # This is irritatingly difficult to feature test for; we have to check the
10214 # date string after the version number. If we've got an in-tree
10215 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10217 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10218 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10219 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10220 if test "${gcc_cv_as_hidden+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 gcc_cv_as_hidden
=no
10224 if test $in_tree_gas = yes; then
10225 if test $in_tree_gas_is_elf = yes \
10226 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10227 then gcc_cv_as_hidden
=yes
10229 elif test x
$gcc_cv_as != x
; then
10230 echo ' .hidden foobar
10231 foobar:' > conftest.s
10232 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }
10239 gcc_cv_as_hidden
=yes
10241 echo "configure: failed program was" >&5
10244 rm -f conftest.o conftest.s
10247 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10248 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10251 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10252 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10253 if test "${gcc_cv_ld_hidden+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 if test $in_tree_ld = yes ; then
10257 gcc_cv_ld_hidden
=no
10258 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 \
10259 && test $in_tree_ld_is_elf = yes; then
10260 gcc_cv_ld_hidden
=yes
10263 gcc_cv_ld_hidden
=yes
10264 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10265 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
10266 ld_vers
=`echo $ld_ver | sed -n \
10267 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10268 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10269 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10270 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10271 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10272 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10273 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'`
10274 if test 0"$ld_date" -lt 20020404; then
10275 if test -n "$ld_date"; then
10276 # If there was date string, but was earlier than 2002-04-04, fail
10277 gcc_cv_ld_hidden
=no
10278 elif test -z "$ld_vers"; then
10279 # If there was no date string nor ld version number, something is wrong
10280 gcc_cv_ld_hidden
=no
10282 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
10283 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10284 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10285 test -z "$ld_vers_patch" && ld_vers_patch
=0
10286 if test "$ld_vers_major" -lt 2; then
10287 gcc_cv_ld_hidden
=no
10288 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10289 gcc_cv_ld_hidden
="no"
10290 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10291 gcc_cv_ld_hidden
=no
10296 # non-GNU linkers don't seem to support .hidden yet
10297 gcc_cv_ld_hidden
=no
10301 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10302 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10303 libgcc_visibility
=no
10305 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10306 libgcc_visibility
=yes
10308 cat >>confdefs.h
<<\_ACEOF
10309 #define HAVE_GAS_HIDDEN 1
10314 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10315 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10316 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10317 if test "${gcc_cv_as_leb128+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 gcc_cv_as_leb128
=no
10321 if test $in_tree_gas = yes; then
10322 if test $in_tree_gas_is_elf = yes \
10323 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10324 then gcc_cv_as_leb128
=yes
10326 elif test x
$gcc_cv_as != x
; then
10333 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }
10340 # GAS versions before 2.11 do not support uleb128,
10341 # despite appearing to.
10342 # ??? There exists an elf-specific test that will crash
10343 # the assembler. Perhaps it's better to figure out whether
10344 # arbitrary sections are supported and try the test.
10345 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10346 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
10347 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10348 as_major
=`echo $as_ver | sed 's/\..*//'`
10349 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10350 if test $as_major -eq 2 && test $as_minor -lt 11
10352 else gcc_cv_as_leb128
=yes
10356 echo "configure: failed program was" >&5
10359 rm -f conftest.o conftest.s
10362 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10363 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10364 if test $gcc_cv_as_leb128 = yes; then
10366 cat >>confdefs.h
<<\_ACEOF
10367 #define HAVE_AS_LEB128 1
10372 # GAS versions up to and including 2.11.0 may mis-optimize
10374 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10375 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10376 if test "${gcc_cv_as_eh_frame+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 gcc_cv_as_eh_frame
=no
10380 if test $in_tree_gas = yes; then
10381 if test $in_tree_gas_is_elf = yes \
10382 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10383 then gcc_cv_as_eh_frame
=yes
10385 elif test x
$gcc_cv_as != x
; then
10392 .section .eh_frame,"aw",@progbits
10394 .4byte .LECIE1-.LSCIE1
10408 .4byte .LEFDE1-.LASFDE1
10410 .4byte .LASFDE1-__FRAME_BEGIN__
10417 .LEFDE1:' > conftest.s
10418 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; }
10425 cat > conftest.lit
<<EOF
10426 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10427 0010 01000000 12000000 18000000 00000000 ................
10428 0020 08000000 04080000 0044 .........D
10430 cat > conftest.big
<<EOF
10431 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10432 0010 00000001 00000012 00000018 00000000 ................
10433 0020 00000008 04000000 0844 .........D
10435 # If the assembler didn't choke, and we can objdump,
10436 # and we got the correct data, then succeed.
10437 if test x
$gcc_cv_objdump != x \
10438 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
10439 |
tail -3 > conftest.got \
10440 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
10441 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
10443 gcc_cv_as_eh_frame
=yes
10444 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 gcc_cv_as_eh_frame
=buggy
10452 # Uh oh, what do we do now?
10453 gcc_cv_as_eh_frame
=no
10456 echo "configure: failed program was" >&5
10459 rm -f conftest.o conftest.s
10462 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10463 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10466 if test $gcc_cv_as_eh_frame = buggy
; then
10468 cat >>confdefs.h
<<\_ACEOF
10469 #define USE_AS_TRADITIONAL_FORMAT 1
10474 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10475 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10476 if test "${gcc_cv_as_shf_merge+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 gcc_cv_as_shf_merge
=no
10480 if test $in_tree_gas = yes; then
10481 if test $in_tree_gas_is_elf = yes \
10482 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10483 then gcc_cv_as_shf_merge
=yes
10485 elif test x
$gcc_cv_as != x
; then
10486 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10487 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; }
10494 gcc_cv_as_shf_merge
=yes
10496 echo "configure: failed program was" >&5
10499 rm -f conftest.o conftest.s
10502 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10503 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10506 cat >>confdefs.h
<<_ACEOF
10507 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10511 # Thread-local storage - the check is heavily parametrized.
10519 .section ".tdata","awT",@progbits
10522 ldq $27,__tls_get_addr($29) !literal!1
10523 lda $16,foo($29) !tlsgd!1
10524 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10525 ldq $27,__tls_get_addr($29) !literal!2
10526 lda $16,foo($29) !tlsldm!2
10527 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10528 ldq $1,foo($29) !gotdtprel
10529 ldah $2,foo($29) !dtprelhi
10530 lda $3,foo($2) !dtprello
10531 lda $4,foo($29) !dtprel
10532 ldq $1,foo($29) !gottprel
10533 ldah $2,foo($29) !tprelhi
10534 lda $3,foo($2) !tprello
10535 lda $4,foo($29) !tprel'
10541 .section ".tdata","awT",@progbits
10545 leal foo@TLSGD(,%ebx,1), %eax
10546 leal foo@TLSLDM(%ebx), %eax
10547 leal foo@DTPOFF(%eax), %edx
10548 movl foo@GOTTPOFF(%ebx), %eax
10549 subl foo@GOTTPOFF(%ebx), %eax
10550 addl foo@GOTNTPOFF(%ebx), %eax
10551 movl foo@INDNTPOFF, %eax
10552 movl $foo@TPOFF, %eax
10553 subl $foo@TPOFF, %eax
10554 leal foo@NTPOFF(%ecx), %eax'
10560 .section ".tdata","awT",@progbits
10564 leaq foo@TLSGD(%rip), %rdi
10565 leaq foo@TLSLD(%rip), %rdi
10566 leaq foo@DTPOFF(%rax), %rdx
10567 movq foo@GOTTPOFF(%rip), %rax
10568 movq $foo@TPOFF, %rax'
10574 .section ".tdata","awT",@progbits
10577 addl r16 = @ltoff(@dtpmod(foo#)), gp
10578 addl r17 = @ltoff(@dtprel(foo#)), gp
10579 addl r18 = @ltoff(@tprel(foo#)), gp
10580 addl r19 = @dtprel(foo#), gp
10581 adds r21 = @dtprel(foo#), r13
10582 movl r23 = @dtprel(foo#)
10583 addl r20 = @tprel(foo#), gp
10584 adds r22 = @tprel(foo#), r13
10585 movl r24 = @tprel(foo#)'
10591 .section ".tdata","awT",@progbits
10599 addi 3,31,ld0@got@tlsgd
10601 addi 3,31,x1@got@tlsld
10604 addis 9,3,x2@dtprel@ha
10605 addi 9,9,x2@dtprel@l
10606 lwz 9,x3@got@tprel(31)
10609 addis 9,2,x2@tprel@ha
10610 addi 9,9,x2@tprel@l'
10617 .section ".tdata","awT",@progbits
10625 addi 3,2,ld0@got@tlsgd
10631 addi 3,2,x1@got@tlsld
10637 addis 9,3,x2@dtprel@ha
10638 addi 9,9,x2@dtprel@l
10641 ld 9,x3@got@dtprel(2)
10651 .section ".tdata","awT",@progbits
10658 .long foo@GOTNTPOFF
10659 .long foo@INDNTPOFF
10660 l %r1,foo@GOTNTPOFF(%r12)
10661 l %r1,0(%r1):tls_load:foo
10662 bas %r14,0(%r1,%r13):tls_gdcall:foo
10663 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10670 .section ".tdata","awT",@progbits
10677 .quad foo@GOTNTPOFF
10678 lg %r1,foo@GOTNTPOFF(%r12)
10679 larl %r1,foo@INDNTPOFF
10680 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10681 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10684 tls_as_opt
="-m64 -Aesame"
10686 sh-
*-* | sh
[34]-*-*)
10688 .section ".tdata","awT",@progbits
10701 .section ".tdata","awT",@progbits
10704 sethi %tgd_hi22(foo), %o0
10705 add %o0, %tgd_lo10(foo), %o1
10706 add %l7, %o1, %o0, %tgd_add(foo)
10707 call __tls_get_addr, %tgd_call(foo)
10708 sethi %tldm_hi22(foo), %l1
10709 add %l1, %tldm_lo10(foo), %l2
10710 add %l7, %l2, %o0, %tldm_add(foo)
10711 call __tls_get_addr, %tldm_call(foo)
10712 sethi %tldo_hix22(foo), %l3
10713 xor %l3, %tldo_lox10(foo), %l4
10714 add %o0, %l4, %l5, %tldo_add(foo)
10715 sethi %tie_hi22(foo), %o3
10716 add %o3, %tie_lo10(foo), %o3
10717 ld [%l7 + %o3], %o2, %tie_ld(foo)
10718 add %g7, %o2, %o4, %tie_add(foo)
10719 sethi %tle_hix22(foo), %l1
10720 xor %l1, %tle_lox10(foo), %o5
10721 ld [%g7 + %o5], %o1'
10727 if test -z "$tls_first_major"; then
10728 : # If we don't have a check, assume no support.
10730 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10731 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10732 if test "${gcc_cv_as_tls+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 if test $in_tree_gas = yes; then
10737 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10738 then gcc_cv_as_tls
=yes
10740 elif test x
$gcc_cv_as != x
; then
10741 echo "$conftest_s" > conftest.s
10742 if { ac_try
='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }
10751 echo "configure: failed program was" >&5
10754 rm -f conftest.o conftest.s
10757 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10758 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10759 if test $gcc_cv_as_tls = yes; then
10761 cat >>confdefs.h
<<\_ACEOF
10762 #define HAVE_AS_TLS 1
10768 # Target-specific assembler checks.
10771 # All TARGET_ABI_OSF targets.
10772 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
10773 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10774 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10775 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 gcc_cv_as_alpha_explicit_relocs
=no
10779 if test $in_tree_gas = yes; then
10780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10781 then gcc_cv_as_alpha_explicit_relocs
=yes
10783 elif test x
$gcc_cv_as != x
; then
10784 echo ' .set nomacro
10786 extbl $3, $2, $3 !lituse_bytoff!1
10787 ldq $2, a($29) !literal!1
10788 ldq $4, b($29) !literal!2
10789 ldq_u $3, 0($2) !lituse_base!1
10790 ldq $27, f($29) !literal!5
10791 jsr $26, ($27), f !lituse_jsr!5
10792 ldah $29, 0($26) !gpdisp!3
10793 lda $0, c($29) !gprel
10794 ldah $1, d($29) !gprelhigh
10795 lda $1, d($1) !gprellow
10796 lda $29, 0($29) !gpdisp!3' > conftest.s
10797 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }
10804 gcc_cv_as_alpha_explicit_relocs
=yes
10806 echo "configure: failed program was" >&5
10809 rm -f conftest.o conftest.s
10812 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10813 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10814 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10816 cat >>confdefs.h
<<\_ACEOF
10817 #define HAVE_AS_EXPLICIT_RELOCS 1
10824 echo "$as_me:$LINENO: checking assembler for .register" >&5
10825 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10826 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 gcc_cv_as_sparc_register_op
=no
10830 if test x
$gcc_cv_as != x
; then
10831 echo '.register %g2, #scratch' > conftest.s
10832 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; }
10839 gcc_cv_as_sparc_register_op
=yes
10841 echo "configure: failed program was" >&5
10844 rm -f conftest.o conftest.s
10847 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10848 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10849 if test $gcc_cv_as_sparc_register_op = yes; then
10851 cat >>confdefs.h
<<\_ACEOF
10852 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10857 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10858 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10859 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 gcc_cv_as_sparc_relax
=no
10863 if test x
$gcc_cv_as != x
; then
10864 echo '.text' > conftest.s
10865 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }
10872 gcc_cv_as_sparc_relax
=yes
10874 echo "configure: failed program was" >&5
10877 rm -f conftest.o conftest.s
10880 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10881 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10882 if test $gcc_cv_as_sparc_relax = yes; then
10884 cat >>confdefs.h
<<\_ACEOF
10885 #define HAVE_AS_RELAX_OPTION 1
10890 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10891 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10892 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 gcc_cv_as_sparc_ua_pcrel
=no
10896 if test x
$gcc_cv_as != x
; then
10903 .uaword %r_disp32(foo)' > conftest.s
10904 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }
10911 if test x
$gcc_cv_ld != x \
10912 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
10913 gcc_cv_as_sparc_ua_pcrel
=yes
10917 echo "configure: failed program was" >&5
10920 rm -f conftest.o conftest.s
10923 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10924 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10925 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10927 cat >>confdefs.h
<<\_ACEOF
10928 #define HAVE_AS_SPARC_UA_PCREL 1
10932 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10933 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10934 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 gcc_cv_as_sparc_ua_pcrel_hidden
=no
10938 if test x
$gcc_cv_as != x
; then
10942 .uaword %r_disp32(foo)
10943 .byte 0x32, 0x33, 0x34
10947 .skip 4' > conftest.s
10948 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }
10955 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
10956 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
10957 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
10958 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
10959 if $gcc_cv_objdump -R conftest
2> /dev
/null \
10960 |
grep 'DISP32' > /dev
/null
2>&1; then
10963 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
10968 echo "configure: failed program was" >&5
10971 rm -f conftest.o conftest.s
10974 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10975 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10976 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10978 cat >>confdefs.h
<<\_ACEOF
10979 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10984 fi # unaligned pcrel relocs
10986 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10987 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10988 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 gcc_cv_as_sparc_offsetable_lo10
=no
10992 if test x
$gcc_cv_as != x
; then
10994 or %g1, %lo(ab) + 12, %g1
10995 or %g1, %lo(ab + 12), %g1' > conftest.s
10996 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }
11003 if test x
$gcc_cv_objdump != x \
11004 && %gcc_cv_objdump
-s -j .text conftest.o
2> /dev
/null \
11005 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
11006 gcc_cv_as_offsetable_lo10
=yes
11009 echo "configure: failed program was" >&5
11012 rm -f conftest.o conftest.s
11015 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11016 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11017 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11019 cat >>confdefs.h
<<\_ACEOF
11020 #define HAVE_AS_OFFSETABLE_LO10 1
11026 i
[34567]86-*-* | x86_64-
*-*)
11027 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11028 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11029 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 gcc_cv_as_ix86_filds_fists
=no
11033 if test $in_tree_gas = yes; then
11034 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11035 then gcc_cv_as_ix86_filds_fists
=yes
11037 elif test x
$gcc_cv_as != x
; then
11038 echo 'filds mem; fists mem' > conftest.s
11039 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }
11046 gcc_cv_as_ix86_filds_fists
=yes
11048 echo "configure: failed program was" >&5
11051 rm -f conftest.o conftest.s
11054 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11055 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11056 if test $gcc_cv_as_ix86_filds_fists = yes; then
11058 cat >>confdefs.h
<<\_ACEOF
11059 #define HAVE_GAS_FILDS_FISTS 1
11064 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11065 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11066 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 gcc_cv_as_ix86_cmov_sun_syntax
=no
11070 if test x
$gcc_cv_as != x
; then
11071 echo 'cmovl.l %edx, %eax' > conftest.s
11072 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }
11079 gcc_cv_as_ix86_cmov_sun_syntax
=yes
11081 echo "configure: failed program was" >&5
11084 rm -f conftest.o conftest.s
11087 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11088 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11089 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11091 cat >>confdefs.h
<<\_ACEOF
11092 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11097 # This one is used unconditionally by i386.[ch]; it is to be defined
11098 # to 1 if the feature is present, 0 otherwise.
11099 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11100 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11101 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 gcc_cv_as_ix86_gotoff_in_data
=no
11105 if test $in_tree_gas = yes; then
11106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11107 then gcc_cv_as_ix86_gotoff_in_data
=yes
11109 elif test x
$gcc_cv_as != x
; then
11114 .long .L0@GOTOFF' > conftest.s
11115 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }
11122 gcc_cv_as_ix86_gotoff_in_data
=yes
11124 echo "configure: failed program was" >&5
11127 rm -f conftest.o conftest.s
11130 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11131 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11134 cat >>confdefs.h
<<_ACEOF
11135 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11141 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11142 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11143 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
11147 if test $in_tree_gas = yes; then
11148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11149 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11151 elif test x
$gcc_cv_as != x
; then
11153 addl r15 = @ltoffx(x#), gp
11155 ld8.mov r16 = [r15], x#' > conftest.s
11156 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; }
11163 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11165 echo "configure: failed program was" >&5
11168 rm -f conftest.o conftest.s
11171 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11172 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11173 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11175 cat >>confdefs.h
<<\_ACEOF
11176 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11185 *-*-aix) conftest_s
=' .csect .textPR';;
11186 *) conftest_s
=' .text';;
11188 conftest_s
="$conftest_s
11191 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11192 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11193 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 gcc_cv_as_powerpc_mfcrf
=no
11197 if test $in_tree_gas = yes; then
11198 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11199 then gcc_cv_as_powerpc_mfcrf
=yes
11201 elif test x
$gcc_cv_as != x
; then
11202 echo "$conftest_s" > conftest.s
11203 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }
11210 gcc_cv_as_powerpc_mfcrf
=yes
11212 echo "configure: failed program was" >&5
11215 rm -f conftest.o conftest.s
11218 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11219 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11220 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11222 cat >>confdefs.h
<<\_ACEOF
11223 #define HAVE_AS_MFCRF 1
11230 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11231 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11232 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 gcc_cv_as_mips_explicit_relocs
=no
11236 if test $in_tree_gas = yes; then
11237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11238 then gcc_cv_as_mips_explicit_relocs
=yes
11240 elif test x
$gcc_cv_as != x
; then
11241 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11242 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }
11249 gcc_cv_as_mips_explicit_relocs
=yes
11251 echo "configure: failed program was" >&5
11254 rm -f conftest.o conftest.s
11257 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11258 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11259 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11260 if test x
$target_cpu_default = x
11261 then target_cpu_default
=MASK_EXPLICIT_RELOCS
11262 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11268 # ??? Not all targets support dwarf2 debug_line, even within a version
11269 # of gas. Moreover, we need to emit a valid instruction to trigger any
11270 # info to the output file. So, as supported targets are added to gas 2.11,
11271 # add some instruction here to (also) show we expect this might work.
11272 # ??? Once 2.11 is released, probably need to add first known working
11273 # version to the per-target configury.
11275 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
11276 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
11277 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
11287 if test x
"$insn" != x
; then
11289 .file 1 \"conftest.s\"
11292 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11293 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11294 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 gcc_cv_as_dwarf2_debug_line
=no
11298 if test $in_tree_gas = yes; then
11299 if test $in_tree_gas_is_elf = yes \
11300 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11301 then gcc_cv_as_dwarf2_debug_line
=yes
11303 elif test x
$gcc_cv_as != x
; then
11304 echo "$conftest_s" > conftest.s
11305 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }
11312 # ??? This fails with non-gnu grep. Maybe use objdump?
11313 if grep debug_line conftest.o
> /dev
/null
2>&1; then
11314 gcc_cv_as_dwarf2_debug_line
=yes
11317 echo "configure: failed program was" >&5
11320 rm -f conftest.o conftest.s
11323 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11324 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11327 # The .debug_line file table must be in the exact order that
11328 # we specified the files, since these indices are also used
11329 # by DW_AT_decl_file. Approximate this test by testing if
11330 # the assembler bitches if the same index is assigned twice.
11331 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11332 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11333 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 gcc_cv_as_dwarf2_file_buggy
=no
11337 if test x
$gcc_cv_as != x
; then
11338 echo ' .file 1 "foo.s"
11339 .file 1 "bar.s"' > conftest.s
11340 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }
11347 gcc_cv_as_dwarf2_file_buggy
=yes
11349 echo "configure: failed program was" >&5
11352 rm -f conftest.o conftest.s
11355 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11356 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11359 if test $gcc_cv_as_dwarf2_debug_line = yes \
11360 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
11362 cat >>confdefs.h
<<\_ACEOF
11363 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11368 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11369 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11370 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 gcc_cv_as_gdwarf2_flag
=no
11374 if test $in_tree_gas = yes; then
11375 if test $in_tree_gas_is_elf = yes \
11376 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11377 then gcc_cv_as_gdwarf2_flag
=yes
11379 elif test x
$gcc_cv_as != x
; then
11380 echo "$insn" > conftest.s
11381 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }
11388 gcc_cv_as_gdwarf2_flag
=yes
11390 echo "configure: failed program was" >&5
11393 rm -f conftest.o conftest.s
11396 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11397 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11398 if test $gcc_cv_as_gdwarf2_flag = yes; then
11400 cat >>confdefs.h
<<\_ACEOF
11401 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11406 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11407 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11408 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 gcc_cv_as_gstabs_flag
=no
11412 if test $in_tree_gas = yes; then
11413 if test $in_tree_gas_is_elf = yes \
11414 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11415 then gcc_cv_as_gstabs_flag
=yes
11417 elif test x
$gcc_cv_as != x
; then
11418 echo "$insn" > conftest.s
11419 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }
11426 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11427 # and warns about it, but still exits successfully. So check for
11429 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }
11436 else gcc_cv_as_gstabs_flag
=yes
11439 echo "configure: failed program was" >&5
11442 rm -f conftest.o conftest.s
11445 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11446 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11447 if test $gcc_cv_as_gstabs_flag = yes; then
11449 cat >>confdefs.h
<<\_ACEOF
11450 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11456 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11457 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11458 gcc_cv_ld_ro_rw_mix
=unknown
11459 if test $in_tree_ld = yes ; then
11460 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 \
11461 && test $in_tree_ld_is_elf = yes; then
11462 gcc_cv_ld_ro_rw_mix
=read-write
11464 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
11465 echo '.section myfoosect, "a"' > conftest1.s
11466 echo '.section myfoosect, "aw"' > conftest2.s
11467 echo '.byte 1' >> conftest2.s
11468 echo '.section myfoosect, "a"' > conftest3.s
11469 echo '.byte 0' >> conftest3.s
11470 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
11471 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
11472 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
11473 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11474 conftest2.o conftest3.o
> /dev
/null
2>&1; then
11475 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
11476 | sed -e '/myfoosect/!d' -e N`
11477 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
11478 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
11479 gcc_cv_ld_ro_rw_mix
=read-only
11481 gcc_cv_ld_ro_rw_mix
=read-write
11485 rm -f conftest.
* conftest
[123].
*
11487 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
11489 cat >>confdefs.h
<<\_ACEOF
11490 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11494 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11495 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11497 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11498 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11499 gcc_cv_ld_eh_frame_hdr
=no
11500 if test $in_tree_ld = yes ; then
11501 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 \
11502 && test $in_tree_ld_is_elf = yes; then
11503 gcc_cv_ld_eh_frame_hdr
=yes
11505 elif test x
$gcc_cv_ld != x
; then
11506 # Check if linker supports --eh-frame-hdr option
11507 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
11508 gcc_cv_ld_eh_frame_hdr
=yes
11511 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
11513 cat >>confdefs.h
<<\_ACEOF
11514 #define HAVE_LD_EH_FRAME_HDR 1
11518 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11519 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11521 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11522 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11524 if test $in_tree_ld = yes ; then
11525 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 \
11526 && test $in_tree_ld_is_elf = yes; then
11529 elif test x
$gcc_cv_ld != x
; then
11530 # Check if linker supports -pie option
11531 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
11535 if test x
"$gcc_cv_ld_pie" = xyes
; then
11537 cat >>confdefs.h
<<\_ACEOF
11538 #define HAVE_LD_PIE 1
11542 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11543 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11545 # Miscellaneous target-specific checks.
11548 echo "$as_me:$LINENO: checking whether libgloss uses STARTUP directives consistently" >&5
11549 echo $ECHO_N "checking whether libgloss uses STARTUP directives consistently... $ECHO_C" >&6
11550 gcc_cv_mips_libgloss_startup
=no
11551 gcc_cv_libgloss_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
11552 if test "x$exec_prefix" = xNONE
; then
11553 if test "x$prefix" = xNONE
; then
11554 test_prefix
=/usr
/local
11556 test_prefix
=$prefix
11559 test_prefix
=$exec_prefix
11561 for f
in $gcc_cv_libgloss_srcdir/mips
/idt.ld
$test_prefix/$target_noncanonical/lib
/idt.ld
11563 if grep '^STARTUP' $f > /dev
/null
2>&1; then
11564 gcc_cv_mips_libgloss_startup
=yes
11568 if test x
"$gcc_cv_mips_libgloss_startup" = xyes
; then
11570 cat >>confdefs.h
<<\_ACEOF
11571 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
11575 echo "$as_me:$LINENO: result: $gcc_cv_mips_libgloss_startup" >&5
11576 echo "${ECHO_T}$gcc_cv_mips_libgloss_startup" >&6
11580 if test x
$with_sysroot = x
&& test x
$host = x
$target \
11581 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11583 cat >>confdefs.h
<<_ACEOF
11584 #define PREFIX_INCLUDE_DIR "$prefix/include"
11589 # Figure out what language subdirectories are present.
11590 # Look if the user specified --enable-languages="..."; if not, use
11591 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11592 # go away some day.
11593 # NB: embedded tabs in this IF block -- do not untabify
11594 if test x
"${enable_languages+set}" != xset
; then
11595 if test x
"${LANGUAGES+set}" = xset
; then
11596 enable_languages
="${LANGUAGES}"
11597 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11598 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11601 enable_languages
=all
11604 if test x
"${enable_languages}" = x \
11605 ||
test x
"${enable_languages}" = xyes
;
11607 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11608 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11609 { (exit 1); exit 1; }; }
11612 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11614 # First scan to see if an enabled language requires some other language.
11615 # We assume that a given config-lang.in will list all the language
11616 # front ends it requires, even if some are required indirectly.
11617 for lang
in ${srcdir}/*/config-lang.
in
11620 # The odd quoting in the next line works around
11621 # an apparent bug in bash 1.12 on linux.
11622 ${srcdir}/[*]/config-lang.
in)
11625 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11626 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11627 for other
in $this_lang_requires
11629 case ,${enable_languages}, in
11635 enable_languages
="$enable_languages,$other"
11643 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11646 for lang
in ${srcdir}/*/config-lang.
in
11649 # The odd quoting in the next line works around
11650 # an apparent bug in bash 1.12 on linux.
11651 ${srcdir}/[*]/config-lang.
in) ;;
11653 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11654 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11655 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11656 if test "x$lang_alias" = x
11658 echo "$lang doesn't set \$language." 1>&2
11661 case ${build_by_default},${enable_languages}, in
11662 *,$lang_alias,*) add_this_lang
=yes ;;
11663 no
,*) add_this_lang
=no
;;
11664 *,all
,*) add_this_lang
=yes ;;
11665 *) add_this_lang
=no
;;
11667 found_languages
="${found_languages} ${lang_alias}"
11668 if test x
"${add_this_lang}" = xyes
; then
11670 ${srcdir}/ada
/config-lang.
in)
11671 if test x
$have_gnat = xyes
; then
11672 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11676 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11685 for expected_language
in ${expected_languages} ..
11687 if test "${expected_language}" != ..
; then
11688 missing_language
="${expected_language}"
11689 if test "${expected_language}" = "c" \
11690 ||
test "${expected_language}" = "all"; then
11693 for found_language
in ${found_languages} ..
11695 if test "${found_language}" != ..
; then
11696 if test "${expected_language}" = "${found_language}"; then
11701 if test "x${missing_language}" != x
; then
11702 missing_languages
="${missing_languages} ${missing_language}"
11707 if test "x$missing_languages" != x
; then
11708 { { echo "$as_me:$LINENO: error:
11709 The following requested languages were not found:${missing_languages}
11710 The following languages were available: c${found_languages}" >&5
11711 echo "$as_me: error:
11712 The following requested languages were not found:${missing_languages}
11713 The following languages were available: c${found_languages}" >&2;}
11714 { (exit 1); exit 1; }; }
11717 # Make gthr-default.h if we have a thread file.
11719 if test $thread_file != single
; then
11720 rm -f gthr-default.h
11721 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11722 gthread_flags
=-DHAVE_GTHR_DEFAULT
11726 # Find out what GC implementation we want, or may, use.
11728 # Check whether --with-gc or --without-gc was given.
11729 if test "${with_gc+set}" = set; then
11732 simple | page | zone
)
11736 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11737 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11738 { (exit 1); exit 1; }; }
11745 echo "Using $GGC for garbage collection."
11747 # Use the system's zlib library.
11749 zlibinc
="-I\$(srcdir)/../zlib"
11751 # Check whether --with-system-zlib or --without-system-zlib was given.
11752 if test "${with_system_zlib+set}" = set; then
11753 withval
="$with_system_zlib"
11762 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11763 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11764 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11765 if test "${enable_maintainer_mode+set}" = set; then
11766 enableval
="$enable_maintainer_mode"
11767 maintainer_mode
=$enableval
11772 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11773 echo "${ECHO_T}$maintainer_mode" >&6
11775 if test "$maintainer_mode" = "yes"; then
11781 # Make empty files to contain the specs and options for each language.
11782 # Then add #include lines to for a compiler that has specs and/or options.
11787 for subdir
in .
$subdirs
11789 if test -f $srcdir/$subdir/lang.opt
; then
11790 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
11792 if test -f $srcdir/$subdir/lang-specs.h
; then
11793 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11795 if test -f $srcdir/$subdir/$subdir-tree.def
; then
11796 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11800 # These (without "all_") are set in each config-lang.in.
11801 # `language' must be a single word so is spelled singularly.
11803 all_boot_languages
=
11806 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11807 # List of language makefile fragments.
11808 all_lang_makefrags
=
11809 # List of language subdirectory makefiles. Deprecated.
11810 all_lang_makefiles
=
11811 # Files for gengtype
11812 all_gtfiles
="$target_gtfiles"
11813 # Files for gengtype with language
11814 all_gtfiles_files_langs
=
11815 all_gtfiles_files_files
=
11817 # Add the language fragments.
11818 # Languages are added via two mechanisms. Some information must be
11819 # recorded in makefile variables, these are defined in config-lang.in.
11820 # We accumulate them and plug them into the main Makefile.
11821 # The other mechanism is a set of hooks for each of the main targets
11822 # like `clean', `install', etc.
11824 language_hooks
="Make-hooks"
11834 .
${srcdir}/$s/config-lang.
in
11835 if test "x$language" = x
11837 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11840 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11841 if test -f ${srcdir}/$s/Makefile.
in
11842 then all_lang_makefiles
="$s/Makefile"
11844 all_languages
="$all_languages $language"
11845 if test "x$boot_language" = xyes
11847 all_boot_languages
="$all_boot_languages $language"
11849 all_compilers
="$all_compilers $compilers"
11850 all_stagestuff
="$all_stagestuff $stagestuff"
11851 all_outputs
="$all_outputs $outputs"
11852 all_gtfiles
="$all_gtfiles $gtfiles"
11855 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11856 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11860 # Pick up gtfiles for c
11863 .
${srcdir}/c-config-lang.
in
11864 all_gtfiles
="$all_gtfiles $gtfiles"
11867 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11868 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11872 for language
in $all_languages
11874 check_languages
="$check_languages check-$language"
11877 # We link each language in with a set of hooks, reached indirectly via
11882 target_list
="all.build all.cross start.encap rest.encap tags \
11883 install-normal install-common install-man \
11885 mostlyclean clean distclean maintainer-clean \
11886 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11887 for t
in $target_list
11890 for lang
in $all_languages
11894 echo "lang.$t: $x" >> Make-hooks
11899 echo "dir ." > .gdbinit
11900 echo "dir ${srcdir}" >> .gdbinit
11901 if test x
$gdb_needs_out_file_path = xyes
11903 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11905 if test "x$subdirs" != x
; then
11908 echo "dir ${srcdir}/$s" >> .gdbinit
11911 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11913 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11914 # absolute path for gcc_tooldir based on inserting the number of up-directory
11915 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11916 # $(libsubdir)/@(unlibsubdir) based path.
11917 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11918 # make and thus we'd get different behavior depending on where we built the
11920 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
11921 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11923 # An explanation of the sed strings:
11924 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11925 # -e 's|/$||' match a trailing forward slash and eliminates it
11926 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11927 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11929 # (*) Note this pattern overwrites the first character of the string
11930 # with a forward slash if one is not already present. This is not a
11931 # problem because the exact names of the sub-directories concerned is
11932 # unimportant, just the number of them matters.
11934 # The practical upshot of these patterns is like this:
11936 # prefix exec_prefix result
11937 # ------ ----------- ------
11938 # /foo /foo/bar ../
11939 # /foo/ /foo/bar ../
11940 # /foo /foo/bar/ ../
11941 # /foo/ /foo/bar/ ../
11942 # /foo /foo/bar/ugg ../../
11945 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11950 # Find a directory in which to install a shared libgcc.
11952 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11953 if test "${enable_version_specific_runtime_libs+set}" = set; then
11954 enableval
="$enable_version_specific_runtime_libs"
11959 # Check whether --with-slibdir or --without-slibdir was given.
11960 if test "${with_slibdir+set}" = set; then
11961 withval
="$with_slibdir"
11962 slibdir
="$with_slibdir"
11964 if test "${enable_version_specific_runtime_libs+set}" = set; then
11965 slibdir
='$(libsubdir)'
11966 elif test "$host" != "$target"; then
11967 slibdir
='$(build_tooldir)/lib'
11969 slibdir
='$(libdir)'
11974 objdir
=`${PWDCMD-pwd}`
11977 # Substitute configuration variables
12049 if test x
${build} = x
${host} ; then
12050 if test x
${host} = x
${target} ; then
12051 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12053 echo "Links are now set up to build a cross-compiler" 1>&2
12054 echo " from ${host} to ${target}." 1>&2
12057 if test x
${host} = x
${target} ; then
12058 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12059 echo " for ${target}." 1>&2
12061 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12062 echo " from ${host} to ${target}." 1>&2
12066 # Configure the subdirectories
12067 # AC_CONFIG_SUBDIRS($subdirs)
12069 # Create the Makefile
12070 # and configure language subdirectories
12071 ac_config_files
="$ac_config_files $all_outputs"
12072 ac_config_commands
="$ac_config_commands default"
12073 cat >confcache
<<\_ACEOF
12074 # This file is a shell script that caches the results of configure
12075 # tests run on this system so they can be shared between configure
12076 # scripts and configure runs, see configure's option --config-cache.
12077 # It is not useful on other systems. If it contains results you don't
12078 # want to keep, you may remove or edit it.
12080 # config.status only pays attention to the cache file if you give it
12081 # the --recheck option to rerun configure.
12083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12085 # following values.
12089 # The following way of writing the cache mishandles newlines in values,
12090 # but we know of no workaround that is simple, portable, and efficient.
12091 # So, don't put newlines in cache variables' values.
12092 # Ultrix sh set writes to stderr and can't be redirected directly,
12093 # and sets the high bit in the cache file unless we assign to the vars.
12096 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12098 # `set' does not quote correctly, so add quotes (double-quote
12099 # substitution turns \\\\ into \\, and sed turns \\ into \).
12102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12105 # `set' quotes correctly as required by POSIX, so do not add quotes.
12107 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12114 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12116 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12118 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
12119 if test -w $cache_file; then
12120 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12121 cat confcache
>$cache_file
12123 echo "not updating unwritable cache $cache_file"
12128 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12129 # Let make expand exec_prefix.
12130 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12132 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12133 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12134 # trailing colons and then remove the whole line if VPATH becomes empty
12135 # (actually we leave an empty line to preserve line numbers).
12136 if test "x$srcdir" = x.
; then
12137 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12138 s/:*\$(srcdir):*/:/;
12139 s/:*\${srcdir}:*/:/;
12141 s/^\([^=]*=[ ]*\):*/\1/;
12147 DEFS
=-DHAVE_CONFIG_H
12151 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12152 # 1. Remove the extension, and $U if already installed.
12153 ac_i
=`echo "$ac_i" |
12154 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12156 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
12157 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
12159 LIBOBJS
=$ac_libobjs
12161 LTLIBOBJS
=$ac_ltlibobjs
12165 : ${CONFIG_STATUS=./config.status}
12166 ac_clean_files_save
=$ac_clean_files
12167 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12168 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12169 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12170 cat >$CONFIG_STATUS <<_ACEOF
12172 # Generated by $as_me.
12173 # Run this file to recreate the current configuration.
12174 # Compiler output produced by configure, useful for debugging
12175 # configure, is in config.log if it exists.
12178 ac_cs_recheck=false
12180 SHELL=\${CONFIG_SHELL-$SHELL}
12183 cat >>$CONFIG_STATUS <<\_ACEOF
12184 ## --------------------- ##
12185 ## M4sh Initialization. ##
12186 ## --------------------- ##
12188 # Be Bourne compatible
12189 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12192 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12193 # is contrary to our usage. Disable this feature.
12194 alias -g '${1+"$@"}'='"$@"'
12195 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12199 # Support unset when possible.
12200 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12207 # Work around bugs in pre-3.0 UWIN ksh.
12208 $as_unset ENV MAIL MAILPATH
12215 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12216 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12217 LC_TELEPHONE LC_TIME
12219 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12220 eval $as_var=C
; export $as_var
12226 # Required to use basename.
12227 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12233 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
12234 as_basename
=basename
12240 # Name of the executable.
12241 as_me
=`$as_basename "$0" ||
12242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12243 X"$0" : 'X\(//\)$' \| \
12244 X"$0" : 'X\(/\)$' \| \
12245 . : '\(.\)' 2>/dev/null ||
12247 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12248 /^X\/\(\/\/\)$/{ s//\1/; q; }
12249 /^X\/\(\/\).*/{ s//\1/; q; }
12253 # PATH needs CR, and LINENO needs CR and PATH.
12254 # Avoid depending upon Character Ranges.
12255 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12256 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12257 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12258 as_cr_digits
='0123456789'
12259 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12261 # The user is always right.
12262 if test "${PATH_SEPARATOR+set}" != set; then
12263 echo "#! /bin/sh" >conf$$.sh
12264 echo "exit 0" >>conf$$.sh
12266 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12275 as_lineno_1
=$LINENO
12276 as_lineno_2
=$LINENO
12277 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
12278 test "x$as_lineno_1" != "x$as_lineno_2" &&
12279 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
12280 # Find who we are. Look in the path if we contain no path at all
12283 *[\\/]* ) as_myself
=$0 ;;
12284 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12285 for as_dir
in $PATH
12288 test -z "$as_dir" && as_dir
=.
12289 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12294 # We did not find ourselves, most probably we were run as `sh COMMAND'
12295 # in which case we are not to be found in the path.
12296 if test "x$as_myself" = x
; then
12299 if test ! -f "$as_myself"; then
12300 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12301 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12302 { (exit 1); exit 1; }; }
12304 case $CONFIG_SHELL in
12306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12307 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
12310 test -z "$as_dir" && as_dir
=.
12311 for as_base
in sh bash ksh sh5
; do
12314 if ("$as_dir/$as_base" -c '
12315 as_lineno_1=$LINENO
12316 as_lineno_2=$LINENO
12317 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12318 test "x$as_lineno_1" != "x$as_lineno_2" &&
12319 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
12320 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
12321 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
12322 CONFIG_SHELL
=$as_dir/$as_base
12323 export CONFIG_SHELL
12324 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12332 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12333 # uniformly replaced by the line number. The first 'sed' inserts a
12334 # line-number line before each line; the second 'sed' does the real
12335 # work. The second script uses 'N' to pair each line-number line
12336 # with the numbered line, and appends trailing '-' during
12337 # substitution so that $LINENO is not a special case at line end.
12338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12339 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12340 sed '=' <$as_myself |
12345 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12348 s,^['$as_cr_digits']*\n,,
12349 ' >$as_me.lineno
&&
12350 chmod +x
$as_me.lineno ||
12351 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12352 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12353 { (exit 1); exit 1; }; }
12355 # Don't try to exec as it changes $[0], causing all sort of problems
12356 # (the dirname of $[0] is not the place where we might find the
12357 # original and so on. Autoconf is especially sensible to this).
12359 # Exit status is that of the last command.
12364 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12365 *c
*,-n*) ECHO_N
= ECHO_C
='
12367 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12368 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12371 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12377 rm -f conf$$ conf$$.exe conf$$.
file
12379 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12380 # We could just check for DJGPP; but this test a) works b) is more generic
12381 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12382 if test -f conf$$.exe
; then
12383 # Don't use ln at all; we don't have any links
12388 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12393 rm -f conf$$ conf$$.exe conf$$.
file
12395 if mkdir
-p .
2>/dev
/null
; then
12401 as_executable_p
="test -f"
12403 # Sed expression to map a string onto a valid CPP name.
12404 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12406 # Sed expression to map a string onto a valid variable name.
12407 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12411 # We need space, tab and new line, in precisely that order.
12421 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12422 # report actual input values of CONFIG_FILES etc. instead of their
12423 # values after options handling. Logging --version etc. is OK.
12427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12428 ## Running $as_me. ##
12433 This file was extended by $as_me, which was
12434 generated by GNU Autoconf 2.57. Invocation command line was
12436 CONFIG_FILES = $CONFIG_FILES
12437 CONFIG_HEADERS = $CONFIG_HEADERS
12438 CONFIG_LINKS = $CONFIG_LINKS
12439 CONFIG_COMMANDS = $CONFIG_COMMANDS
12443 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12447 # Files that config.status was made for.
12448 if test -n "$ac_config_files"; then
12449 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12452 if test -n "$ac_config_headers"; then
12453 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12456 if test -n "$ac_config_links"; then
12457 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12460 if test -n "$ac_config_commands"; then
12461 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12464 cat >>$CONFIG_STATUS <<\_ACEOF
12467 \`$as_me' instantiates files from templates according to the
12468 current configuration.
12470 Usage: $0 [OPTIONS] [FILE]...
12472 -h, --help print this help, then exit
12473 -V, --version print version number, then exit
12474 -q, --quiet do not print progress messages
12475 -d, --debug don't remove temporary files
12476 --recheck update $as_me by reconfiguring in the same conditions
12477 --file=FILE[:TEMPLATE]
12478 instantiate the configuration file FILE
12479 --header=FILE[:TEMPLATE]
12480 instantiate the configuration header FILE
12482 Configuration files:
12485 Configuration headers:
12488 Configuration commands:
12491 Report bugs to <bug-autoconf@gnu.org>."
12494 cat >>$CONFIG_STATUS <<_ACEOF
12497 configured by $0, generated by GNU Autoconf 2.57,
12498 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12500 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12501 Free Software Foundation, Inc.
12502 This config.status script is free software; the Free Software Foundation
12503 gives unlimited permission to copy, distribute and modify it."
12507 cat >>$CONFIG_STATUS <<\_ACEOF
12508 # If no file are specified by the user, then we need to provide default
12509 # value. By we need to know if files were specified by the user.
12515 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12516 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12524 *) # This is not an option, so the user has probably given explicit
12527 ac_need_defaults
=false
;;
12531 # Handling of the options.
12533 cat >>$CONFIG_STATUS <<\_ACEOF
12534 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12536 --version |
--vers* |
-V )
12537 echo "$ac_cs_version"; exit 0 ;;
12539 # Conflict between --help and --header
12540 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12541 Try \`$0 --help' for more information." >&5
12542 echo "$as_me: error: ambiguous option: $1
12543 Try \`$0 --help' for more information." >&2;}
12544 { (exit 1); exit 1; }; };;
12545 --help |
--hel |
-h )
12546 echo "$ac_cs_usage"; exit 0 ;;
12547 --debug |
--d* |
-d )
12549 --file |
--fil |
--fi |
--f )
12551 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12552 ac_need_defaults
=false
;;
12553 --header |
--heade |
--head |
--hea )
12555 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12556 ac_need_defaults
=false
;;
12557 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12558 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12561 # This is an error.
12562 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12563 Try \`$0 --help' for more information." >&5
12564 echo "$as_me: error: unrecognized option: $1
12565 Try \`$0 --help' for more information." >&2;}
12566 { (exit 1); exit 1; }; } ;;
12568 *) ac_config_targets
="$ac_config_targets $1" ;;
12574 ac_configure_extra_args
=
12576 if $ac_cs_silent; then
12578 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12582 cat >>$CONFIG_STATUS <<_ACEOF
12583 if \$ac_cs_recheck; then
12584 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12585 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12590 cat >>$CONFIG_STATUS <<_ACEOF
12592 # INIT-COMMANDS section.
12596 symbolic_link='$symbolic_link'
12603 cat >>$CONFIG_STATUS <<\_ACEOF
12604 for ac_config_target
in $ac_config_targets
12606 case "$ac_config_target" in
12607 # Handling of arguments.
12608 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
12609 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12610 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
12611 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12612 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12613 { (exit 1); exit 1; }; };;
12617 # If the user did not use the arguments to specify the items to instantiate,
12618 # then the envvar interface is used. Set only those that are not.
12619 # We use the long form for the default assignment because of an extremely
12620 # bizarre bug on SunOS 4.1.3.
12621 if $ac_need_defaults; then
12622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12627 # Have a temporary directory for convenience. Make it in the build tree
12628 # simply because there is no reason to put it here, and in addition,
12629 # creating and moving files from /tmp can sometimes cause problems.
12630 # Create a temporary directory, and hook for its removal unless debugging.
12633 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12634 trap '{ (exit 1); exit 1; }' 1 2 13 15
12637 # Create a (secure) tmp directory for tmp files.
12640 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12641 test -n "$tmp" && test -d "$tmp"
12644 tmp
=.
/confstat$$
-$RANDOM
12645 (umask 077 && mkdir
$tmp)
12648 echo "$me: cannot create a temporary directory in ." >&2
12649 { (exit 1); exit 1; }
12654 cat >>$CONFIG_STATUS <<_ACEOF
12657 # CONFIG_FILES section.
12660 # No need to generate the scripts if there are no CONFIG_FILES.
12661 # This happens for instance when ./config.status config.h
12662 if test -n "\$CONFIG_FILES"; then
12663 # Protect against being on the right side of a sed subst in config.status.
12664 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12665 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12666 s,@SHELL@,$SHELL,;t t
12667 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12668 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12669 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12670 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12671 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12672 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12673 s,@exec_prefix@,$exec_prefix,;t t
12674 s,@prefix@,$prefix,;t t
12675 s,@program_transform_name@,$program_transform_name,;t t
12676 s,@bindir@,$bindir,;t t
12677 s,@sbindir@,$sbindir,;t t
12678 s,@libexecdir@,$libexecdir,;t t
12679 s,@datadir@,$datadir,;t t
12680 s,@sysconfdir@,$sysconfdir,;t t
12681 s,@sharedstatedir@,$sharedstatedir,;t t
12682 s,@localstatedir@,$localstatedir,;t t
12683 s,@libdir@,$libdir,;t t
12684 s,@includedir@,$includedir,;t t
12685 s,@oldincludedir@,$oldincludedir,;t t
12686 s,@infodir@,$infodir,;t t
12687 s,@mandir@,$mandir,;t t
12688 s,@build_alias@,$build_alias,;t t
12689 s,@host_alias@,$host_alias,;t t
12690 s,@target_alias@,$target_alias,;t t
12691 s,@DEFS@,$DEFS,;t t
12692 s,@ECHO_C@,$ECHO_C,;t t
12693 s,@ECHO_N@,$ECHO_N,;t t
12694 s,@ECHO_T@,$ECHO_T,;t t
12695 s,@LIBS@,$LIBS,;t t
12696 s,@build@,$build,;t t
12697 s,@build_cpu@,$build_cpu,;t t
12698 s,@build_vendor@,$build_vendor,;t t
12699 s,@build_os@,$build_os,;t t
12700 s,@host@,$host,;t t
12701 s,@host_cpu@,$host_cpu,;t t
12702 s,@host_vendor@,$host_vendor,;t t
12703 s,@host_os@,$host_os,;t t
12704 s,@target@,$target,;t t
12705 s,@target_cpu@,$target_cpu,;t t
12706 s,@target_vendor@,$target_vendor,;t t
12707 s,@target_os@,$target_os,;t t
12708 s,@build_subdir@,$build_subdir,;t t
12709 s,@host_subdir@,$host_subdir,;t t
12710 s,@target_subdir@,$target_subdir,;t t
12712 s,@CFLAGS@,$CFLAGS,;t t
12713 s,@LDFLAGS@,$LDFLAGS,;t t
12714 s,@CPPFLAGS@,$CPPFLAGS,;t t
12715 s,@ac_ct_CC@,$ac_ct_CC,;t t
12716 s,@EXEEXT@,$EXEEXT,;t t
12717 s,@OBJEXT@,$OBJEXT,;t t
12718 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12719 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12721 s,@GNATBIND@,$GNATBIND,;t t
12722 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12723 s,@strict1_warn@,$strict1_warn,;t t
12724 s,@warn_cflags@,$warn_cflags,;t t
12725 s,@WERROR@,$WERROR,;t t
12726 s,@nocommon_flag@,$nocommon_flag,;t t
12727 s,@EGREP@,$EGREP,;t t
12728 s,@valgrind_path@,$valgrind_path,;t t
12729 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12730 s,@valgrind_command@,$valgrind_command,;t t
12731 s,@coverage_flags@,$coverage_flags,;t t
12732 s,@enable_multilib@,$enable_multilib,;t t
12733 s,@enable_shared@,$enable_shared,;t t
12734 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12735 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12736 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12737 s,@onestep@,$onestep,;t t
12738 s,@SET_MAKE@,$SET_MAKE,;t t
12741 s,@LN_S@,$LN_S,;t t
12742 s,@RANLIB@,$RANLIB,;t t
12743 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12744 s,@INSTALL@,$INSTALL,;t t
12745 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12746 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12747 s,@make_compare_target@,$make_compare_target,;t t
12748 s,@have_mktemp_command@,$have_mktemp_command,;t t
12749 s,@MAKEINFO@,$MAKEINFO,;t t
12750 s,@BUILD_INFO@,$BUILD_INFO,;t t
12751 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12752 s,@FLEX@,$FLEX,;t t
12753 s,@BISON@,$BISON,;t t
12754 s,@stage1_cflags@,$stage1_cflags,;t t
12755 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12756 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12757 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12758 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12759 s,@LIBICONV@,$LIBICONV,;t t
12760 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12761 s,@manext@,$manext,;t t
12762 s,@objext@,$objext,;t t
12763 s,@extra_modes_file@,$extra_modes_file,;t t
12764 s,@FORBUILD@,$FORBUILD,;t t
12765 s,@PACKAGE@,$PACKAGE,;t t
12766 s,@VERSION@,$VERSION,;t t
12767 s,@USE_NLS@,$USE_NLS,;t t
12768 s,@LIBINTL@,$LIBINTL,;t t
12769 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12770 s,@INCINTL@,$INCINTL,;t t
12771 s,@XGETTEXT@,$XGETTEXT,;t t
12772 s,@GMSGFMT@,$GMSGFMT,;t t
12773 s,@POSUB@,$POSUB,;t t
12774 s,@CATALOGS@,$CATALOGS,;t t
12775 s,@CROSS@,$CROSS,;t t
12777 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12778 s,@inhibit_libc@,$inhibit_libc,;t t
12779 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12780 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12781 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12782 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12783 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12784 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12785 s,@libgcc_visibility@,$libgcc_visibility,;t t
12786 s,@gthread_flags@,$gthread_flags,;t t
12788 s,@zlibdir@,$zlibdir,;t t
12789 s,@zlibinc@,$zlibinc,;t t
12790 s,@MAINT@,$MAINT,;t t
12791 s,@gcc_tooldir@,$gcc_tooldir,;t t
12792 s,@dollar@,$dollar,;t t
12793 s,@slibdir@,$slibdir,;t t
12794 s,@objdir@,$objdir,;t t
12795 s,@subdirs@,$subdirs,;t t
12796 s,@srcdir@,$srcdir,;t t
12797 s,@docobjdir@,$docobjdir,;t t
12798 s,@parsedir@,$parsedir,;t t
12799 s,@all_boot_languages@,$all_boot_languages,;t t
12800 s,@all_compilers@,$all_compilers,;t t
12801 s,@all_gtfiles@,$all_gtfiles,;t t
12802 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12803 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12804 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12805 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12806 s,@all_languages@,$all_languages,;t t
12807 s,@all_stagestuff@,$all_stagestuff,;t t
12808 s,@build_exeext@,$build_exeext,;t t
12809 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12810 s,@build_xm_file_list@,$build_xm_file_list,;t t
12811 s,@build_xm_include_list@,$build_xm_include_list,;t t
12812 s,@build_xm_defines@,$build_xm_defines,;t t
12813 s,@check_languages@,$check_languages,;t t
12814 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12815 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12816 s,@cpp_install_dir@,$cpp_install_dir,;t t
12817 s,@xmake_file@,$xmake_file,;t t
12818 s,@tmake_file@,$tmake_file,;t t
12819 s,@extra_headers_list@,$extra_headers_list,;t t
12820 s,@extra_objs@,$extra_objs,;t t
12821 s,@extra_parts@,$extra_parts,;t t
12822 s,@extra_passes@,$extra_passes,;t t
12823 s,@extra_programs@,$extra_programs,;t t
12824 s,@float_h_file@,$float_h_file,;t t
12825 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12826 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12827 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12828 s,@gcc_version@,$gcc_version,;t t
12829 s,@gcc_version_full@,$gcc_version_full,;t t
12830 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12831 s,@host_exeext@,$host_exeext,;t t
12832 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12833 s,@host_xm_file_list@,$host_xm_file_list,;t t
12834 s,@host_xm_include_list@,$host_xm_include_list,;t t
12835 s,@host_xm_defines@,$host_xm_defines,;t t
12836 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12837 s,@install@,$install,;t t
12838 s,@lang_opt_files@,$lang_opt_files,;t t
12839 s,@lang_specs_files@,$lang_specs_files,;t t
12840 s,@lang_tree_files@,$lang_tree_files,;t t
12841 s,@local_prefix@,$local_prefix,;t t
12842 s,@md_file@,$md_file,;t t
12843 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12844 s,@out_file@,$out_file,;t t
12845 s,@out_object_file@,$out_object_file,;t t
12846 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12847 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12848 s,@symbolic_link@,$symbolic_link,;t t
12849 s,@thread_file@,$thread_file,;t t
12850 s,@tm_file_list@,$tm_file_list,;t t
12851 s,@tm_include_list@,$tm_include_list,;t t
12852 s,@tm_defines@,$tm_defines,;t t
12853 s,@tm_p_file_list@,$tm_p_file_list,;t t
12854 s,@tm_p_include_list@,$tm_p_include_list,;t t
12855 s,@xm_file_list@,$xm_file_list,;t t
12856 s,@xm_include_list@,$xm_include_list,;t t
12857 s,@xm_defines@,$xm_defines,;t t
12858 s,@target_noncanonical@,$target_noncanonical,;t t
12859 s,@c_target_objs@,$c_target_objs,;t t
12860 s,@cxx_target_objs@,$cxx_target_objs,;t t
12861 s,@target_cpu_default@,$target_cpu_default,;t t
12862 s,@LIBOBJS@,$LIBOBJS,;t t
12863 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12864 /@language_hooks@/r $language_hooks
12865 s,@language_hooks@,,;t t
12870 cat >>$CONFIG_STATUS <<\_ACEOF
12871 # Split the substitutions into bite-sized pieces for seds with
12872 # small command number limits, like on Digital OSF/1 and HP-UX.
12873 ac_max_sed_lines
=48
12874 ac_sed_frag
=1 # Number of current file.
12875 ac_beg
=1 # First line for current file.
12876 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12879 while $ac_more_lines; do
12880 if test $ac_beg -gt 1; then
12881 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12883 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12885 if test ! -s $tmp/subs.frag
; then
12886 ac_more_lines
=false
12888 # The purpose of the label and of the branching condition is to
12889 # speed up the sed processing (if there are no `@' at all, there
12890 # is no need to browse any of the substitutions).
12891 # These are the two extra sed commands mentioned above.
12893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12894 if test -z "$ac_sed_cmds"; then
12895 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12897 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12899 ac_sed_frag
=`expr $ac_sed_frag + 1`
12901 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12904 if test -z "$ac_sed_cmds"; then
12907 fi # test -n "$CONFIG_FILES"
12910 cat >>$CONFIG_STATUS <<\_ACEOF
12911 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12914 - |
*:- |
*:-:* ) # input from stdin
12916 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12917 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12918 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12919 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12920 * ) ac_file_in
=$ac_file.
in ;;
12923 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12924 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12926 X"$ac_file" : 'X\(//\)[^/]' \| \
12927 X"$ac_file" : 'X\(//\)$' \| \
12928 X"$ac_file" : 'X\(/\)' \| \
12929 . : '\(.\)' 2>/dev/null ||
12931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12933 /^X\(\/\/\)$/{ s//\1/; q; }
12934 /^X\(\/\).*/{ s//\1/; q; }
12936 { if $as_mkdir_p; then
12941 while test ! -d "$as_dir"; do
12942 as_dirs
="$as_dir $as_dirs"
12943 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12945 X"$as_dir" : 'X\(//\)[^/]' \| \
12946 X"$as_dir" : 'X\(//\)$' \| \
12947 X"$as_dir" : 'X\(/\)' \| \
12948 . : '\(.\)' 2>/dev/null ||
12950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12952 /^X\(\/\/\)$/{ s//\1/; q; }
12953 /^X\(\/\).*/{ s//\1/; q; }
12956 test ! -n "$as_dirs" || mkdir
$as_dirs
12957 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12959 { (exit 1); exit 1; }; }; }
12963 if test "$ac_dir" != .
; then
12964 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12965 # A "../" for each directory in $ac_dir_suffix.
12966 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12968 ac_dir_suffix
= ac_top_builddir
=
12972 .
) # No --srcdir option. We are building in place.
12974 if test -z "$ac_top_builddir"; then
12977 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12979 [\\/]* | ?
:[\\/]* ) # Absolute path.
12980 ac_srcdir
=$srcdir$ac_dir_suffix;
12981 ac_top_srcdir
=$srcdir ;;
12982 *) # Relative path.
12983 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12984 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12986 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12988 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12989 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12990 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12991 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12995 if test x
"$ac_file" != x-
; then
12996 { echo "$as_me:$LINENO: creating $ac_file" >&5
12997 echo "$as_me: creating $ac_file" >&6;}
13000 # Let's still pretend it is `configure' which instantiates (i.e., don't
13001 # use $as_me), people would be surprised to read:
13002 # /* config.h. Generated by config.status. */
13003 if test x
"$ac_file" = x-
; then
13006 configure_input
="$ac_file. "
13008 configure_input
=$configure_input"Generated from `echo $ac_file_in |
13009 sed 's,.*/,,'` by configure."
13011 # First look for the input files in the build tree, otherwise in the
13013 ac_file_inputs
=`IFS=:
13014 for f in $ac_file_in; do
13016 -) echo $tmp/stdin ;;
13018 # Absolute (can't be DOS-style, as IFS=:)
13019 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13020 echo "$as_me: error: cannot find input file: $f" >&2;}
13021 { (exit 1); exit 1; }; }
13024 if test -f "$f"; then
13027 elif test -f "$srcdir/$f"; then
13032 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13033 echo "$as_me: error: cannot find input file: $f" >&2;}
13034 { (exit 1); exit 1; }; }
13037 done` ||
{ (exit 1); exit 1; }
13039 cat >>$CONFIG_STATUS <<_ACEOF
13043 cat >>$CONFIG_STATUS <<\_ACEOF
13045 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13046 s
,@configure_input@
,$configure_input,;t t
13047 s
,@srcdir@
,$ac_srcdir,;t t
13048 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
13049 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13050 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
13051 s
,@builddir@
,$ac_builddir,;t t
13052 s
,@abs_builddir@
,$ac_abs_builddir,;t t
13053 s
,@top_builddir@
,$ac_top_builddir,;t t
13054 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
13055 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13057 if test x"$ac_file" != x-; then
13058 mv $tmp/out $ac_file
13066 cat >>$CONFIG_STATUS <<\_ACEOF
13069 # CONFIG_HEADER section.
13072 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13073 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13075 # ac_d sets the value in "#define NAME VALUE" lines.
13076 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13077 ac_dB
='[ ].*$,\1#\2'
13080 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13081 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13082 ac_uB
='$,\1#\2define\3'
13086 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13089 - |
*:- |
*:-:* ) # input from stdin
13091 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13092 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13093 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13094 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13095 * ) ac_file_in
=$ac_file.
in ;;
13098 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
13099 echo "$as_me: creating $ac_file" >&6;}
13101 # First look for the input files in the build tree, otherwise in the
13103 ac_file_inputs
=`IFS=:
13104 for f in $ac_file_in; do
13106 -) echo $tmp/stdin ;;
13108 # Absolute (can't be DOS-style, as IFS=:)
13109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13110 echo "$as_me: error: cannot find input file: $f" >&2;}
13111 { (exit 1); exit 1; }; }
13114 if test -f "$f"; then
13117 elif test -f "$srcdir/$f"; then
13122 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13123 echo "$as_me: error: cannot find input file: $f" >&2;}
13124 { (exit 1); exit 1; }; }
13127 done` ||
{ (exit 1); exit 1; }
13128 # Remove the trailing spaces.
13129 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13133 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13134 # `conftest.undefs', that substitutes the proper values into
13135 # config.h.in to produce config.h. The first handles `#define'
13136 # templates, and the second `#undef' templates.
13137 # And first: Protect against being on the right side of a sed subst in
13138 # config.status. Protect against being in an unquoted here document
13139 # in config.status.
13140 rm -f conftest.defines conftest.undefs
13141 # Using a here document instead of a string reduces the quoting nightmare.
13142 # Putting comments in sed scripts is not portable.
13144 # `end' is used to avoid that the second main sed command (meant for
13145 # 0-ary CPP macros) applies to n-ary macro definitions.
13146 # See the Autoconf documentation for `clear'.
13147 cat >confdef2sed.
sed <<\_ACEOF
13152 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13154 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13157 # If some macros were called several times there might be several times
13158 # the same #defines, which is useless. Nevertheless, we may not want to
13159 # sort them, since we want the *last* AC-DEFINE to be honored.
13160 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13161 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13162 rm -f confdef2sed.sed
13164 # This sed command replaces #undef with comments. This is necessary, for
13165 # example, in the case of _POSIX_SOURCE, which is predefined and required
13166 # on some systems where configure will not decide to define it.
13167 cat >>conftest.undefs <<\_ACEOF
13168 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13171 # Break up conftest.defines because some shells have a limit on the size
13172 # of here documents, and old seds have small limits too (100 cmds).
13173 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13174 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13175 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13176 echo ' :' >>$CONFIG_STATUS
13177 rm -f conftest.tail
13178 while grep . conftest.defines >/dev/null
13180 # Write a limited-size here document to $tmp/defines.sed.
13181 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13182 # Speed up: don't consider the non `#define' lines.
13183 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13184 # Work around the forget-to-reset-the-flag bug.
13185 echo 't clr' >>$CONFIG_STATUS
13186 echo ': clr' >>$CONFIG_STATUS
13187 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13189 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13191 mv $tmp/out $tmp/in
13193 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13194 rm -f conftest.defines
13195 mv conftest.
tail conftest.defines
13197 rm -f conftest.defines
13198 echo ' fi # grep' >>$CONFIG_STATUS
13199 echo >>$CONFIG_STATUS
13201 # Break up conftest.undefs because some shells have a limit on the size
13202 # of here documents, and old seds have small limits too (100 cmds).
13203 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13204 rm -f conftest.
tail
13205 while grep . conftest.undefs
>/dev
/null
13207 # Write a limited-size here document to $tmp/undefs.sed.
13208 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13209 # Speed up: don't consider the non
`#undef'
13210 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13211 # Work around the forget-to-reset-the-flag bug.
13212 echo 't clr' >>$CONFIG_STATUS
13213 echo ': clr' >>$CONFIG_STATUS
13214 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13216 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13218 mv $tmp/out $tmp/in
13220 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13221 rm -f conftest.undefs
13222 mv conftest.tail conftest.undefs
13224 rm -f conftest.undefs
13226 cat >>$CONFIG_STATUS <<\_ACEOF
13227 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13228 # use $as_me), people would be surprised to read:
13229 # /* config.h. Generated by config.status. */
13230 if test x
"$ac_file" = x-
; then
13231 echo "/* Generated by configure. */" >$tmp/config.h
13233 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13235 cat $tmp/in >>$tmp/config.h
13237 if test x
"$ac_file" != x-
; then
13238 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
13239 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13240 echo "$as_me: $ac_file is unchanged" >&6;}
13242 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13244 X"$ac_file" : 'X\(//\)[^/]' \| \
13245 X"$ac_file" : 'X\(//\)$' \| \
13246 X"$ac_file" : 'X\(/\)' \| \
13247 . : '\(.\)' 2>/dev/null ||
13249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13251 /^X\(\/\/\)$/{ s//\1/; q; }
13252 /^X\(\/\).*/{ s//\1/; q; }
13254 { if $as_mkdir_p; then
13259 while test ! -d "$as_dir"; do
13260 as_dirs
="$as_dir $as_dirs"
13261 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13263 X"$as_dir" : 'X\(//\)[^/]' \| \
13264 X"$as_dir" : 'X\(//\)$' \| \
13265 X"$as_dir" : 'X\(/\)' \| \
13266 . : '\(.\)' 2>/dev/null ||
13268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13270 /^X\(\/\/\)$/{ s//\1/; q; }
13271 /^X\(\/\).*/{ s//\1/; q; }
13274 test ! -n "$as_dirs" || mkdir
$as_dirs
13275 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13276 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13277 { (exit 1); exit 1; }; }; }
13280 mv $tmp/config.h
$ac_file
13284 rm -f $tmp/config.h
13288 cat >>$CONFIG_STATUS <<\_ACEOF
13291 # CONFIG_COMMANDS section.
13293 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13294 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13295 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13296 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
13297 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13298 X"$ac_dest" : 'X\(//\)[^/]' \| \
13299 X"$ac_dest" : 'X\(//\)$' \| \
13300 X"$ac_dest" : 'X\(/\)' \| \
13301 . : '\(.\)' 2>/dev/null ||
13303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13305 /^X\(\/\/\)$/{ s//\1/; q; }
13306 /^X\(\/\).*/{ s//\1/; q; }
13310 if test "$ac_dir" != .
; then
13311 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13312 # A "../" for each directory in $ac_dir_suffix.
13313 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13315 ac_dir_suffix
= ac_top_builddir
=
13319 .
) # No --srcdir option. We are building in place.
13321 if test -z "$ac_top_builddir"; then
13324 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13326 [\\/]* | ?
:[\\/]* ) # Absolute path.
13327 ac_srcdir
=$srcdir$ac_dir_suffix;
13328 ac_top_srcdir
=$srcdir ;;
13329 *) # Relative path.
13330 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13331 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13333 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13335 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
13336 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13337 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13338 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13341 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13342 echo "$as_me: executing $ac_dest commands" >&6;}
13345 case ${CONFIG_HEADERS} in
13346 *auto-host.h
:config.
in*)
13349 # Make sure all the subdirs exist.
13352 test -d $d || mkdir
$d
13354 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13355 # bootstrapping and the installation procedure can still use
13356 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13357 # FLAGS_TO_PASS has been modified to solve the problem there.
13358 # This is virtually a duplicate of what happens in configure.lang; we do
13359 # an extra check to make sure this only happens if ln -s can be used.
13360 if test "$symbolic_link" = "ln -s"; then
13361 for d
in ${subdirs} fixinc
; do
13362 STARTDIR
=`${PWDCMD-pwd}`
13364 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13367 $symbolic_link ..
/$t $t 2>/dev
/null
13377 cat >>$CONFIG_STATUS <<\_ACEOF
13379 { (exit 0); exit 0; }
13381 chmod +x
$CONFIG_STATUS
13382 ac_clean_files
=$ac_clean_files_save
13385 # configure is writing to config.log, and then calls config.status.
13386 # config.status does its own redirection, appending to config.log.
13387 # Unfortunately, on DOS this fails, as config.log is still kept open
13388 # by configure, so config.status won't be able to write to it; its
13389 # output is simply discarded. So we exec the FD to /dev/null,
13390 # effectively closing config.log, so it can be properly (re)opened and
13391 # appended to by config.status. When coming back to configure, we
13392 # need to make the FD available again.
13393 if test "$no_create" != yes; then
13395 ac_config_status_args
=
13396 test "$silent" = yes &&
13397 ac_config_status_args
="$ac_config_status_args --quiet"
13399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13402 # would make configure fail if this is the last instruction.
13403 $ac_cs_success ||
{ (exit 1); exit 1; }