2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump ORIGINAL_OBJDUMP_FOR_TARGET libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: yes,no
,all
,none
,release.
871 Flags are
: assert
,fold,gc
,gcac
,misc
,
872 rtlflag
,rtl
,runtime
,tree
,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler
's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-objc-gc enable the use of Boehm's garbage collector with
887 the GNU Objective-C runtime
888 --disable-shared don
't provide a shared libgcc
889 --enable-intermodule build the compiler in one step
890 --enable-languages=LIST specify which front-ends to build
891 --disable-rpath do not hardcode runtime library paths
892 --enable-initfini-array use .init_array/.fini_array sections
893 --enable-sjlj-exceptions
894 arrange to use setjmp/longjmp exception handling
895 --enable-secureplt enable -msecure-plt by default for PowerPC
896 --disable-win32-registry
897 disable lookup of installation paths in the
898 Registry on Windows hosts
899 --enable-win32-registry enable registry lookup (default)
900 --enable-win32-registry=KEY
901 use KEY instead of GCC version as the last portion
903 --enable-maintainer-mode
904 enable make rules and dependencies not useful
905 (and sometimes confusing) to the casual installer
906 --enable-version-specific-runtime-libs
907 specify that runtime libraries should be
908 installed in a compiler-specific directory
911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
913 --with-local-prefix=DIR specifies directory to put local include
914 --with-gxx-include-dir=DIR
915 specifies directory to put g++ header files
916 --with-cpp-install-dir=DIR
917 install the user visible C preprocessor in DIR
918 (relative to PREFIX) as well as PREFIX/bin
919 --with-gnu-ld arrange to work with GNU ld.
920 --with-ld arrange to use the specified ld (full pathname)
921 --with-demangler-in-ld try to use demangler in GNU ld.
922 --with-gnu-as arrange to work with GNU as
923 --with-as arrange to use the specified as (full pathname)
924 --with-stabs arrange to use stabs instead of host debug format
925 --with-dwarf2 force the default debug format to be DWARF 2
926 --with-build-sysroot=sysroot
927 use sysroot as the system root during the build
928 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
929 --with-gnu-ld assume the C compiler uses GNU ld default=no
930 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
931 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
932 --with-system-libunwind use installed libunwind
933 --with-gc={page
,zone
} choose the garbage collection mechanism to use
935 --with-system-zlib use installed libz
936 --with-slibdir=DIR shared libraries
in DIR LIBDIR
938 Some influential environment variables
:
939 CC C compiler
command
940 CFLAGS C compiler flags
941 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
942 nonstandard directory
<lib dir
>
943 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
944 headers
in a nonstandard directory
<include dir
>
946 GMPLIBS How to link GMP
947 GMPINC How to
find GMP include files
949 Use these variables to override the choices made by
`configure' or to help
950 it to find libraries and programs with nonstandard names/locations.
955 if test "$ac_init_help" = "recursive"; then
956 # If there are subdirs, report their specific --help.
958 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959 test -d $ac_dir || continue
962 if test "$ac_dir" != .; then
963 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
964 # A "../" for each directory in $ac_dir_suffix.
965 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
967 ac_dir_suffix= ac_top_builddir=
971 .) # No --srcdir option. We are building in place.
973 if test -z "$ac_top_builddir"; then
976 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
978 [\\/]* | ?:[\\/]* ) # Absolute path.
979 ac_srcdir=$srcdir$ac_dir_suffix;
980 ac_top_srcdir=$srcdir ;;
982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
986 # Do not use `cd foo
&& pwd` to compute absolute paths, because
987 # the directories may not exist.
989 .) ac_abs_builddir="$ac_dir";;
992 .) ac_abs_builddir=`pwd`;;
993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
997 case $ac_abs_builddir in
998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1000 case ${ac_top_builddir}. in
1001 .) ac_abs_top_builddir=$ac_abs_builddir;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1006 case $ac_abs_builddir in
1007 .) ac_abs_srcdir=$ac_srcdir;;
1010 .) ac_abs_srcdir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1018 case $ac_top_srcdir in
1019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1026 # Check for guested configure; otherwise get Cygnus style configure.
1027 if test -f $ac_srcdir/configure.gnu; then
1029 $SHELL $ac_srcdir/configure.gnu --help=recursive
1030 elif test -f $ac_srcdir/configure; then
1032 $SHELL $ac_srcdir/configure --help=recursive
1033 elif test -f $ac_srcdir/configure.ac ||
1034 test -f $ac_srcdir/configure.in; then
1036 $ac_configure --help
1038 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1044 test -n "$ac_init_help" && exit 0
1045 if $ac_init_version; then
1048 Copyright (C) 2003 Free Software Foundation, Inc.
1049 This configure script is free software; the Free Software Foundation
1050 gives unlimited permission to copy, distribute and modify it.
1056 This file contains any messages produced by compilers while
1057 running configure, to aid debugging if configure makes a mistake.
1059 It was created by $as_me, which was
1060 generated by GNU Autoconf 2.59. Invocation command line was
1071 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1072 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1073 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1074 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1075 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1077 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1078 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1080 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1081 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1082 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1083 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1084 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1085 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1086 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1094 test -z "$as_dir" && as_dir=.
1095 echo "PATH: $as_dir"
1110 # Keep a trace of the command line.
1111 # Strip out --no-create and --no-recursion so they do not pile up.
1112 # Strip out --silent because we don't want to record it for future runs.
1113 # Also quote any args containing shell meta-characters.
1114 # Make two passes to allow for proper duplicate-argument suppression.
1119 ac_must_keep_next=false
1125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1133 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1135 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1136 if test $ac_must_keep_next = true; then
1137 ac_must_keep_next=false # Got value, back to normal.
1140 *=* | --config-cache | -C | -disable-* | --disable-* \
1141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1143 | -with-* | --with-* | -without-* | --without-* | --x)
1144 case "$ac_configure_args0 " in
1145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148 -* ) ac_must_keep_next=true ;;
1151 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1152 # Get rid of the leading space.
1158 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1159 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1161 # When interrupted or exit'd, cleanup temporary files, and complete
1162 # config.log. We remove comments because anyway the quotes in there
1163 # would cause problems or look ugly.
1164 # WARNING: Be sure not to use single quotes in there, as some shells,
1165 # such as our DU 5.0 friend, will then `close
' the trap.
1166 trap 'exit_status
=$?
1167 # Save into config.log some information that might help in debugging.
1172 ## ---------------- ##
1173 ## Cache variables. ##
1174 ## ---------------- ##
1177 # The following way of writing the cache mishandles newlines in values,
1180 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1188 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1195 ## ----------------- ##
1196 ## Output variables. ##
1197 ## ----------------- ##
1200 for ac_var
in $ac_subst_vars
1202 eval ac_val
=$
`echo $ac_var`
1203 echo "$ac_var='"'"'$ac_val'"'"'"
1207 if test -n "$ac_subst_files"; then
1214 for ac_var
in $ac_subst_files
1216 eval ac_val
=$
`echo $ac_var`
1217 echo "$ac_var='"'"'$ac_val'"'"'"
1222 if test -s confdefs.h
; then
1229 sed "/^$/d" confdefs.h |
sort
1232 test "$ac_signal" != 0 &&
1233 echo "$as_me: caught signal $ac_signal"
1234 echo "$as_me: exit $exit_status"
1236 rm -f core
*.core
&&
1237 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1240 for ac_signal in 1 2 13 15; do
1241 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1246 rm -rf conftest* confdefs.h
1247 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 # Predefined preprocessor variables.
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_NAME "$PACKAGE_NAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_STRING "$PACKAGE_STRING"
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1277 # Let the site file select an alternate cache file if it wants to.
1278 # Prefer explicitly selected file to automatically selected ones.
1279 if test -z "$CONFIG_SITE"; then
1280 if test "x$prefix" != xNONE; then
1281 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1283 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1286 for ac_site_file in $CONFIG_SITE; do
1287 if test -r "$ac_site_file"; then
1288 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1289 echo "$as_me: loading site script $ac_site_file" >&6;}
1290 sed 's
/^
/|
/' "$ac_site_file" >&5
1295 if test -r "$cache_file"; then
1296 # Some versions of bash will fail to source /dev/null (special
1297 # files actually), so we avoid doing that.
1298 if test -f "$cache_file"; then
1299 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1300 echo "$as_me: loading cache $cache_file" >&6;}
1302 [\\/]* | ?:[\\/]* ) . $cache_file;;
1303 *) . ./$cache_file;;
1307 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1308 echo "$as_me: creating cache $cache_file" >&6;}
1312 # Check that the precious variables saved in the cache have kept the same
1314 ac_cache_corrupted=false
1315 for ac_var in `(set) 2>&1 |
1316 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1317 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1318 eval ac_new_set=\$ac_env_${ac_var}_set
1319 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1320 eval ac_new_val="\$ac_env_${ac_var}_value"
1321 case $ac_old_set,$ac_new_set in
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1325 ac_cache_corrupted=: ;;
1327 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1328 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1329 ac_cache_corrupted=: ;;
1332 if test "x$ac_old_val" != "x$ac_new_val"; then
1333 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1334 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1335 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1336 echo "$as_me: former value: $ac_old_val" >&2;}
1337 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1338 echo "$as_me: current value: $ac_new_val" >&2;}
1339 ac_cache_corrupted=:
1342 # Pass precious variables to config.status.
1343 if test "$ac_new_set" = set; then
1345 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1346 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1347 *) ac_arg=$ac_var=$ac_new_val ;;
1349 case " $ac_configure_args " in
1350 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1351 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1355 if $ac_cache_corrupted; then
1356 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1358 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1359 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1360 { (exit 1); exit 1; }; }
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1366 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1388 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1391 gcc_version=`cat $srcdir/BASE-VER`
1393 # Determine the host, build, and target systems
1395 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1396 if test -f $ac_dir/install-sh; then
1398 ac_install_sh="$ac_aux_dir/install-sh -c"
1400 elif test -f $ac_dir/install.sh; then
1402 ac_install_sh="$ac_aux_dir/install.sh -c"
1404 elif test -f $ac_dir/shtool; then
1406 ac_install_sh="$ac_aux_dir/shtool install -c"
1410 if test -z "$ac_aux_dir"; then
1411 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1412 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1413 { (exit 1); exit 1; }; }
1415 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1416 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1417 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1419 # Make sure we can run config.sub.
1420 $ac_config_sub sun4 >/dev/null 2>&1 ||
1421 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1422 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1423 { (exit 1); exit 1; }; }
1425 echo "$as_me:$LINENO: checking build system type" >&5
1426 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1427 if test "${ac_cv_build+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 ac_cv_build_alias=$build_alias
1431 test -z "$ac_cv_build_alias" &&
1432 ac_cv_build_alias=`$ac_config_guess`
1433 test -z "$ac_cv_build_alias" &&
1434 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1435 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1436 { (exit 1); exit 1; }; }
1437 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1438 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1439 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1440 { (exit 1); exit 1; }; }
1443 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1444 echo "${ECHO_T}$ac_cv_build" >&6
1446 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1447 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1448 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1451 echo "$as_me:$LINENO: checking host system type" >&5
1452 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1453 if test "${ac_cv_host+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1456 ac_cv_host_alias=$host_alias
1457 test -z "$ac_cv_host_alias" &&
1458 ac_cv_host_alias=$ac_cv_build_alias
1459 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1460 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1461 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1462 { (exit 1); exit 1; }; }
1465 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1466 echo "${ECHO_T}$ac_cv_host" >&6
1468 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1469 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1470 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1473 echo "$as_me:$LINENO: checking target system type" >&5
1474 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1475 if test "${ac_cv_target+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 ac_cv_target_alias=$target_alias
1479 test "x$ac_cv_target_alias" = "x" &&
1480 ac_cv_target_alias=$ac_cv_host_alias
1481 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1482 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1483 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1484 { (exit 1); exit 1; }; }
1487 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1488 echo "${ECHO_T}$ac_cv_target" >&6
1489 target=$ac_cv_target
1490 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1491 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1492 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1495 # The aliases save the names the user supplied, while $host etc.
1496 # will get canonicalized.
1497 test -n "$target_alias" &&
1498 test "$program_prefix$program_suffix$program_transform_name" = \
1500 program_prefix=${target_alias}-
1502 # Determine the noncanonical target name, for directory use.
1503 case ${build_alias} in
1504 "") build_noncanonical=${build} ;;
1505 *) build_noncanonical=${build_alias} ;;
1508 case ${host_alias} in
1509 "") host_noncanonical=${build_noncanonical} ;;
1510 *) host_noncanonical=${host_alias} ;;
1513 case ${target_alias} in
1514 "") target_noncanonical=${host_noncanonical} ;;
1515 *) target_noncanonical=${target_alias} ;;
1521 # Determine the target- and build-specific subdirectories
1522 # Prefix 'build-
' so this never conflicts with target_subdir.
1523 build_subdir="build-${build_noncanonical}"
1524 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1525 if ( test $srcdir = . && test -d gcc ) \
1526 || test -d $srcdir/../host-${host_noncanonical}; then
1527 host_subdir="host-${host_noncanonical}"
1532 target_subdir=${target_noncanonical}
1535 # Set program_transform_name
1536 test "$program_prefix" != NONE &&
1537 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1538 # Use a double $ so make ignores it.
1539 test "$program_suffix" != NONE &&
1540 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1541 # Double any \ or $. echo might interpret backslashes.
1542 # By default was `s,x,x', remove it
if useless.
1543 cat <<\_ACEOF
>conftest.
sed
1544 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1546 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1550 # Check for bogus environment variables.
1551 # Test if LIBRARY_PATH contains the notation for the current directory
1552 # since this would lead to problems installing/building glibc.
1553 # LIBRARY_PATH contains the current directory if one of the following
1555 # - one of the terminals (":" and ";") is the first or last sign
1556 # - two terminals occur directly after each other
1557 # - the path contains an element with a dot in it
1558 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1559 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1560 case ${LIBRARY_PATH} in
1561 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1562 library_path_setting
="contains current directory"
1565 library_path_setting
="ok"
1568 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1569 echo "${ECHO_T}$library_path_setting" >&6
1570 if test "$library_path_setting" != "ok"; then
1571 { { echo "$as_me:$LINENO: error:
1572 *** LIBRARY_PATH shouldn't contain the current directory when
1573 *** building gcc. Please change the environment variable
1574 *** and run configure again." >&5
1575 echo "$as_me: error:
1576 *** LIBRARY_PATH shouldn't contain the current directory when
1577 *** building gcc. Please change the environment variable
1578 *** and run configure again." >&2;}
1579 { (exit 1); exit 1; }; }
1582 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1583 # since this would lead to problems installing/building glibc.
1584 # GCC_EXEC_PREFIX contains the current directory if one of the following
1586 # - one of the terminals (":" and ";") is the first or last sign
1587 # - two terminals occur directly after each other
1588 # - the path contains an element with a dot in it
1589 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1590 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1591 case ${GCC_EXEC_PREFIX} in
1592 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1593 gcc_exec_prefix_setting
="contains current directory"
1596 gcc_exec_prefix_setting
="ok"
1599 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1600 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1601 if test "$gcc_exec_prefix_setting" != "ok"; then
1602 { { echo "$as_me:$LINENO: error:
1603 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&5
1606 echo "$as_me: error:
1607 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1608 *** building gcc. Please change the environment variable
1609 *** and run configure again." >&2;}
1610 { (exit 1); exit 1; }; }
1617 # Specify the local prefix
1620 # Check whether --with-local-prefix or --without-local-prefix was given.
1621 if test "${with_local_prefix+set}" = set; then
1622 withval
="$with_local_prefix"
1623 case "${withval}" in
1624 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1625 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1626 { (exit 1); exit 1; }; } ;;
1628 *) local_prefix
=$with_local_prefix ;;
1632 # Default local prefix if it is empty
1633 if test x
$local_prefix = x
; then
1634 local_prefix
=/usr
/local
1637 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1638 # passed in by the toplevel make and thus we'd get different behavior
1639 # depending on where we built the sources.
1640 gcc_gxx_include_dir
=
1641 # Specify the g++ header file directory
1643 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1644 if test "${with_gxx_include_dir+set}" = set; then
1645 withval
="$with_gxx_include_dir"
1646 case "${withval}" in
1647 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1648 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1649 { (exit 1); exit 1; }; } ;;
1651 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1655 if test x
${gcc_gxx_include_dir} = x
; then
1656 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1657 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1659 libstdcxx_incdir
='c++/$(version)'
1660 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1665 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1666 if test "${with_cpp_install_dir+set}" = set; then
1667 withval
="$with_cpp_install_dir"
1668 if test x
$withval = xyes
; then
1669 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1670 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1671 { (exit 1); exit 1; }; }
1672 elif test x
$withval != xno
; then
1673 cpp_install_dir
=$withval
1677 # We would like to our source tree to be readonly. However when releases or
1678 # pre-releases are generated, the flex/bison generated files as well as the
1679 # various formats of manuals need to be included along with the rest of the
1680 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1683 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1684 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1685 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1686 if test "${enable_generated_files_in_srcdir+set}" = set; then
1687 enableval
="$enable_generated_files_in_srcdir"
1688 generated_files_in_srcdir
=$enableval
1690 generated_files_in_srcdir
=no
1693 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1694 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1696 if test "$generated_files_in_srcdir" = "yes"; then
1703 # -------------------
1704 # Find default linker
1705 # -------------------
1709 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1710 if test "${with_gnu_ld+set}" = set; then
1711 withval
="$with_gnu_ld"
1712 gnu_ld_flag
="$with_gnu_ld"
1717 # With pre-defined ld
1719 # Check whether --with-ld or --without-ld was given.
1720 if test "${with_ld+set}" = set; then
1722 DEFAULT_LINKER
="$with_ld"
1724 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1725 if test ! -x "$DEFAULT_LINKER"; then
1726 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1727 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1728 { (exit 1); exit 1; }; }
1729 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1733 cat >>confdefs.h
<<_ACEOF
1734 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1739 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1740 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1741 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1742 if test x
"$gnu_ld_flag" = x
"no"; then
1743 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1744 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1746 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1747 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1754 # With demangler in GNU ld
1756 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1757 if test "${with_demangler_in_ld+set}" = set; then
1758 withval
="$with_demangler_in_ld"
1759 demangler_in_ld
="$with_demangler_in_ld"
1764 # ----------------------
1765 # Find default assembler
1766 # ----------------------
1770 # Check whether --with-gnu-as or --without-gnu-as was given.
1771 if test "${with_gnu_as+set}" = set; then
1772 withval
="$with_gnu_as"
1773 gas_flag
="$with_gnu_as"
1779 # Check whether --with-as or --without-as was given.
1780 if test "${with_as+set}" = set; then
1782 DEFAULT_ASSEMBLER
="$with_as"
1784 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1785 if test ! -x "$DEFAULT_ASSEMBLER"; then
1786 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1787 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1788 { (exit 1); exit 1; }; }
1789 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1793 cat >>confdefs.h
<<_ACEOF
1794 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1799 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1800 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1801 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1802 if test x
"$gas_flag" = x
"no"; then
1803 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1804 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1806 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1807 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1818 # If a non-executable a.out is present (e.g. created by GNU as above even if
1819 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1820 # file, even when creating an executable, so an execution test fails.
1821 # Remove possible default executable files to avoid this.
1823 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1824 # Autoconf includes it.
1825 rm -f a.out a.exe b.out
1827 # Find the native compiler
1829 ac_cpp
='$CPP $CPPFLAGS'
1830 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1833 if test -n "$ac_tool_prefix"; then
1834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1835 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1836 echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 if test -n "$CC"; then
1842 ac_cv_prog_CC
="$CC" # Let the user override the test.
1844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1848 test -z "$as_dir" && as_dir
=.
1849 for ac_exec_ext
in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 if test -n "$CC"; then
1862 echo "$as_me:$LINENO: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6
1865 echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1870 if test -z "$ac_cv_prog_CC"; then
1872 # Extract the first word of "gcc", so it can be a program name with args.
1873 set dummy gcc
; ac_word
=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$ac_ct_CC"; then
1880 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir
=.
1887 for ac_exec_ext
in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_ac_ct_CC
="gcc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1899 if test -n "$ac_ct_CC"; then
1900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1901 echo "${ECHO_T}$ac_ct_CC" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1912 if test -z "$CC"; then
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1915 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC
="$CC" # Let the user override the test.
1924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir
=.
1929 for ac_exec_ext
in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$ac_cv_prog_CC"; then
1952 # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc
; 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_ac_ct_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$ac_ct_CC"; then
1960 ac_cv_prog_ac_ct_CC
="$ac_ct_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_ac_ct_CC
="cc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1979 if test -n "$ac_ct_CC"; then
1980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1981 echo "${ECHO_T}$ac_ct_CC" >&6
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1993 if test -z "$CC"; then
1994 # Extract the first word of "cc", so it can be a program name with args.
1995 set dummy cc
; 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_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC
="$CC" # Let the user override the test.
2005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir
=.
2010 for ac_exec_ext
in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2013 ac_prog_rejected
=yes
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 if test $ac_prog_rejected = yes; then
2024 # We found a bogon in the path, so make sure we never use it.
2025 set dummy
$ac_cv_prog_CC
2027 if test $# != 0; then
2028 # We chose a different compiler from the bogus one.
2029 # However, it has the same basename, so the bogon will be chosen
2030 # first if we set CC to just the basename; use the full file name.
2032 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2038 if test -n "$CC"; then
2039 echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6
2042 echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6
2047 if test -z "$CC"; then
2048 if test -n "$ac_tool_prefix"; then
2051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2052 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC
="$CC" # Let the user override the test.
2061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir
=.
2066 for ac_exec_ext
in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 if test -n "$CC"; then
2079 echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 test -n "$CC" && break
2089 if test -z "$CC"; then
2093 # Extract the first word of "$ac_prog", so it can be a program name with args.
2094 set dummy
$ac_prog; ac_word
=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$ac_ct_CC"; then
2101 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir
=.
2108 for ac_exec_ext
in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_ac_ct_CC
="$ac_prog"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2120 if test -n "$ac_ct_CC"; then
2121 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2122 echo "${ECHO_T}$ac_ct_CC" >&6
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2128 test -n "$ac_ct_CC" && break
2137 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2138 See \`config.log' for more details." >&5
2139 echo "$as_me: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&2;}
2141 { (exit 1); exit 1; }; }
2143 # Provide some information about the compiler.
2144 echo "$as_me:$LINENO:" \
2145 "checking for C compiler version" >&5
2146 ac_compiler
=`set X $ac_compile; echo $2`
2147 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2148 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2152 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2153 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }
2157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2158 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }
2163 cat >conftest.
$ac_ext <<_ACEOF
2166 cat confdefs.h
>>conftest.
$ac_ext
2167 cat >>conftest.
$ac_ext <<_ACEOF
2168 /* end confdefs.h. */
2178 ac_clean_files_save
=$ac_clean_files
2179 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2180 # Try to create an executable without -o first, disregard a.out.
2181 # It will help us diagnose broken compilers, and finding out an intuition
2183 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2184 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2185 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2186 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2187 (eval $ac_link_default) 2>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; then
2191 # Find the output, starting from the most likely. This scheme is
2192 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195 # Be careful to initialize this variable, since it used to be cached.
2196 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2198 # b.out is created by i960 compilers.
2199 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2201 test -f "$ac_file" ||
continue
2203 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2206 # This is the source file.
2209 # We found the default executable, but exeext='' is most
2213 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214 # FIXME: I believe we export ac_cv_exeext for Libtool,
2215 # but it would be cool to find out if it's true. Does anybody
2216 # maintain Libtool? --akim.
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.
$ac_ext >&5
2227 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&2;}
2231 { (exit 77); exit 77; }; }
2234 ac_exeext
=$ac_cv_exeext
2235 echo "$as_me:$LINENO: result: $ac_file" >&5
2236 echo "${ECHO_T}$ac_file" >&6
2238 # Check the compiler produces executables we can run. If not, either
2239 # the compiler is broken, or we cross compile.
2240 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2243 # If not cross compiling, check that we can run a simple program.
2244 if test "$cross_compiling" != yes; then
2245 if { ac_try
='./$ac_file'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2253 if test "$cross_compiling" = maybe
; then
2256 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2257 If you meant to cross compile, use \`--host'.
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot run C compiled programs.
2260 If you meant to cross compile, use \`--host'.
2261 See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2266 echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6
2269 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2270 ac_clean_files
=$ac_clean_files_save
2271 # Check the compiler produces executables we can run. If not, either
2272 # the compiler is broken, or we cross compile.
2273 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2274 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2275 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2276 echo "${ECHO_T}$cross_compiling" >&6
2278 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2279 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2281 (eval $ac_link) 2>&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; then
2285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2286 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2287 # work properly (i.e., refer to `conftest.exe'), while it won't with
2289 for ac_file
in conftest.exe conftest conftest.
*; do
2290 test -f "$ac_file" ||
continue
2292 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2293 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&2;}
2304 { (exit 1); exit 1; }; }
2307 rm -f conftest
$ac_cv_exeext
2308 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2309 echo "${ECHO_T}$ac_cv_exeext" >&6
2311 rm -f conftest.
$ac_ext
2312 EXEEXT
=$ac_cv_exeext
2314 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2315 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2316 if test "${ac_cv_objext+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 cat >conftest.
$ac_ext <<_ACEOF
2322 cat confdefs.h
>>conftest.
$ac_ext
2323 cat >>conftest.
$ac_ext <<_ACEOF
2324 /* end confdefs.h. */
2334 rm -f conftest.o conftest.obj
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
2340 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2342 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2343 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.
$ac_ext >&5
2351 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&2;}
2355 { (exit 1); exit 1; }; }
2358 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2360 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2361 echo "${ECHO_T}$ac_cv_objext" >&6
2362 OBJEXT
=$ac_cv_objext
2364 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2365 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2366 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat >conftest.
$ac_ext <<_ACEOF
2372 cat confdefs.h
>>conftest.
$ac_ext
2373 cat >>conftest.
$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2387 rm -f conftest.
$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>conftest.er1
2391 grep -v '^ *+' conftest.er1
>conftest.err
2393 cat conftest.err
>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try
='test -s conftest.$ac_objext'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.
$ac_ext >&5
2415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2416 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2419 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2420 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2421 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2422 ac_test_CFLAGS
=${CFLAGS+set}
2423 ac_save_CFLAGS
=$CFLAGS
2425 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2427 if test "${ac_cv_prog_cc_g+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 cat >conftest.
$ac_ext <<_ACEOF
2433 cat confdefs.h
>>conftest.
$ac_ext
2434 cat >>conftest.
$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2445 rm -f conftest.
$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1
>conftest.err
2451 cat conftest.err
>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try
='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.
$ac_ext >&5
2473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2475 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2476 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2477 if test "$ac_test_CFLAGS" = set; then
2478 CFLAGS
=$ac_save_CFLAGS
2479 elif test $ac_cv_prog_cc_g = yes; then
2480 if test "$GCC" = yes; then
2486 if test "$GCC" = yes; then
2492 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2493 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2494 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 ac_cv_prog_cc_stdc
=no
2499 cat >conftest.
$ac_ext <<_ACEOF
2502 cat confdefs.h
>>conftest.
$ac_ext
2503 cat >>conftest.
$ac_ext <<_ACEOF
2504 /* end confdefs.h. */
2507 #include <sys/types.h>
2508 #include <sys/stat.h>
2509 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2510 struct buf { int x; };
2511 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2512 static char *e (p, i)
2518 static char *f (char * (*g) (char **, int), char **p, ...)
2523 s = g (p, va_arg (v,int));
2528 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2529 function prototypes and stuff, but not '\xHH' hex character constants.
2530 These don't provoke an error unfortunately, instead are silently treated
2531 as 'x'. The following induces an error, until -std1 is added to get
2532 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2533 array size at least. It's necessary to write '\x00'==0 to get something
2534 that's true only with -std1. */
2535 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2537 int test (int i, double x);
2538 struct s1 {int (*f) (int a);};
2539 struct s2 {int (*f) (double a);};
2540 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2546 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2551 # Don't try gcc -ansi; that turns off useful extensions and
2552 # breaks some systems' header files.
2553 # AIX -qlanglvl=ansi
2554 # Ultrix and OSF/1 -std1
2555 # HP-UX 10.20 and later -Ae
2556 # HP-UX older versions -Aa -D_HPUX_SOURCE
2557 # SVR4 -Xc -D__EXTENSIONS__
2558 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2560 CC
="$ac_save_CC $ac_arg"
2561 rm -f conftest.
$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1
>conftest.err
2567 cat conftest.err
>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try
='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 ac_cv_prog_cc_stdc
=$ac_arg
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.
$ac_ext >&5
2589 rm -f conftest.err conftest.
$ac_objext
2591 rm -f conftest.
$ac_ext conftest.
$ac_objext
2596 case "x$ac_cv_prog_cc_stdc" in
2598 echo "$as_me:$LINENO: result: none needed" >&5
2599 echo "${ECHO_T}none needed" >&6 ;;
2601 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2602 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2603 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2606 # Some people use a C++ compiler to compile C. Since we use `exit',
2607 # in C++ we need to declare it. In case someone uses the same compiler
2608 # for both compiling C and C++ we need to have the C++ compiler decide
2609 # the declaration of exit, since it's the most demanding environment.
2610 cat >conftest.
$ac_ext <<_ACEOF
2615 rm -f conftest.
$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>conftest.er1
2619 grep -v '^ *+' conftest.er1
>conftest.err
2621 cat conftest.err
>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try
='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 for ac_declaration
in \
2638 'extern "C" void std::exit (int) throw (); using std::exit;' \
2639 'extern "C" void std::exit (int); using std::exit;' \
2640 'extern "C" void exit (int) throw ();' \
2641 'extern "C" void exit (int);' \
2644 cat >conftest.
$ac_ext <<_ACEOF
2647 cat confdefs.h
>>conftest.
$ac_ext
2648 cat >>conftest.
$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2660 rm -f conftest.
$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2664 grep -v '^ *+' conftest.er1
>conftest.err
2666 cat conftest.err
>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try
='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.
$ac_ext >&5
2688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2689 cat >conftest.
$ac_ext <<_ACEOF
2692 cat confdefs.h
>>conftest.
$ac_ext
2693 cat >>conftest.
$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2704 rm -f conftest.
$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706 (eval $ac_compile) 2>conftest.er1
2708 grep -v '^ *+' conftest.er1
>conftest.err
2710 cat conftest.err
>&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try
='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.
$ac_ext >&5
2731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2734 if test -n "$ac_declaration"; then
2735 echo '#ifdef __cplusplus' >>confdefs.h
2736 echo $ac_declaration >>confdefs.h
2737 echo '#endif' >>confdefs.h
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.
$ac_ext >&5
2745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2747 ac_cpp
='$CPP $CPPFLAGS'
2748 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2752 if test "x$CC" != xcc
; then
2753 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2754 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2756 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2757 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2759 set dummy
$CC; ac_cc
=`echo $2 |
2760 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2761 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 cat >conftest.
$ac_ext <<_ACEOF
2767 cat confdefs.h
>>conftest.
$ac_ext
2768 cat >>conftest.
$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 # Make sure it works both with $CC and with simple cc.
2780 # We do the test twice because some compilers refuse to overwrite an
2781 # existing .o file with -o, though they will create one.
2782 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2783 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); };
2794 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2795 if test "x$CC" != xcc
; then
2796 # Test first that cc exists at all.
2797 if { ac_try
='cc -c conftest.$ac_ext >&5'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2804 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); };
2818 # cc exists but doesn't like -o.
2819 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2824 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2829 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2830 echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2833 echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2836 cat >>confdefs.h
<<\_ACEOF
2837 #define NO_MINUS_C_MINUS_O 1
2842 # expand $ac_aux_dir to an absolute path
2843 am_aux_dir
=`cd $ac_aux_dir && pwd`
2845 # FIXME: we rely on the cache variable name because
2846 # there is no other way.
2848 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2849 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2850 # Losing compiler, so override with the script.
2851 # FIXME: It is wrong to rewrite CC.
2852 # But if we don't then we get into trouble of one sort or another.
2853 # A longer-term fix would be to have automake use am__CC in this case,
2854 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2855 CC
="$am_aux_dir/compile $CC"
2858 # autoconf is lame and doesn't give us any substitution variable for this.
2859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2860 NO_MINUS_C_MINUS_O
=yes
2862 OUTPUT_OPTION
='-o $@'
2867 # -------------------------
2868 # Check C compiler features
2869 # -------------------------
2872 ac_cpp
='$CPP $CPPFLAGS'
2873 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2876 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2877 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2878 # On Suns, sometimes $CPP names a directory.
2879 if test -n "$CPP" && test -d "$CPP"; then
2882 if test -z "$CPP"; then
2883 if test "${ac_cv_prog_CPP+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 # Double quotes because CPP needs to be expanded
2887 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2890 for ac_c_preproc_warn_flag
in '' yes
2892 # Use a header file that comes with gcc, so configuring glibc
2893 # with a fresh cross-compiler works.
2894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895 # <limits.h> exists even on freestanding compilers.
2896 # On the NeXT, cc -E runs the code through the compiler's parser,
2897 # not just through cpp. "Syntax error" is here to catch this case.
2898 cat >conftest.
$ac_ext <<_ACEOF
2901 cat confdefs.h
>>conftest.
$ac_ext
2902 cat >>conftest.
$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2905 # include <limits.h>
2907 # include <assert.h>
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2914 grep -v '^ *+' conftest.er1
>conftest.err
2916 cat conftest.err
>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev
/null
; then
2919 if test -s conftest.err
; then
2920 ac_cpp_err
=$ac_c_preproc_warn_flag
2921 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2928 if test -z "$ac_cpp_err"; then
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.
$ac_ext >&5
2934 # Broken: fails on valid input.
2937 rm -f conftest.err conftest.
$ac_ext
2939 # OK, works on sane cases. Now check whether non-existent headers
2940 # can be detected and how.
2941 cat >conftest.
$ac_ext <<_ACEOF
2944 cat confdefs.h
>>conftest.
$ac_ext
2945 cat >>conftest.
$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <ac_nonexistent.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1
>conftest.err
2954 cat conftest.err
>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev
/null
; then
2957 if test -s conftest.err
; then
2958 ac_cpp_err
=$ac_c_preproc_warn_flag
2959 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2966 if test -z "$ac_cpp_err"; then
2967 # Broken: success on invalid input.
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.
$ac_ext >&5
2973 # Passes both tests.
2977 rm -f conftest.err conftest.
$ac_ext
2980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981 rm -f conftest.err conftest.
$ac_ext
2982 if $ac_preproc_ok; then
2994 echo "$as_me:$LINENO: result: $CPP" >&5
2995 echo "${ECHO_T}$CPP" >&6
2997 for ac_c_preproc_warn_flag
in '' yes
2999 # Use a header file that comes with gcc, so configuring glibc
3000 # with a fresh cross-compiler works.
3001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3002 # <limits.h> exists even on freestanding compilers.
3003 # On the NeXT, cc -E runs the code through the compiler's parser,
3004 # not just through cpp. "Syntax error" is here to catch this case.
3005 cat >conftest.
$ac_ext <<_ACEOF
3008 cat confdefs.h
>>conftest.
$ac_ext
3009 cat >>conftest.
$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3012 # include <limits.h>
3014 # include <assert.h>
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3021 grep -v '^ *+' conftest.er1
>conftest.err
3023 cat conftest.err
>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev
/null
; then
3026 if test -s conftest.err
; then
3027 ac_cpp_err
=$ac_c_preproc_warn_flag
3028 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3035 if test -z "$ac_cpp_err"; then
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.
$ac_ext >&5
3041 # Broken: fails on valid input.
3044 rm -f conftest.err conftest.
$ac_ext
3046 # OK, works on sane cases. Now check whether non-existent headers
3047 # can be detected and how.
3048 cat >conftest.
$ac_ext <<_ACEOF
3051 cat confdefs.h
>>conftest.
$ac_ext
3052 cat >>conftest.
$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054 #include <ac_nonexistent.h>
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1
>conftest.err
3061 cat conftest.err
>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev
/null
; then
3064 if test -s conftest.err
; then
3065 ac_cpp_err
=$ac_c_preproc_warn_flag
3066 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3073 if test -z "$ac_cpp_err"; then
3074 # Broken: success on invalid input.
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.
$ac_ext >&5
3080 # Passes both tests.
3084 rm -f conftest.err conftest.
$ac_ext
3087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3088 rm -f conftest.err conftest.
$ac_ext
3089 if $ac_preproc_ok; then
3092 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3093 See \`config.log' for more details." >&5
3094 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }
3100 ac_cpp
='$CPP $CPPFLAGS'
3101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3106 echo "$as_me:$LINENO: checking for inline" >&5
3107 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3108 if test "${ac_cv_c_inline+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 for ac_kw
in inline __inline__ __inline
; do
3113 cat >conftest.
$ac_ext <<_ACEOF
3116 cat confdefs.h
>>conftest.
$ac_ext
3117 cat >>conftest.
$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3121 static $ac_kw foo_t static_foo () {return 0; }
3122 $ac_kw foo_t foo () {return 0; }
3126 rm -f conftest.
$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>conftest.er1
3130 grep -v '^ *+' conftest.er1
>conftest.err
3132 cat conftest.err
>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try
='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_c_inline
=$ac_kw; break
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.
$ac_ext >&5
3153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3157 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3158 echo "${ECHO_T}$ac_cv_c_inline" >&6
3161 case $ac_cv_c_inline in
3164 case $ac_cv_c_inline in
3166 *) ac_val
=$ac_cv_c_inline;;
3168 cat >>confdefs.h
<<_ACEOF
3170 #define inline $ac_val
3177 # sizeof(char) is 1 by definition.
3179 echo "$as_me:$LINENO: checking for egrep" >&5
3180 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3181 if test "${ac_cv_prog_egrep+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3185 then ac_cv_prog_egrep
='grep -E'
3186 else ac_cv_prog_egrep
='egrep'
3189 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3190 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3191 EGREP
=$ac_cv_prog_egrep
3194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3196 if test "${ac_cv_header_stdc+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 cat >conftest.
$ac_ext <<_ACEOF
3202 cat confdefs.h
>>conftest.
$ac_ext
3203 cat >>conftest.
$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3218 rm -f conftest.
$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220 (eval $ac_compile) 2>conftest.er1
3222 grep -v '^ *+' conftest.er1
>conftest.err
3224 cat conftest.err
>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } &&
3227 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; } &&
3233 { ac_try
='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_header_stdc
=yes
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.
$ac_ext >&5
3244 ac_cv_header_stdc
=no
3246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3248 if test $ac_cv_header_stdc = yes; then
3249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3250 cat >conftest.
$ac_ext <<_ACEOF
3253 cat confdefs.h
>>conftest.
$ac_ext
3254 cat >>conftest.
$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3260 $EGREP "memchr" >/dev
/null
2>&1; then
3263 ac_cv_header_stdc
=no
3269 if test $ac_cv_header_stdc = yes; then
3270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3271 cat >conftest.
$ac_ext <<_ACEOF
3274 cat confdefs.h
>>conftest.
$ac_ext
3275 cat >>conftest.
$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3281 $EGREP "free" >/dev
/null
2>&1; then
3284 ac_cv_header_stdc
=no
3290 if test $ac_cv_header_stdc = yes; then
3291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3292 if test "$cross_compiling" = yes; then
3295 cat >conftest.
$ac_ext <<_ACEOF
3298 cat confdefs.h
>>conftest.
$ac_ext
3299 cat >>conftest.
$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3302 #if ((' ' & 0x0FF) == 0x020)
3303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3306 # define ISLOWER(c) \
3307 (('a' <= (c) && (c) <= 'i') \
3308 || ('j' <= (c) && (c) <= 'r') \
3309 || ('s' <= (c) && (c) <= 'z'))
3310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3318 for (i = 0; i < 256; i++)
3319 if (XOR (islower (i), ISLOWER (i))
3320 || toupper (i) != TOUPPER (i))
3325 rm -f conftest
$ac_exeext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3327 (eval $ac_link) 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; }; then
3338 echo "$as_me: program exited with status $ac_status" >&5
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.
$ac_ext >&5
3343 ac_cv_header_stdc
=no
3345 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3351 if test $ac_cv_header_stdc = yes; then
3353 cat >>confdefs.h
<<\_ACEOF
3354 #define STDC_HEADERS 1
3359 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3369 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3370 inttypes.h stdint.h unistd.h
3372 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3373 echo "$as_me:$LINENO: checking for $ac_header" >&5
3374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 cat >conftest.
$ac_ext <<_ACEOF
3381 cat confdefs.h
>>conftest.
$ac_ext
3382 cat >>conftest.
$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 $ac_includes_default
3386 #include <$ac_header>
3388 rm -f conftest.
$ac_objext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390 (eval $ac_compile) 2>conftest.er1
3392 grep -v '^ *+' conftest.er1
>conftest.err
3394 cat conftest.err
>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; } &&
3403 { ac_try
='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 eval "$as_ac_Header=yes"
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.
$ac_ext >&5
3414 eval "$as_ac_Header=no"
3416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3421 cat >>confdefs.h
<<_ACEOF
3422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3430 echo "$as_me:$LINENO: checking for void *" >&5
3431 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3432 if test "${ac_cv_type_void_p+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 cat >conftest.
$ac_ext <<_ACEOF
3438 cat confdefs.h
>>conftest.
$ac_ext
3439 cat >>conftest.
$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 $ac_includes_default
3447 if (sizeof (void *))
3453 rm -f conftest.
$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1
>conftest.err
3459 cat conftest.err
>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try
='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_cv_type_void_p
=yes
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.
$ac_ext >&5
3479 ac_cv_type_void_p
=no
3481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3483 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3484 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3486 echo "$as_me:$LINENO: checking size of void *" >&5
3487 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3488 if test "${ac_cv_sizeof_void_p+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 if test "$ac_cv_type_void_p" = yes; then
3492 # The cast to unsigned long works around a bug in the HP C Compiler
3493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3495 # This bug is HP SR number 8606223364.
3496 if test "$cross_compiling" = yes; then
3497 # Depending upon the size, compute the lo and hi bounds.
3498 cat >conftest.
$ac_ext <<_ACEOF
3501 cat confdefs.h
>>conftest.
$ac_ext
3502 cat >>conftest.
$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 $ac_includes_default
3508 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3515 rm -f conftest.
$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3519 grep -v '^ *+' conftest.er1
>conftest.err
3521 cat conftest.err
>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; } &&
3530 { ac_try
='test -s conftest.$ac_objext'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3538 cat >conftest.
$ac_ext <<_ACEOF
3541 cat confdefs.h
>>conftest.
$ac_ext
3542 cat >>conftest.
$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 $ac_includes_default
3548 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3555 rm -f conftest.
$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557 (eval $ac_compile) 2>conftest.er1
3559 grep -v '^ *+' conftest.er1
>conftest.err
3561 cat conftest.err
>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try
='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 ac_hi
=$ac_mid; break
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.
$ac_ext >&5
3581 ac_lo
=`expr $ac_mid + 1`
3582 if test $ac_lo -le $ac_mid; then
3586 ac_mid
=`expr 2 '*' $ac_mid + 1`
3588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.
$ac_ext >&5
3594 cat >conftest.
$ac_ext <<_ACEOF
3597 cat confdefs.h
>>conftest.
$ac_ext
3598 cat >>conftest.
$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 $ac_includes_default
3604 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3611 rm -f conftest.
$ac_objext
3612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>conftest.er1
3615 grep -v '^ *+' conftest.er1
>conftest.err
3617 cat conftest.err
>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try
='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3634 cat >conftest.
$ac_ext <<_ACEOF
3637 cat confdefs.h
>>conftest.
$ac_ext
3638 cat >>conftest.
$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3640 $ac_includes_default
3644 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3651 rm -f conftest.
$ac_objext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3653 (eval $ac_compile) 2>conftest.er1
3655 grep -v '^ *+' conftest.er1
>conftest.err
3657 cat conftest.err
>&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
3660 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try
='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 ac_lo
=$ac_mid; break
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.
$ac_ext >&5
3677 ac_hi
=`expr '(' $ac_mid ')' - 1`
3678 if test $ac_mid -le $ac_hi; then
3682 ac_mid
=`expr 2 '*' $ac_mid`
3684 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.
$ac_ext >&5
3692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3695 # Binary search between lo and hi bounds.
3696 while test "x$ac_lo" != "x$ac_hi"; do
3697 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3698 cat >conftest.
$ac_ext <<_ACEOF
3701 cat confdefs.h
>>conftest.
$ac_ext
3702 cat >>conftest.
$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 $ac_includes_default
3708 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3715 rm -f conftest.
$ac_objext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1
>conftest.err
3721 cat conftest.err
>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; } &&
3730 { ac_try
='test -s conftest.$ac_objext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.
$ac_ext >&5
3741 ac_lo
=`expr '(' $ac_mid ')' + 1`
3743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3746 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3747 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3748 See \`config.log' for more details." >&5
3749 echo "$as_me: error: cannot compute sizeof (void *), 77
3750 See \`config.log' for more details." >&2;}
3751 { (exit 1); exit 1; }; } ;;
3754 if test "$cross_compiling" = yes; then
3755 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3756 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3757 { (exit 1); exit 1; }; }
3759 cat >conftest.
$ac_ext <<_ACEOF
3762 cat confdefs.h
>>conftest.
$ac_ext
3763 cat >>conftest.
$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 $ac_includes_default
3766 long longval () { return (long) (sizeof (void *)); }
3767 unsigned long ulongval () { return (long) (sizeof (void *)); }
3774 FILE *f = fopen ("conftest.val", "w");
3777 if (((long) (sizeof (void *))) < 0)
3779 long i = longval ();
3780 if (i != ((long) (sizeof (void *))))
3782 fprintf (f, "%ld\n", i);
3786 unsigned long i = ulongval ();
3787 if (i != ((long) (sizeof (void *))))
3789 fprintf (f, "%lu\n", i);
3791 exit (ferror (f) || fclose (f) != 0);
3797 rm -f conftest
$ac_exeext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799 (eval $ac_link) 2>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 ac_cv_sizeof_void_p
=`cat conftest.val`
3810 echo "$as_me: program exited with status $ac_status" >&5
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.
$ac_ext >&5
3815 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3816 See \`config.log' for more details." >&5
3817 echo "$as_me: error: cannot compute sizeof (void *), 77
3818 See \`config.log' for more details." >&2;}
3819 { (exit 1); exit 1; }; }
3821 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3826 ac_cv_sizeof_void_p
=0
3829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3830 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3831 cat >>confdefs.h
<<_ACEOF
3832 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3836 echo "$as_me:$LINENO: checking for short" >&5
3837 echo $ECHO_N "checking for short... $ECHO_C" >&6
3838 if test "${ac_cv_type_short+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 cat >conftest.
$ac_ext <<_ACEOF
3844 cat confdefs.h
>>conftest.
$ac_ext
3845 cat >>conftest.
$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 $ac_includes_default
3859 rm -f conftest.
$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3863 grep -v '^ *+' conftest.er1
>conftest.err
3865 cat conftest.err
>&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try
='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_type_short
=yes
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.
$ac_ext >&5
3887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3889 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3890 echo "${ECHO_T}$ac_cv_type_short" >&6
3892 echo "$as_me:$LINENO: checking size of short" >&5
3893 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3894 if test "${ac_cv_sizeof_short+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 if test "$ac_cv_type_short" = yes; then
3898 # The cast to unsigned long works around a bug in the HP C Compiler
3899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3901 # This bug is HP SR number 8606223364.
3902 if test "$cross_compiling" = yes; then
3903 # Depending upon the size, compute the lo and hi bounds.
3904 cat >conftest.
$ac_ext <<_ACEOF
3907 cat confdefs.h
>>conftest.
$ac_ext
3908 cat >>conftest.
$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 $ac_includes_default
3914 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3921 rm -f conftest.
$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>conftest.er1
3925 grep -v '^ *+' conftest.er1
>conftest.err
3927 cat conftest.err
>&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; } &&
3936 { ac_try
='test -s conftest.$ac_objext'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3944 cat >conftest.
$ac_ext <<_ACEOF
3947 cat confdefs.h
>>conftest.
$ac_ext
3948 cat >>conftest.
$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 $ac_includes_default
3954 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3961 rm -f conftest.
$ac_objext
3962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963 (eval $ac_compile) 2>conftest.er1
3965 grep -v '^ *+' conftest.er1
>conftest.err
3967 cat conftest.err
>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try
='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_hi
=$ac_mid; break
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.
$ac_ext >&5
3987 ac_lo
=`expr $ac_mid + 1`
3988 if test $ac_lo -le $ac_mid; then
3992 ac_mid
=`expr 2 '*' $ac_mid + 1`
3994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.
$ac_ext >&5
4000 cat >conftest.
$ac_ext <<_ACEOF
4003 cat confdefs.h
>>conftest.
$ac_ext
4004 cat >>conftest.
$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 $ac_includes_default
4010 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4017 rm -f conftest.
$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1
>conftest.err
4023 cat conftest.err
>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try
='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4040 cat >conftest.
$ac_ext <<_ACEOF
4043 cat confdefs.h
>>conftest.
$ac_ext
4044 cat >>conftest.
$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 $ac_includes_default
4050 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4057 rm -f conftest.
$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>conftest.er1
4061 grep -v '^ *+' conftest.er1
>conftest.err
4063 cat conftest.err
>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try
='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_lo
=$ac_mid; break
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.
$ac_ext >&5
4083 ac_hi
=`expr '(' $ac_mid ')' - 1`
4084 if test $ac_mid -le $ac_hi; then
4088 ac_mid
=`expr 2 '*' $ac_mid`
4090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.
$ac_ext >&5
4098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4101 # Binary search between lo and hi bounds.
4102 while test "x$ac_lo" != "x$ac_hi"; do
4103 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4104 cat >conftest.
$ac_ext <<_ACEOF
4107 cat confdefs.h
>>conftest.
$ac_ext
4108 cat >>conftest.
$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 $ac_includes_default
4114 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4121 rm -f conftest.
$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123 (eval $ac_compile) 2>conftest.er1
4125 grep -v '^ *+' conftest.er1
>conftest.err
4127 cat conftest.err
>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try
='test -s conftest.$ac_objext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.
$ac_ext >&5
4147 ac_lo
=`expr '(' $ac_mid ')' + 1`
4149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4152 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4153 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4154 See \`config.log' for more details." >&5
4155 echo "$as_me: error: cannot compute sizeof (short), 77
4156 See \`config.log' for more details." >&2;}
4157 { (exit 1); exit 1; }; } ;;
4160 if test "$cross_compiling" = yes; then
4161 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4162 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4163 { (exit 1); exit 1; }; }
4165 cat >conftest.
$ac_ext <<_ACEOF
4168 cat confdefs.h
>>conftest.
$ac_ext
4169 cat >>conftest.
$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 $ac_includes_default
4172 long longval () { return (long) (sizeof (short)); }
4173 unsigned long ulongval () { return (long) (sizeof (short)); }
4180 FILE *f = fopen ("conftest.val", "w");
4183 if (((long) (sizeof (short))) < 0)
4185 long i = longval ();
4186 if (i != ((long) (sizeof (short))))
4188 fprintf (f, "%ld\n", i);
4192 unsigned long i = ulongval ();
4193 if (i != ((long) (sizeof (short))))
4195 fprintf (f, "%lu\n", i);
4197 exit (ferror (f) || fclose (f) != 0);
4203 rm -f conftest
$ac_exeext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4205 (eval $ac_link) 2>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 ac_cv_sizeof_short
=`cat conftest.val`
4216 echo "$as_me: program exited with status $ac_status" >&5
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.
$ac_ext >&5
4221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4222 See \`config.log' for more details." >&5
4223 echo "$as_me: error: cannot compute sizeof (short), 77
4224 See \`config.log' for more details." >&2;}
4225 { (exit 1); exit 1; }; }
4227 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4232 ac_cv_sizeof_short
=0
4235 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4236 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4237 cat >>confdefs.h
<<_ACEOF
4238 #define SIZEOF_SHORT $ac_cv_sizeof_short
4242 echo "$as_me:$LINENO: checking for int" >&5
4243 echo $ECHO_N "checking for int... $ECHO_C" >&6
4244 if test "${ac_cv_type_int+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 cat >conftest.
$ac_ext <<_ACEOF
4250 cat confdefs.h
>>conftest.
$ac_ext
4251 cat >>conftest.
$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 $ac_includes_default
4265 rm -f conftest.
$ac_objext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>conftest.er1
4269 grep -v '^ *+' conftest.er1
>conftest.err
4271 cat conftest.err
>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try
='test -s conftest.$ac_objext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.
$ac_ext >&5
4293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4295 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4296 echo "${ECHO_T}$ac_cv_type_int" >&6
4298 echo "$as_me:$LINENO: checking size of int" >&5
4299 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4300 if test "${ac_cv_sizeof_int+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test "$ac_cv_type_int" = yes; then
4304 # The cast to unsigned long works around a bug in the HP C Compiler
4305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4307 # This bug is HP SR number 8606223364.
4308 if test "$cross_compiling" = yes; then
4309 # Depending upon the size, compute the lo and hi bounds.
4310 cat >conftest.
$ac_ext <<_ACEOF
4313 cat confdefs.h
>>conftest.
$ac_ext
4314 cat >>conftest.
$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 $ac_includes_default
4320 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4327 rm -f conftest.
$ac_objext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>conftest.er1
4331 grep -v '^ *+' conftest.er1
>conftest.err
4333 cat conftest.err
>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try
='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4350 cat >conftest.
$ac_ext <<_ACEOF
4353 cat confdefs.h
>>conftest.
$ac_ext
4354 cat >>conftest.
$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4356 $ac_includes_default
4360 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4367 rm -f conftest.
$ac_objext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369 (eval $ac_compile) 2>conftest.er1
4371 grep -v '^ *+' conftest.er1
>conftest.err
4373 cat conftest.err
>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try
='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_hi
=$ac_mid; break
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.
$ac_ext >&5
4393 ac_lo
=`expr $ac_mid + 1`
4394 if test $ac_lo -le $ac_mid; then
4398 ac_mid
=`expr 2 '*' $ac_mid + 1`
4400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.
$ac_ext >&5
4406 cat >conftest.
$ac_ext <<_ACEOF
4409 cat confdefs.h
>>conftest.
$ac_ext
4410 cat >>conftest.
$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4416 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4423 rm -f conftest.
$ac_objext
4424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>conftest.er1
4427 grep -v '^ *+' conftest.er1
>conftest.err
4429 cat conftest.err
>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } &&
4432 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; } &&
4438 { ac_try
='test -s conftest.$ac_objext'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4446 cat >conftest.
$ac_ext <<_ACEOF
4449 cat confdefs.h
>>conftest.
$ac_ext
4450 cat >>conftest.
$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 $ac_includes_default
4456 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4463 rm -f conftest.
$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>conftest.er1
4467 grep -v '^ *+' conftest.er1
>conftest.err
4469 cat conftest.err
>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try
='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_lo
=$ac_mid; break
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.
$ac_ext >&5
4489 ac_hi
=`expr '(' $ac_mid ')' - 1`
4490 if test $ac_mid -le $ac_hi; then
4494 ac_mid
=`expr 2 '*' $ac_mid`
4496 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.
$ac_ext >&5
4504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4507 # Binary search between lo and hi bounds.
4508 while test "x$ac_lo" != "x$ac_hi"; do
4509 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4510 cat >conftest.
$ac_ext <<_ACEOF
4513 cat confdefs.h
>>conftest.
$ac_ext
4514 cat >>conftest.
$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4520 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4527 rm -f conftest.
$ac_objext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>conftest.er1
4531 grep -v '^ *+' conftest.er1
>conftest.err
4533 cat conftest.err
>&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try
='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.
$ac_ext >&5
4553 ac_lo
=`expr '(' $ac_mid ')' + 1`
4555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4558 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4559 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4560 See \`config.log' for more details." >&5
4561 echo "$as_me: error: cannot compute sizeof (int), 77
4562 See \`config.log' for more details." >&2;}
4563 { (exit 1); exit 1; }; } ;;
4566 if test "$cross_compiling" = yes; then
4567 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4568 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4569 { (exit 1); exit 1; }; }
4571 cat >conftest.
$ac_ext <<_ACEOF
4574 cat confdefs.h
>>conftest.
$ac_ext
4575 cat >>conftest.
$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4577 $ac_includes_default
4578 long longval () { return (long) (sizeof (int)); }
4579 unsigned long ulongval () { return (long) (sizeof (int)); }
4586 FILE *f = fopen ("conftest.val", "w");
4589 if (((long) (sizeof (int))) < 0)
4591 long i = longval ();
4592 if (i != ((long) (sizeof (int))))
4594 fprintf (f, "%ld\n", i);
4598 unsigned long i = ulongval ();
4599 if (i != ((long) (sizeof (int))))
4601 fprintf (f, "%lu\n", i);
4603 exit (ferror (f) || fclose (f) != 0);
4609 rm -f conftest
$ac_exeext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611 (eval $ac_link) 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_sizeof_int
=`cat conftest.val`
4622 echo "$as_me: program exited with status $ac_status" >&5
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.
$ac_ext >&5
4627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4628 See \`config.log' for more details." >&5
4629 echo "$as_me: error: cannot compute sizeof (int), 77
4630 See \`config.log' for more details." >&2;}
4631 { (exit 1); exit 1; }; }
4633 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4641 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4642 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4643 cat >>confdefs.h
<<_ACEOF
4644 #define SIZEOF_INT $ac_cv_sizeof_int
4648 echo "$as_me:$LINENO: checking for long" >&5
4649 echo $ECHO_N "checking for long... $ECHO_C" >&6
4650 if test "${ac_cv_type_long+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 cat >conftest.
$ac_ext <<_ACEOF
4656 cat confdefs.h
>>conftest.
$ac_ext
4657 cat >>conftest.
$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 $ac_includes_default
4671 rm -f conftest.
$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4675 grep -v '^ *+' conftest.er1
>conftest.err
4677 cat conftest.err
>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try
='test -s conftest.$ac_objext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.
$ac_ext >&5
4699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4701 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4702 echo "${ECHO_T}$ac_cv_type_long" >&6
4704 echo "$as_me:$LINENO: checking size of long" >&5
4705 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4706 if test "${ac_cv_sizeof_long+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 if test "$ac_cv_type_long" = yes; then
4710 # The cast to unsigned long works around a bug in the HP C Compiler
4711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4713 # This bug is HP SR number 8606223364.
4714 if test "$cross_compiling" = yes; then
4715 # Depending upon the size, compute the lo and hi bounds.
4716 cat >conftest.
$ac_ext <<_ACEOF
4719 cat confdefs.h
>>conftest.
$ac_ext
4720 cat >>conftest.
$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 $ac_includes_default
4726 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4733 rm -f conftest.
$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4737 grep -v '^ *+' conftest.er1
>conftest.err
4739 cat conftest.err
>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try
='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4756 cat >conftest.
$ac_ext <<_ACEOF
4759 cat confdefs.h
>>conftest.
$ac_ext
4760 cat >>conftest.
$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 $ac_includes_default
4766 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4773 rm -f conftest.
$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4777 grep -v '^ *+' conftest.er1
>conftest.err
4779 cat conftest.err
>&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; } &&
4788 { ac_try
='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_hi
=$ac_mid; break
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.
$ac_ext >&5
4799 ac_lo
=`expr $ac_mid + 1`
4800 if test $ac_lo -le $ac_mid; then
4804 ac_mid
=`expr 2 '*' $ac_mid + 1`
4806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.
$ac_ext >&5
4812 cat >conftest.
$ac_ext <<_ACEOF
4815 cat confdefs.h
>>conftest.
$ac_ext
4816 cat >>conftest.
$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 $ac_includes_default
4822 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4829 rm -f conftest.
$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>conftest.er1
4833 grep -v '^ *+' conftest.er1
>conftest.err
4835 cat conftest.err
>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try
='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4852 cat >conftest.
$ac_ext <<_ACEOF
4855 cat confdefs.h
>>conftest.
$ac_ext
4856 cat >>conftest.
$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 $ac_includes_default
4862 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4869 rm -f conftest.
$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>conftest.er1
4873 grep -v '^ *+' conftest.er1
>conftest.err
4875 cat conftest.err
>&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try
='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 ac_lo
=$ac_mid; break
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.
$ac_ext >&5
4895 ac_hi
=`expr '(' $ac_mid ')' - 1`
4896 if test $ac_mid -le $ac_hi; then
4900 ac_mid
=`expr 2 '*' $ac_mid`
4902 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.
$ac_ext >&5
4910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4913 # Binary search between lo and hi bounds.
4914 while test "x$ac_lo" != "x$ac_hi"; do
4915 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4916 cat >conftest.
$ac_ext <<_ACEOF
4919 cat confdefs.h
>>conftest.
$ac_ext
4920 cat >>conftest.
$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 $ac_includes_default
4926 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4933 rm -f conftest.
$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>conftest.er1
4937 grep -v '^ *+' conftest.er1
>conftest.err
4939 cat conftest.err
>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try
='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4956 echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.
$ac_ext >&5
4959 ac_lo
=`expr '(' $ac_mid ')' + 1`
4961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 ?
*) ac_cv_sizeof_long
=$ac_lo;;
4965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4966 See \`config.log' for more details." >&5
4967 echo "$as_me: error: cannot compute sizeof (long), 77
4968 See \`config.log' for more details." >&2;}
4969 { (exit 1); exit 1; }; } ;;
4972 if test "$cross_compiling" = yes; then
4973 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4974 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4975 { (exit 1); exit 1; }; }
4977 cat >conftest.
$ac_ext <<_ACEOF
4980 cat confdefs.h
>>conftest.
$ac_ext
4981 cat >>conftest.
$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 $ac_includes_default
4984 long longval () { return (long) (sizeof (long)); }
4985 unsigned long ulongval () { return (long) (sizeof (long)); }
4992 FILE *f = fopen ("conftest.val", "w");
4995 if (((long) (sizeof (long))) < 0)
4997 long i = longval ();
4998 if (i != ((long) (sizeof (long))))
5000 fprintf (f, "%ld\n", i);
5004 unsigned long i = ulongval ();
5005 if (i != ((long) (sizeof (long))))
5007 fprintf (f, "%lu\n", i);
5009 exit (ferror (f) || fclose (f) != 0);
5015 rm -f conftest
$ac_exeext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017 (eval $ac_link) 2>&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5026 ac_cv_sizeof_long
=`cat conftest.val`
5028 echo "$as_me: program exited with status $ac_status" >&5
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.
$ac_ext >&5
5033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5034 See \`config.log' for more details." >&5
5035 echo "$as_me: error: cannot compute sizeof (long), 77
5036 See \`config.log' for more details." >&2;}
5037 { (exit 1); exit 1; }; }
5039 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5047 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5048 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5049 cat >>confdefs.h
<<_ACEOF
5050 #define SIZEOF_LONG $ac_cv_sizeof_long
5054 echo "$as_me:$LINENO: checking for long long" >&5
5055 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5056 if test "${ac_cv_type_long_long+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 cat >conftest.
$ac_ext <<_ACEOF
5062 cat confdefs.h
>>conftest.
$ac_ext
5063 cat >>conftest.
$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5069 if ((long long *) 0)
5071 if (sizeof (long long))
5077 rm -f conftest.
$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>conftest.er1
5081 grep -v '^ *+' conftest.er1
>conftest.err
5083 cat conftest.err
>&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try
='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 ac_cv_type_long_long
=yes
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.
$ac_ext >&5
5103 ac_cv_type_long_long
=no
5105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5107 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5108 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5109 if test $ac_cv_type_long_long = yes; then
5111 cat >>confdefs.h
<<_ACEOF
5112 #define HAVE_LONG_LONG 1
5115 echo "$as_me:$LINENO: checking for long long" >&5
5116 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5117 if test "${ac_cv_type_long_long+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 cat >conftest.
$ac_ext <<_ACEOF
5123 cat confdefs.h
>>conftest.
$ac_ext
5124 cat >>conftest.
$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 $ac_includes_default
5130 if ((long long *) 0)
5132 if (sizeof (long long))
5138 rm -f conftest.
$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>conftest.er1
5142 grep -v '^ *+' conftest.er1
>conftest.err
5144 cat conftest.err
>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; } &&
5153 { ac_try
='test -s conftest.$ac_objext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 ac_cv_type_long_long
=yes
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.
$ac_ext >&5
5164 ac_cv_type_long_long
=no
5166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5168 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5169 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5171 echo "$as_me:$LINENO: checking size of long long" >&5
5172 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5173 if test "${ac_cv_sizeof_long_long+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 if test "$ac_cv_type_long_long" = yes; then
5177 # The cast to unsigned long works around a bug in the HP C Compiler
5178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5180 # This bug is HP SR number 8606223364.
5181 if test "$cross_compiling" = yes; then
5182 # Depending upon the size, compute the lo and hi bounds.
5183 cat >conftest.
$ac_ext <<_ACEOF
5186 cat confdefs.h
>>conftest.
$ac_ext
5187 cat >>conftest.
$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 $ac_includes_default
5193 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5200 rm -f conftest.
$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202 (eval $ac_compile) 2>conftest.er1
5204 grep -v '^ *+' conftest.er1
>conftest.err
5206 cat conftest.err
>&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try
='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5223 cat >conftest.
$ac_ext <<_ACEOF
5226 cat confdefs.h
>>conftest.
$ac_ext
5227 cat >>conftest.
$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 $ac_includes_default
5233 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5240 rm -f conftest.
$ac_objext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242 (eval $ac_compile) 2>conftest.er1
5244 grep -v '^ *+' conftest.er1
>conftest.err
5246 cat conftest.err
>&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; } &&
5255 { ac_try
='test -s conftest.$ac_objext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_hi
=$ac_mid; break
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.
$ac_ext >&5
5266 ac_lo
=`expr $ac_mid + 1`
5267 if test $ac_lo -le $ac_mid; then
5271 ac_mid
=`expr 2 '*' $ac_mid + 1`
5273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.
$ac_ext >&5
5279 cat >conftest.
$ac_ext <<_ACEOF
5282 cat confdefs.h
>>conftest.
$ac_ext
5283 cat >>conftest.
$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 $ac_includes_default
5289 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5296 rm -f conftest.
$ac_objext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5298 (eval $ac_compile) 2>conftest.er1
5300 grep -v '^ *+' conftest.er1
>conftest.err
5302 cat conftest.err
>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try
='test -s conftest.$ac_objext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5319 cat >conftest.
$ac_ext <<_ACEOF
5322 cat confdefs.h
>>conftest.
$ac_ext
5323 cat >>conftest.
$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 $ac_includes_default
5329 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5336 rm -f conftest.
$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>conftest.er1
5340 grep -v '^ *+' conftest.er1
>conftest.err
5342 cat conftest.err
>&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; } &&
5351 { ac_try
='test -s conftest.$ac_objext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_lo
=$ac_mid; break
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.
$ac_ext >&5
5362 ac_hi
=`expr '(' $ac_mid ')' - 1`
5363 if test $ac_mid -le $ac_hi; then
5367 ac_mid
=`expr 2 '*' $ac_mid`
5369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.
$ac_ext >&5
5377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5380 # Binary search between lo and hi bounds.
5381 while test "x$ac_lo" != "x$ac_hi"; do
5382 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5383 cat >conftest.
$ac_ext <<_ACEOF
5386 cat confdefs.h
>>conftest.
$ac_ext
5387 cat >>conftest.
$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389 $ac_includes_default
5393 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5400 rm -f conftest.
$ac_objext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402 (eval $ac_compile) 2>conftest.er1
5404 grep -v '^ *+' conftest.er1
>conftest.err
5406 cat conftest.err
>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; } &&
5415 { ac_try
='test -s conftest.$ac_objext'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.
$ac_ext >&5
5426 ac_lo
=`expr '(' $ac_mid ')' + 1`
5428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5431 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5432 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5433 See \`config.log' for more details." >&5
5434 echo "$as_me: error: cannot compute sizeof (long long), 77
5435 See \`config.log' for more details." >&2;}
5436 { (exit 1); exit 1; }; } ;;
5439 if test "$cross_compiling" = yes; then
5440 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5441 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5442 { (exit 1); exit 1; }; }
5444 cat >conftest.
$ac_ext <<_ACEOF
5447 cat confdefs.h
>>conftest.
$ac_ext
5448 cat >>conftest.
$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 $ac_includes_default
5451 long longval () { return (long) (sizeof (long long)); }
5452 unsigned long ulongval () { return (long) (sizeof (long long)); }
5459 FILE *f = fopen ("conftest.val", "w");
5462 if (((long) (sizeof (long long))) < 0)
5464 long i = longval ();
5465 if (i != ((long) (sizeof (long long))))
5467 fprintf (f, "%ld\n", i);
5471 unsigned long i = ulongval ();
5472 if (i != ((long) (sizeof (long long))))
5474 fprintf (f, "%lu\n", i);
5476 exit (ferror (f) || fclose (f) != 0);
5482 rm -f conftest
$ac_exeext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5484 (eval $ac_link) 2>&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_sizeof_long_long
=`cat conftest.val`
5495 echo "$as_me: program exited with status $ac_status" >&5
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.
$ac_ext >&5
5500 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5501 See \`config.log' for more details." >&5
5502 echo "$as_me: error: cannot compute sizeof (long long), 77
5503 See \`config.log' for more details." >&2;}
5504 { (exit 1); exit 1; }; }
5506 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5511 ac_cv_sizeof_long_long
=0
5514 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5515 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5516 cat >>confdefs.h
<<_ACEOF
5517 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5523 echo "$as_me:$LINENO: checking for __int64" >&5
5524 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5525 if test "${ac_cv_type___int64+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 cat >conftest.
$ac_ext <<_ACEOF
5531 cat confdefs.h
>>conftest.
$ac_ext
5532 cat >>conftest.
$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 $ac_includes_default
5540 if (sizeof (__int64))
5546 rm -f conftest.
$ac_objext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5548 (eval $ac_compile) 2>conftest.er1
5550 grep -v '^ *+' conftest.er1
>conftest.err
5552 cat conftest.err
>&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; } &&
5561 { ac_try
='test -s conftest.$ac_objext'
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_type___int64
=yes
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.
$ac_ext >&5
5572 ac_cv_type___int64
=no
5574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5576 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5577 echo "${ECHO_T}$ac_cv_type___int64" >&6
5578 if test $ac_cv_type___int64 = yes; then
5580 cat >>confdefs.h
<<_ACEOF
5581 #define HAVE___INT64 1
5584 echo "$as_me:$LINENO: checking for __int64" >&5
5585 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5586 if test "${ac_cv_type___int64+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 cat >conftest.
$ac_ext <<_ACEOF
5592 cat confdefs.h
>>conftest.
$ac_ext
5593 cat >>conftest.
$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 $ac_includes_default
5601 if (sizeof (__int64))
5607 rm -f conftest.
$ac_objext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>conftest.er1
5611 grep -v '^ *+' conftest.er1
>conftest.err
5613 cat conftest.err
>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try
='test -s conftest.$ac_objext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 ac_cv_type___int64
=yes
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.
$ac_ext >&5
5633 ac_cv_type___int64
=no
5635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5638 echo "${ECHO_T}$ac_cv_type___int64" >&6
5640 echo "$as_me:$LINENO: checking size of __int64" >&5
5641 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5642 if test "${ac_cv_sizeof___int64+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 if test "$ac_cv_type___int64" = yes; then
5646 # The cast to unsigned long works around a bug in the HP C Compiler
5647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5649 # This bug is HP SR number 8606223364.
5650 if test "$cross_compiling" = yes; then
5651 # Depending upon the size, compute the lo and hi bounds.
5652 cat >conftest.
$ac_ext <<_ACEOF
5655 cat confdefs.h
>>conftest.
$ac_ext
5656 cat >>conftest.
$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 $ac_includes_default
5662 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5669 rm -f conftest.
$ac_objext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>conftest.er1
5673 grep -v '^ *+' conftest.er1
>conftest.err
5675 cat conftest.err
>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try
='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5692 cat >conftest.
$ac_ext <<_ACEOF
5695 cat confdefs.h
>>conftest.
$ac_ext
5696 cat >>conftest.
$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 $ac_includes_default
5702 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5709 rm -f conftest.
$ac_objext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711 (eval $ac_compile) 2>conftest.er1
5713 grep -v '^ *+' conftest.er1
>conftest.err
5715 cat conftest.err
>&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try
='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_hi
=$ac_mid; break
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.
$ac_ext >&5
5735 ac_lo
=`expr $ac_mid + 1`
5736 if test $ac_lo -le $ac_mid; then
5740 ac_mid
=`expr 2 '*' $ac_mid + 1`
5742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.
$ac_ext >&5
5748 cat >conftest.
$ac_ext <<_ACEOF
5751 cat confdefs.h
>>conftest.
$ac_ext
5752 cat >>conftest.
$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 $ac_includes_default
5758 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5765 rm -f conftest.
$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5769 grep -v '^ *+' conftest.er1
>conftest.err
5771 cat conftest.err
>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try
='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5788 cat >conftest.
$ac_ext <<_ACEOF
5791 cat confdefs.h
>>conftest.
$ac_ext
5792 cat >>conftest.
$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 $ac_includes_default
5798 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5805 rm -f conftest.
$ac_objext
5806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5807 (eval $ac_compile) 2>conftest.er1
5809 grep -v '^ *+' conftest.er1
>conftest.err
5811 cat conftest.err
>&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } &&
5814 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try
='test -s conftest.$ac_objext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_lo
=$ac_mid; break
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.
$ac_ext >&5
5831 ac_hi
=`expr '(' $ac_mid ')' - 1`
5832 if test $ac_mid -le $ac_hi; then
5836 ac_mid
=`expr 2 '*' $ac_mid`
5838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.
$ac_ext >&5
5846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5849 # Binary search between lo and hi bounds.
5850 while test "x$ac_lo" != "x$ac_hi"; do
5851 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5852 cat >conftest.
$ac_ext <<_ACEOF
5855 cat confdefs.h
>>conftest.
$ac_ext
5856 cat >>conftest.
$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 $ac_includes_default
5862 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5869 rm -f conftest.
$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>conftest.er1
5873 grep -v '^ *+' conftest.er1
>conftest.err
5875 cat conftest.err
>&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try
='test -s conftest.$ac_objext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.
$ac_ext >&5
5895 ac_lo
=`expr '(' $ac_mid ')' + 1`
5897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5900 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5901 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5902 See \`config.log' for more details." >&5
5903 echo "$as_me: error: cannot compute sizeof (__int64), 77
5904 See \`config.log' for more details." >&2;}
5905 { (exit 1); exit 1; }; } ;;
5908 if test "$cross_compiling" = yes; then
5909 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5910 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5911 { (exit 1); exit 1; }; }
5913 cat >conftest.
$ac_ext <<_ACEOF
5916 cat confdefs.h
>>conftest.
$ac_ext
5917 cat >>conftest.
$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 $ac_includes_default
5920 long longval () { return (long) (sizeof (__int64)); }
5921 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5928 FILE *f = fopen ("conftest.val", "w");
5931 if (((long) (sizeof (__int64))) < 0)
5933 long i = longval ();
5934 if (i != ((long) (sizeof (__int64))))
5936 fprintf (f, "%ld\n", i);
5940 unsigned long i = ulongval ();
5941 if (i != ((long) (sizeof (__int64))))
5943 fprintf (f, "%lu\n", i);
5945 exit (ferror (f) || fclose (f) != 0);
5951 rm -f conftest
$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953 (eval $ac_link) 2>&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 ac_cv_sizeof___int64
=`cat conftest.val`
5964 echo "$as_me: program exited with status $ac_status" >&5
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.
$ac_ext >&5
5969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5970 See \`config.log' for more details." >&5
5971 echo "$as_me: error: cannot compute sizeof (__int64), 77
5972 See \`config.log' for more details." >&2;}
5973 { (exit 1); exit 1; }; }
5975 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5980 ac_cv_sizeof___int64
=0
5983 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5984 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5985 cat >>confdefs.h
<<_ACEOF
5986 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5993 # ---------------------
5994 # Warnings and checking
5995 # ---------------------
5997 # Check $CC warning features (if it's GCC).
5998 # We want to use -pedantic, but we don't want warnings about
6001 # So, we only use -pedantic if we can disable those warnings.
6003 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6004 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6005 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 save_CFLAGS
="$CFLAGS"
6009 CFLAGS
="-Wno-long-long"
6010 cat >conftest.
$ac_ext <<_ACEOF
6013 cat confdefs.h
>>conftest.
$ac_ext
6014 cat >>conftest.
$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6018 rm -f conftest.
$ac_objext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020 (eval $ac_compile) 2>conftest.er1
6022 grep -v '^ *+' conftest.er1
>conftest.err
6024 cat conftest.err
>&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try
='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_prog_cc_w_no_long_long
=yes
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.
$ac_ext >&5
6044 ac_cv_prog_cc_w_no_long_long
=no
6046 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6047 CFLAGS
="$save_CFLAGS"
6050 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6051 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6053 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6054 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6055 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 save_CFLAGS
="$CFLAGS"
6059 CFLAGS
="-Wno-variadic-macros"
6060 cat >conftest.
$ac_ext <<_ACEOF
6063 cat confdefs.h
>>conftest.
$ac_ext
6064 cat >>conftest.
$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6068 rm -f conftest.
$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>conftest.er1
6072 grep -v '^ *+' conftest.er1
>conftest.err
6074 cat conftest.err
>&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; } &&
6083 { ac_try
='test -s conftest.$ac_objext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 ac_cv_prog_cc_w_no_variadic_macros
=yes
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.
$ac_ext >&5
6094 ac_cv_prog_cc_w_no_variadic_macros
=no
6096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6097 CFLAGS
="$save_CFLAGS"
6100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6101 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6104 if test $ac_cv_prog_cc_w_no_long_long = yes \
6105 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6106 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6109 # Add -Wold-style-definition if it's accepted
6110 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6111 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6112 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 save_CFLAGS
="$CFLAGS"
6116 CFLAGS
="-Wold-style-definition"
6117 cat >conftest.
$ac_ext <<_ACEOF
6120 cat confdefs.h
>>conftest.
$ac_ext
6121 cat >>conftest.
$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6125 rm -f conftest.
$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>conftest.er1
6129 grep -v '^ *+' conftest.er1
>conftest.err
6131 cat conftest.err
>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; } &&
6140 { ac_try
='test -s conftest.$ac_objext'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6146 ac_cv_prog_cc_w_old_style_definition
=yes
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.
$ac_ext >&5
6151 ac_cv_prog_cc_w_old_style_definition
=no
6153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6154 CFLAGS
="$save_CFLAGS"
6157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6158 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6159 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6160 strict1_warn
="${strict1_warn} -Wold-style-definition"
6163 # Add -Wmissing-format-attribute if it's accepted
6164 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6165 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6166 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 save_CFLAGS
="$CFLAGS"
6170 CFLAGS
="-Wmissing-format-attribute"
6171 cat >conftest.
$ac_ext <<_ACEOF
6174 cat confdefs.h
>>conftest.
$ac_ext
6175 cat >>conftest.
$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6179 rm -f conftest.
$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6183 grep -v '^ *+' conftest.er1
>conftest.err
6185 cat conftest.err
>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try
='test -s conftest.$ac_objext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_prog_cc_w_missing_format_attribute
=yes
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.
$ac_ext >&5
6205 ac_cv_prog_cc_w_missing_format_attribute
=no
6207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6208 CFLAGS
="$save_CFLAGS"
6211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6213 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6214 strict1_warn
="${strict1_warn} -Wmissing-format-attribute"
6217 # Enable -Werror, period.
6218 # Check whether --enable-werror_always or --disable-werror_always was given.
6219 if test "${enable_werror_always+set}" = set; then
6220 enableval
="$enable_werror_always"
6223 enable_werror_always
=no
6225 if test x
${enable_werror_always} = xyes
; then
6226 strict1_warn
="${strict1_warn} -Werror"
6232 # If the native compiler is GCC, we can enable warnings even in stage1.
6233 # That's useful for people building cross-compilers, or just running a
6236 if test "x$GCC" = "xyes"; then
6237 warn_cflags
='$(GCC_WARN_CFLAGS)'
6241 # Enable -Werror in bootstrap stage2 and later.
6243 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6246 # Check whether --enable-werror or --disable-werror was given.
6247 if test "${enable_werror+set}" = set; then
6248 enableval
="$enable_werror"
6251 if test x
$is_release = x
; then
6252 # Default to "yes" on development branches.
6255 # Default to "no" on release branches.
6259 if test x
$enable_werror = xyes
; then
6264 # Enable expensive internal checks
6265 # Check whether --enable-checking or --disable-checking was given.
6266 if test "${enable_checking+set}" = set; then
6267 enableval
="$enable_checking"
6268 ac_checking_flags
="${enableval}"
6271 # Determine the default checks.
6272 if test x
$is_release = x
; then
6273 ac_checking_flags
=yes
6275 ac_checking_flags
=release
6278 ac_assert_checking
=1
6282 ac_gc_always_collect
=
6284 ac_rtlflag_checking
=
6285 ac_runtime_checking
=1
6287 ac_valgrind_checking
=
6288 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6289 for check
in $ac_checking_flags
6292 # these set all the flags to specific states
6293 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6294 ac_fold_checking
= ; ac_gc_checking
=1 ;
6295 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6296 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6297 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6298 no|none
) ac_assert_checking
= ; ac_checking
= ;
6299 ac_fold_checking
= ; ac_gc_checking
= ;
6300 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6301 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6302 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6303 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6304 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6305 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6306 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6307 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6308 release
) ac_assert_checking
=1 ; ac_checking
= ;
6309 ac_fold_checking
= ; ac_gc_checking
= ;
6310 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6311 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6312 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6313 # these enable particular checks
6314 assert
) ac_assert_checking
=1 ;;
6315 fold) ac_fold_checking
=1 ;;
6316 gc
) ac_gc_checking
=1 ;;
6317 gcac
) ac_gc_always_collect
=1 ;;
6318 misc
) ac_checking
=1 ;;
6319 rtl
) ac_rtl_checking
=1 ;;
6320 rtlflag
) ac_rtlflag_checking
=1 ;;
6321 runtime
) ac_runtime_checking
=1 ;;
6322 tree
) ac_tree_checking
=1 ;;
6323 valgrind
) ac_valgrind_checking
=1 ;;
6324 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6325 echo "$as_me: error: unknown check category $check" >&2;}
6326 { (exit 1); exit 1; }; } ;;
6332 if test x
$ac_checking != x
; then
6334 cat >>confdefs.h
<<\_ACEOF
6335 #define ENABLE_CHECKING 1
6338 nocommon_flag
=-fno-common
6341 if test x
$ac_assert_checking != x
; then
6343 cat >>confdefs.h
<<\_ACEOF
6344 #define ENABLE_ASSERT_CHECKING 1
6349 if test x
$ac_runtime_checking != x
; then
6351 cat >>confdefs.h
<<\_ACEOF
6352 #define ENABLE_RUNTIME_CHECKING 1
6356 if test x
$ac_tree_checking != x
; then
6358 cat >>confdefs.h
<<\_ACEOF
6359 #define ENABLE_TREE_CHECKING 1
6362 TREEBROWSER
=tree-browser.o
6365 if test x
$ac_rtl_checking != x
; then
6367 cat >>confdefs.h
<<\_ACEOF
6368 #define ENABLE_RTL_CHECKING 1
6372 if test x
$ac_rtlflag_checking != x
; then
6374 cat >>confdefs.h
<<\_ACEOF
6375 #define ENABLE_RTL_FLAG_CHECKING 1
6379 if test x
$ac_gc_checking != x
; then
6381 cat >>confdefs.h
<<\_ACEOF
6382 #define ENABLE_GC_CHECKING 1
6386 if test x
$ac_gc_always_collect != x
; then
6388 cat >>confdefs.h
<<\_ACEOF
6389 #define ENABLE_GC_ALWAYS_COLLECT 1
6393 if test x
$ac_fold_checking != x
; then
6395 cat >>confdefs.h
<<\_ACEOF
6396 #define ENABLE_FOLD_CHECKING 1
6400 valgrind_path_defines
=
6403 if test "${ac_cv_header_valgrind_h+set}" = set; then
6404 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6405 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6406 if test "${ac_cv_header_valgrind_h+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6410 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6412 # Is the header compilable?
6413 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6414 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6415 cat >conftest.
$ac_ext <<_ACEOF
6418 cat confdefs.h
>>conftest.
$ac_ext
6419 cat >>conftest.
$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 $ac_includes_default
6422 #include <valgrind.h>
6424 rm -f conftest.
$ac_objext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426 (eval $ac_compile) 2>conftest.er1
6428 grep -v '^ *+' conftest.er1
>conftest.err
6430 cat conftest.err
>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try
='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_header_compiler
=yes
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.
$ac_ext >&5
6450 ac_header_compiler
=no
6452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6454 echo "${ECHO_T}$ac_header_compiler" >&6
6456 # Is the header present?
6457 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6458 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6459 cat >conftest.
$ac_ext <<_ACEOF
6462 cat confdefs.h
>>conftest.
$ac_ext
6463 cat >>conftest.
$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 #include <valgrind.h>
6467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6468 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6470 grep -v '^ *+' conftest.er1
>conftest.err
6472 cat conftest.err
>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } >/dev
/null
; then
6475 if test -s conftest.err
; then
6476 ac_cpp_err
=$ac_c_preproc_warn_flag
6477 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6484 if test -z "$ac_cpp_err"; then
6485 ac_header_preproc
=yes
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.
$ac_ext >&5
6490 ac_header_preproc
=no
6492 rm -f conftest.err conftest.
$ac_ext
6493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6494 echo "${ECHO_T}$ac_header_preproc" >&6
6496 # So? What about this header?
6497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6499 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6500 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6502 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6503 ac_header_preproc
=yes
6506 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6507 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6509 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6511 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6512 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6513 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6515 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6517 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6520 ## ------------------------------------------ ##
6521 ## Report this to the AC_PACKAGE_NAME lists. ##
6522 ## ------------------------------------------ ##
6525 sed "s/^/$as_me: WARNING: /" >&2
6528 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6529 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6530 if test "${ac_cv_header_valgrind_h+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 ac_cv_header_valgrind_h
=$ac_header_preproc
6535 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6536 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6539 if test $ac_cv_header_valgrind_h = yes; then
6547 if test x
$ac_valgrind_checking != x
; then
6548 # It is certainly possible that there's valgrind but no valgrind.h.
6549 # GCC relies on making annotations so we must have both.
6550 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6551 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6552 cat >conftest.
$ac_ext <<_ACEOF
6555 cat confdefs.h
>>conftest.
$ac_ext
6556 cat >>conftest.
$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 #include <valgrind/memcheck.h>
6559 #ifndef VALGRIND_DISCARD
6560 #error VALGRIND_DISCARD not defined
6563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6564 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6566 grep -v '^ *+' conftest.er1
>conftest.err
6568 cat conftest.err
>&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } >/dev
/null
; then
6571 if test -s conftest.err
; then
6572 ac_cpp_err
=$ac_c_preproc_warn_flag
6573 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6580 if test -z "$ac_cpp_err"; then
6581 gcc_cv_header_valgrind_memcheck_h
=yes
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.
$ac_ext >&5
6586 gcc_cv_header_valgrind_memcheck_h
=no
6588 rm -f conftest.err conftest.
$ac_ext
6589 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6590 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6591 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6592 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6593 cat >conftest.
$ac_ext <<_ACEOF
6596 cat confdefs.h
>>conftest.
$ac_ext
6597 cat >>conftest.
$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 #include <memcheck.h>
6600 #ifndef VALGRIND_DISCARD
6601 #error VALGRIND_DISCARD not defined
6604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6605 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6607 grep -v '^ *+' conftest.er1
>conftest.err
6609 cat conftest.err
>&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } >/dev
/null
; then
6612 if test -s conftest.err
; then
6613 ac_cpp_err
=$ac_c_preproc_warn_flag
6614 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6621 if test -z "$ac_cpp_err"; then
6622 gcc_cv_header_memcheck_h
=yes
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.
$ac_ext >&5
6627 gcc_cv_header_memcheck_h
=no
6629 rm -f conftest.err conftest.
$ac_ext
6630 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6631 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6633 # Prepare PATH_SEPARATOR.
6634 # The user is always right.
6635 if test "${PATH_SEPARATOR+set}" != set; then
6636 echo "#! /bin/sh" >conf$$.sh
6637 echo "exit 0" >>conf$$.sh
6639 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6647 # Find out how to test for executable files. Don't use a zero-byte file,
6648 # as systems may use methods other than mode bits to determine executability.
6649 cat >conf$$.
file <<_ASEOF
6653 chmod +x conf$$.
file
6654 if test -x conf$$.
file >/dev
/null
2>&1; then
6655 ac_executable_p
="test -x"
6657 ac_executable_p
="test -f"
6661 # Extract the first word of "valgrind", so it can be a program name with args.
6662 set dummy valgrind
; ac_word
=$2
6663 echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6665 if test "${ac_cv_path_valgrind_path+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 case "$valgrind_path" in
6670 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6673 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6674 for ac_dir
in $PATH; do
6676 test -z "$ac_dir" && ac_dir
=.
6677 for ac_exec_ext
in '' $ac_executable_extensions; do
6678 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6679 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6680 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6690 valgrind_path
="$ac_cv_path_valgrind_path"
6691 if test -n "$valgrind_path"; then
6692 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6693 echo "${ECHO_T}$valgrind_path" >&6
6695 echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6
6699 if test "x$valgrind_path" = "x" \
6700 ||
(test $have_valgrind_h = no \
6701 && test $gcc_cv_header_memcheck_h = no \
6702 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6703 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6704 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6705 { (exit 1); exit 1; }; }
6707 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6708 valgrind_command
="$valgrind_path -q"
6710 cat >>confdefs.h
<<\_ACEOF
6711 #define ENABLE_VALGRIND_CHECKING 1
6714 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6716 cat >>confdefs.h
<<\_ACEOF
6717 #define HAVE_VALGRIND_MEMCHECK_H 1
6721 if test $gcc_cv_header_memcheck_h = yes; then
6723 cat >>confdefs.h
<<\_ACEOF
6724 #define HAVE_MEMCHECK_H 1
6732 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6733 if test "${enable_mapped_location+set}" = set; then
6734 enableval
="$enable_mapped_location"
6737 enable_mapped_location
=no
6740 if test "$enable_mapped_location" = yes ; then
6742 cat >>confdefs.h
<<\_ACEOF
6743 #define USE_MAPPED_LOCATION 1
6748 # Enable code coverage collection
6749 # Check whether --enable-coverage or --disable-coverage was given.
6750 if test "${enable_coverage+set}" = set; then
6751 enableval
="$enable_coverage"
6752 case "${enableval}" in
6754 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6757 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6760 # a.k.a. --disable-coverage
6764 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6765 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6766 { (exit 1); exit 1; }; }
6774 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6775 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6776 enableval
="$enable_gather_detailed_mem_stats"
6779 enable_gather_detailed_mem_stats
=no
6781 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6783 cat >>confdefs.h
<<\_ACEOF
6784 #define GATHER_STATISTICS 1
6789 # -------------------------------
6790 # Miscenalleous configure options
6791 # -------------------------------
6795 # Check whether --with-stabs or --without-stabs was given.
6796 if test "${with_stabs+set}" = set; then
6797 withval
="$with_stabs"
6803 # Determine whether or not multilibs are enabled.
6804 # Check whether --enable-multilib or --disable-multilib was given.
6805 if test "${enable_multilib+set}" = set; then
6806 enableval
="$enable_multilib"
6813 # Enable __cxa_atexit for C++.
6814 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6815 if test "${enable___cxa_atexit+set}" = set; then
6816 enableval
="$enable___cxa_atexit"
6820 # Enable C extension for decimal float if target supports it.
6821 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6822 if test "${enable_decimal_float+set}" = set; then
6823 enableval
="$enable_decimal_float"
6825 if test x
$enablevar = xyes
; then
6827 powerpc
*-*-linux* | i?
86*-*-linux*)
6830 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6831 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6832 enable_decimal_float
=no
6841 enable_decimal_float
=yes
6844 enable_decimal_float
=no
6852 dfp
=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
6854 cat >>confdefs.h
<<_ACEOF
6855 #define ENABLE_DECIMAL_FLOAT $dfp
6860 # Pass with no value to take the default
6861 # Pass with a value to specify a thread package
6862 # Check whether --enable-threads or --disable-threads was given.
6863 if test "${enable_threads+set}" = set; then
6864 enableval
="$enable_threads"
6870 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6871 if test "${enable_objc_gc+set}" = set; then
6872 enableval
="$enable_objc_gc"
6873 if test x
$enable_objc_gc = xno
; then
6883 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6884 if test "${with_dwarf2+set}" = set; then
6885 withval
="$with_dwarf2"
6886 dwarf2
="$with_dwarf2"
6891 # Check whether --enable-shared or --disable-shared was given.
6892 if test "${enable_shared+set}" = set; then
6893 enableval
="$enable_shared"
6895 case $enable_shared in
6899 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6900 for pkg
in $enableval; do
6901 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6915 # Check whether --with-build-sysroot or --without-build-sysroot was given.
6916 if test "${with_build_sysroot+set}" = set; then
6917 withval
="$with_build_sysroot"
6922 # Check whether --with-sysroot or --without-sysroot was given.
6923 if test "${with_sysroot+set}" = set; then
6924 withval
="$with_sysroot"
6926 case ${with_sysroot} in
6927 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6928 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6931 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6932 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6934 if test "x$exec_prefix" = xNONE
; then
6935 if test "x$prefix" = xNONE
; then
6936 test_prefix
=/usr
/local
6941 test_prefix
=$exec_prefix
6943 case ${TARGET_SYSTEM_ROOT} in
6944 "${test_prefix}"|
"${test_prefix}/"*|\
6945 '${exec_prefix}'|
'${exec_prefix}/'*)
6946 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6947 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6954 TARGET_SYSTEM_ROOT_DEFINE
=
6955 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6962 # Build with intermodule optimisations
6963 # Check whether --enable-intermodule or --disable-intermodule was given.
6964 if test "${enable_intermodule+set}" = set; then
6965 enableval
="$enable_intermodule"
6966 case ${enable_intermodule} in
6967 yes) onestep
="-onestep";;
6975 # Sanity check enable_languages in case someone does not run the toplevel
6976 # configure # script.
6977 # Check whether --enable-languages or --disable-languages was given.
6978 if test "${enable_languages+set}" = set; then
6979 enableval
="$enable_languages"
6980 case ,${enable_languages}, in
6982 # go safe -- we cannot be much sure without the toplevel
6984 # analysis of which target libs are present and usable
6988 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6989 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6990 { (exit 1); exit 1; }; }
6995 enable_languages
=c
,${enable_languages}
7003 for lang
in ${srcdir}/*/config-lang.
in
7006 # The odd quoting in the next line works around
7007 # an apparent bug in bash 1.12 on linux.
7008 ${srcdir}/[*]/config-lang.
in) ;;
7010 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7011 if test "x$lang_alias" = x
7013 echo "$lang doesn't set \$language." 1>&2
7016 case ",$enable_languages," in
7018 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7025 # -------------------------
7026 # Checks for other programs
7027 # -------------------------
7029 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7030 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7031 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7032 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 cat >conftest.
make <<\_ACEOF
7037 @
echo 'ac_maketemp="$(MAKE)"'
7039 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7040 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7041 if test -n "$ac_maketemp"; then
7042 eval ac_cv_prog_make_
${ac_make}_set
=yes
7044 eval ac_cv_prog_make_
${ac_make}_set
=no
7048 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7049 echo "$as_me:$LINENO: result: yes" >&5
7050 echo "${ECHO_T}yes" >&6
7053 echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6
7055 SET_MAKE
="MAKE=${MAKE-make}"
7059 # Find some useful tools
7060 for ac_prog
in gawk mawk nawk
awk
7062 # Extract the first word of "$ac_prog", so it can be a program name with args.
7063 set dummy
$ac_prog; ac_word
=$2
7064 echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7066 if test "${ac_cv_prog_AWK+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 if test -n "$AWK"; then
7070 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir
=.
7077 for ac_exec_ext
in '' $ac_executable_extensions; do
7078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_AWK
="$ac_prog"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 if test -n "$AWK"; then
7090 echo "$as_me:$LINENO: result: $AWK" >&5
7091 echo "${ECHO_T}$AWK" >&6
7093 echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6
7097 test -n "$AWK" && break
7100 # We need awk to create options.c and options.h.
7101 # Bail out if it's missing.
7103 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7104 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7105 { (exit 1); exit 1; }; } ;;
7108 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7109 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7110 if test "${gcc_cv_prog_LN_S+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 rm -f conftestdata_t
7114 echo >conftestdata_f
7115 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7117 gcc_cv_prog_LN_S
="ln -s"
7119 if ln conftestdata_f conftestdata_t
2>/dev
/null
7123 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7125 gcc_cv_prog_LN_S
="cp -p"
7131 rm -f conftestdata_f conftestdata_t
7134 LN_S
="$gcc_cv_prog_LN_S"
7135 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7136 echo "$as_me:$LINENO: result: yes" >&5
7137 echo "${ECHO_T}yes" >&6
7139 if test "$gcc_cv_prog_LN_S" = "ln"; then
7140 echo "$as_me:$LINENO: result: no, using ln" >&5
7141 echo "${ECHO_T}no, using ln" >&6
7143 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7144 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7148 echo "$as_me:$LINENO: checking whether ln works" >&5
7149 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7150 if test "${acx_cv_prog_LN+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 rm -f conftestdata_t
7154 echo >conftestdata_f
7155 if ln conftestdata_f conftestdata_t
2>/dev
/null
7161 rm -f conftestdata_f conftestdata_t
7164 if test $acx_cv_prog_LN = no
; then
7166 echo "$as_me:$LINENO: result: no, using $LN" >&5
7167 echo "${ECHO_T}no, using $LN" >&6
7169 LN
="$acx_cv_prog_LN"
7170 echo "$as_me:$LINENO: result: yes" >&5
7171 echo "${ECHO_T}yes" >&6
7174 if test -n "$ac_tool_prefix"; then
7175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7176 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7177 echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7179 if test "${ac_cv_prog_RANLIB+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 if test -n "$RANLIB"; then
7183 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir
=.
7190 for ac_exec_ext
in '' $ac_executable_extensions; do
7191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 RANLIB
=$ac_cv_prog_RANLIB
7202 if test -n "$RANLIB"; then
7203 echo "$as_me:$LINENO: result: $RANLIB" >&5
7204 echo "${ECHO_T}$RANLIB" >&6
7206 echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6
7211 if test -z "$ac_cv_prog_RANLIB"; then
7212 ac_ct_RANLIB
=$RANLIB
7213 # Extract the first word of "ranlib", so it can be a program name with args.
7214 set dummy ranlib
; ac_word
=$2
7215 echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 if test -n "$ac_ct_RANLIB"; then
7221 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir
=.
7228 for ac_exec_ext
in '' $ac_executable_extensions; do
7229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7240 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7241 if test -n "$ac_ct_RANLIB"; then
7242 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7243 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7245 echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6
7249 RANLIB
=$ac_ct_RANLIB
7251 RANLIB
="$ac_cv_prog_RANLIB"
7256 # By default, the Darwin ranlib will not treat common symbols as
7257 # definitions when building the archive table of contents. Other
7258 # ranlibs do that; pass an option to the Darwin ranlib that makes
7259 # it behave similarly.
7267 # Find a good install program. We prefer a C program (faster),
7268 # so one script is as good as another. But avoid the broken or
7269 # incompatible versions:
7270 # SysV /etc/install, /usr/sbin/install
7271 # SunOS /usr/etc/install
7272 # IRIX /sbin/install
7274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7276 # ./install, which can be erroneously created by make from ./install.sh.
7277 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7278 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7279 if test -z "$INSTALL"; then
7280 if test "${ac_cv_path_install+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7284 for ac_dir
in $PATH; do
7285 # Account for people who put trailing slashes in PATH elements.
7287 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7289 # OSF1 and SCO ODT 3.0 have their own names for install.
7290 for ac_prog
in ginstall scoinst
install; do
7291 if test -f $ac_dir/$ac_prog; then
7292 if test $ac_prog = install &&
7293 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7294 # AIX install. It has an incompatible calling convention.
7295 # OSF/1 installbsd also uses dspmsg, but is usable.
7298 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7309 if test "${ac_cv_path_install+set}" = set; then
7310 INSTALL
="$ac_cv_path_install"
7312 # As a last resort, use the slow shell script. We don't cache a
7313 # path for INSTALL within a source directory, because that will
7314 # break other packages using the cache if that directory is
7315 # removed, or if the path is relative.
7316 INSTALL
="$ac_install_sh"
7319 echo "$as_me:$LINENO: result: $INSTALL" >&5
7320 echo "${ECHO_T}$INSTALL" >&6
7322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7323 # It thinks the first close brace ends the variable substitution.
7324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7326 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7329 # See if cmp has --ignore-initial.
7330 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7331 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7332 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 gcc_cv_prog_cmp_skip
=slowcompare
7338 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7339 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7342 gcc_cv_prog_cmp_skip
=gnucompare
7345 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7346 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7347 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7350 gcc_cv_prog_cmp_skip
=fastcompare
7357 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7358 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7359 make_compare_target
=$gcc_cv_prog_cmp_skip
7363 # See if we have the mktemp command.
7364 # Extract the first word of "mktemp", so it can be a program name with args.
7365 set dummy mktemp
; ac_word
=$2
7366 echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7368 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 if test -n "$have_mktemp_command"; then
7372 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir
=.
7379 for ac_exec_ext
in '' $ac_executable_extensions; do
7380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_have_mktemp_command
="yes"
7382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7391 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7392 if test -n "$have_mktemp_command"; then
7393 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7394 echo "${ECHO_T}$have_mktemp_command" >&6
7396 echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6
7401 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7403 # See if makeinfo has been installed and is modern enough
7404 # that we can use it.
7406 ac_executable_extensions
="$build_exeext"
7408 # Extract the first word of "makeinfo", so it can be a program name with args.
7409 set dummy makeinfo
; ac_word
=$2
7410 echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7412 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 if test -n "$MAKEINFO"; then
7416 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir
=.
7423 for ac_exec_ext
in '' $ac_executable_extensions; do
7424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_MAKEINFO
="makeinfo"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 MAKEINFO
=$ac_cv_prog_MAKEINFO
7435 if test -n "$MAKEINFO"; then
7436 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7437 echo "${ECHO_T}$MAKEINFO" >&6
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7443 if test -n "$MAKEINFO"; then
7444 # Found it, now check the version.
7445 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7446 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7447 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7451 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7452 echo "configure:7452: version of makeinfo is $ac_prog_version" >&5
7453 case $ac_prog_version in
7454 '') gcc_cv_prog_makeinfo_modern
=no
;;
7456 gcc_cv_prog_makeinfo_modern
=yes;;
7457 *) gcc_cv_prog_makeinfo_modern
=no
;;
7461 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7462 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7464 gcc_cv_prog_makeinfo_modern
=no
7467 if test $gcc_cv_prog_makeinfo_modern = no
; then
7468 MAKEINFO
="$MISSING makeinfo"
7469 { echo "$as_me:$LINENO: WARNING:
7470 *** Makeinfo is missing or too old.
7471 *** Info documentation will not be built." >&5
7472 echo "$as_me: WARNING:
7473 *** Makeinfo is missing or too old.
7474 *** Info documentation will not be built." >&2;}
7481 # Is pod2man recent enough to regenerate manpages?
7482 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7483 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7484 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7485 echo "$as_me:$LINENO: result: yes" >&5
7486 echo "${ECHO_T}yes" >&6
7487 GENERATED_MANPAGES
=generated-manpages
7489 echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy
$ac_prog; ac_word
=$2
7500 echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7502 if test "${ac_cv_prog_FLEX+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 if test -n "$FLEX"; then
7506 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir
=.
7513 for ac_exec_ext
in '' $ac_executable_extensions; do
7514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_FLEX
="$ac_prog"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 FLEX
=$ac_cv_prog_FLEX
7525 if test -n "$FLEX"; then
7526 echo "$as_me:$LINENO: result: $FLEX" >&5
7527 echo "${ECHO_T}$FLEX" >&6
7529 echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6
7533 test -n "$FLEX" && break
7535 test -n "$FLEX" || FLEX
="$MISSING flex"
7539 for ac_prog
in bison
7541 # Extract the first word of "$ac_prog", so it can be a program name with args.
7542 set dummy
$ac_prog; ac_word
=$2
7543 echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545 if test "${ac_cv_prog_BISON+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 if test -n "$BISON"; then
7549 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir
=.
7556 for ac_exec_ext
in '' $ac_executable_extensions; do
7557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_BISON
="$ac_prog"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 BISON
=$ac_cv_prog_BISON
7568 if test -n "$BISON"; then
7569 echo "$as_me:$LINENO: result: $BISON" >&5
7570 echo "${ECHO_T}$BISON" >&6
7572 echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7576 test -n "$BISON" && break
7578 test -n "$BISON" || BISON
="$MISSING bison"
7581 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7582 # check for build == host before using them.
7585 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7586 && test -d ..
/binutils
; then
7587 NM
='$(objdir)/../binutils/nm-new'
7589 # Extract the first word of "nm", so it can be a program name with args.
7590 set dummy nm
; ac_word
=$2
7591 echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593 if test "${ac_cv_prog_NM+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 if test -n "$NM"; then
7597 ac_cv_prog_NM
="$NM" # Let the user override the test.
7599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir
=.
7604 for ac_exec_ext
in '' $ac_executable_extensions; do
7605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7617 if test -n "$NM"; then
7618 echo "$as_me:$LINENO: result: $NM" >&5
7619 echo "${ECHO_T}$NM" >&6
7621 echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6
7628 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7629 && test -d ..
/binutils
; then
7630 AR
='$(objdir)/../binutils/ar'
7632 # Extract the first word of "ar", so it can be a program name with args.
7633 set dummy
ar; ac_word
=$2
7634 echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7636 if test "${ac_cv_prog_AR+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 if test -n "$AR"; then
7640 ac_cv_prog_AR
="$AR" # Let the user override the test.
7642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir
=.
7647 for ac_exec_ext
in '' $ac_executable_extensions; do
7648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7660 if test -n "$AR"; then
7661 echo "$as_me:$LINENO: result: $AR" >&5
7662 echo "${ECHO_T}$AR" >&6
7664 echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6
7671 # --------------------
7672 # Checks for C headers
7673 # --------------------
7675 echo "$as_me:$LINENO: checking for GNU C library" >&5
7676 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7677 if test "${gcc_cv_glibc+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 cat >conftest.
$ac_ext <<_ACEOF
7683 cat confdefs.h
>>conftest.
$ac_ext
7684 cat >>conftest.
$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 #include <features.h>
7691 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7692 #error Not a GNU C library system
7698 rm -f conftest.
$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7702 grep -v '^ *+' conftest.er1
>conftest.err
7704 cat conftest.err
>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try
='test -s conftest.$ac_objext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.
$ac_ext >&5
7726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7729 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7730 echo "${ECHO_T}$gcc_cv_glibc" >&6
7731 if test $gcc_cv_glibc = yes; then
7733 cat >>confdefs.h
<<\_ACEOF
7734 #define _GNU_SOURCE 1
7739 # Need to reject headers which give warnings, so that the -Werror bootstrap
7740 # works later. *sigh* This needs to come before all header checks.
7742 ac_c_preproc_warn_flag
=yes
7744 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7745 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7746 if test "${ac_cv_header_stdc+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 cat >conftest.
$ac_ext <<_ACEOF
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7768 rm -f conftest.
$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7772 grep -v '^ *+' conftest.er1
>conftest.err
7774 cat conftest.err
>&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try
='test -s conftest.$ac_objext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_header_stdc
=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.
$ac_ext >&5
7794 ac_cv_header_stdc
=no
7796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7798 if test $ac_cv_header_stdc = yes; then
7799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7800 cat >conftest.
$ac_ext <<_ACEOF
7803 cat confdefs.h
>>conftest.
$ac_ext
7804 cat >>conftest.
$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810 $EGREP "memchr" >/dev
/null
2>&1; then
7813 ac_cv_header_stdc
=no
7819 if test $ac_cv_header_stdc = yes; then
7820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7821 cat >conftest.
$ac_ext <<_ACEOF
7824 cat confdefs.h
>>conftest.
$ac_ext
7825 cat >>conftest.
$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7831 $EGREP "free" >/dev
/null
2>&1; then
7834 ac_cv_header_stdc
=no
7840 if test $ac_cv_header_stdc = yes; then
7841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7842 if test "$cross_compiling" = yes; then
7845 cat >conftest.
$ac_ext <<_ACEOF
7848 cat confdefs.h
>>conftest.
$ac_ext
7849 cat >>conftest.
$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7852 #if ((' ' & 0x0FF) == 0x020)
7853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7856 # define ISLOWER(c) \
7857 (('a' <= (c) && (c) <= 'i') \
7858 || ('j' <= (c) && (c) <= 'r') \
7859 || ('s' <= (c) && (c) <= 'z'))
7860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7868 for (i = 0; i < 256; i++)
7869 if (XOR (islower (i), ISLOWER (i))
7870 || toupper (i) != TOUPPER (i))
7875 rm -f conftest
$ac_exeext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7877 (eval $ac_link) 2>&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7888 echo "$as_me: program exited with status $ac_status" >&5
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.
$ac_ext >&5
7893 ac_cv_header_stdc
=no
7895 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7899 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7900 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7901 if test $ac_cv_header_stdc = yes; then
7903 cat >>confdefs.h
<<\_ACEOF
7904 #define STDC_HEADERS 1
7909 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7910 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7911 if test "${ac_cv_header_time+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 cat >conftest.
$ac_ext <<_ACEOF
7917 cat confdefs.h
>>conftest.
$ac_ext
7918 cat >>conftest.
$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 #include <sys/types.h>
7921 #include <sys/time.h>
7927 if ((struct tm *) 0)
7933 rm -f conftest.
$ac_objext
7934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935 (eval $ac_compile) 2>conftest.er1
7937 grep -v '^ *+' conftest.er1
>conftest.err
7939 cat conftest.err
>&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; } &&
7948 { ac_try
='test -s conftest.$ac_objext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 ac_cv_header_time
=yes
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.
$ac_ext >&5
7959 ac_cv_header_time
=no
7961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7963 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7964 echo "${ECHO_T}$ac_cv_header_time" >&6
7965 if test $ac_cv_header_time = yes; then
7967 cat >>confdefs.h
<<\_ACEOF
7968 #define TIME_WITH_SYS_TIME 1
7973 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7974 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7975 if test "${gcc_cv_header_string+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 cat >conftest.
$ac_ext <<_ACEOF
7981 cat confdefs.h
>>conftest.
$ac_ext
7982 cat >>conftest.
$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7985 #include <strings.h>
7994 rm -f conftest.
$ac_objext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996 (eval $ac_compile) 2>conftest.er1
7998 grep -v '^ *+' conftest.er1
>conftest.err
8000 cat conftest.err
>&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; } &&
8009 { ac_try
='test -s conftest.$ac_objext'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 gcc_cv_header_string
=yes
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.
$ac_ext >&5
8020 gcc_cv_header_string
=no
8022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8024 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8025 echo "${ECHO_T}$gcc_cv_header_string" >&6
8026 if test $gcc_cv_header_string = yes; then
8028 cat >>confdefs.h
<<\_ACEOF
8029 #define STRING_WITH_STRINGS 1
8034 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8035 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8036 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 cat >conftest.
$ac_ext <<_ACEOF
8042 cat confdefs.h
>>conftest.
$ac_ext
8043 cat >>conftest.
$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 #include <sys/types.h>
8046 #include <sys/wait.h>
8048 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8051 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8059 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8064 rm -f conftest.
$ac_objext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>conftest.er1
8068 grep -v '^ *+' conftest.er1
>conftest.err
8070 cat conftest.err
>&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try
='test -s conftest.$ac_objext'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; }; then
8085 ac_cv_header_sys_wait_h
=yes
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.
$ac_ext >&5
8090 ac_cv_header_sys_wait_h
=no
8092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8094 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8095 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8096 if test $ac_cv_header_sys_wait_h = yes; then
8098 cat >>confdefs.h
<<\_ACEOF
8099 #define HAVE_SYS_WAIT_H 1
8126 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8127 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8128 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8129 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8131 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8132 echo "$as_me:$LINENO: checking for $ac_header" >&5
8133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 cat >conftest.
$ac_ext <<_ACEOF
8140 cat confdefs.h
>>conftest.
$ac_ext
8141 cat >>conftest.
$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 #include <$ac_header>
8145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8146 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8148 grep -v '^ *+' conftest.er1
>conftest.err
8150 cat conftest.err
>&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } >/dev
/null
; then
8153 if test -s conftest.err
; then
8154 ac_cpp_err
=$ac_c_preproc_warn_flag
8155 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8162 if test -z "$ac_cpp_err"; then
8163 eval "$as_ac_Header=yes"
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.
$ac_ext >&5
8168 eval "$as_ac_Header=no"
8170 rm -f conftest.err conftest.
$ac_ext
8172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8175 cat >>confdefs.h
<<_ACEOF
8176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8183 # Check for thread headers.
8184 echo "$as_me:$LINENO: checking for thread.h" >&5
8185 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8186 if test "${ac_cv_header_thread_h+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 cat >conftest.
$ac_ext <<_ACEOF
8192 cat confdefs.h
>>conftest.
$ac_ext
8193 cat >>conftest.
$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8198 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8200 grep -v '^ *+' conftest.er1
>conftest.err
8202 cat conftest.err
>&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } >/dev
/null
; then
8205 if test -s conftest.err
; then
8206 ac_cpp_err
=$ac_c_preproc_warn_flag
8207 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8214 if test -z "$ac_cpp_err"; then
8215 ac_cv_header_thread_h
=yes
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.
$ac_ext >&5
8220 ac_cv_header_thread_h
=no
8222 rm -f conftest.err conftest.
$ac_ext
8224 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8225 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8226 if test $ac_cv_header_thread_h = yes; then
8232 echo "$as_me:$LINENO: checking for pthread.h" >&5
8233 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8234 if test "${ac_cv_header_pthread_h+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 cat >conftest.
$ac_ext <<_ACEOF
8240 cat confdefs.h
>>conftest.
$ac_ext
8241 cat >>conftest.
$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 #include <pthread.h>
8245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8246 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8248 grep -v '^ *+' conftest.er1
>conftest.err
8250 cat conftest.err
>&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } >/dev
/null
; then
8253 if test -s conftest.err
; then
8254 ac_cpp_err
=$ac_c_preproc_warn_flag
8255 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8262 if test -z "$ac_cpp_err"; then
8263 ac_cv_header_pthread_h
=yes
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.
$ac_ext >&5
8268 ac_cv_header_pthread_h
=no
8270 rm -f conftest.err conftest.
$ac_ext
8272 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8273 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8274 if test $ac_cv_header_pthread_h = yes; then
8281 # These tests can't be done till we know if we have limits.h.
8282 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8283 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8284 if test "${gcc_cv_decl_char_bit+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 cat >conftest.
$ac_ext <<_ACEOF
8290 cat confdefs.h
>>conftest.
$ac_ext
8291 cat >>conftest.
$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293 #ifdef HAVE_LIMITS_H
8300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8301 $EGREP "found" >/dev
/null
2>&1; then
8302 gcc_cv_decl_char_bit
=yes
8304 gcc_cv_decl_char_bit
=no
8310 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8311 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8312 if test $gcc_cv_decl_char_bit = no
; then
8313 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8314 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8315 if test "${gcc_cv_c_nbby+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 while test $i -lt 65; do
8321 cat >conftest.
$ac_ext <<_ACEOF
8324 cat confdefs.h
>>conftest.
$ac_ext
8325 cat >>conftest.
$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8332 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8333 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8339 rm -f conftest.
$ac_objext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341 (eval $ac_compile) 2>conftest.er1
8343 grep -v '^ *+' conftest.er1
>conftest.err
8345 cat conftest.err
>&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try
='test -s conftest.$ac_objext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 gcc_cv_c_nbby
=$i; break
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.
$ac_ext >&5
8366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8369 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8372 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8373 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8374 if test $gcc_cv_c_nbby = failed
; then
8375 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8376 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8377 { (exit 1); exit 1; }; }
8380 cat >>confdefs.h
<<_ACEOF
8381 #define CHAR_BIT $gcc_cv_c_nbby
8386 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8387 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8388 if test "${ac_cv_c_bigendian+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 # See if sys/param.h defines the BYTE_ORDER macro.
8392 cat >conftest.
$ac_ext <<_ACEOF
8395 cat confdefs.h
>>conftest.
$ac_ext
8396 cat >>conftest.
$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 #include <sys/types.h>
8399 #include <sys/param.h>
8404 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8412 rm -f conftest.
$ac_objext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8414 (eval $ac_compile) 2>conftest.er1
8416 grep -v '^ *+' conftest.er1
>conftest.err
8418 cat conftest.err
>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; } &&
8427 { ac_try
='test -s conftest.$ac_objext'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 # It does; now see whether it defined to BIG_ENDIAN or not.
8434 cat >conftest.
$ac_ext <<_ACEOF
8437 cat confdefs.h
>>conftest.
$ac_ext
8438 cat >>conftest.
$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 #include <sys/types.h>
8441 #include <sys/param.h>
8446 #if BYTE_ORDER != BIG_ENDIAN
8454 rm -f conftest.
$ac_objext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8456 (eval $ac_compile) 2>conftest.er1
8458 grep -v '^ *+' conftest.er1
>conftest.err
8460 cat conftest.err
>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try
='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_cv_c_bigendian
=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.
$ac_ext >&5
8480 ac_cv_c_bigendian
=no
8482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.
$ac_ext >&5
8487 # It does not; compile a test program.
8488 if test "$cross_compiling" = yes; then
8489 # try to guess the endianness by grepping values into an object file
8490 ac_cv_c_bigendian
=unknown
8491 cat >conftest.
$ac_ext <<_ACEOF
8494 cat confdefs.h
>>conftest.
$ac_ext
8495 cat >>conftest.
$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8498 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8499 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8500 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8501 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8502 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8506 _ascii (); _ebcdic ();
8511 rm -f conftest.
$ac_objext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>conftest.er1
8515 grep -v '^ *+' conftest.er1
>conftest.err
8517 cat conftest.err
>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try
='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8533 ac_cv_c_bigendian
=yes
8535 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8536 if test "$ac_cv_c_bigendian" = unknown
; then
8537 ac_cv_c_bigendian
=no
8539 # finding both strings is unlikely to happen, but who knows?
8540 ac_cv_c_bigendian
=unknown
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.
$ac_ext >&5
8548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8550 cat >conftest.
$ac_ext <<_ACEOF
8553 cat confdefs.h
>>conftest.
$ac_ext
8554 cat >>conftest.
$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8559 /* Are we little or big endian? From Harbison&Steele. */
8563 char c[sizeof (long)];
8566 exit (u.c[sizeof (long) - 1] == 1);
8569 rm -f conftest
$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571 (eval $ac_link) 2>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_cv_c_bigendian
=no
8582 echo "$as_me: program exited with status $ac_status" >&5
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.
$ac_ext >&5
8587 ac_cv_c_bigendian
=yes
8589 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8594 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8595 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8596 case $ac_cv_c_bigendian in
8599 cat >>confdefs.h
<<\_ACEOF
8600 #define WORDS_BIGENDIAN 1
8606 { { echo "$as_me:$LINENO: error: unknown endianness
8607 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8608 echo "$as_me: error: unknown endianness
8609 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8610 { (exit 1); exit 1; }; } ;;
8618 # Stage specific cflags for build.
8622 if test x
$GCC = xyes
8624 stage1_cflags
="-Wa,-J"
8630 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8631 # sources; use -no-cpp-precomp to get to GNU cpp.
8632 # Apple's GCC has bugs in designated initializer handling, so disable
8634 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8639 # These libraries may be used by collect2.
8640 # We may need a special search path to get them linked.
8641 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8642 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8643 if test "${gcc_cv_collect2_libs+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 for libs
in '' -lld -lmld \
8648 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8649 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8652 cat >conftest.
$ac_ext <<_ACEOF
8655 cat confdefs.h
>>conftest.
$ac_ext
8656 cat >>conftest.
$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8659 /* Override any gcc2 internal prototype to avoid an error. */
8663 /* We use char because int might match the return type of a gcc2
8664 builtin and then its argument prototype would still apply. */
8674 rm -f conftest.
$ac_objext conftest
$ac_exeext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676 (eval $ac_link) 2>conftest.er1
8678 grep -v '^ *+' conftest.er1
>conftest.err
8680 cat conftest.err
>&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try
='test -s conftest$ac_exeext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 gcc_cv_collect2_libs
="$libs"; break
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.
$ac_ext >&5
8701 rm -f conftest.err conftest.
$ac_objext \
8702 conftest
$ac_exeext conftest.
$ac_ext
8705 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8707 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8708 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8709 case $gcc_cv_collect2_libs in
8711 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8715 # When building Ada code on Alpha, we need exc_resume which is usually in
8716 # -lexc. So test for it.
8719 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8720 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8721 if test "${ac_cv_search_exc_resume+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 ac_func_search_save_LIBS
=$LIBS
8725 ac_cv_search_exc_resume
=no
8726 cat >conftest.
$ac_ext <<_ACEOF
8729 cat confdefs.h
>>conftest.
$ac_ext
8730 cat >>conftest.
$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8733 /* Override any gcc2 internal prototype to avoid an error. */
8737 /* We use char because int might match the return type of a gcc2
8738 builtin and then its argument prototype would still apply. */
8748 rm -f conftest.
$ac_objext conftest
$ac_exeext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8750 (eval $ac_link) 2>conftest.er1
8752 grep -v '^ *+' conftest.er1
>conftest.err
8754 cat conftest.err
>&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try
='test -s conftest$ac_exeext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_cv_search_exc_resume
="none required"
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.
$ac_ext >&5
8775 rm -f conftest.err conftest.
$ac_objext \
8776 conftest
$ac_exeext conftest.
$ac_ext
8777 if test "$ac_cv_search_exc_resume" = no
; then
8778 for ac_lib
in exc
; do
8779 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8780 cat >conftest.
$ac_ext <<_ACEOF
8783 cat confdefs.h
>>conftest.
$ac_ext
8784 cat >>conftest.
$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8787 /* Override any gcc2 internal prototype to avoid an error. */
8791 /* We use char because int might match the return type of a gcc2
8792 builtin and then its argument prototype would still apply. */
8802 rm -f conftest.
$ac_objext conftest
$ac_exeext
8803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8804 (eval $ac_link) 2>conftest.er1
8806 grep -v '^ *+' conftest.er1
>conftest.err
8808 cat conftest.err
>&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } &&
8811 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; } &&
8817 { ac_try
='test -s conftest$ac_exeext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_cv_search_exc_resume
="-l$ac_lib"
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.
$ac_ext >&5
8830 rm -f conftest.err conftest.
$ac_objext \
8831 conftest
$ac_exeext conftest.
$ac_ext
8834 LIBS
=$ac_func_search_save_LIBS
8836 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8837 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8838 if test "$ac_cv_search_exc_resume" != no
; then
8839 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8847 # Some systems put ldexp and frexp in libm instead of libc; assume
8848 # they're both in the same place. jcf-dump needs them.
8851 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8852 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8853 if test "${ac_cv_search_ldexp+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 ac_func_search_save_LIBS
=$LIBS
8857 ac_cv_search_ldexp
=no
8858 cat >conftest.
$ac_ext <<_ACEOF
8861 cat confdefs.h
>>conftest.
$ac_ext
8862 cat >>conftest.
$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8865 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8880 rm -f conftest.
$ac_objext conftest
$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882 (eval $ac_link) 2>conftest.er1
8884 grep -v '^ *+' conftest.er1
>conftest.err
8886 cat conftest.err
>&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } &&
8889 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; } &&
8895 { ac_try
='test -s conftest$ac_exeext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_cv_search_ldexp
="none required"
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.
$ac_ext >&5
8907 rm -f conftest.err conftest.
$ac_objext \
8908 conftest
$ac_exeext conftest.
$ac_ext
8909 if test "$ac_cv_search_ldexp" = no
; then
8911 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8912 cat >conftest.
$ac_ext <<_ACEOF
8915 cat confdefs.h
>>conftest.
$ac_ext
8916 cat >>conftest.
$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8919 /* Override any gcc2 internal prototype to avoid an error. */
8923 /* We use char because int might match the return type of a gcc2
8924 builtin and then its argument prototype would still apply. */
8934 rm -f conftest.
$ac_objext conftest
$ac_exeext
8935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8936 (eval $ac_link) 2>conftest.er1
8938 grep -v '^ *+' conftest.er1
>conftest.err
8940 cat conftest.err
>&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } &&
8943 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; } &&
8949 { ac_try
='test -s conftest$ac_exeext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 ac_cv_search_ldexp
="-l$ac_lib"
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.
$ac_ext >&5
8962 rm -f conftest.err conftest.
$ac_objext \
8963 conftest
$ac_exeext conftest.
$ac_ext
8966 LIBS
=$ac_func_search_save_LIBS
8968 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8969 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8970 if test "$ac_cv_search_ldexp" != no
; then
8971 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8979 # Use <inttypes.h> only if it exists,
8980 # doesn't clash with <sys/types.h>, and declares intmax_t.
8981 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8982 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8983 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 cat >conftest.
$ac_ext <<_ACEOF
8989 cat confdefs.h
>>conftest.
$ac_ext
8990 cat >>conftest.
$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992 #include <sys/types.h>
8993 #include <inttypes.h>
9002 rm -f conftest.
$ac_objext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9004 (eval $ac_compile) 2>conftest.er1
9006 grep -v '^ *+' conftest.er1
>conftest.err
9008 cat conftest.err
>&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try
='test -s conftest.$ac_objext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 gcc_cv_header_inttypes_h
=yes
9025 echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.
$ac_ext >&5
9028 gcc_cv_header_inttypes_h
=no
9030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9033 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9034 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9035 if test $gcc_cv_header_inttypes_h = yes; then
9037 cat >>confdefs.h
<<\_ACEOF
9038 #define HAVE_INTTYPES_H 1
9080 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9081 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9082 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9083 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9085 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9086 echo "$as_me:$LINENO: checking for $ac_func" >&5
9087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9088 if eval "test \"\${$as_ac_var+set}\" = set"; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 cat >conftest.
$ac_ext <<_ACEOF
9094 cat confdefs.h
>>conftest.
$ac_ext
9095 cat >>conftest.
$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9099 #define $ac_func innocuous_$ac_func
9101 /* System header to define __stub macros and hopefully few prototypes,
9102 which can conflict with char $ac_func (); below.
9103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9104 <limits.h> exists even on freestanding compilers. */
9107 # include <limits.h>
9109 # include <assert.h>
9114 /* Override any gcc2 internal prototype to avoid an error. */
9119 /* We use char because int might match the return type of a gcc2
9120 builtin and then its argument prototype would still apply. */
9122 /* The GNU C library defines this for functions which it implements
9123 to always fail with ENOSYS. Some functions are actually named
9124 something starting with __ and the normal name is an alias. */
9125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9128 char (*f) () = $ac_func;
9137 return f != $ac_func;
9142 rm -f conftest.
$ac_objext conftest
$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1
>conftest.err
9148 cat conftest.err
>&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; } &&
9157 { ac_try
='test -s conftest$ac_exeext'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; }; then
9163 eval "$as_ac_var=yes"
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.
$ac_ext >&5
9168 eval "$as_ac_var=no"
9170 rm -f conftest.err conftest.
$ac_objext \
9171 conftest
$ac_exeext conftest.
$ac_ext
9173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9175 if test `eval echo '${'$as_ac_var'}'` = yes; then
9176 cat >>confdefs.h
<<_ACEOF
9177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9184 if test x
$ac_cv_func_mbstowcs = xyes
; then
9185 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9186 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9187 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 if test "$cross_compiling" = yes; then
9191 gcc_cv_func_mbstowcs_works
=yes
9193 cat >conftest.
$ac_ext <<_ACEOF
9196 cat confdefs.h
>>conftest.
$ac_ext
9197 cat >>conftest.
$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9206 rm -f conftest
$ac_exeext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208 (eval $ac_link) 2>&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 gcc_cv_func_mbstowcs_works
=yes
9219 echo "$as_me: program exited with status $ac_status" >&5
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.
$ac_ext >&5
9224 gcc_cv_func_mbstowcs_works
=no
9226 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9229 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9230 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9231 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9233 cat >>confdefs.h
<<\_ACEOF
9234 #define HAVE_WORKING_MBSTOWCS 1
9240 echo "$as_me:$LINENO: checking for ssize_t" >&5
9241 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9242 if test "${ac_cv_type_ssize_t+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 cat >conftest.
$ac_ext <<_ACEOF
9248 cat confdefs.h
>>conftest.
$ac_ext
9249 cat >>conftest.
$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 $ac_includes_default
9257 if (sizeof (ssize_t))
9263 rm -f conftest.
$ac_objext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9265 (eval $ac_compile) 2>conftest.er1
9267 grep -v '^ *+' conftest.er1
>conftest.err
9269 cat conftest.err
>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; } &&
9278 { ac_try
='test -s conftest.$ac_objext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 ac_cv_type_ssize_t
=yes
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.
$ac_ext >&5
9289 ac_cv_type_ssize_t
=no
9291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9293 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9294 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9295 if test $ac_cv_type_ssize_t = yes; then
9299 cat >>confdefs.h
<<_ACEOF
9306 # Try to determine the array type of the second argument of getgroups
9307 # for the target system (int or gid_t).
9308 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9309 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9310 if test "${ac_cv_type_uid_t+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 cat >conftest.
$ac_ext <<_ACEOF
9316 cat confdefs.h
>>conftest.
$ac_ext
9317 cat >>conftest.
$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 #include <sys/types.h>
9322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9323 $EGREP "uid_t" >/dev
/null
2>&1; then
9324 ac_cv_type_uid_t
=yes
9331 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9332 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9333 if test $ac_cv_type_uid_t = no
; then
9335 cat >>confdefs.h
<<\_ACEOF
9340 cat >>confdefs.h
<<\_ACEOF
9346 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9347 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9348 if test "${ac_cv_type_getgroups+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 if test "$cross_compiling" = yes; then
9352 ac_cv_type_getgroups
=cross
9354 cat >conftest.
$ac_ext <<_ACEOF
9357 cat confdefs.h
>>conftest.
$ac_ext
9358 cat >>conftest.
$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 /* Thanks to Mike Rendell for this test. */
9361 #include <sys/types.h>
9364 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9371 union { gid_t gval; long lval; } val;
9374 for (i = 0; i < NGID; i++)
9375 gidset[i] = val.gval;
9376 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9378 /* Exit non-zero if getgroups seems to require an array of ints. This
9379 happens when gid_t is short but getgroups modifies an array of ints. */
9380 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9383 rm -f conftest
$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_cv_type_getgroups
=gid_t
9396 echo "$as_me: program exited with status $ac_status" >&5
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.
$ac_ext >&5
9401 ac_cv_type_getgroups
=int
9403 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9405 if test $ac_cv_type_getgroups = cross
; then
9406 cat >conftest.
$ac_ext <<_ACEOF
9409 cat confdefs.h
>>conftest.
$ac_ext
9410 cat >>conftest.
$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9416 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9417 ac_cv_type_getgroups
=gid_t
9419 ac_cv_type_getgroups
=int
9425 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9426 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9428 cat >>confdefs.h
<<_ACEOF
9429 #define GETGROUPS_T $ac_cv_type_getgroups
9433 if test "${target}" = "${build}"; then
9434 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9437 # This condition may need some tweaking. It should include all
9438 # targets where the array type of the second argument of getgroups
9439 # is int and the type of gid_t is not equivalent to int.
9440 *-*-sunos* |
*-*-ultrix*)
9441 TARGET_GETGROUPS_T
=int
9444 TARGET_GETGROUPS_T
=gid_t
9451 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9452 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9453 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 cat >conftest.
$ac_ext <<_ACEOF
9459 cat confdefs.h
>>conftest.
$ac_ext
9460 cat >>conftest.
$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9462 #include <sys/mman.h>
9464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9465 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9467 grep -v '^ *+' conftest.er1
>conftest.err
9469 cat conftest.err
>&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } >/dev
/null
; then
9472 if test -s conftest.err
; then
9473 ac_cpp_err
=$ac_c_preproc_warn_flag
9474 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9481 if test -z "$ac_cpp_err"; then
9482 ac_cv_header_sys_mman_h
=yes
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.
$ac_ext >&5
9487 ac_cv_header_sys_mman_h
=no
9489 rm -f conftest.err conftest.
$ac_ext
9491 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9492 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9493 if test $ac_cv_header_sys_mman_h = yes; then
9494 gcc_header_sys_mman_h
=yes
9496 gcc_header_sys_mman_h
=no
9499 echo "$as_me:$LINENO: checking for mmap" >&5
9500 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9501 if test "${ac_cv_func_mmap+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 cat >conftest.
$ac_ext <<_ACEOF
9507 cat confdefs.h
>>conftest.
$ac_ext
9508 cat >>conftest.
$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9512 #define mmap innocuous_mmap
9514 /* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char mmap (); below.
9516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 <limits.h> exists even on freestanding compilers. */
9520 # include <limits.h>
9522 # include <assert.h>
9527 /* Override any gcc2 internal prototype to avoid an error. */
9532 /* We use char because int might match the return type of a gcc2
9533 builtin and then its argument prototype would still apply. */
9535 /* The GNU C library defines this for functions which it implements
9536 to always fail with ENOSYS. Some functions are actually named
9537 something starting with __ and the normal name is an alias. */
9538 #if defined (__stub_mmap) || defined (__stub___mmap)
9541 char (*f) () = mmap;
9555 rm -f conftest.
$ac_objext conftest
$ac_exeext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>conftest.er1
9559 grep -v '^ *+' conftest.er1
>conftest.err
9561 cat conftest.err
>&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try
='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.
$ac_ext >&5
9583 rm -f conftest.err conftest.
$ac_objext \
9584 conftest
$ac_exeext conftest.
$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9587 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9588 if test $ac_cv_func_mmap = yes; then
9594 if test "$gcc_header_sys_mman_h" != yes \
9595 ||
test "$gcc_func_mmap" != yes; then
9596 gcc_cv_func_mmap_file
=no
9597 gcc_cv_func_mmap_dev_zero
=no
9598 gcc_cv_func_mmap_anon
=no
9600 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9601 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9602 if test "${gcc_cv_func_mmap_file+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 # Add a system to this blacklist if
9606 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9607 # memory area containing the same data that you'd get if you applied
9608 # read() to the same fd. The only system known to have a problem here
9609 # is VMS, where text files have record structure.
9612 gcc_cv_func_mmap_file
=no
;;
9614 gcc_cv_func_mmap_file
=yes;;
9617 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9618 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9619 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9620 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9621 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 # Add a system to this blacklist if it has mmap() but /dev/zero
9625 # does not exist, or if mmapping /dev/zero does not give anonymous
9626 # zeroed pages with both the following properties:
9627 # 1. If you map N consecutive pages in with one call, and then
9628 # unmap any subset of those pages, the pages that were not
9629 # explicitly unmapped remain accessible.
9630 # 2. If you map two adjacent blocks of memory and then unmap them
9631 # both at once, they must both go away.
9632 # Systems known to be in this category are Windows (all variants),
9635 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9636 gcc_cv_func_mmap_dev_zero
=no
;;
9638 gcc_cv_func_mmap_dev_zero
=yes;;
9641 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9642 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9644 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9645 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9646 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9647 if test "${gcc_cv_decl_map_anon+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 cat >conftest.
$ac_ext <<_ACEOF
9653 cat confdefs.h
>>conftest.
$ac_ext
9654 cat >>conftest.
$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 #include <sys/types.h>
9657 #include <sys/mman.h>
9660 #ifndef MAP_ANONYMOUS
9661 #define MAP_ANONYMOUS MAP_ANON
9667 int n = MAP_ANONYMOUS;
9672 rm -f conftest.
$ac_objext
9673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9674 (eval $ac_compile) 2>conftest.er1
9676 grep -v '^ *+' conftest.er1
>conftest.err
9678 cat conftest.err
>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try
='test -s conftest.$ac_objext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 gcc_cv_decl_map_anon
=yes
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.
$ac_ext >&5
9698 gcc_cv_decl_map_anon
=no
9700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9702 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9703 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9705 if test $gcc_cv_decl_map_anon = no
; then
9706 gcc_cv_func_mmap_anon
=no
9708 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9709 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9710 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9714 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9715 # doesn't give anonymous zeroed pages with the same properties listed
9716 # above for use of /dev/zero.
9717 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9719 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9720 gcc_cv_func_mmap_anon
=no
;;
9722 gcc_cv_func_mmap_anon
=yes;;
9725 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9726 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9730 if test $gcc_cv_func_mmap_file = yes; then
9732 cat >>confdefs.h
<<\_ACEOF
9733 #define HAVE_MMAP_FILE 1
9737 if test $gcc_cv_func_mmap_dev_zero = yes; then
9739 cat >>confdefs.h
<<\_ACEOF
9740 #define HAVE_MMAP_DEV_ZERO 1
9744 if test $gcc_cv_func_mmap_anon = yes; then
9746 cat >>confdefs.h
<<\_ACEOF
9747 #define HAVE_MMAP_ANON 1
9755 # Under VMS, vfork works very differently than on Unix. The standard test
9756 # won't work, and it isn't easily adaptable. It makes more sense to
9758 ac_cv_func_vfork_works
=yes
9761 echo "$as_me:$LINENO: checking for pid_t" >&5
9762 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9763 if test "${ac_cv_type_pid_t+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 cat >conftest.
$ac_ext <<_ACEOF
9769 cat confdefs.h
>>conftest.
$ac_ext
9770 cat >>conftest.
$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 $ac_includes_default
9784 rm -f conftest.
$ac_objext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9786 (eval $ac_compile) 2>conftest.er1
9788 grep -v '^ *+' conftest.er1
>conftest.err
9790 cat conftest.err
>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try
='test -s conftest.$ac_objext'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_cv_type_pid_t
=yes
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.
$ac_ext >&5
9812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9814 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9815 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9816 if test $ac_cv_type_pid_t = yes; then
9820 cat >>confdefs.h
<<_ACEOF
9828 for ac_header
in unistd.h vfork.h
9830 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 cat >conftest.
$ac_ext <<_ACEOF
9839 cat confdefs.h
>>conftest.
$ac_ext
9840 cat >>conftest.
$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 #include <$ac_header>
9844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9845 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1
>conftest.err
9849 cat conftest.err
>&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } >/dev
/null
; then
9852 if test -s conftest.err
; then
9853 ac_cpp_err
=$ac_c_preproc_warn_flag
9854 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9861 if test -z "$ac_cpp_err"; then
9862 eval "$as_ac_Header=yes"
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.
$ac_ext >&5
9867 eval "$as_ac_Header=no"
9869 rm -f conftest.err conftest.
$ac_ext
9871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9874 cat >>confdefs.h
<<_ACEOF
9875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9883 for ac_func
in fork vfork
9885 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9886 echo "$as_me:$LINENO: checking for $ac_func" >&5
9887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9888 if eval "test \"\${$as_ac_var+set}\" = set"; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9899 #define $ac_func innocuous_$ac_func
9901 /* System header to define __stub macros and hopefully few prototypes,
9902 which can conflict with char $ac_func (); below.
9903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9904 <limits.h> exists even on freestanding compilers. */
9907 # include <limits.h>
9909 # include <assert.h>
9914 /* Override any gcc2 internal prototype to avoid an error. */
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9922 /* The GNU C library defines this for functions which it implements
9923 to always fail with ENOSYS. Some functions are actually named
9924 something starting with __ and the normal name is an alias. */
9925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9928 char (*f) () = $ac_func;
9937 return f != $ac_func;
9942 rm -f conftest.
$ac_objext conftest
$ac_exeext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944 (eval $ac_link) 2>conftest.er1
9946 grep -v '^ *+' conftest.er1
>conftest.err
9948 cat conftest.err
>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; } &&
9957 { ac_try
='test -s conftest$ac_exeext'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
9963 eval "$as_ac_var=yes"
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.
$ac_ext >&5
9968 eval "$as_ac_var=no"
9970 rm -f conftest.err conftest.
$ac_objext \
9971 conftest
$ac_exeext conftest.
$ac_ext
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9975 if test `eval echo '${'$as_ac_var'}'` = yes; then
9976 cat >>confdefs.h
<<_ACEOF
9977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9983 if test "x$ac_cv_func_fork" = xyes
; then
9984 echo "$as_me:$LINENO: checking for working fork" >&5
9985 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9986 if test "${ac_cv_func_fork_works+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 if test "$cross_compiling" = yes; then
9990 ac_cv_func_fork_works
=cross
9992 cat >conftest.
$ac_ext <<_ACEOF
9995 cat confdefs.h
>>conftest.
$ac_ext
9996 cat >>conftest.
$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 $ac_includes_default
10003 /* By Ruediger Kuhlmann. */
10012 rm -f conftest
$ac_exeext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014 (eval $ac_link) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_func_fork_works
=yes
10025 echo "$as_me: program exited with status $ac_status" >&5
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.
$ac_ext >&5
10029 ( exit $ac_status )
10030 ac_cv_func_fork_works
=no
10032 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10035 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10036 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10039 ac_cv_func_fork_works
=$ac_cv_func_fork
10041 if test "x$ac_cv_func_fork_works" = xcross
; then
10043 *-*-amigaos* |
*-*-msdosdjgpp*)
10044 # Override, as these systems have only a dummy fork() stub
10045 ac_cv_func_fork_works
=no
10048 ac_cv_func_fork_works
=yes
10051 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10052 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10054 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10055 if test "x$ac_cv_func_vfork" = xyes
; then
10056 echo "$as_me:$LINENO: checking for working vfork" >&5
10057 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10058 if test "${ac_cv_func_vfork_works+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 if test "$cross_compiling" = yes; then
10062 ac_cv_func_vfork_works
=cross
10064 cat >conftest.
$ac_ext <<_ACEOF
10067 cat confdefs.h
>>conftest.
$ac_ext
10068 cat >>conftest.
$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 /* Thanks to Paul Eggert for this test. */
10072 #include <stdlib.h>
10073 #include <sys/types.h>
10074 #include <sys/stat.h>
10075 #include <sys/wait.h>
10077 # include <unistd.h>
10080 # include <vfork.h>
10082 /* On some sparc systems, changes by the child to local and incoming
10083 argument registers are propagated back to the parent. The compiler
10084 is told about this with #include <vfork.h>, but some compilers
10085 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10086 static variable whose address is put into a register that is
10087 clobbered by the vfork. */
10090 sparc_address_test (int arg)
10092 sparc_address_test (arg) int arg;
10095 static pid_t child;
10113 pid_t parent = getpid ();
10116 sparc_address_test (0);
10121 /* Here is another test for sparc vfork register problems. This
10122 test uses lots of local variables, at least as many local
10123 variables as main has allocated so far including compiler
10124 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10125 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10126 reuse the register of parent for one of the local variables,
10127 since it will think that parent can't possibly be used any more
10128 in this routine. Assigning to the local variable will thus
10129 munge parent in the parent process. */
10131 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10132 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10133 /* Convince the compiler that p..p7 are live; otherwise, it might
10134 use the same hardware register for all 8 local variables. */
10135 if (p != p1 || p != p2 || p != p3 || p != p4
10136 || p != p5 || p != p6 || p != p7)
10139 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10140 from child file descriptors. If the child closes a descriptor
10141 before it execs or exits, this munges the parent's descriptor
10142 as well. Test for this by closing stdout in the child. */
10143 _exit(close(fileno(stdout)) != 0);
10148 while (wait(&status) != child)
10151 /* Was there some problem with vforking? */
10154 /* Did the child fail? (This shouldn't happen.) */
10157 /* Did the vfork/compiler bug occur? */
10158 || parent != getpid()
10160 /* Did the file descriptor bug occur? */
10161 || fstat(fileno(stdout), &st) != 0
10166 rm -f conftest
$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_cv_func_vfork_works
=yes
10179 echo "$as_me: program exited with status $ac_status" >&5
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.
$ac_ext >&5
10183 ( exit $ac_status )
10184 ac_cv_func_vfork_works
=no
10186 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10190 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10193 if test "x$ac_cv_func_fork_works" = xcross
; then
10194 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10195 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10196 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10199 if test "x$ac_cv_func_vfork_works" = xyes
; then
10201 cat >>confdefs.h
<<\_ACEOF
10202 #define HAVE_WORKING_VFORK 1
10207 cat >>confdefs.h
<<\_ACEOF
10212 if test "x$ac_cv_func_fork_works" = xyes
; then
10214 cat >>confdefs.h
<<\_ACEOF
10215 #define HAVE_WORKING_FORK 1
10222 if test "X$prefix" = "XNONE"; then
10223 acl_final_prefix
="$ac_default_prefix"
10225 acl_final_prefix
="$prefix"
10227 if test "X$exec_prefix" = "XNONE"; then
10228 acl_final_exec_prefix
='${prefix}'
10230 acl_final_exec_prefix
="$exec_prefix"
10232 acl_save_prefix
="$prefix"
10233 prefix
="$acl_final_prefix"
10234 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10235 prefix
="$acl_save_prefix"
10238 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10239 if test "${with_gnu_ld+set}" = set; then
10240 withval
="$with_gnu_ld"
10241 test "$withval" = no || with_gnu_ld
=yes
10245 # Prepare PATH_SEPARATOR.
10246 # The user is always right.
10247 if test "${PATH_SEPARATOR+set}" != set; then
10248 echo "#! /bin/sh" >conf$$.sh
10249 echo "exit 0" >>conf$$.sh
10251 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10259 if test "$GCC" = yes; then
10260 # Check if gcc -print-prog-name=ld gives a path.
10261 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10262 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10265 # gcc leaves a trailing carriage return which upsets mingw
10266 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10268 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10271 # Accept absolute paths.
10272 [\\/]* |
[A-Za-z
]:[\\/]*)
10273 re_direlt
='/[^/][^/]*/\.\./'
10274 # Canonicalize the path of ld
10275 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10276 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10277 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10279 test -z "$LD" && LD
="$ac_prog"
10282 # If it fails, then pretend we aren't using GCC.
10286 # If it is relative, then search for the first ld in PATH.
10287 with_gnu_ld
=unknown
10290 elif test "$with_gnu_ld" = yes; then
10291 echo "$as_me:$LINENO: checking for GNU ld" >&5
10292 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10294 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10295 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10297 if test "${acl_cv_path_LD+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 if test -z "$LD"; then
10301 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10302 for ac_dir
in $PATH; do
10303 test -z "$ac_dir" && ac_dir
=.
10304 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10305 acl_cv_path_LD
="$ac_dir/$ac_prog"
10306 # Check to see if the program is GNU ld. I'd rather use --version,
10307 # but apparently some GNU ld's only accept -v.
10308 # Break only if it was the GNU/non-GNU ld that we prefer.
10309 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10310 test "$with_gnu_ld" != no
&& break
10312 test "$with_gnu_ld" != yes && break
10318 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10322 LD
="$acl_cv_path_LD"
10323 if test -n "$LD"; then
10324 echo "$as_me:$LINENO: result: $LD" >&5
10325 echo "${ECHO_T}$LD" >&6
10327 echo "$as_me:$LINENO: result: no" >&5
10328 echo "${ECHO_T}no" >&6
10330 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10331 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10332 { (exit 1); exit 1; }; }
10333 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10334 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10335 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10339 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10340 acl_cv_prog_gnu_ld
=yes
10342 acl_cv_prog_gnu_ld
=no
10345 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10346 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10347 with_gnu_ld
=$acl_cv_prog_gnu_ld
10351 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10352 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10353 if test "${acl_cv_rpath+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10358 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10360 rm -f .
/conftest.sh
10364 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10365 echo "${ECHO_T}$acl_cv_rpath" >&6
10367 libext
="$acl_cv_libext"
10368 shlibext
="$acl_cv_shlibext"
10369 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10370 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10371 hardcode_direct
="$acl_cv_hardcode_direct"
10372 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10373 # Check whether --enable-rpath or --disable-rpath was given.
10374 if test "${enable_rpath+set}" = set; then
10375 enableval
="$enable_rpath"
10389 acl_save_prefix
="$prefix"
10390 prefix
="$acl_final_prefix"
10391 acl_save_exec_prefix
="$exec_prefix"
10392 exec_prefix
="$acl_final_exec_prefix"
10394 eval additional_includedir
=\"$includedir\"
10395 eval additional_libdir
=\"$libdir\"
10397 exec_prefix
="$acl_save_exec_prefix"
10398 prefix
="$acl_save_prefix"
10401 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10402 if test "${with_libiconv_prefix+set}" = set; then
10403 withval
="$with_libiconv_prefix"
10405 if test "X$withval" = "Xno"; then
10408 if test "X$withval" = "X"; then
10410 acl_save_prefix
="$prefix"
10411 prefix
="$acl_final_prefix"
10412 acl_save_exec_prefix
="$exec_prefix"
10413 exec_prefix
="$acl_final_exec_prefix"
10415 eval additional_includedir
=\"$includedir\"
10416 eval additional_libdir
=\"$libdir\"
10418 exec_prefix
="$acl_save_exec_prefix"
10419 prefix
="$acl_save_prefix"
10422 additional_includedir
="$withval/include"
10423 additional_libdir
="$withval/lib"
10433 names_already_handled
=
10434 names_next_round
='iconv '
10435 while test -n "$names_next_round"; do
10436 names_this_round
="$names_next_round"
10438 for name
in $names_this_round; do
10440 for n
in $names_already_handled; do
10441 if test "$n" = "$name"; then
10442 already_handled
=yes
10446 if test -z "$already_handled"; then
10447 names_already_handled
="$names_already_handled $name"
10448 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10449 eval value
=\"\
$HAVE_LIB$uppername\"
10450 if test -n "$value"; then
10451 if test "$value" = yes; then
10452 eval value
=\"\
$LIB$uppername\"
10453 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10454 eval value
=\"\
$LTLIB$uppername\"
10455 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10464 if test $use_additional = yes; then
10465 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10466 found_dir
="$additional_libdir"
10467 found_so
="$additional_libdir/lib$name.$shlibext"
10468 if test -f "$additional_libdir/lib$name.la"; then
10469 found_la
="$additional_libdir/lib$name.la"
10472 if test -f "$additional_libdir/lib$name.$libext"; then
10473 found_dir
="$additional_libdir"
10474 found_a
="$additional_libdir/lib$name.$libext"
10475 if test -f "$additional_libdir/lib$name.la"; then
10476 found_la
="$additional_libdir/lib$name.la"
10481 if test "X$found_dir" = "X"; then
10482 for x
in $LDFLAGS $LTLIBICONV; do
10484 acl_save_prefix
="$prefix"
10485 prefix
="$acl_final_prefix"
10486 acl_save_exec_prefix
="$exec_prefix"
10487 exec_prefix
="$acl_final_exec_prefix"
10489 exec_prefix
="$acl_save_exec_prefix"
10490 prefix
="$acl_save_prefix"
10494 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10495 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10497 found_so
="$dir/lib$name.$shlibext"
10498 if test -f "$dir/lib$name.la"; then
10499 found_la
="$dir/lib$name.la"
10502 if test -f "$dir/lib$name.$libext"; then
10504 found_a
="$dir/lib$name.$libext"
10505 if test -f "$dir/lib$name.la"; then
10506 found_la
="$dir/lib$name.la"
10512 if test "X$found_dir" != "X"; then
10517 if test "X$found_dir" != "X"; then
10518 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10519 if test "X$found_so" != "X"; then
10520 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10521 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10524 for x
in $ltrpathdirs; do
10525 if test "X$x" = "X$found_dir"; then
10530 if test -z "$haveit"; then
10531 ltrpathdirs
="$ltrpathdirs $found_dir"
10533 if test "$hardcode_direct" = yes; then
10534 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10536 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10537 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10539 for x
in $rpathdirs; do
10540 if test "X$x" = "X$found_dir"; then
10545 if test -z "$haveit"; then
10546 rpathdirs
="$rpathdirs $found_dir"
10550 for x
in $LDFLAGS $LIBICONV; do
10552 acl_save_prefix
="$prefix"
10553 prefix
="$acl_final_prefix"
10554 acl_save_exec_prefix
="$exec_prefix"
10555 exec_prefix
="$acl_final_exec_prefix"
10557 exec_prefix
="$acl_save_exec_prefix"
10558 prefix
="$acl_save_prefix"
10560 if test "X$x" = "X-L$found_dir"; then
10565 if test -z "$haveit"; then
10566 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10568 if test "$hardcode_minus_L" != no
; then
10569 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10571 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10577 if test "X$found_a" != "X"; then
10578 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10580 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10583 additional_includedir
=
10584 case "$found_dir" in
10586 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10587 additional_includedir
="$basedir/include"
10590 if test "X$additional_includedir" != "X"; then
10591 if test "X$additional_includedir" != "X/usr/include"; then
10593 if test "X$additional_includedir" = "X/usr/local/include"; then
10594 if test -n "$GCC"; then
10596 linux
*) haveit
=yes;;
10600 if test -z "$haveit"; then
10601 for x
in $CPPFLAGS $INCICONV; do
10603 acl_save_prefix
="$prefix"
10604 prefix
="$acl_final_prefix"
10605 acl_save_exec_prefix
="$exec_prefix"
10606 exec_prefix
="$acl_final_exec_prefix"
10608 exec_prefix
="$acl_save_exec_prefix"
10609 prefix
="$acl_save_prefix"
10611 if test "X$x" = "X-I$additional_includedir"; then
10616 if test -z "$haveit"; then
10617 if test -d "$additional_includedir"; then
10618 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10624 if test -n "$found_la"; then
10625 save_libdir
="$libdir"
10626 case "$found_la" in
10627 */* |
*\\*) .
"$found_la" ;;
10628 *) .
"./$found_la" ;;
10630 libdir
="$save_libdir"
10631 for dep
in $dependency_libs; do
10634 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10635 if test "X$additional_libdir" != "X/usr/lib"; then
10637 if test "X$additional_libdir" = "X/usr/local/lib"; then
10638 if test -n "$GCC"; then
10640 linux
*) haveit
=yes;;
10644 if test -z "$haveit"; then
10646 for x
in $LDFLAGS $LIBICONV; do
10648 acl_save_prefix
="$prefix"
10649 prefix
="$acl_final_prefix"
10650 acl_save_exec_prefix
="$exec_prefix"
10651 exec_prefix
="$acl_final_exec_prefix"
10653 exec_prefix
="$acl_save_exec_prefix"
10654 prefix
="$acl_save_prefix"
10656 if test "X$x" = "X-L$additional_libdir"; then
10661 if test -z "$haveit"; then
10662 if test -d "$additional_libdir"; then
10663 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10667 for x
in $LDFLAGS $LTLIBICONV; do
10669 acl_save_prefix
="$prefix"
10670 prefix
="$acl_final_prefix"
10671 acl_save_exec_prefix
="$exec_prefix"
10672 exec_prefix
="$acl_final_exec_prefix"
10674 exec_prefix
="$acl_save_exec_prefix"
10675 prefix
="$acl_save_prefix"
10677 if test "X$x" = "X-L$additional_libdir"; then
10682 if test -z "$haveit"; then
10683 if test -d "$additional_libdir"; then
10684 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10691 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10692 if test "$enable_rpath" != no
; then
10694 for x
in $rpathdirs; do
10695 if test "X$x" = "X$dir"; then
10700 if test -z "$haveit"; then
10701 rpathdirs
="$rpathdirs $dir"
10704 for x
in $ltrpathdirs; do
10705 if test "X$x" = "X$dir"; then
10710 if test -z "$haveit"; then
10711 ltrpathdirs
="$ltrpathdirs $dir"
10716 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10719 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10722 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10723 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10729 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10730 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10736 if test "X$rpathdirs" != "X"; then
10737 if test -n "$hardcode_libdir_separator"; then
10739 for found_dir
in $rpathdirs; do
10740 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10742 acl_save_libdir
="$libdir"
10744 eval flag
=\"$hardcode_libdir_flag_spec\"
10745 libdir
="$acl_save_libdir"
10746 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10748 for found_dir
in $rpathdirs; do
10749 acl_save_libdir
="$libdir"
10750 libdir
="$found_dir"
10751 eval flag
=\"$hardcode_libdir_flag_spec\"
10752 libdir
="$acl_save_libdir"
10753 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10757 if test "X$ltrpathdirs" != "X"; then
10758 for found_dir
in $ltrpathdirs; do
10759 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10769 am_save_CPPFLAGS
="$CPPFLAGS"
10771 for element
in $INCICONV; do
10773 for x
in $CPPFLAGS; do
10775 acl_save_prefix
="$prefix"
10776 prefix
="$acl_final_prefix"
10777 acl_save_exec_prefix
="$exec_prefix"
10778 exec_prefix
="$acl_final_exec_prefix"
10780 exec_prefix
="$acl_save_exec_prefix"
10781 prefix
="$acl_save_prefix"
10783 if test "X$x" = "X$element"; then
10788 if test -z "$haveit"; then
10789 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10794 echo "$as_me:$LINENO: checking for iconv" >&5
10795 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10796 if test "${am_cv_func_iconv+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 am_cv_func_iconv
="no, consider installing GNU libiconv"
10802 cat >conftest.
$ac_ext <<_ACEOF
10805 cat confdefs.h
>>conftest.
$ac_ext
10806 cat >>conftest.
$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 #include <stdlib.h>
10813 iconv_t cd = iconv_open("","");
10814 iconv(cd,NULL,NULL,NULL,NULL);
10820 rm -f conftest.
$ac_objext conftest
$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822 (eval $ac_link) 2>conftest.er1
10824 grep -v '^ *+' conftest.er1
>conftest.err
10826 cat conftest.err
>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; } &&
10835 { ac_try
='test -s conftest$ac_exeext'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 am_cv_func_iconv
=yes
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.
$ac_ext >&5
10847 rm -f conftest.err conftest.
$ac_objext \
10848 conftest
$ac_exeext conftest.
$ac_ext
10849 if test "$am_cv_func_iconv" != yes; then
10850 am_save_LIBS
="$LIBS"
10851 LIBS
="$LIBS $LIBICONV"
10852 cat >conftest.
$ac_ext <<_ACEOF
10855 cat confdefs.h
>>conftest.
$ac_ext
10856 cat >>conftest.
$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 #include <stdlib.h>
10863 iconv_t cd = iconv_open("","");
10864 iconv(cd,NULL,NULL,NULL,NULL);
10870 rm -f conftest.
$ac_objext conftest
$ac_exeext
10871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10872 (eval $ac_link) 2>conftest.er1
10874 grep -v '^ *+' conftest.er1
>conftest.err
10876 cat conftest.err
>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } &&
10879 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try
='test -s conftest$ac_exeext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 am_cv_lib_iconv
=yes
10892 am_cv_func_iconv
=yes
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.
$ac_ext >&5
10898 rm -f conftest.err conftest.
$ac_objext \
10899 conftest
$ac_exeext conftest.
$ac_ext
10900 LIBS
="$am_save_LIBS"
10904 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10905 echo "${ECHO_T}$am_cv_func_iconv" >&6
10906 if test "$am_cv_func_iconv" = yes; then
10908 cat >>confdefs.h
<<\_ACEOF
10909 #define HAVE_ICONV 1
10913 if test "$am_cv_lib_iconv" = yes; then
10914 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10915 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10916 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10917 echo "${ECHO_T}$LIBICONV" >&6
10919 CPPFLAGS
="$am_save_CPPFLAGS"
10926 if test "$am_cv_func_iconv" = yes; then
10927 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10928 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10929 if test "${am_cv_proto_iconv+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 cat >conftest.
$ac_ext <<_ACEOF
10936 cat confdefs.h
>>conftest.
$ac_ext
10937 cat >>conftest.
$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10940 #include <stdlib.h>
10946 #if defined(__STDC__) || defined(__cplusplus)
10947 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10960 rm -f conftest.
$ac_objext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962 (eval $ac_compile) 2>conftest.er1
10964 grep -v '^ *+' conftest.er1
>conftest.err
10966 cat conftest.err
>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try
='test -s conftest.$ac_objext'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 am_cv_proto_iconv_arg1
=""
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.
$ac_ext >&5
10986 am_cv_proto_iconv_arg1
="const"
10988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10989 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);"
10992 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10993 echo "$as_me:$LINENO: result: ${ac_t:-
10994 }$am_cv_proto_iconv" >&5
10995 echo "${ECHO_T}${ac_t:-
10996 }$am_cv_proto_iconv" >&6
10998 cat >>confdefs.h
<<_ACEOF
10999 #define ICONV_CONST $am_cv_proto_iconv_arg1
11004 # Until we have in-tree GNU iconv:
11009 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11010 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11011 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 cat >conftest.
$ac_ext <<_ACEOF
11017 cat confdefs.h
>>conftest.
$ac_ext
11018 cat >>conftest.
$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11020 #include <locale.h>
11029 rm -f conftest.
$ac_objext conftest
$ac_exeext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031 (eval $ac_link) 2>conftest.er1
11033 grep -v '^ *+' conftest.er1
>conftest.err
11035 cat conftest.err
>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try
='test -s conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 am_cv_val_LC_MESSAGES
=yes
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.
$ac_ext >&5
11055 am_cv_val_LC_MESSAGES
=no
11057 rm -f conftest.err conftest.
$ac_objext \
11058 conftest
$ac_exeext conftest.
$ac_ext
11060 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11061 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11062 if test $am_cv_val_LC_MESSAGES = yes; then
11064 cat >>confdefs.h
<<\_ACEOF
11065 #define HAVE_LC_MESSAGES 1
11072 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11073 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11074 if test "${am_cv_langinfo_codeset+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 cat >conftest.
$ac_ext <<_ACEOF
11080 cat confdefs.h
>>conftest.
$ac_ext
11081 cat >>conftest.
$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 #include <langinfo.h>
11087 char* cs = nl_langinfo(CODESET);
11092 rm -f conftest.
$ac_objext conftest
$ac_exeext
11093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094 (eval $ac_link) 2>conftest.er1
11096 grep -v '^ *+' conftest.er1
>conftest.err
11098 cat conftest.err
>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try
='test -s conftest$ac_exeext'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 am_cv_langinfo_codeset
=yes
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.
$ac_ext >&5
11118 am_cv_langinfo_codeset
=no
11120 rm -f conftest.err conftest.
$ac_objext \
11121 conftest
$ac_exeext conftest.
$ac_ext
11124 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11125 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11126 if test $am_cv_langinfo_codeset = yes; then
11128 cat >>confdefs.h
<<\_ACEOF
11129 #define HAVE_LANGINFO_CODESET 1
11135 # We will need to find libiberty.h and ansidecl.h
11136 saved_CFLAGS
="$CFLAGS"
11137 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11177 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11178 strsignal strstr strverscmp \
11179 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11180 free
basename getopt
clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11182 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11183 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11184 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11185 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 cat >conftest.
$ac_ext <<_ACEOF
11191 cat confdefs.h
>>conftest.
$ac_ext
11192 cat >>conftest.
$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11195 #define $ac_tr_decl 1
11197 #include "ansidecl.h"
11198 #include "system.h"
11204 char *(*pfn) = (char *(*)) $ac_func ;
11210 rm -f conftest.
$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212 (eval $ac_compile) 2>conftest.er1
11214 grep -v '^ *+' conftest.er1
>conftest.err
11216 cat conftest.err
>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221 (eval $ac_try) 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; } &&
11225 { ac_try
='test -s conftest.$ac_objext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 eval "gcc_cv_have_decl_$ac_func=yes"
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.
$ac_ext >&5
11236 eval "gcc_cv_have_decl_$ac_func=no"
11238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11241 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11242 echo "$as_me:$LINENO: result: yes" >&5
11243 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11244 #define $ac_tr_decl 1
11248 echo "$as_me:$LINENO: result: no" >&5
11249 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11250 #define $ac_tr_decl 0
11261 for ac_func
in getrlimit setrlimit getrusage
11263 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11264 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11265 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11266 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 cat >conftest.
$ac_ext <<_ACEOF
11272 cat confdefs.h
>>conftest.
$ac_ext
11273 cat >>conftest.
$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11276 #define $ac_tr_decl 1
11278 #include "ansidecl.h"
11279 #include "system.h"
11280 #ifdef HAVE_SYS_RESOURCE_H
11281 #include <sys/resource.h>
11289 char *(*pfn) = (char *(*)) $ac_func ;
11295 rm -f conftest.
$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11299 grep -v '^ *+' conftest.er1
>conftest.err
11301 cat conftest.err
>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; } &&
11310 { ac_try
='test -s conftest.$ac_objext'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 eval "gcc_cv_have_decl_$ac_func=yes"
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.
$ac_ext >&5
11321 eval "gcc_cv_have_decl_$ac_func=no"
11323 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11326 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11327 echo "$as_me:$LINENO: result: yes" >&5
11328 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11329 #define $ac_tr_decl 1
11333 echo "$as_me:$LINENO: result: no" >&5
11334 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11335 #define $ac_tr_decl 0
11343 cat >conftest.
$ac_ext <<_ACEOF
11346 cat confdefs.h
>>conftest.
$ac_ext
11347 cat >>conftest.
$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11350 #include "ansidecl.h"
11351 #include "system.h"
11352 #ifdef HAVE_SYS_RESOURCE_H
11353 #include <sys/resource.h>
11364 rm -f conftest.
$ac_objext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366 (eval $ac_compile) 2>conftest.er1
11368 grep -v '^ *+' conftest.er1
>conftest.err
11370 cat conftest.err
>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try
='test -s conftest.$ac_objext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.
$ac_ext >&5
11391 cat >>confdefs.h
<<\_ACEOF
11392 #define rlim_t long
11396 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11398 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11399 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11400 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11401 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11403 for ac_func
in ldgetname
11405 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11406 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11407 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11408 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 cat >conftest.
$ac_ext <<_ACEOF
11414 cat confdefs.h
>>conftest.
$ac_ext
11415 cat >>conftest.
$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11418 #define $ac_tr_decl 1
11420 #include "ansidecl.h"
11421 #include "system.h"
11422 #ifdef HAVE_LDFCN_H
11433 char *(*pfn) = (char *(*)) $ac_func ;
11439 rm -f conftest.
$ac_objext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441 (eval $ac_compile) 2>conftest.er1
11443 grep -v '^ *+' conftest.er1
>conftest.err
11445 cat conftest.err
>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; } &&
11454 { ac_try
='test -s conftest.$ac_objext'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 eval "gcc_cv_have_decl_$ac_func=yes"
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.
$ac_ext >&5
11465 eval "gcc_cv_have_decl_$ac_func=no"
11467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11470 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11471 echo "$as_me:$LINENO: result: yes" >&5
11472 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11473 #define $ac_tr_decl 1
11477 echo "$as_me:$LINENO: result: no" >&5
11478 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11479 #define $ac_tr_decl 0
11488 for ac_func
in times
11490 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11491 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11492 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11493 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 cat >conftest.
$ac_ext <<_ACEOF
11499 cat confdefs.h
>>conftest.
$ac_ext
11500 cat >>conftest.
$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11503 #define $ac_tr_decl 1
11505 #include "ansidecl.h"
11506 #include "system.h"
11507 #ifdef HAVE_SYS_TIMES_H
11508 #include <sys/times.h>
11516 char *(*pfn) = (char *(*)) $ac_func ;
11522 rm -f conftest.
$ac_objext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11524 (eval $ac_compile) 2>conftest.er1
11526 grep -v '^ *+' conftest.er1
>conftest.err
11528 cat conftest.err
>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
11531 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } &&
11537 { ac_try
='test -s conftest.$ac_objext'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 eval "gcc_cv_have_decl_$ac_func=yes"
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.
$ac_ext >&5
11548 eval "gcc_cv_have_decl_$ac_func=no"
11550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11553 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11554 echo "$as_me:$LINENO: result: yes" >&5
11555 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11556 #define $ac_tr_decl 1
11560 echo "$as_me:$LINENO: result: no" >&5
11561 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11562 #define $ac_tr_decl 0
11570 # More time-related stuff.
11571 echo "$as_me:$LINENO: checking for struct tms" >&5
11572 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11573 if test "${ac_cv_struct_tms+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 cat >conftest.
$ac_ext <<_ACEOF
11580 cat confdefs.h
>>conftest.
$ac_ext
11581 cat >>conftest.
$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11584 #include "ansidecl.h"
11585 #include "system.h"
11586 #ifdef HAVE_SYS_TIMES_H
11587 #include <sys/times.h>
11598 rm -f conftest.
$ac_objext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11600 (eval $ac_compile) 2>conftest.er1
11602 grep -v '^ *+' conftest.er1
>conftest.err
11604 cat conftest.err
>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try
='test -s conftest.$ac_objext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 ac_cv_struct_tms
=yes
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.
$ac_ext >&5
11624 ac_cv_struct_tms
=no
11626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11628 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11629 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11630 if test $ac_cv_struct_tms = yes; then
11632 cat >>confdefs.h
<<\_ACEOF
11633 #define HAVE_STRUCT_TMS 1
11638 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11639 # revisit after autoconf 2.50.
11640 echo "$as_me:$LINENO: checking for clock_t" >&5
11641 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11642 if test "${gcc_cv_type_clock_t+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 cat >conftest.
$ac_ext <<_ACEOF
11649 cat confdefs.h
>>conftest.
$ac_ext
11650 cat >>conftest.
$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11653 #include "ansidecl.h"
11654 #include "system.h"
11664 rm -f conftest.
$ac_objext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11666 (eval $ac_compile) 2>conftest.er1
11668 grep -v '^ *+' conftest.er1
>conftest.err
11670 cat conftest.err
>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try
='test -s conftest.$ac_objext'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 gcc_cv_type_clock_t
=yes
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.
$ac_ext >&5
11690 gcc_cv_type_clock_t
=no
11692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11694 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11695 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11696 if test $gcc_cv_type_clock_t = yes; then
11698 cat >>confdefs.h
<<\_ACEOF
11699 #define HAVE_CLOCK_T 1
11704 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11705 CFLAGS
="$saved_CFLAGS"
11707 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11708 if test "${enable_initfini_array+set}" = set; then
11709 enableval
="$enable_initfini_array"
11713 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11714 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11715 if test "${gcc_cv_initfini_array+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 if test "$cross_compiling" = yes; then
11719 gcc_cv_initfini_array
=no
11721 cat >conftest.
$ac_ext <<_ACEOF
11724 cat confdefs.h
>>conftest.
$ac_ext
11725 cat >>conftest.
$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11729 int main (void) { return x; }
11730 int foo (void) { x = 0; }
11731 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11733 rm -f conftest
$ac_exeext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735 (eval $ac_link) 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 gcc_cv_initfini_array
=yes
11746 echo "$as_me: program exited with status $ac_status" >&5
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.
$ac_ext >&5
11750 ( exit $ac_status )
11751 gcc_cv_initfini_array
=no
11753 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11756 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11757 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11758 enable_initfini_array
=$gcc_cv_initfini_array
11761 if test $enable_initfini_array = yes; then
11763 cat >>confdefs.h
<<\_ACEOF
11764 #define HAVE_INITFINI_ARRAY 1
11769 # mkdir takes a single argument on some systems.
11770 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11771 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11772 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 cat >conftest.
$ac_ext <<_ACEOF
11778 cat confdefs.h
>>conftest.
$ac_ext
11779 cat >>conftest.
$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11782 #include <sys/types.h>
11783 #ifdef HAVE_SYS_STAT_H
11784 # include <sys/stat.h>
11786 #ifdef HAVE_UNISTD_H
11787 # include <unistd.h>
11789 #ifdef HAVE_DIRECT_H
11790 # include <direct.h>
11800 rm -f conftest.
$ac_objext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802 (eval $ac_compile) 2>conftest.er1
11804 grep -v '^ *+' conftest.er1
>conftest.err
11806 cat conftest.err
>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } &&
11809 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try
='test -s conftest.$ac_objext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 gcc_cv_mkdir_takes_one_arg
=no
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.
$ac_ext >&5
11826 gcc_cv_mkdir_takes_one_arg
=yes
11828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11830 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11831 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11832 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11834 cat >>confdefs.h
<<\_ACEOF
11835 #define MKDIR_TAKES_ONE_ARG 1
11847 # With Setjmp/Longjmp based exception handling.
11848 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11849 if test "${enable_sjlj_exceptions+set}" = set; then
11850 enableval
="$enable_sjlj_exceptions"
11851 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11853 cat >>confdefs.h
<<_ACEOF
11854 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11859 # For platforms with the unwind ABI which includes an unwind library,
11860 # libunwind, we can choose to use the system libunwind.
11862 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11863 if test "${with_system_libunwind+set}" = set; then
11864 withval
="$with_system_libunwind"
11868 # --------------------------------------------------------
11869 # Build, host, and target specific configuration fragments
11870 # --------------------------------------------------------
11872 # Collect build-machine-specific information.
11873 .
${srcdir}/config.build
11875 # Collect host-machine-specific information.
11876 .
${srcdir}/config.
host
11880 # Collect target-machine-specific information.
11881 .
${srcdir}/config.gcc
11883 extra_objs
="${host_extra_objs} ${extra_objs}"
11884 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11886 # Default the target-machine variables that were not explicitly set.
11887 if test x
"$tm_file" = x
11888 then tm_file
=$cpu_type/$cpu_type.h
; fi
11890 if test x
"$extra_headers" = x
11891 then extra_headers
=; fi
11893 if test x
$md_file = x
11894 then md_file
=$cpu_type/$cpu_type.md
; fi
11896 if test x
$out_file = x
11897 then out_file
=$cpu_type/$cpu_type.c
; fi
11899 if test x
"$tmake_file" = x
11900 then tmake_file
=$cpu_type/t-
$cpu_type
11903 if test x
"$dwarf2" = xyes
11904 then tm_file
="$tm_file tm-dwarf2.h"
11907 # Say what files are being used for the output code and MD file.
11908 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11909 echo "Using \`$srcdir/config/$md_file' as machine description file."
11911 # If any of the xm_file variables contain nonexistent files, warn
11912 # about them and drop them.
11915 for x
in $build_xm_file; do
11916 if test -f $srcdir/config
/$x
11918 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11919 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11922 build_xm_file
="$bx"
11925 for x
in $host_xm_file; do
11926 if test -f $srcdir/config
/$x
11928 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11929 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11935 for x
in $xm_file; do
11936 if test -f $srcdir/config
/$x
11938 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11939 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11945 for f
in $tm_file; do
11948 if test $count = ax
; then
11949 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11951 echo "Using the following target machine macro files:"
11952 for f
in $tm_file; do
11953 echo " $srcdir/config/$f"
11957 if test x
$need_64bit_hwint = xyes
; then
11959 cat >>confdefs.h
<<\_ACEOF
11960 #define NEED_64BIT_HOST_WIDE_INT 1
11965 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11967 cat >>confdefs.h
<<\_ACEOF
11968 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11974 for f
in $host_xm_file; do
11977 if test $count = a
; then
11979 elif test $count = ax
; then
11980 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11982 echo "Using the following host machine macro files:"
11983 for f
in $host_xm_file; do
11984 echo " $srcdir/config/$f"
11987 echo "Using ${out_host_hook_obj} for host machine hooks."
11989 if test "$host_xm_file" != "$build_xm_file"; then
11991 for f
in $build_xm_file; do
11994 if test $count = a
; then
11996 elif test $count = ax
; then
11997 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11999 echo "Using the following build machine macro files:"
12000 for f
in $build_xm_file; do
12001 echo " $srcdir/config/$f"
12010 # Check if a valid thread package
12011 case ${enable_threads} in
12014 target_thread_file
='single'
12018 target_thread_file
='single'
12020 aix | dce | gnat | irix | posix | posix95 | rtems | \
12021 single | solaris | vxworks | win32
)
12022 target_thread_file
=${enable_threads}
12025 echo "${enable_threads} is an unknown thread package" 1>&2
12030 if test x
${thread_file} = x
; then
12031 # No thread file set by target-specific clauses in config.gcc,
12032 # so use file chosen by default logic above
12033 thread_file
=${target_thread_file}
12036 # Make gthr-default.h if we have a thread file.
12038 if test $thread_file != single
; then
12039 rm -f gthr-default.h
12040 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12041 gthread_flags
=-DHAVE_GTHR_DEFAULT
12050 if test x
$enable___cxa_atexit = xyes || \
12051 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12052 if test x
$host = x
$target; then
12053 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12054 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12055 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 cat >conftest.
$ac_ext <<_ACEOF
12061 cat confdefs.h
>>conftest.
$ac_ext
12062 cat >>conftest.
$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066 #define __cxa_atexit innocuous___cxa_atexit
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char __cxa_atexit (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12074 # include <limits.h>
12076 # include <assert.h>
12079 #undef __cxa_atexit
12081 /* Override any gcc2 internal prototype to avoid an error. */
12086 /* We use char because int might match the return type of a gcc2
12087 builtin and then its argument prototype would still apply. */
12088 char __cxa_atexit ();
12089 /* The GNU C library defines this for functions which it implements
12090 to always fail with ENOSYS. Some functions are actually named
12091 something starting with __ and the normal name is an alias. */
12092 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12095 char (*f) () = __cxa_atexit;
12104 return f != __cxa_atexit;
12109 rm -f conftest.
$ac_objext conftest
$ac_exeext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111 (eval $ac_link) 2>conftest.er1
12113 grep -v '^ *+' conftest.er1
>conftest.err
12115 cat conftest.err
>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try
='test -s conftest$ac_exeext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 ac_cv_func___cxa_atexit
=yes
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.
$ac_ext >&5
12135 ac_cv_func___cxa_atexit
=no
12137 rm -f conftest.err conftest.
$ac_objext \
12138 conftest
$ac_exeext conftest.
$ac_ext
12140 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12141 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12142 if test $ac_cv_func___cxa_atexit = yes; then
12145 echo "__cxa_atexit can't be enabled on this target"
12149 # We can't check for __cxa_atexit when building a cross, so assume
12153 if test x
$use_cxa_atexit = xyes
; then
12155 cat >>confdefs.h
<<\_ACEOF
12156 #define DEFAULT_USE_CXA_ATEXIT 1
12162 # Look for a file containing extra machine modes.
12163 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12164 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12167 cat >>confdefs.h
<<_ACEOF
12168 #define EXTRA_MODES_FILE "config/$extra_modes"
12173 # Convert extra_options into a form suitable for Makefile use.
12175 for f
in $extra_options; do
12176 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12180 # auto-host.h is the file containing items generated by autoconf and is
12181 # the first file included by config.h.
12182 # If host=build, it is correct to have bconfig include auto-host.h
12183 # as well. If host!=build, we are in error and need to do more
12184 # work to find out the build config parameters.
12185 if test x
$host = x
$build
12187 build_auto
=auto-host.h
12189 # We create a subdir, then run autoconf in the subdir.
12190 # To prevent recursion we set host and build for the new
12191 # invocation of configure to the build for this invocation
12198 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12199 *) realsrcdir
=..
/${srcdir};;
12201 saved_CFLAGS
="${CFLAGS}"
12202 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12203 ${realsrcdir}/configure \
12204 --enable-languages=${enable_languages-all} \
12205 --target=$target_alias --host=$build_alias --build=$build_alias
12206 CFLAGS
="${saved_CFLAGS}"
12208 # We just finished tests for the build machine, so rename
12209 # the file auto-build.h in the gcc directory.
12210 mv auto-host.h ..
/auto-build.h
12213 build_auto
=auto-build.h
12217 tm_file
="${tm_file} defaults.h"
12218 tm_p_file
="${tm_p_file} tm-preds.h"
12219 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12220 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12221 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12222 # put this back in temporarily.
12223 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12229 # Compile in configure arguments.
12230 if test -f configargs.h
; then
12231 # Being re-configured.
12232 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12233 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12235 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12238 # Double all backslashes and backslash all quotes to turn
12239 # gcc_config_arguments into a C string.
12240 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12241 $gcc_config_arguments
12243 gcc_config_arguments_str
=`cat conftest.out`
12246 cat > configargs.h
<<EOF
12247 /* Generated automatically. */
12248 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12249 static const char thread_model[] = "$thread_file";
12251 static const struct {
12252 const char *name, *value;
12253 } configure_default_options[] = $configure_default_options;
12256 # Internationalization
12257 # If we haven't got the data from the intl directory,
12258 # assume NLS is disabled.
12266 if test -f ..
/intl
/config.intl
; then
12267 . ..
/intl
/config.intl
12269 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12270 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12271 if test x
"$USE_NLS" != xyes
; then
12272 echo "$as_me:$LINENO: result: no" >&5
12273 echo "${ECHO_T}no" >&6
12275 echo "$as_me:$LINENO: result: yes" >&5
12276 echo "${ECHO_T}yes" >&6
12278 cat >>confdefs.h
<<\_ACEOF
12279 #define ENABLE_NLS 1
12283 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12284 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12285 # Look for .po and .gmo files in the source directory.
12288 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12289 # If there aren't any .gmo files the shell will give us the
12290 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12292 case "$cat" in *\
**)
12295 # The quadruple backslash is collapsed to a double backslash
12296 # by the backticks, then collapsed again by the double quotes,
12297 # leaving us with one backslash in the sed expression (right
12298 # before the dot that mustn't act as a wildcard).
12299 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12300 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12301 # The user is allowed to set LINGUAS to a list of languages to
12302 # install catalogs for. If it's empty that means "all of them."
12303 if test "x$LINGUAS" = x
; then
12304 CATALOGS
="$CATALOGS $cat"
12305 XLINGUAS
="$XLINGUAS $lang"
12307 case "$LINGUAS" in *$lang*)
12308 CATALOGS
="$CATALOGS $cat"
12309 XLINGUAS
="$XLINGUAS $lang"
12314 LINGUAS
="$XLINGUAS"
12315 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12316 echo "${ECHO_T}$LINGUAS" >&6
12319 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12320 # -liconv on the link line twice.
12321 case "$LIBINTL" in *$LIBICONV*)
12325 # Check whether --enable-secureplt or --disable-secureplt was given.
12326 if test "${enable_secureplt+set}" = set; then
12327 enableval
="$enable_secureplt"
12331 # Windows32 Registry support for specifying GCC installation paths.
12332 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12333 if test "${enable_win32_registry+set}" = set; then
12334 enableval
="$enable_win32_registry"
12339 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12340 if test "x$enable_win32_registry" != xno
; then
12341 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12342 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12343 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 ac_func_search_save_LIBS
=$LIBS
12347 ac_cv_search_RegOpenKeyExA
=no
12348 cat >conftest.
$ac_ext <<_ACEOF
12351 cat confdefs.h
>>conftest.
$ac_ext
12352 cat >>conftest.
$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12355 /* Override any gcc2 internal prototype to avoid an error. */
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12361 char RegOpenKeyExA ();
12370 rm -f conftest.
$ac_objext conftest
$ac_exeext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372 (eval $ac_link) 2>conftest.er1
12374 grep -v '^ *+' conftest.er1
>conftest.err
12376 cat conftest.err
>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } &&
12385 { ac_try
='test -s conftest$ac_exeext'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391 ac_cv_search_RegOpenKeyExA
="none required"
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.
$ac_ext >&5
12397 rm -f conftest.err conftest.
$ac_objext \
12398 conftest
$ac_exeext conftest.
$ac_ext
12399 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12400 for ac_lib
in advapi32
; do
12401 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12402 cat >conftest.
$ac_ext <<_ACEOF
12405 cat confdefs.h
>>conftest.
$ac_ext
12406 cat >>conftest.
$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12409 /* Override any gcc2 internal prototype to avoid an error. */
12413 /* We use char because int might match the return type of a gcc2
12414 builtin and then its argument prototype would still apply. */
12415 char RegOpenKeyExA ();
12424 rm -f conftest.
$ac_objext conftest
$ac_exeext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12426 (eval $ac_link) 2>conftest.er1
12428 grep -v '^ *+' conftest.er1
>conftest.err
12430 cat conftest.err
>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; } &&
12439 { ac_try
='test -s conftest$ac_exeext'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.
$ac_ext >&5
12452 rm -f conftest.err conftest.
$ac_objext \
12453 conftest
$ac_exeext conftest.
$ac_ext
12456 LIBS
=$ac_func_search_save_LIBS
12458 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12459 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12460 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12461 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12464 enable_win32_registry
=no
12469 if test "x$enable_win32_registry" != xno
; then
12471 cat >>confdefs.h
<<\_ACEOF
12472 #define ENABLE_WIN32_REGISTRY 1
12476 if test "x$enable_win32_registry" != xyes \
12477 && test "x$enable_win32_registry" != x
; then
12479 cat >>confdefs.h
<<_ACEOF
12480 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12488 # Get an absolute path to the GCC top-level source directory
12489 holddir
=`${PWDCMD-pwd}`
12491 topdir
=`${PWDCMD-pwd}`
12494 # Conditionalize the makefile for this host machine.
12496 for f
in ${host_xmake_file}
12498 if test -f ${srcdir}/config
/$f
12500 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12504 # Conditionalize the makefile for this target machine.
12506 for f
in ${tmake_file}
12508 if test -f ${srcdir}/config
/$f
12510 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12513 tmake_file
="${tmake_file_}"
12515 # If the host doesn't support symlinks, modify CC in
12516 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12517 # Otherwise, we can use "CC=$(CC)".
12521 cc_set_by_configure
="\$(CC)"
12522 quoted_cc_set_by_configure
="\$(CC)"
12523 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12524 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12527 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12528 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12529 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12530 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12534 # This is a terrible hack which will go away some day.
12535 host_cc_for_libada
=${CC}
12538 out_object_file
=`basename $out_file .c`.o
12540 tm_file_list
="options.h"
12541 tm_include_list
="options.h"
12542 for f
in $tm_file; do
12545 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12546 tm_include_list
="${tm_include_list} $f"
12549 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12550 tm_include_list
="${tm_include_list} config/$f"
12557 for f
in $tm_p_file; do
12560 tm_p_file_list
="${tm_p_file_list} $f"
12561 tm_p_include_list
="${tm_p_include_list} $f"
12564 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12565 tm_p_include_list
="${tm_p_include_list} config/$f"
12571 for f
in $xm_file; do
12574 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12575 xm_include_list
="${xm_include_list} $f"
12578 xm_file_list
="${xm_file_list} $f"
12579 xm_include_list
="${xm_include_list} $f"
12582 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12583 xm_include_list
="${xm_include_list} config/$f"
12589 host_xm_include_list
=
12590 for f
in $host_xm_file; do
12593 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12594 host_xm_include_list
="${host_xm_include_list} $f"
12597 host_xm_file_list
="${host_xm_file_list} $f"
12598 host_xm_include_list
="${host_xm_include_list} $f"
12601 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12602 host_xm_include_list
="${host_xm_include_list} config/$f"
12607 build_xm_file_list
=
12608 for f
in $build_xm_file; do
12611 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12612 build_xm_include_list
="${build_xm_include_list} $f"
12614 auto-build.h | auto-host.h
)
12615 build_xm_file_list
="${build_xm_file_list} $f"
12616 build_xm_include_list
="${build_xm_include_list} $f"
12619 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12620 build_xm_include_list
="${build_xm_include_list} config/$f"
12625 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12626 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12629 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12631 if test "x$with_build_sysroot" != x
; then
12632 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12634 # This value is used, even on a native system, because
12635 # CROSS_SYSTEM_HEADER_DIR is just
12636 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12637 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12640 if test x
$host != x
$target
12642 CROSS
="-DCROSS_COMPILE"
12644 SYSTEM_HEADER_DIR
=$build_system_header_dir
12645 case "$host","$target" in
12646 # Darwin crosses can use the host system's libraries and headers,
12647 # because of the fat library support. Of course, it must be the
12648 # same version of Darwin on both sides. Allow the user to
12649 # just say --target=foo-darwin without a version number to mean
12650 # "the version on this system".
12651 *-*-darwin*,*-*-darwin*)
12652 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12653 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12654 if test $hostos = $targetos -o $targetos = darwin
; then
12656 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12661 i?
86-*-*,x86_64-
*-* \
12662 | powerpc
*-*-*,powerpc64
*-*-*)
12663 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12665 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12666 SYSTEM_HEADER_DIR
=$build_system_header_dir
12669 # If this is a cross-compiler that does not
12670 # have its own set of headers then define
12673 # If this is using newlib, without having the headers available now,
12674 # then define inhibit_libc in LIBGCC2_CFLAGS.
12675 # This prevents libgcc2 from containing any code which requires libc
12678 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12679 test x
$with_newlib = xyes
; } &&
12680 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12685 # When building gcc with a cross-compiler, we need to adjust things so
12686 # that the generator programs are still built with the native compiler.
12687 # Also, we cannot run fixincludes or fix-header.
12689 # These are the normal (build=host) settings:
12690 CC_FOR_BUILD
='$(CC)'
12691 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12692 STMP_FIXINC
=stmp-fixinc
12694 # Possibly disable fixproto, on a per-target basis.
12695 case ${use_fixproto} in
12700 STMP_FIXPROTO
=stmp-fixproto
12705 # And these apply if build != host, or we are generating coverage data
12706 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12708 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12710 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12711 if test "x$STMP_FIXPROTO" != x
; then
12712 STMP_FIXPROTO
=stmp-install-fixproto
12717 # Expand extra_headers to include complete path.
12718 # This substitutes for lots of t-* files.
12719 extra_headers_list
=
12720 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12721 for file in ${extra_headers} ; do
12722 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12725 # Define collect2 in Makefile.
12726 case $host_can_use_collect2 in
12728 *) collect2
='collect2$(exeext)' ;;
12732 # Add a definition of USE_COLLECT2 if system wants one.
12733 case $use_collect2 in
12734 no
) use_collect2
= ;;
12737 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12738 xm_defines
="${xm_defines} USE_COLLECT2"
12739 case $host_can_use_collect2 in
12741 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12742 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12743 { (exit 1); exit 1; }; }
12749 # ---------------------------
12750 # Assembler & linker features
12751 # ---------------------------
12753 # Identify the assembler which will work hand-in-glove with the newly
12754 # built GCC, so that we can examine its features. This is the assembler
12755 # which will be driven by the driver program.
12757 # If build != host, and we aren't building gas in-tree, we identify a
12758 # build->target assembler and hope that it will have the same features
12759 # as the host->target assembler we'll be using.
12762 gcc_cv_gas_major_version
=
12763 gcc_cv_gas_minor_version
=
12764 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12765 if test -x "$DEFAULT_ASSEMBLER"; then
12766 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12767 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12768 && test -f ..
/gas
/Makefile \
12769 && test x
$build = x
$host; then
12770 # Single tree build which includes gas. We want to prefer it
12771 # over whatever linker top-level may have detected, since
12772 # we'll use what we're building after installation anyway.
12774 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12775 for f
in $gcc_cv_as_bfd_srcdir/configure \
12776 $gcc_cv_as_gas_srcdir/configure \
12777 $gcc_cv_as_gas_srcdir/configure.
in \
12778 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12779 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12780 if test x
$gcc_cv_gas_version != x
; then
12784 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12785 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12786 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12787 case $gcc_cv_gas_patch_version in
12788 "") gcc_cv_gas_patch_version
="0" ;;
12790 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12791 + $gcc_cv_gas_minor_version \) \* 1000 \
12792 + $gcc_cv_gas_patch_version`
12794 gcc_cv_as
=..
/gas
/as-new
$build_exeext
12795 in_tree_gas_is_elf
=no
12796 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12797 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12798 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12800 in_tree_gas_is_elf
=yes
12802 elif test -x as
$build_exeext; then
12803 # Build using assembler in the current directory.
12804 gcc_cv_as
=.
/as
$build_exeext
12808 # When searching for the assembler or linker, search the same directories
12809 # that the installed compiler will search. Else we may find the wrong
12810 # assembler or linker and lose. If we do not find a suitable binary,
12811 # then try the user's path.
12813 # Also note we have to check MD_EXEC_PREFIX before checking the user's path.
12814 if test "x$exec_prefix" = xNONE
; then
12815 if test "x$prefix" = xNONE
; then
12816 gcc_cv_tool_prefix
=/usr
/local
12818 gcc_cv_tool_prefix
=$prefix
12821 gcc_cv_tool_prefix
=$exec_prefix
12824 if test x
$host = x
$build; then
12825 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
12826 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
12827 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
12828 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
12829 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
12830 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
12835 if test x
$build = x
$target; then
12836 # Rummage through tm_files looking for MD_EXEC_PREFIX
12838 for f
in ${tm_file_list}; do
12839 if test -f $f; then
12840 if grep '^#[ ]*undef[ ]*MD_EXEC_PREFIX' $f > /dev
/null
; then
12843 md_dirs
="$md_dirs "`sed -n -e 's@^#[ ]*define[ ]*MD_EXEC_PREFIX[ ]*"\(.*\)/"@\1@p' < $f`
12846 for f
in ${md_dirs}; do
12847 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
12856 # First try the environment variables. Handle full paths or basenames.
12857 if test "x$gcc_cv_as" = x
&& test -n "$AS_FOR_TARGET"; then
12858 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12859 set dummy
$AS_FOR_TARGET; ac_word
=$2
12860 echo "$as_me:$LINENO: checking for $ac_word" >&5
12861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12862 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
12870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12871 for as_dir
in $PATH
12874 test -z "$as_dir" && as_dir
=.
12875 for ac_exec_ext
in '' $ac_executable_extensions; do
12876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12877 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
12878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 gcc_cv_as
=$ac_cv_path_gcc_cv_as
12889 if test -n "$gcc_cv_as"; then
12890 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12891 echo "${ECHO_T}$gcc_cv_as" >&6
12893 echo "$as_me:$LINENO: result: no" >&5
12894 echo "${ECHO_T}no" >&6
12898 if test "x$gcc_cv_as" = x
&& test -n "$AS" && test x
$host = x
$target; then
12899 # Extract the first word of "$AS", so it can be a program name with args.
12900 set dummy
$AS; ac_word
=$2
12901 echo "$as_me:$LINENO: checking for $ac_word" >&5
12902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12903 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
12911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12912 for as_dir
in $PATH
12915 test -z "$as_dir" && as_dir
=.
12916 for ac_exec_ext
in '' $ac_executable_extensions; do
12917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12918 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
12919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 gcc_cv_as
=$ac_cv_path_gcc_cv_as
12930 if test -n "$gcc_cv_as"; then
12931 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12932 echo "${ECHO_T}$gcc_cv_as" >&6
12934 echo "$as_me:$LINENO: result: no" >&5
12935 echo "${ECHO_T}no" >&6
12940 if test "x$gcc_cv_as" = x
; then
12941 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
12943 if test "x$gcc_cv_tool_dirs" = x
; then
12948 # Extract the first word of "$ac_prog", so it can be a program name with args.
12949 set dummy
$ac_prog; ac_word
=$2
12950 echo "$as_me:$LINENO: checking for $ac_word" >&5
12951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12952 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
12960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12961 for as_dir
in $gcc_cv_tool_dirs
12964 test -z "$as_dir" && as_dir
=.
12965 for ac_exec_ext
in '' $ac_executable_extensions; do
12966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12967 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
12968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 gcc_cv_as
=$ac_cv_path_gcc_cv_as
12979 if test -n "$gcc_cv_as"; then
12980 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12981 echo "${ECHO_T}$gcc_cv_as" >&6
12983 echo "$as_me:$LINENO: result: no" >&5
12984 echo "${ECHO_T}no" >&6
12987 test -n "$gcc_cv_as" && break
12992 if test "x$gcc_cv_as" = x
; then
12993 # If the loop above did not find a tool, then use whatever
12994 # one we can find in the users's path. We are looking for a
12995 # ${build} -> ${target} tool.
12996 if test "x$program_prefix" != xNONE
; then
12997 default_tool_name
=${program_prefix}as
12998 elif test x
$build != x
$host && test x
$build != x
$target; then
12999 default_tool_name
=${target_noncanonical}-as
13001 default_tool_name
=`echo as | sed "${program_transform_name}"`
13003 for ac_prog
in $default_tool_name
13005 # Extract the first word of "$ac_prog", so it can be a program name with args.
13006 set dummy
$ac_prog; ac_word
=$2
13007 echo "$as_me:$LINENO: checking for $ac_word" >&5
13008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13009 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13018 for as_dir
in $PATH
13021 test -z "$as_dir" && as_dir
=.
13022 for ac_exec_ext
in '' $ac_executable_extensions; do
13023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13024 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13034 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13036 if test -n "$gcc_cv_as"; then
13037 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13038 echo "${ECHO_T}$gcc_cv_as" >&6
13040 echo "$as_me:$LINENO: result: no" >&5
13041 echo "${ECHO_T}no" >&6
13044 test -n "$gcc_cv_as" && break
13046 test -n "$gcc_cv_as" || gcc_cv_as
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13049 test "$silent" != yes && exec 6>&1
13051 ORIGINAL_AS_FOR_TARGET
="$gcc_cv_as"
13053 echo "$as_me:$LINENO: checking what assembler to use" >&5
13054 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13055 case $in_tree_gas in
13057 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13058 echo "${ECHO_T}\"newly built gas\"" >&6
13061 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13062 echo "${ECHO_T}$gcc_cv_as" >&6
13066 # Identify the linker which will work hand-in-glove with the newly
13067 # built GCC, so that we can examine its features. This is the linker
13068 # which will be driven by the driver program.
13070 # If build != host, and we aren't building gas in-tree, we identify a
13071 # build->target linker and hope that it will have the same features
13072 # as the host->target linker we'll be using.
13075 gcc_cv_gld_major_version
=
13076 gcc_cv_gld_minor_version
=
13077 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13078 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13079 if test -x "$DEFAULT_LINKER"; then
13080 gcc_cv_ld
="$DEFAULT_LINKER"
13081 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13082 && test -f ..
/ld
/Makefile \
13083 && test x
$build = x
$host; then
13084 # Single tree build which includes ld. We want to prefer it
13085 # over whatever linker top-level may have detected, since
13086 # we'll use what we're building after installation anyway.
13088 in_tree_ld_is_elf
=no
13089 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13090 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13091 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13092 in_tree_ld_is_elf
=yes
13094 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
13096 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13097 if test x
$gcc_cv_gld_version != x
; then
13101 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13102 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13103 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13104 elif test -x collect-ld
$build_exeext; then
13105 # Build using linker in the current directory.
13106 gcc_cv_ld
=.
/collect-ld
$build_exeext
13115 # First try the environment variables. Handle full paths or basenames.
13116 if test "x$gcc_cv_ld" = x
&& test -n "$LD_FOR_TARGET"; then
13117 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13118 set dummy
$LD_FOR_TARGET; ac_word
=$2
13119 echo "$as_me:$LINENO: checking for $ac_word" >&5
13120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13121 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13130 for as_dir
in $PATH
13133 test -z "$as_dir" && as_dir
=.
13134 for ac_exec_ext
in '' $ac_executable_extensions; do
13135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13136 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13146 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13148 if test -n "$gcc_cv_ld"; then
13149 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13150 echo "${ECHO_T}$gcc_cv_ld" >&6
13152 echo "$as_me:$LINENO: result: no" >&5
13153 echo "${ECHO_T}no" >&6
13157 if test "x$gcc_cv_ld" = x
&& test -n "$LD" && test x
$host = x
$target; then
13158 # Extract the first word of "$LD", so it can be a program name with args.
13159 set dummy
$LD; ac_word
=$2
13160 echo "$as_me:$LINENO: checking for $ac_word" >&5
13161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13162 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13171 for as_dir
in $PATH
13174 test -z "$as_dir" && as_dir
=.
13175 for ac_exec_ext
in '' $ac_executable_extensions; do
13176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13189 if test -n "$gcc_cv_ld"; then
13190 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13191 echo "${ECHO_T}$gcc_cv_ld" >&6
13193 echo "$as_me:$LINENO: result: no" >&5
13194 echo "${ECHO_T}no" >&6
13199 if test "x$gcc_cv_ld" = x
; then
13200 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13202 if test "x$gcc_cv_tool_dirs" = x
; then
13207 # Extract the first word of "$ac_prog", so it can be a program name with args.
13208 set dummy
$ac_prog; ac_word
=$2
13209 echo "$as_me:$LINENO: checking for $ac_word" >&5
13210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13211 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13220 for as_dir
in $gcc_cv_tool_dirs
13223 test -z "$as_dir" && as_dir
=.
13224 for ac_exec_ext
in '' $ac_executable_extensions; do
13225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13226 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13238 if test -n "$gcc_cv_ld"; then
13239 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13240 echo "${ECHO_T}$gcc_cv_ld" >&6
13242 echo "$as_me:$LINENO: result: no" >&5
13243 echo "${ECHO_T}no" >&6
13246 test -n "$gcc_cv_ld" && break
13251 if test "x$gcc_cv_ld" = x
; then
13252 # If the loop above did not find a tool, then use whatever
13253 # one we can find in the users's path. We are looking for a
13254 # ${build} -> ${target} tool.
13255 if test "x$program_prefix" != xNONE
; then
13256 default_tool_name
=${program_prefix}ld
13257 elif test x
$build != x
$host && test x
$build != x
$target; then
13258 default_tool_name
=${target_noncanonical}-ld
13260 default_tool_name
=`echo ld | sed "${program_transform_name}"`
13262 for ac_prog
in $default_tool_name
13264 # Extract the first word of "$ac_prog", so it can be a program name with args.
13265 set dummy
$ac_prog; ac_word
=$2
13266 echo "$as_me:$LINENO: checking for $ac_word" >&5
13267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13268 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13277 for as_dir
in $PATH
13280 test -z "$as_dir" && as_dir
=.
13281 for ac_exec_ext
in '' $ac_executable_extensions; do
13282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13283 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13295 if test -n "$gcc_cv_ld"; then
13296 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13297 echo "${ECHO_T}$gcc_cv_ld" >&6
13299 echo "$as_me:$LINENO: result: no" >&5
13300 echo "${ECHO_T}no" >&6
13303 test -n "$gcc_cv_ld" && break
13305 test -n "$gcc_cv_ld" || gcc_cv_ld
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13308 test "$silent" != yes && exec 6>&1
13310 ORIGINAL_LD_FOR_TARGET
="$gcc_cv_ld"
13312 echo "$as_me:$LINENO: checking what linker to use" >&5
13313 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13314 case $in_tree_ld in
13316 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13317 echo "${ECHO_T}\"newly built ld\"" >&6
13320 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13321 echo "${ECHO_T}$gcc_cv_ld" >&6
13325 # Figure out what nm we will be using.
13326 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13329 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13330 && test -f ..
/binutils
/Makefile
; then
13331 # Single tree build which includes binutils.
13333 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13334 elif test -x nm
$build_exeext; then
13335 gcc_cv_nm
=.
/nm
$build_exeext
13344 # First try the environment variables. Handle full paths or basenames.
13345 if test "x$gcc_cv_nm" = x
&& test -n "$NM_FOR_TARGET"; then
13346 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13347 set dummy
$NM_FOR_TARGET; ac_word
=$2
13348 echo "$as_me:$LINENO: checking for $ac_word" >&5
13349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13350 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13359 for as_dir
in $PATH
13362 test -z "$as_dir" && as_dir
=.
13363 for ac_exec_ext
in '' $ac_executable_extensions; do
13364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13377 if test -n "$gcc_cv_nm"; then
13378 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13379 echo "${ECHO_T}$gcc_cv_nm" >&6
13381 echo "$as_me:$LINENO: result: no" >&5
13382 echo "${ECHO_T}no" >&6
13386 if test "x$gcc_cv_nm" = x
&& test -n "$NM" && test x
$host = x
$target; then
13387 # Extract the first word of "$NM", so it can be a program name with args.
13388 set dummy
$NM; ac_word
=$2
13389 echo "$as_me:$LINENO: checking for $ac_word" >&5
13390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13391 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13400 for as_dir
in $PATH
13403 test -z "$as_dir" && as_dir
=.
13404 for ac_exec_ext
in '' $ac_executable_extensions; do
13405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13406 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13416 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13418 if test -n "$gcc_cv_nm"; then
13419 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13420 echo "${ECHO_T}$gcc_cv_nm" >&6
13422 echo "$as_me:$LINENO: result: no" >&5
13423 echo "${ECHO_T}no" >&6
13428 if test "x$gcc_cv_nm" = x
; then
13429 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13431 if test "x$gcc_cv_tool_dirs" = x
; then
13436 # Extract the first word of "$ac_prog", so it can be a program name with args.
13437 set dummy
$ac_prog; ac_word
=$2
13438 echo "$as_me:$LINENO: checking for $ac_word" >&5
13439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13440 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13449 for as_dir
in $gcc_cv_tool_dirs
13452 test -z "$as_dir" && as_dir
=.
13453 for ac_exec_ext
in '' $ac_executable_extensions; do
13454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13467 if test -n "$gcc_cv_nm"; then
13468 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13469 echo "${ECHO_T}$gcc_cv_nm" >&6
13471 echo "$as_me:$LINENO: result: no" >&5
13472 echo "${ECHO_T}no" >&6
13475 test -n "$gcc_cv_nm" && break
13480 if test "x$gcc_cv_nm" = x
; then
13481 # If the loop above did not find a tool, then use whatever
13482 # one we can find in the users's path. We are looking for a
13483 # ${build} -> ${target} tool.
13484 if test "x$program_prefix" != xNONE
; then
13485 default_tool_name
=${program_prefix}nm
13486 elif test x
$build != x
$host && test x
$build != x
$target; then
13487 default_tool_name
=${target_noncanonical}-nm
13489 default_tool_name
=`echo nm | sed "${program_transform_name}"`
13491 for ac_prog
in $default_tool_name
13493 # Extract the first word of "$ac_prog", so it can be a program name with args.
13494 set dummy
$ac_prog; ac_word
=$2
13495 echo "$as_me:$LINENO: checking for $ac_word" >&5
13496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13497 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13506 for as_dir
in $PATH
13509 test -z "$as_dir" && as_dir
=.
13510 for ac_exec_ext
in '' $ac_executable_extensions; do
13511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13512 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13522 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13524 if test -n "$gcc_cv_nm"; then
13525 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13526 echo "${ECHO_T}$gcc_cv_nm" >&6
13528 echo "$as_me:$LINENO: result: no" >&5
13529 echo "${ECHO_T}no" >&6
13532 test -n "$gcc_cv_nm" && break
13534 test -n "$gcc_cv_nm" || gcc_cv_nm
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13537 test "$silent" != yes && exec 6>&1
13539 ORIGINAL_NM_FOR_TARGET
="$gcc_cv_nm"
13541 echo "$as_me:$LINENO: checking what nm to use" >&5
13542 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13543 case $in_tree_nm in
13544 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13545 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13546 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13547 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13550 # Figure out what objdump we will be using.
13553 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13554 && test -f ..
/binutils
/Makefile
; then
13555 # Single tree build which includes binutils.
13556 in_tree_objdump
=yes
13557 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13558 elif test -x objdump
$build_exeext; then
13559 gcc_cv_objdump
=.
/objdump
$build_exeext
13568 # First try the environment variables. Handle full paths or basenames.
13569 if test "x$gcc_cv_objdump" = x
&& test -n "$OBJDUMP_FOR_TARGET"; then
13570 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13571 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13572 echo "$as_me:$LINENO: checking for $ac_word" >&5
13573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13574 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 case $gcc_cv_objdump in
13579 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13583 for as_dir
in $PATH
13586 test -z "$as_dir" && as_dir
=.
13587 for ac_exec_ext
in '' $ac_executable_extensions; do
13588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13589 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13601 if test -n "$gcc_cv_objdump"; then
13602 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13603 echo "${ECHO_T}$gcc_cv_objdump" >&6
13605 echo "$as_me:$LINENO: result: no" >&5
13606 echo "${ECHO_T}no" >&6
13610 if test "x$gcc_cv_objdump" = x
&& test -n "$OBJDUMP" && test x
$host = x
$target; then
13611 # Extract the first word of "$OBJDUMP", so it can be a program name with args.
13612 set dummy
$OBJDUMP; ac_word
=$2
13613 echo "$as_me:$LINENO: checking for $ac_word" >&5
13614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13615 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 case $gcc_cv_objdump in
13620 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13624 for as_dir
in $PATH
13627 test -z "$as_dir" && as_dir
=.
13628 for ac_exec_ext
in '' $ac_executable_extensions; do
13629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13630 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13640 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13642 if test -n "$gcc_cv_objdump"; then
13643 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13644 echo "${ECHO_T}$gcc_cv_objdump" >&6
13646 echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6
13652 if test "x$gcc_cv_objdump" = x
; then
13653 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13655 if test "x$gcc_cv_tool_dirs" = x
; then
13658 for ac_prog
in objdump
13660 # Extract the first word of "$ac_prog", so it can be a program name with args.
13661 set dummy
$ac_prog; ac_word
=$2
13662 echo "$as_me:$LINENO: checking for $ac_word" >&5
13663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13664 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 case $gcc_cv_objdump in
13669 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13673 for as_dir
in $gcc_cv_tool_dirs
13676 test -z "$as_dir" && as_dir
=.
13677 for ac_exec_ext
in '' $ac_executable_extensions; do
13678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13679 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13691 if test -n "$gcc_cv_objdump"; then
13692 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13693 echo "${ECHO_T}$gcc_cv_objdump" >&6
13695 echo "$as_me:$LINENO: result: no" >&5
13696 echo "${ECHO_T}no" >&6
13699 test -n "$gcc_cv_objdump" && break
13704 if test "x$gcc_cv_objdump" = x
; then
13705 # If the loop above did not find a tool, then use whatever
13706 # one we can find in the users's path. We are looking for a
13707 # ${build} -> ${target} tool.
13708 if test "x$program_prefix" != xNONE
; then
13709 default_tool_name
=${program_prefix}objdump
13710 elif test x
$build != x
$host && test x
$build != x
$target; then
13711 default_tool_name
=${target_noncanonical}-objdump
13713 default_tool_name
=`echo objdump | sed "${program_transform_name}"`
13715 for ac_prog
in $default_tool_name
13717 # Extract the first word of "$ac_prog", so it can be a program name with args.
13718 set dummy
$ac_prog; ac_word
=$2
13719 echo "$as_me:$LINENO: checking for $ac_word" >&5
13720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13721 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 case $gcc_cv_objdump in
13726 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13730 for as_dir
in $PATH
13733 test -z "$as_dir" && as_dir
=.
13734 for ac_exec_ext
in '' $ac_executable_extensions; do
13735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13736 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13746 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13748 if test -n "$gcc_cv_objdump"; then
13749 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13750 echo "${ECHO_T}$gcc_cv_objdump" >&6
13752 echo "$as_me:$LINENO: result: no" >&5
13753 echo "${ECHO_T}no" >&6
13756 test -n "$gcc_cv_objdump" && break
13758 test -n "$gcc_cv_objdump" || gcc_cv_objdump
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13761 test "$silent" != yes && exec 6>&1
13763 ORIGINAL_OBJDUMP_FOR_TARGET
="$gcc_cv_objdump"
13765 echo "$as_me:$LINENO: checking what objdump to use" >&5
13766 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13767 case $in_tree_objdump in
13768 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13769 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13770 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13771 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13774 # Figure out what assembler alignment features are present.
13775 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13776 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13777 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 gcc_cv_as_balign_and_p2align
=no
13781 if test $in_tree_gas = yes; then
13782 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13783 then gcc_cv_as_balign_and_p2align
=yes
13785 elif test x
$gcc_cv_as != x
; then
13787 .p2align 2' > conftest.s
13788 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }
13795 gcc_cv_as_balign_and_p2align
=yes
13797 echo "configure: failed program was" >&5
13800 rm -f conftest.o conftest.s
13803 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13804 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13805 if test $gcc_cv_as_balign_and_p2align = yes; then
13807 cat >>confdefs.h
<<\_ACEOF
13808 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13813 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13814 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13815 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 gcc_cv_as_max_skip_p2align
=no
13819 if test $in_tree_gas = yes; then
13820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13821 then gcc_cv_as_max_skip_p2align
=yes
13823 elif test x
$gcc_cv_as != x
; then
13824 echo '.p2align 4,,7' > conftest.s
13825 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }
13832 gcc_cv_as_max_skip_p2align
=yes
13834 echo "configure: failed program was" >&5
13837 rm -f conftest.o conftest.s
13840 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13841 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13842 if test $gcc_cv_as_max_skip_p2align = yes; then
13844 cat >>confdefs.h
<<\_ACEOF
13845 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13850 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13851 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13852 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 gcc_cv_as_subsection_m1
=no
13856 if test $in_tree_gas = yes; then
13857 if test $in_tree_gas_is_elf = yes \
13858 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13859 then gcc_cv_as_subsection_m1
=yes
13861 elif test x
$gcc_cv_as != x
; then
13862 echo 'conftest_label1: .word 0
13864 conftest_label2: .word 0
13865 .previous' > conftest.s
13866 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }
13873 if test x
$gcc_cv_nm != x
; then
13874 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13875 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13876 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13878 else gcc_cv_as_subsection_m1
=yes
13880 rm -f conftest.nm1 conftest.nm2
13883 echo "configure: failed program was" >&5
13886 rm -f conftest.o conftest.s
13889 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13890 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13891 if test $gcc_cv_as_subsection_m1 = yes; then
13893 cat >>confdefs.h
<<\_ACEOF
13894 #define HAVE_GAS_SUBSECTION_ORDERING 1
13899 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13900 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13901 if test "${gcc_cv_as_weak+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 if test $in_tree_gas = yes; then
13906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13907 then gcc_cv_as_weak
=yes
13909 elif test x
$gcc_cv_as != x
; then
13910 echo ' .weak foobar' > conftest.s
13911 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }
13920 echo "configure: failed program was" >&5
13923 rm -f conftest.o conftest.s
13926 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13927 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13928 if test $gcc_cv_as_weak = yes; then
13930 cat >>confdefs.h
<<\_ACEOF
13931 #define HAVE_GAS_WEAK 1
13936 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13937 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13938 if test "${gcc_cv_as_weakref+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 gcc_cv_as_weakref
=no
13942 if test $in_tree_gas = yes; then
13943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13944 then gcc_cv_as_weakref
=yes
13946 elif test x
$gcc_cv_as != x
; then
13947 echo ' .weakref foobar, barfnot' > conftest.s
13948 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }
13955 gcc_cv_as_weakref
=yes
13957 echo "configure: failed program was" >&5
13960 rm -f conftest.o conftest.s
13963 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13964 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13965 if test $gcc_cv_as_weakref = yes; then
13967 cat >>confdefs.h
<<\_ACEOF
13968 #define HAVE_GAS_WEAKREF 1
13973 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13974 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13975 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 gcc_cv_as_nsubspa_comdat
=no
13979 if test $in_tree_gas = yes; then
13980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13981 then gcc_cv_as_nsubspa_comdat
=yes
13983 elif test x
$gcc_cv_as != x
; then
13984 echo ' .SPACE $TEXT$
13985 .NSUBSPA $CODE$,COMDAT' > conftest.s
13986 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }
13993 gcc_cv_as_nsubspa_comdat
=yes
13995 echo "configure: failed program was" >&5
13998 rm -f conftest.o conftest.s
14001 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14002 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
14003 if test $gcc_cv_as_nsubspa_comdat = yes; then
14005 cat >>confdefs.h
<<\_ACEOF
14006 #define HAVE_GAS_NSUBSPA_COMDAT 1
14011 # .hidden needs to be supported in both the assembler and the linker,
14012 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14013 # This is irritatingly difficult to feature test for; we have to check the
14014 # date string after the version number. If we've got an in-tree
14015 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14017 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14018 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14019 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14020 if test "${gcc_cv_as_hidden+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 gcc_cv_as_hidden
=no
14024 if test $in_tree_gas = yes; then
14025 if test $in_tree_gas_is_elf = yes \
14026 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14027 then gcc_cv_as_hidden
=yes
14029 elif test x
$gcc_cv_as != x
; then
14030 echo ' .hidden foobar
14031 foobar:' > conftest.s
14032 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; }
14039 gcc_cv_as_hidden
=yes
14041 echo "configure: failed program was" >&5
14044 rm -f conftest.o conftest.s
14047 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14048 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14051 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14052 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14053 if test "${gcc_cv_ld_hidden+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 if test $in_tree_ld = yes ; then
14057 gcc_cv_ld_hidden
=no
14058 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 \
14059 && test $in_tree_ld_is_elf = yes; then
14060 gcc_cv_ld_hidden
=yes
14063 gcc_cv_ld_hidden
=yes
14064 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14065 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
14066 ld_vers
=`echo $ld_ver | sed -n \
14067 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14068 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14069 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14070 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14071 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14072 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14073 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
14074 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'`
14075 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
14076 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14077 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14078 if test 0"$ld_date" -lt 20020404; then
14079 if test -n "$ld_date"; then
14080 # If there was date string, but was earlier than 2002-04-04, fail
14081 gcc_cv_ld_hidden
=no
14082 elif test -z "$ld_vers"; then
14083 # If there was no date string nor ld version number, something is wrong
14084 gcc_cv_ld_hidden
=no
14086 test -z "$ld_vers_patch" && ld_vers_patch
=0
14087 if test "$ld_vers_major" -lt 2; then
14088 gcc_cv_ld_hidden
=no
14089 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14090 gcc_cv_ld_hidden
="no"
14091 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14092 gcc_cv_ld_hidden
=no
14097 case "${target}" in
14098 hppa64
*-*-hpux* | ia64
*-*-hpux*)
14099 gcc_cv_ld_hidden
=yes
14102 gcc_cv_ld_hidden
=no
14108 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14109 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14110 libgcc_visibility
=no
14113 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14114 libgcc_visibility
=yes
14116 cat >>confdefs.h
<<\_ACEOF
14117 #define HAVE_GAS_HIDDEN 1
14122 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14123 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14124 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14125 if test "${gcc_cv_as_leb128+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 gcc_cv_as_leb128
=no
14129 if test $in_tree_gas = yes; then
14130 if test $in_tree_gas_is_elf = yes \
14131 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14132 then gcc_cv_as_leb128
=yes
14134 elif test x
$gcc_cv_as != x
; then
14141 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }
14148 # GAS versions before 2.11 do not support uleb128,
14149 # despite appearing to.
14150 # ??? There exists an elf-specific test that will crash
14151 # the assembler. Perhaps it's better to figure out whether
14152 # arbitrary sections are supported and try the test.
14153 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14154 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
14155 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14156 as_major
=`echo $as_ver | sed 's/\..*//'`
14157 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14158 if test $as_major -eq 2 && test $as_minor -lt 11
14160 else gcc_cv_as_leb128
=yes
14164 echo "configure: failed program was" >&5
14167 rm -f conftest.o conftest.s
14170 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14171 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14172 if test $gcc_cv_as_leb128 = yes; then
14174 cat >>confdefs.h
<<\_ACEOF
14175 #define HAVE_AS_LEB128 1
14180 # GAS versions up to and including 2.11.0 may mis-optimize
14182 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14183 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14184 if test "${gcc_cv_as_eh_frame+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 gcc_cv_as_eh_frame
=no
14188 if test $in_tree_gas = yes; then
14189 if test $in_tree_gas_is_elf = yes \
14190 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14191 then gcc_cv_as_eh_frame
=yes
14193 elif test x
$gcc_cv_as != x
; then
14200 .section .eh_frame,"aw",@progbits
14202 .4byte .LECIE1-.LSCIE1
14216 .4byte .LEFDE1-.LASFDE1
14218 .4byte .LASFDE1-__FRAME_BEGIN__
14225 .LEFDE1:' > conftest.s
14226 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; }
14233 cat > conftest.lit
<<EOF
14234 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14235 0010 01000000 12000000 18000000 00000000 ................
14236 0020 08000000 04080000 0044 .........D
14238 cat > conftest.big
<<EOF
14239 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14240 0010 00000001 00000012 00000018 00000000 ................
14241 0020 00000008 04000000 0844 .........D
14243 # If the assembler didn't choke, and we can objdump,
14244 # and we got the correct data, then succeed.
14245 if test x
$gcc_cv_objdump != x \
14246 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
14247 |
tail -3 > conftest.got \
14248 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
14249 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
14251 gcc_cv_as_eh_frame
=yes
14252 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 gcc_cv_as_eh_frame
=buggy
14260 # Uh oh, what do we do now?
14261 gcc_cv_as_eh_frame
=no
14264 echo "configure: failed program was" >&5
14267 rm -f conftest.o conftest.s
14270 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14271 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14274 if test $gcc_cv_as_eh_frame = buggy
; then
14276 cat >>confdefs.h
<<\_ACEOF
14277 #define USE_AS_TRADITIONAL_FORMAT 1
14282 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14283 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14284 if test "${gcc_cv_as_shf_merge+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 gcc_cv_as_shf_merge
=no
14288 if test $in_tree_gas = yes; then
14289 if test $in_tree_gas_is_elf = yes \
14290 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14291 then gcc_cv_as_shf_merge
=yes
14293 elif test x
$gcc_cv_as != x
; then
14294 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14295 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }
14302 gcc_cv_as_shf_merge
=yes
14304 echo "configure: failed program was" >&5
14307 rm -f conftest.o conftest.s
14310 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14311 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14313 if test $gcc_cv_as_shf_merge = no
; then
14314 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14315 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14316 if test "${gcc_cv_as_shf_merge+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 gcc_cv_as_shf_merge
=no
14320 if test $in_tree_gas = yes; then
14321 if test $in_tree_gas_is_elf = yes \
14322 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14323 then gcc_cv_as_shf_merge
=yes
14325 elif test x
$gcc_cv_as != x
; then
14326 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14327 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }
14334 gcc_cv_as_shf_merge
=yes
14336 echo "configure: failed program was" >&5
14339 rm -f conftest.o conftest.s
14342 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14343 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14347 cat >>confdefs.h
<<_ACEOF
14348 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14352 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14353 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14354 if test "${gcc_cv_as_comdat_group+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 gcc_cv_as_comdat_group
=no
14358 if test $in_tree_gas = yes; then
14359 if test $in_tree_gas_is_elf = yes \
14360 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14361 then gcc_cv_as_comdat_group
=yes
14363 elif test x
$gcc_cv_as != x
; then
14364 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14365 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }
14372 gcc_cv_as_comdat_group
=yes
14374 echo "configure: failed program was" >&5
14377 rm -f conftest.o conftest.s
14380 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14381 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14383 if test $gcc_cv_as_comdat_group = yes; then
14384 gcc_cv_as_comdat_group_percent
=no
14386 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14387 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14388 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 gcc_cv_as_comdat_group_percent
=no
14392 if test $in_tree_gas = yes; then
14393 if test $in_tree_gas_is_elf = yes \
14394 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14395 then gcc_cv_as_comdat_group_percent
=yes
14397 elif test x
$gcc_cv_as != x
; then
14398 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14399 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401 (eval $ac_try) 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }
14406 gcc_cv_as_comdat_group_percent
=yes
14408 echo "configure: failed program was" >&5
14411 rm -f conftest.o conftest.s
14414 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14415 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14418 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14420 if test 0"$ld_date" -lt 20050308; then
14421 if test -n "$ld_date"; then
14422 # If there was date string, but was earlier than 2005-03-08, fail
14424 elif test "$ld_vers_major" -lt 2; then
14426 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14430 if test $comdat_group = no
; then
14431 gcc_cv_as_comdat_group
=no
14432 gcc_cv_as_comdat_group_percent
=no
14436 cat >>confdefs.h
<<_ACEOF
14437 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14441 # Thread-local storage - the check is heavily parametrized.
14449 .section ".tdata","awT",@progbits
14452 ldq $27,__tls_get_addr($29) !literal!1
14453 lda $16,foo($29) !tlsgd!1
14454 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14455 ldq $27,__tls_get_addr($29) !literal!2
14456 lda $16,foo($29) !tlsldm!2
14457 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14458 ldq $1,foo($29) !gotdtprel
14459 ldah $2,foo($29) !dtprelhi
14460 lda $3,foo($2) !dtprello
14461 lda $4,foo($29) !dtprel
14462 ldq $1,foo($29) !gottprel
14463 ldah $2,foo($29) !tprelhi
14464 lda $3,foo($2) !tprello
14465 lda $4,foo($29) !tprel'
14468 tls_as_opt
=--fatal-warnings
14472 .section ".tdata","awT",@progbits
14475 call #gettlsoff(x)'
14484 .section ".tdata","awT",@progbits
14488 addil LT%foo-$tls_gdidx$,gp
14489 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14492 addil LT%foo-$tls_ldidx$,gp
14494 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14495 addil LR%foo-$tls_dtpoff$,%ret0
14496 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14498 addil LT%foo-$tls_ieoff$,gp
14499 ldw RT%foo-$tls_ieoff$(%r1),%t2
14502 addil LR%foo-$tls_leoff$,%t1
14503 ldo RR%foo-$tls_leoff$(%r1),%t2'
14506 tls_as_opt
=--fatal-warnings
14510 .section ".tdata","awT",%progbits
14513 .word foo(gottpoff)
14523 .section ".tdata","awT",@progbits
14527 leal foo@TLSGD(,%ebx,1), %eax
14528 leal foo@TLSLDM(%ebx), %eax
14529 leal foo@DTPOFF(%eax), %edx
14530 movl foo@GOTTPOFF(%ebx), %eax
14531 subl foo@GOTTPOFF(%ebx), %eax
14532 addl foo@GOTNTPOFF(%ebx), %eax
14533 movl foo@INDNTPOFF, %eax
14534 movl $foo@TPOFF, %eax
14535 subl $foo@TPOFF, %eax
14536 leal foo@NTPOFF(%ecx), %eax'
14539 tls_as_opt
=--fatal-warnings
14543 .section ".tdata","awT",@progbits
14547 leaq foo@TLSGD(%rip), %rdi
14548 leaq foo@TLSLD(%rip), %rdi
14549 leaq foo@DTPOFF(%rax), %rdx
14550 movq foo@GOTTPOFF(%rip), %rax
14551 movq $foo@TPOFF, %rax'
14554 tls_as_opt
=--fatal-warnings
14558 .section ".tdata","awT",@progbits
14561 addl r16 = @ltoff(@dtpmod(foo#)), gp
14562 addl r17 = @ltoff(@dtprel(foo#)), gp
14563 addl r18 = @ltoff(@tprel(foo#)), gp
14564 addl r19 = @dtprel(foo#), gp
14565 adds r21 = @dtprel(foo#), r13
14566 movl r23 = @dtprel(foo#)
14567 addl r20 = @tprel(foo#), gp
14568 adds r22 = @tprel(foo#), r13
14569 movl r24 = @tprel(foo#)'
14572 tls_as_opt
=--fatal-warnings
14576 .section .tdata,"awT",@progbits
14580 addiu $4, $28, %tlsgd(x)
14581 addiu $4, $28, %tlsldm(x)
14582 lui $4, %dtprel_hi(x)
14583 addiu $4, $4, %dtprel_lo(x)
14584 lw $4, %gottprel(x)($28)
14585 lui $4, %tprel_hi(x)
14586 addiu $4, $4, %tprel_lo(x)'
14589 tls_as_opt
='-32 --fatal-warnings'
14593 .section ".tdata","awT",@progbits
14601 addi 3,31,ld0@got@tlsgd
14603 addi 3,31,x1@got@tlsld
14606 addis 9,3,x2@dtprel@ha
14607 addi 9,9,x2@dtprel@l
14608 lwz 9,x3@got@tprel(31)
14611 addis 9,2,x2@tprel@ha
14612 addi 9,9,x2@tprel@l'
14615 tls_as_opt
="-a32 --fatal-warnings"
14619 .section ".tdata","awT",@progbits
14627 addi 3,2,ld0@got@tlsgd
14633 addi 3,2,x1@got@tlsld
14639 addis 9,3,x2@dtprel@ha
14640 addi 9,9,x2@dtprel@l
14643 ld 9,x3@got@dtprel(2)
14649 tls_as_opt
="-a64 --fatal-warnings"
14653 .section ".tdata","awT",@progbits
14660 .long foo@GOTNTPOFF
14661 .long foo@INDNTPOFF
14662 l %r1,foo@GOTNTPOFF(%r12)
14663 l %r1,0(%r1):tls_load:foo
14664 bas %r14,0(%r1,%r13):tls_gdcall:foo
14665 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14668 tls_as_opt
="-m31 --fatal-warnings"
14672 .section ".tdata","awT",@progbits
14679 .quad foo@GOTNTPOFF
14680 lg %r1,foo@GOTNTPOFF(%r12)
14681 larl %r1,foo@INDNTPOFF
14682 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14683 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14686 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14688 sh-
*-* | sh
[34]-*-*)
14690 .section ".tdata","awT",@progbits
14700 tls_as_opt
=--fatal-warnings
14704 sparc
*-sun-solaris2.
*)
14711 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14713 .section ".tdata",#alloc,#write,#tls
14716 sethi %tgd_hi22(foo), %o0
14717 add %o0, %tgd_lo10(foo), %o1
14718 add %l7, %o1, %o0, %tgd_add(foo)
14719 call __tls_get_addr, %tgd_call(foo)
14720 sethi %tldm_hi22(foo), %l1
14721 add %l1, %tldm_lo10(foo), %l2
14722 add %l7, %l2, %o0, %tldm_add(foo)
14723 call __tls_get_addr, %tldm_call(foo)
14724 sethi %tldo_hix22(foo), %l3
14725 xor %l3, %tldo_lox10(foo), %l4
14726 add %o0, %l4, %l5, %tldo_add(foo)
14727 sethi %tie_hi22(foo), %o3
14728 add %o3, %tie_lo10(foo), %o3
14729 ld [%l7 + %o3], %o2, %tie_ld(foo)
14730 add %g7, %o2, %o4, %tie_add(foo)
14731 sethi %tle_hix22(foo), %l1
14732 xor %l1, %tle_lox10(foo), %o5
14733 ld [%g7 + %o5], %o1'
14738 .section ".tdata","awT",@progbits
14741 sethi %tgd_hi22(foo), %o0
14742 add %o0, %tgd_lo10(foo), %o1
14743 add %l7, %o1, %o0, %tgd_add(foo)
14744 call __tls_get_addr, %tgd_call(foo)
14745 sethi %tldm_hi22(foo), %l1
14746 add %l1, %tldm_lo10(foo), %l2
14747 add %l7, %l2, %o0, %tldm_add(foo)
14748 call __tls_get_addr, %tldm_call(foo)
14749 sethi %tldo_hix22(foo), %l3
14750 xor %l3, %tldo_lox10(foo), %l4
14751 add %o0, %l4, %l5, %tldo_add(foo)
14752 sethi %tie_hi22(foo), %o3
14753 add %o3, %tie_lo10(foo), %o3
14754 ld [%l7 + %o3], %o2, %tie_ld(foo)
14755 add %g7, %o2, %o4, %tie_add(foo)
14756 sethi %tle_hix22(foo), %l1
14757 xor %l1, %tle_lox10(foo), %o5
14758 ld [%g7 + %o5], %o1'
14761 tls_as_opt
="-32 --fatal-warnings"
14765 if test -z "$tls_first_major"; then
14766 : # If we don't have a check, assume no support.
14768 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14769 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14770 if test "${gcc_cv_as_tls+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 if test $in_tree_gas = yes; then
14775 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14776 then gcc_cv_as_tls
=yes
14778 elif test x
$gcc_cv_as != x
; then
14779 echo "$conftest_s" > conftest.s
14780 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }
14789 echo "configure: failed program was" >&5
14792 rm -f conftest.o conftest.s
14795 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14796 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14797 if test $gcc_cv_as_tls = yes; then
14799 cat >>confdefs.h
<<\_ACEOF
14800 #define HAVE_AS_TLS 1
14806 # Target-specific assembler checks.
14808 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14809 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14810 gcc_cv_ld_static_dynamic
=no
14811 if test $in_tree_ld = yes ; then
14812 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14813 gcc_cv_ld_static_dynamic
=yes
14815 elif test x
$gcc_cv_ld != x
; then
14816 # Check if linker supports -Bstatic/-Bdynamic option
14817 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14818 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14819 gcc_cv_ld_static_dynamic
=yes
14822 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14824 cat >>confdefs.h
<<\_ACEOF
14825 #define HAVE_LD_STATIC_DYNAMIC 1
14829 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14830 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14832 if test x
"$demangler_in_ld" = xyes
; then
14833 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14834 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14835 gcc_cv_ld_demangle
=no
14836 if test $in_tree_ld = yes; then
14837 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
14838 gcc_cv_ld_demangle
=yes
14840 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14841 # Check if the GNU linker supports --demangle option
14842 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14843 gcc_cv_ld_demangle
=yes
14846 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14848 cat >>confdefs.h
<<\_ACEOF
14849 #define HAVE_LD_DEMANGLE 1
14853 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14854 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14858 # All TARGET_ABI_OSF targets.
14859 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14860 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14861 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14862 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 gcc_cv_as_alpha_explicit_relocs
=no
14866 if test $in_tree_gas = yes; then
14867 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14868 then gcc_cv_as_alpha_explicit_relocs
=yes
14870 elif test x
$gcc_cv_as != x
; then
14871 echo ' .set nomacro
14873 extbl $3, $2, $3 !lituse_bytoff!1
14874 ldq $2, a($29) !literal!1
14875 ldq $4, b($29) !literal!2
14876 ldq_u $3, 0($2) !lituse_base!1
14877 ldq $27, f($29) !literal!5
14878 jsr $26, ($27), f !lituse_jsr!5
14879 ldah $29, 0($26) !gpdisp!3
14880 lda $0, c($29) !gprel
14881 ldah $1, d($29) !gprelhigh
14882 lda $1, d($1) !gprellow
14883 lda $29, 0($29) !gpdisp!3' > conftest.s
14884 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }
14891 gcc_cv_as_alpha_explicit_relocs
=yes
14893 echo "configure: failed program was" >&5
14896 rm -f conftest.o conftest.s
14899 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14900 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14901 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14903 cat >>confdefs.h
<<\_ACEOF
14904 #define HAVE_AS_EXPLICIT_RELOCS 1
14908 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14909 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14910 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 gcc_cv_as_alpha_jsrdirect_relocs
=no
14914 if test $in_tree_gas = yes; then
14915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14916 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14918 elif test x
$gcc_cv_as != x
; then
14919 echo ' .set nomacro
14921 ldq $27, a($29) !literal!1
14922 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14923 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }
14930 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14932 echo "configure: failed program was" >&5
14935 rm -f conftest.o conftest.s
14938 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14939 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14940 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14942 cat >>confdefs.h
<<\_ACEOF
14943 #define HAVE_AS_JSRDIRECT_RELOCS 1
14950 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14951 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14952 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 gcc_cv_as_cris_no_mul_bug
=no
14956 if test $in_tree_gas = yes; then
14957 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14958 then gcc_cv_as_cris_no_mul_bug
=yes
14960 elif test x
$gcc_cv_as != x
; then
14961 echo '.text' > conftest.s
14962 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }
14969 gcc_cv_as_cris_no_mul_bug
=yes
14971 echo "configure: failed program was" >&5
14974 rm -f conftest.o conftest.s
14977 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14978 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14979 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14981 cat >>confdefs.h
<<\_ACEOF
14982 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14989 echo "$as_me:$LINENO: checking assembler for .register" >&5
14990 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14991 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 gcc_cv_as_sparc_register_op
=no
14995 if test x
$gcc_cv_as != x
; then
14996 echo '.register %g2, #scratch' > conftest.s
14997 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }
15004 gcc_cv_as_sparc_register_op
=yes
15006 echo "configure: failed program was" >&5
15009 rm -f conftest.o conftest.s
15012 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15013 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15014 if test $gcc_cv_as_sparc_register_op = yes; then
15016 cat >>confdefs.h
<<\_ACEOF
15017 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15022 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15023 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15024 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 gcc_cv_as_sparc_relax
=no
15028 if test x
$gcc_cv_as != x
; then
15029 echo '.text' > conftest.s
15030 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }
15037 gcc_cv_as_sparc_relax
=yes
15039 echo "configure: failed program was" >&5
15042 rm -f conftest.o conftest.s
15045 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15046 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15047 if test $gcc_cv_as_sparc_relax = yes; then
15049 cat >>confdefs.h
<<\_ACEOF
15050 #define HAVE_AS_RELAX_OPTION 1
15055 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15056 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15057 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 gcc_cv_as_sparc_ua_pcrel
=no
15061 if test x
$gcc_cv_as != x
; then
15068 .uaword %r_disp32(foo)' > conftest.s
15069 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }
15076 if test x
$gcc_cv_ld != x \
15077 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
15078 gcc_cv_as_sparc_ua_pcrel
=yes
15082 echo "configure: failed program was" >&5
15085 rm -f conftest.o conftest.s
15088 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15089 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15090 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15092 cat >>confdefs.h
<<\_ACEOF
15093 #define HAVE_AS_SPARC_UA_PCREL 1
15097 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15098 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15099 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 gcc_cv_as_sparc_ua_pcrel_hidden
=no
15103 if test x
$gcc_cv_as != x
; then
15107 .uaword %r_disp32(foo)
15108 .byte 0x32, 0x33, 0x34
15112 .skip 4' > conftest.s
15113 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }
15120 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
15121 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
15122 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
15123 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
15124 if $gcc_cv_objdump -R conftest
2> /dev
/null \
15125 |
grep 'DISP32' > /dev
/null
2>&1; then
15128 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
15133 echo "configure: failed program was" >&5
15136 rm -f conftest.o conftest.s
15139 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15140 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15141 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15143 cat >>confdefs.h
<<\_ACEOF
15144 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15149 fi # unaligned pcrel relocs
15151 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15152 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15153 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 gcc_cv_as_sparc_offsetable_lo10
=no
15157 if test x
$gcc_cv_as != x
; then
15159 or %g1, %lo(ab) + 12, %g1
15160 or %g1, %lo(ab + 12), %g1' > conftest.s
15161 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }
15168 if test x
$gcc_cv_objdump != x \
15169 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
15170 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
15171 gcc_cv_as_sparc_offsetable_lo10
=yes
15174 echo "configure: failed program was" >&5
15177 rm -f conftest.o conftest.s
15180 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15181 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15182 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15184 cat >>confdefs.h
<<\_ACEOF
15185 #define HAVE_AS_OFFSETABLE_LO10 1
15191 i
[34567]86-*-* | x86_64-
*-*)
15193 cygwin
* | pe | mingw32
*)
15194 # Used for DWARF 2 in PE
15195 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15196 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15197 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 gcc_cv_as_ix86_pe_secrel32
=no
15201 if test $in_tree_gas = yes; then
15202 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15203 then gcc_cv_as_ix86_pe_secrel32
=yes
15205 elif test x
$gcc_cv_as != x
; then
15209 .secrel32 foo' > conftest.s
15210 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }
15217 if test x
$gcc_cv_ld != x \
15218 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
15219 gcc_cv_as_ix86_pe_secrel32
=yes
15223 echo "configure: failed program was" >&5
15226 rm -f conftest.o conftest.s
15229 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15230 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15231 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15233 cat >>confdefs.h
<<\_ACEOF
15234 #define HAVE_GAS_PE_SECREL32_RELOC 1
15241 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15242 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15243 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 gcc_cv_as_ix86_filds_fists
=no
15247 if test $in_tree_gas = yes; then
15248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15249 then gcc_cv_as_ix86_filds_fists
=yes
15251 elif test x
$gcc_cv_as != x
; then
15252 echo 'filds mem; fists mem' > conftest.s
15253 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }
15260 gcc_cv_as_ix86_filds_fists
=yes
15262 echo "configure: failed program was" >&5
15265 rm -f conftest.o conftest.s
15268 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15269 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15270 if test $gcc_cv_as_ix86_filds_fists = yes; then
15272 cat >>confdefs.h
<<\_ACEOF
15273 #define HAVE_GAS_FILDS_FISTS 1
15278 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15279 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15280 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 gcc_cv_as_ix86_cmov_sun_syntax
=no
15284 if test x
$gcc_cv_as != x
; then
15285 echo 'cmovl.l %edx, %eax' > conftest.s
15286 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }
15293 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15295 echo "configure: failed program was" >&5
15298 rm -f conftest.o conftest.s
15301 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15302 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15303 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15305 cat >>confdefs.h
<<\_ACEOF
15306 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15311 # This one is used unconditionally by i386.[ch]; it is to be defined
15312 # to 1 if the feature is present, 0 otherwise.
15313 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15314 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15315 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 gcc_cv_as_ix86_gotoff_in_data
=no
15319 if test $in_tree_gas = yes; then
15320 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15321 then gcc_cv_as_ix86_gotoff_in_data
=yes
15323 elif test x
$gcc_cv_as != x
; then
15328 .long .L0@GOTOFF' > conftest.s
15329 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }
15336 gcc_cv_as_ix86_gotoff_in_data
=yes
15338 echo "configure: failed program was" >&5
15341 rm -f conftest.o conftest.s
15344 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15345 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15348 cat >>confdefs.h
<<_ACEOF
15349 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15355 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15356 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15357 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15361 if test $in_tree_gas = yes; then
15362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15363 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15365 elif test x
$gcc_cv_as != x
; then
15367 addl r15 = @ltoffx(x#), gp
15369 ld8.mov r16 = [r15], x#' > conftest.s
15370 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }
15377 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15379 echo "configure: failed program was" >&5
15382 rm -f conftest.o conftest.s
15385 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15386 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15387 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15389 cat >>confdefs.h
<<\_ACEOF
15390 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15399 *-*-aix*) conftest_s
=' .machine "pwr5"
15403 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15404 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15405 if test "${gcc_cv_as_machine_directive+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 gcc_cv_as_machine_directive
=no
15409 if test x
$gcc_cv_as != x
; then
15410 echo ' .machine ppc7400' > conftest.s
15411 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; }
15418 gcc_cv_as_machine_directive
=yes
15420 echo "configure: failed program was" >&5
15423 rm -f conftest.o conftest.s
15426 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15427 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15429 if test x
$gcc_cv_as_machine_directive != xyes
; then
15430 echo "*** This target requires an assembler supporting \".machine\"" >&2
15431 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15432 test x
$build = x
$target && exit 1
15436 *) conftest_s
=' .machine power4
15441 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15442 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15443 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 gcc_cv_as_powerpc_mfcrf
=no
15447 if test $in_tree_gas = yes; then
15448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15449 then gcc_cv_as_powerpc_mfcrf
=yes
15451 elif test x
$gcc_cv_as != x
; then
15452 echo "$conftest_s" > conftest.s
15453 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }
15460 gcc_cv_as_powerpc_mfcrf
=yes
15462 echo "configure: failed program was" >&5
15465 rm -f conftest.o conftest.s
15468 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15469 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15470 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15472 cat >>confdefs.h
<<\_ACEOF
15473 #define HAVE_AS_MFCRF 1
15479 *-*-aix*) conftest_s
=' .machine "pwr5"
15482 *) conftest_s
=' .machine power5
15487 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15488 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15489 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 gcc_cv_as_powerpc_popcntb
=no
15493 if test $in_tree_gas = yes; then
15494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15495 then gcc_cv_as_powerpc_popcntb
=yes
15497 elif test x
$gcc_cv_as != x
; then
15498 echo "$conftest_s" > conftest.s
15499 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }
15506 gcc_cv_as_powerpc_popcntb
=yes
15508 echo "configure: failed program was" >&5
15511 rm -f conftest.o conftest.s
15514 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15515 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15516 if test $gcc_cv_as_powerpc_popcntb = yes; then
15518 cat >>confdefs.h
<<\_ACEOF
15519 #define HAVE_AS_POPCNTB 1
15525 *-*-aix*) conftest_s
=' .machine "pwr5x"
15528 *) conftest_s
=' .machine power5
15533 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15534 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15535 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 gcc_cv_as_powerpc_fprnd
=no
15539 if test $in_tree_gas = yes; then
15540 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15541 then gcc_cv_as_powerpc_fprnd
=yes
15543 elif test x
$gcc_cv_as != x
; then
15544 echo "$conftest_s" > conftest.s
15545 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }
15552 gcc_cv_as_powerpc_fprnd
=yes
15554 echo "configure: failed program was" >&5
15557 rm -f conftest.o conftest.s
15560 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15561 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15562 if test $gcc_cv_as_powerpc_fprnd = yes; then
15564 cat >>confdefs.h
<<\_ACEOF
15565 #define HAVE_AS_FPRND 1
15571 *-*-aix*) conftest_s
=' .csect .text[PR]
15573 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15577 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15578 *) conftest_s
=' .text
15580 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15583 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15584 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15585 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 gcc_cv_as_powerpc_rel16
=no
15589 if test $in_tree_gas = yes; then
15590 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15591 then gcc_cv_as_powerpc_rel16
=yes
15593 elif test x
$gcc_cv_as != x
; then
15594 echo "$conftest_s" > conftest.s
15595 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }
15602 gcc_cv_as_powerpc_rel16
=yes
15604 echo "configure: failed program was" >&5
15607 rm -f conftest.o conftest.s
15610 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15611 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15612 if test $gcc_cv_as_powerpc_rel16 = yes; then
15614 cat >>confdefs.h
<<\_ACEOF
15615 #define HAVE_AS_REL16 1
15622 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15623 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15624 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 gcc_cv_as_mips_explicit_relocs
=no
15628 if test $in_tree_gas = yes; then
15629 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15630 then gcc_cv_as_mips_explicit_relocs
=yes
15632 elif test x
$gcc_cv_as != x
; then
15633 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15634 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }
15641 gcc_cv_as_mips_explicit_relocs
=yes
15643 echo "configure: failed program was" >&5
15646 rm -f conftest.o conftest.s
15649 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15650 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15651 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15652 if test x
$target_cpu_default = x
15653 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15654 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15660 # Mips and HP-UX need the GNU assembler.
15661 # Linux on IA64 might be able to use the Intel assembler.
15664 mips
*-*-* |
*-*-hpux* )
15665 if test x
$gas_flag = xyes \
15666 ||
test x
"$host" != x
"$build" \
15667 ||
test ! -x "$gcc_cv_as" \
15668 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15671 echo "*** This configuration requires the GNU assembler" >&2
15677 # ??? Not all targets support dwarf2 debug_line, even within a version
15678 # of gas. Moreover, we need to emit a valid instruction to trigger any
15679 # info to the output file. So, as supported targets are added to gas 2.11,
15680 # add some instruction here to (also) show we expect this might work.
15681 # ??? Once 2.11 is released, probably need to add first known working
15682 # version to the per-target configury.
15684 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15685 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15686 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-*)
15689 ia64
*-*-* | s390
*-*-*)
15696 if test x
"$insn" != x
; then
15698 .file 1 \"conftest.s\"
15701 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15702 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15703 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 gcc_cv_as_dwarf2_debug_line
=no
15707 if test $in_tree_gas = yes; then
15708 if test $in_tree_gas_is_elf = yes \
15709 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15710 then gcc_cv_as_dwarf2_debug_line
=yes
15712 elif test x
$gcc_cv_as != x
; then
15713 echo "$conftest_s" > conftest.s
15714 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }
15721 if test x
$gcc_cv_objdump != x \
15722 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15723 |
grep debug_line
> /dev
/null
2>&1; then
15724 gcc_cv_as_dwarf2_debug_line
=yes
15727 echo "configure: failed program was" >&5
15730 rm -f conftest.o conftest.s
15733 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15734 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15737 # The .debug_line file table must be in the exact order that
15738 # we specified the files, since these indices are also used
15739 # by DW_AT_decl_file. Approximate this test by testing if
15740 # the assembler bitches if the same index is assigned twice.
15741 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15742 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15743 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15746 gcc_cv_as_dwarf2_file_buggy
=no
15747 if test x
$gcc_cv_as != x
; then
15748 echo ' .file 1 "foo.s"
15749 .file 1 "bar.s"' > conftest.s
15750 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }
15757 gcc_cv_as_dwarf2_file_buggy
=yes
15759 echo "configure: failed program was" >&5
15762 rm -f conftest.o conftest.s
15765 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15766 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15769 if test $gcc_cv_as_dwarf2_debug_line = yes \
15770 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15772 cat >>confdefs.h
<<\_ACEOF
15773 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15778 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15779 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15780 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 gcc_cv_as_gdwarf2_flag
=no
15784 if test $in_tree_gas = yes; then
15785 if test $in_tree_gas_is_elf = yes \
15786 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15787 then gcc_cv_as_gdwarf2_flag
=yes
15789 elif test x
$gcc_cv_as != x
; then
15790 echo "$insn" > conftest.s
15791 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }
15798 gcc_cv_as_gdwarf2_flag
=yes
15800 echo "configure: failed program was" >&5
15803 rm -f conftest.o conftest.s
15806 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15807 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15808 if test $gcc_cv_as_gdwarf2_flag = yes; then
15810 cat >>confdefs.h
<<\_ACEOF
15811 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15816 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15817 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15818 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 gcc_cv_as_gstabs_flag
=no
15822 if test $in_tree_gas = yes; then
15823 if test $in_tree_gas_is_elf = yes \
15824 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15825 then gcc_cv_as_gstabs_flag
=yes
15827 elif test x
$gcc_cv_as != x
; then
15828 echo "$insn" > conftest.s
15829 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }
15836 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15837 # and warns about it, but still exits successfully. So check for
15839 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }
15846 else gcc_cv_as_gstabs_flag
=yes
15849 echo "configure: failed program was" >&5
15852 rm -f conftest.o conftest.s
15855 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15856 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15857 if test $gcc_cv_as_gstabs_flag = yes; then
15859 cat >>confdefs.h
<<\_ACEOF
15860 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15866 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15867 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15868 gcc_cv_ld_ro_rw_mix
=unknown
15869 if test $in_tree_ld = yes ; then
15870 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 \
15871 && test $in_tree_ld_is_elf = yes; then
15872 gcc_cv_ld_ro_rw_mix
=read-write
15874 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15875 echo '.section myfoosect, "a"' > conftest1.s
15876 echo '.section myfoosect, "aw"' > conftest2.s
15877 echo '.byte 1' >> conftest2.s
15878 echo '.section myfoosect, "a"' > conftest3.s
15879 echo '.byte 0' >> conftest3.s
15880 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15881 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15882 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15883 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15884 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15885 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15886 | sed -e '/myfoosect/!d' -e N`
15887 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15888 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15889 gcc_cv_ld_ro_rw_mix
=read-only
15891 gcc_cv_ld_ro_rw_mix
=read-write
15895 rm -f conftest.
* conftest
[123].
*
15897 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15899 cat >>confdefs.h
<<\_ACEOF
15900 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15904 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15905 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15907 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15908 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15909 gcc_cv_ld_eh_frame_hdr
=no
15910 if test $in_tree_ld = yes ; then
15911 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 \
15912 && test $in_tree_ld_is_elf = yes; then
15913 gcc_cv_ld_eh_frame_hdr
=yes
15915 elif test x
$gcc_cv_ld != x
; then
15916 # Check if linker supports --eh-frame-hdr option
15917 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15918 gcc_cv_ld_eh_frame_hdr
=yes
15922 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15924 cat >>confdefs.h
<<\_ACEOF
15925 #define HAVE_LD_EH_FRAME_HDR 1
15929 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15930 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15932 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15933 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15935 if test $in_tree_ld = yes ; then
15936 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 \
15937 && test $in_tree_ld_is_elf = yes; then
15940 elif test x
$gcc_cv_ld != x
; then
15941 # Check if linker supports -pie option
15942 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15946 if test x
"$gcc_cv_ld_pie" = xyes
; then
15948 cat >>confdefs.h
<<\_ACEOF
15949 #define HAVE_LD_PIE 1
15953 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15954 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15960 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15961 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15962 if test "${gcc_cv_ld_as_needed+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 gcc_cv_ld_as_needed
=no
15966 if test $in_tree_ld = yes ; then
15967 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
15968 && test $in_tree_ld_is_elf = yes; then
15969 gcc_cv_ld_as_needed
=yes
15971 elif test x
$gcc_cv_ld != x
; then
15972 # Check if linker supports --as-needed and --no-as-needed options
15973 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15974 gcc_cv_ld_as_needed
=yes
15979 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15980 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15981 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15983 cat >>confdefs.h
<<\_ACEOF
15984 #define HAVE_LD_AS_NEEDED 1
15989 case "$target:$tm_file" in
15990 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
15991 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15992 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15993 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 gcc_cv_ld_no_dot_syms
=no
15997 if test $in_tree_ld = yes ; then
15998 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
15999 gcc_cv_ld_no_dot_syms
=yes
16001 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
16002 cat > conftest1.s
<<EOF
16006 cat > conftest2.s
<<EOF
16007 .section ".opd","aw"
16010 .type foo,@function
16012 .quad .LEfoo,.TOC.@tocbase,0
16018 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16019 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16020 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
16021 gcc_cv_ld_no_dot_syms
=yes
16023 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16027 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16028 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16029 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
16031 cat >>confdefs.h
<<\_ACEOF
16032 #define HAVE_LD_NO_DOT_SYMS 1
16039 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16040 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16041 if test "${gcc_cv_ld_sysroot+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 gcc_cv_ld_sysroot
=no
16045 if test $in_tree_ld = yes ; then
16046 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
16047 gcc_cv_ld_sysroot
=yes
16049 elif test x
$gcc_cv_ld != x
; then
16050 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
16051 gcc_cv_ld_sysroot
=yes
16055 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16056 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16057 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
16059 cat >>confdefs.h
<<\_ACEOF
16060 #define HAVE_LD_SYSROOT 1
16065 if test x
$with_sysroot = x
&& test x
$host = x
$target \
16066 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
16068 cat >>confdefs.h
<<_ACEOF
16069 #define PREFIX_INCLUDE_DIR "$prefix/include"
16074 # Test for stack protector support in target C library.
16077 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
16078 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
16079 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6
16082 gcc_cv_libc_provides_ssp
=no
16083 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16084 if test "x$with_sysroot" = x
; then
16085 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16086 elif test "x$with_sysroot" = xyes
; then
16087 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16089 glibc_header_dir
="${with_sysroot}/usr/include"
16092 glibc_header_dir
=/usr
/include
16094 # glibc 2.4 and later provides __stack_chk_fail and
16095 # either __stack_chk_guard, or TLS access to stack guard canary.
16096 if test -f $glibc_header_dir/features.h \
16097 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16098 $glibc_header_dir/features.h
> /dev
/null
; then
16099 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16100 $glibc_header_dir/features.h
> /dev
/null
; then
16101 gcc_cv_libc_provides_ssp
=yes
16102 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16103 $glibc_header_dir/features.h
> /dev
/null \
16104 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16105 $glibc_header_dir/features.h
> /dev
/null
; then
16106 gcc_cv_libc_provides_ssp
=yes
16110 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16111 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
16112 *) gcc_cv_libc_provides_ssp
=no
;;
16114 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
16116 cat >>confdefs.h
<<\_ACEOF
16117 #define TARGET_LIBC_PROVIDES_SSP 1
16122 # Find out what GC implementation we want, or may, use.
16124 # Check whether --with-gc or --without-gc was given.
16125 if test "${with_gc+set}" = set; then
16134 cat >>confdefs.h
<<\_ACEOF
16140 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16141 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16142 { (exit 1); exit 1; }; }
16149 echo "Using $GGC for garbage collection."
16151 # Use the system's zlib library.
16153 zlibinc
="-I\$(srcdir)/../zlib"
16155 # Check whether --with-system-zlib or --without-system-zlib was given.
16156 if test "${with_system_zlib+set}" = set; then
16157 withval
="$with_system_zlib"
16166 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16167 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16168 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16169 if test "${enable_maintainer_mode+set}" = set; then
16170 enableval
="$enable_maintainer_mode"
16171 maintainer_mode
=$enableval
16176 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16177 echo "${ECHO_T}$maintainer_mode" >&6
16179 if test "$maintainer_mode" = "yes"; then
16189 # Make empty files to contain the specs and options for each language.
16190 # Then add #include lines to for a compiler that has specs and/or options.
16195 for subdir
in .
$subdirs
16197 if test -f $srcdir/$subdir/lang.opt
; then
16198 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16200 if test -f $srcdir/$subdir/lang-specs.h
; then
16201 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16203 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16204 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16208 # These (without "all_") are set in each config-lang.in.
16209 # `language' must be a single word so is spelled singularly.
16211 all_boot_languages
=
16214 all_outputs
='Makefile gccbug mklibgcc libada-mk'
16215 # List of language makefile fragments.
16216 all_lang_makefrags
=
16217 # List of language subdirectory makefiles. Deprecated.
16218 all_lang_makefiles
=
16219 # Files for gengtype
16220 all_gtfiles
="$target_gtfiles"
16221 # Files for gengtype with language
16222 all_gtfiles_files_langs
=
16223 all_gtfiles_files_files
=
16225 # Add the language fragments.
16226 # Languages are added via two mechanisms. Some information must be
16227 # recorded in makefile variables, these are defined in config-lang.in.
16228 # We accumulate them and plug them into the main Makefile.
16229 # The other mechanism is a set of hooks for each of the main targets
16230 # like `clean', `install', etc.
16232 language_hooks
="Make-hooks"
16242 .
${srcdir}/$s/config-lang.
in
16243 if test "x$language" = x
16245 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
16248 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
16249 if test -f ${srcdir}/$s/Makefile.
in
16250 then all_lang_makefiles
="$s/Makefile"
16252 all_languages
="$all_languages $language"
16253 if test "x$boot_language" = xyes
16255 all_boot_languages
="$all_boot_languages $language"
16257 all_compilers
="$all_compilers $compilers"
16258 all_stagestuff
="$all_stagestuff $stagestuff"
16259 all_outputs
="$all_outputs $outputs"
16260 all_gtfiles
="$all_gtfiles $gtfiles"
16263 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
16264 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16268 # Pick up gtfiles for c
16271 .
${srcdir}/c-config-lang.
in
16272 all_gtfiles
="$all_gtfiles $gtfiles"
16275 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
16276 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16280 for language
in $all_languages
16282 check_languages
="$check_languages check-$language"
16285 # We link each language in with a set of hooks, reached indirectly via
16290 target_list
="all.cross start.encap rest.encap tags \
16291 install-common install-man \
16292 uninstall info man srcextra srcman srcinfo \
16293 mostlyclean clean distclean maintainer-clean \
16294 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16295 for t
in $target_list
16298 for lang
in $all_languages
16302 echo "lang.$t: $x" >> Make-hooks
16311 echo "dir ." > .gdbinit
16312 echo "dir ${srcdir}" >> .gdbinit
16313 if test x
$gdb_needs_out_file_path = xyes
16315 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16317 if test "x$subdirs" != x
; then
16320 echo "dir ${srcdir}/$s" >> .gdbinit
16323 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16325 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16326 # absolute path for gcc_tooldir based on inserting the number of up-directory
16327 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16328 # $(libsubdir)/@(unlibsubdir) based path.
16329 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16330 # make and thus we'd get different behavior depending on where we built the
16332 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
16333 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16335 # An explanation of the sed strings:
16336 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16337 # -e 's|/$||' match a trailing forward slash and eliminates it
16338 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16339 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16341 # (*) Note this pattern overwrites the first character of the string
16342 # with a forward slash if one is not already present. This is not a
16343 # problem because the exact names of the sub-directories concerned is
16344 # unimportant, just the number of them matters.
16346 # The practical upshot of these patterns is like this:
16348 # prefix exec_prefix result
16349 # ------ ----------- ------
16350 # /foo /foo/bar ../
16351 # /foo/ /foo/bar ../
16352 # /foo /foo/bar/ ../
16353 # /foo/ /foo/bar/ ../
16354 # /foo /foo/bar/ugg ../../
16357 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16362 # Find a directory in which to install a shared libgcc.
16364 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16365 if test "${enable_version_specific_runtime_libs+set}" = set; then
16366 enableval
="$enable_version_specific_runtime_libs"
16371 # Check whether --with-slibdir or --without-slibdir was given.
16372 if test "${with_slibdir+set}" = set; then
16373 withval
="$with_slibdir"
16374 slibdir
="$with_slibdir"
16376 if test "${enable_version_specific_runtime_libs+set}" = set; then
16377 slibdir
='$(libsubdir)'
16378 elif test "$host" != "$target"; then
16379 slibdir
='$(build_tooldir)/lib'
16381 slibdir
='$(libdir)'
16386 objdir
=`${PWDCMD-pwd}`
16389 # Substitute configuration variables
16454 if test x
${build} = x
${host} ; then
16455 if test x
${host} = x
${target} ; then
16456 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16458 echo "Links are now set up to build a cross-compiler" 1>&2
16459 echo " from ${host} to ${target}." 1>&2
16462 if test x
${host} = x
${target} ; then
16463 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16464 echo " for ${target}." 1>&2
16466 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16467 echo " from ${host} to ${target}." 1>&2
16474 # Configure the subdirectories
16475 # AC_CONFIG_SUBDIRS($subdirs)
16477 # Create the Makefile
16478 # and configure language subdirectories
16479 ac_config_files
="$ac_config_files $all_outputs"
16482 ac_config_commands
="$ac_config_commands default"
16484 cat >confcache
<<\_ACEOF
16485 # This file is a shell script that caches the results of configure
16486 # tests run on this system so they can be shared between configure
16487 # scripts and configure runs, see configure's option --config-cache.
16488 # It is not useful on other systems. If it contains results you don't
16489 # want to keep, you may remove or edit it.
16491 # config.status only pays attention to the cache file if you give it
16492 # the --recheck option to rerun configure.
16494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16496 # following values.
16500 # The following way of writing the cache mishandles newlines in values,
16501 # but we know of no workaround that is simple, portable, and efficient.
16502 # So, don't put newlines in cache variables' values.
16503 # Ultrix sh set writes to stderr and can't be redirected directly,
16504 # and sets the high bit in the cache file unless we assign to the vars.
16507 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16509 # `set' does not quote correctly, so add quotes (double-quote
16510 # substitution turns \\\\ into \\, and sed turns \\ into \).
16513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16516 # `set' quotes correctly as required by POSIX, so do not add quotes.
16518 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16525 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16527 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16529 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16530 if test -w $cache_file; then
16531 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16532 cat confcache
>$cache_file
16534 echo "not updating unwritable cache $cache_file"
16539 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16540 # Let make expand exec_prefix.
16541 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16545 # trailing colons and then remove the whole line if VPATH becomes empty
16546 # (actually we leave an empty line to preserve line numbers).
16547 if test "x$srcdir" = x.
; then
16548 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16549 s/:*\$(srcdir):*/:/;
16550 s/:*\${srcdir}:*/:/;
16552 s/^\([^=]*=[ ]*\):*/\1/;
16558 DEFS
=-DHAVE_CONFIG_H
16562 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16563 # 1. Remove the extension, and $U if already installed.
16564 ac_i
=`echo "$ac_i" |
16565 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16567 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16568 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16570 LIBOBJS
=$ac_libobjs
16572 LTLIBOBJS
=$ac_ltlibobjs
16576 : ${CONFIG_STATUS=./config.status}
16577 ac_clean_files_save
=$ac_clean_files
16578 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16581 cat >$CONFIG_STATUS <<_ACEOF
16583 # Generated by $as_me.
16584 # Run this file to recreate the current configuration.
16585 # Compiler output produced by configure, useful for debugging
16586 # configure, is in config.log if it exists.
16589 ac_cs_recheck=false
16591 SHELL=\${CONFIG_SHELL-$SHELL}
16594 cat >>$CONFIG_STATUS <<\_ACEOF
16595 ## --------------------- ##
16596 ## M4sh Initialization. ##
16597 ## --------------------- ##
16599 # Be Bourne compatible
16600 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16603 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16604 # is contrary to our usage. Disable this feature.
16605 alias -g '${1+"$@"}'='"$@"'
16606 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16609 DUALCASE
=1; export DUALCASE
# for MKS sh
16611 # Support unset when possible.
16612 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16619 # Work around bugs in pre-3.0 UWIN ksh.
16620 $as_unset ENV MAIL MAILPATH
16627 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16628 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16629 LC_TELEPHONE LC_TIME
16631 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16632 eval $as_var=C
; export $as_var
16638 # Required to use basename.
16639 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16645 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16646 as_basename
=basename
16652 # Name of the executable.
16653 as_me
=`$as_basename "$0" ||
16654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16655 X"$0" : 'X\(//\)$' \| \
16656 X"$0" : 'X\(/\)$' \| \
16657 . : '\(.\)' 2>/dev/null ||
16659 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16660 /^X\/\(\/\/\)$/{ s//\1/; q; }
16661 /^X\/\(\/\).*/{ s//\1/; q; }
16665 # PATH needs CR, and LINENO needs CR and PATH.
16666 # Avoid depending upon Character Ranges.
16667 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16668 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16669 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16670 as_cr_digits
='0123456789'
16671 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16673 # The user is always right.
16674 if test "${PATH_SEPARATOR+set}" != set; then
16675 echo "#! /bin/sh" >conf$$.sh
16676 echo "exit 0" >>conf$$.sh
16678 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16687 as_lineno_1
=$LINENO
16688 as_lineno_2
=$LINENO
16689 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16690 test "x$as_lineno_1" != "x$as_lineno_2" &&
16691 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16692 # Find who we are. Look in the path if we contain no path at all
16695 *[\\/]* ) as_myself
=$0 ;;
16696 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16697 for as_dir
in $PATH
16700 test -z "$as_dir" && as_dir
=.
16701 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16706 # We did not find ourselves, most probably we were run as `sh COMMAND'
16707 # in which case we are not to be found in the path.
16708 if test "x$as_myself" = x
; then
16711 if test ! -f "$as_myself"; then
16712 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16713 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16714 { (exit 1); exit 1; }; }
16716 case $CONFIG_SHELL in
16718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16719 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16722 test -z "$as_dir" && as_dir
=.
16723 for as_base
in sh bash ksh sh5
; do
16726 if ("$as_dir/$as_base" -c '
16727 as_lineno_1=$LINENO
16728 as_lineno_2=$LINENO
16729 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16730 test "x$as_lineno_1" != "x$as_lineno_2" &&
16731 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16732 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16733 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16734 CONFIG_SHELL
=$as_dir/$as_base
16735 export CONFIG_SHELL
16736 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16744 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16745 # uniformly replaced by the line number. The first 'sed' inserts a
16746 # line-number line before each line; the second 'sed' does the real
16747 # work. The second script uses 'N' to pair each line-number line
16748 # with the numbered line, and appends trailing '-' during
16749 # substitution so that $LINENO is not a special case at line end.
16750 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16751 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16752 sed '=' <$as_myself |
16757 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16760 s,^['$as_cr_digits']*\n,,
16761 ' >$as_me.lineno
&&
16762 chmod +x
$as_me.lineno ||
16763 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16764 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16765 { (exit 1); exit 1; }; }
16767 # Don't try to exec as it changes $[0], causing all sort of problems
16768 # (the dirname of $[0] is not the place where we might find the
16769 # original and so on. Autoconf is especially sensible to this).
16771 # Exit status is that of the last command.
16776 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16777 *c
*,-n*) ECHO_N
= ECHO_C
='
16779 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16780 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16783 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16789 rm -f conf$$ conf$$.exe conf$$.
file
16791 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16792 # We could just check for DJGPP; but this test a) works b) is more generic
16793 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16794 if test -f conf$$.exe
; then
16795 # Don't use ln at all; we don't have any links
16800 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16805 rm -f conf$$ conf$$.exe conf$$.
file
16807 if mkdir
-p .
2>/dev
/null
; then
16810 test -d .
/-p && rmdir .
/-p
16814 as_executable_p
="test -f"
16816 # Sed expression to map a string onto a valid CPP name.
16817 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16819 # Sed expression to map a string onto a valid variable name.
16820 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16824 # We need space, tab and new line, in precisely that order.
16834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16835 # report actual input values of CONFIG_FILES etc. instead of their
16836 # values after options handling. Logging --version etc. is OK.
16840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16841 ## Running $as_me. ##
16846 This file was extended by $as_me, which was
16847 generated by GNU Autoconf 2.59. Invocation command line was
16849 CONFIG_FILES = $CONFIG_FILES
16850 CONFIG_HEADERS = $CONFIG_HEADERS
16851 CONFIG_LINKS = $CONFIG_LINKS
16852 CONFIG_COMMANDS = $CONFIG_COMMANDS
16856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16860 # Files that config.status was made for.
16861 if test -n "$ac_config_files"; then
16862 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16865 if test -n "$ac_config_headers"; then
16866 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16869 if test -n "$ac_config_links"; then
16870 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16873 if test -n "$ac_config_commands"; then
16874 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16877 cat >>$CONFIG_STATUS <<\_ACEOF
16880 \`$as_me' instantiates files from templates according to the
16881 current configuration.
16883 Usage: $0 [OPTIONS] [FILE]...
16885 -h, --help print this help, then exit
16886 -V, --version print version number, then exit
16887 -q, --quiet do not print progress messages
16888 -d, --debug don't remove temporary files
16889 --recheck update $as_me by reconfiguring in the same conditions
16890 --file=FILE[:TEMPLATE]
16891 instantiate the configuration file FILE
16892 --header=FILE[:TEMPLATE]
16893 instantiate the configuration header FILE
16895 Configuration files:
16898 Configuration headers:
16901 Configuration commands:
16904 Report bugs to <bug-autoconf@gnu.org>."
16907 cat >>$CONFIG_STATUS <<_ACEOF
16910 configured by $0, generated by GNU Autoconf 2.59,
16911 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16913 Copyright (C) 2003 Free Software Foundation, Inc.
16914 This config.status script is free software; the Free Software Foundation
16915 gives unlimited permission to copy, distribute and modify it."
16919 cat >>$CONFIG_STATUS <<\_ACEOF
16920 # If no file are specified by the user, then we need to provide default
16921 # value. By we need to know if files were specified by the user.
16927 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16928 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16936 *) # This is not an option, so the user has probably given explicit
16939 ac_need_defaults
=false
;;
16943 # Handling of the options.
16945 cat >>$CONFIG_STATUS <<\_ACEOF
16946 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16948 --version |
--vers* |
-V )
16949 echo "$ac_cs_version"; exit 0 ;;
16951 # Conflict between --help and --header
16952 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16953 Try \`$0 --help' for more information." >&5
16954 echo "$as_me: error: ambiguous option: $1
16955 Try \`$0 --help' for more information." >&2;}
16956 { (exit 1); exit 1; }; };;
16957 --help |
--hel |
-h )
16958 echo "$ac_cs_usage"; exit 0 ;;
16959 --debug |
--d* |
-d )
16961 --file |
--fil |
--fi |
--f )
16963 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16964 ac_need_defaults
=false
;;
16965 --header |
--heade |
--head |
--hea )
16967 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16968 ac_need_defaults
=false
;;
16969 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16970 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16973 # This is an error.
16974 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16975 Try \`$0 --help' for more information." >&5
16976 echo "$as_me: error: unrecognized option: $1
16977 Try \`$0 --help' for more information." >&2;}
16978 { (exit 1); exit 1; }; } ;;
16980 *) ac_config_targets
="$ac_config_targets $1" ;;
16986 ac_configure_extra_args
=
16988 if $ac_cs_silent; then
16990 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16994 cat >>$CONFIG_STATUS <<_ACEOF
16995 if \$ac_cs_recheck; then
16996 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16997 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17002 cat >>$CONFIG_STATUS <<_ACEOF
17004 # INIT-COMMANDS section.
17013 cat >>$CONFIG_STATUS <<\_ACEOF
17014 for ac_config_target
in $ac_config_targets
17016 case "$ac_config_target" in
17017 # Handling of arguments.
17018 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
17019 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17020 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
17021 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17022 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17023 { (exit 1); exit 1; }; };;
17027 # If the user did not use the arguments to specify the items to instantiate,
17028 # then the envvar interface is used. Set only those that are not.
17029 # We use the long form for the default assignment because of an extremely
17030 # bizarre bug on SunOS 4.1.3.
17031 if $ac_need_defaults; then
17032 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17033 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17034 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17037 # Have a temporary directory for convenience. Make it in the build tree
17038 # simply because there is no reason to put it here, and in addition,
17039 # creating and moving files from /tmp can sometimes cause problems.
17040 # Create a temporary directory, and hook for its removal unless debugging.
17043 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17044 trap '{ (exit 1); exit 1; }' 1 2 13 15
17047 # Create a (secure) tmp directory for tmp files.
17050 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17051 test -n "$tmp" && test -d "$tmp"
17054 tmp
=.
/confstat$$
-$RANDOM
17055 (umask 077 && mkdir
$tmp)
17058 echo "$me: cannot create a temporary directory in ." >&2
17059 { (exit 1); exit 1; }
17064 cat >>$CONFIG_STATUS <<_ACEOF
17067 # CONFIG_FILES section.
17070 # No need to generate the scripts if there are no CONFIG_FILES.
17071 # This happens for instance when ./config.status config.h
17072 if test -n "\$CONFIG_FILES"; then
17073 # Protect against being on the right side of a sed subst in config.status.
17074 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17075 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17076 s,@SHELL@,$SHELL,;t t
17077 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17078 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17079 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17080 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17081 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17082 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17083 s,@exec_prefix@,$exec_prefix,;t t
17084 s,@prefix@,$prefix,;t t
17085 s,@program_transform_name@,$program_transform_name,;t t
17086 s,@bindir@,$bindir,;t t
17087 s,@sbindir@,$sbindir,;t t
17088 s,@libexecdir@,$libexecdir,;t t
17089 s,@datadir@,$datadir,;t t
17090 s,@sysconfdir@,$sysconfdir,;t t
17091 s,@sharedstatedir@,$sharedstatedir,;t t
17092 s,@localstatedir@,$localstatedir,;t t
17093 s,@libdir@,$libdir,;t t
17094 s,@includedir@,$includedir,;t t
17095 s,@oldincludedir@,$oldincludedir,;t t
17096 s,@infodir@,$infodir,;t t
17097 s,@mandir@,$mandir,;t t
17098 s,@build_alias@,$build_alias,;t t
17099 s,@host_alias@,$host_alias,;t t
17100 s,@target_alias@,$target_alias,;t t
17101 s,@DEFS@,$DEFS,;t t
17102 s,@ECHO_C@,$ECHO_C,;t t
17103 s,@ECHO_N@,$ECHO_N,;t t
17104 s,@ECHO_T@,$ECHO_T,;t t
17105 s,@LIBS@,$LIBS,;t t
17106 s,@build@,$build,;t t
17107 s,@build_cpu@,$build_cpu,;t t
17108 s,@build_vendor@,$build_vendor,;t t
17109 s,@build_os@,$build_os,;t t
17110 s,@host@,$host,;t t
17111 s,@host_cpu@,$host_cpu,;t t
17112 s,@host_vendor@,$host_vendor,;t t
17113 s,@host_os@,$host_os,;t t
17114 s,@target@,$target,;t t
17115 s,@target_cpu@,$target_cpu,;t t
17116 s,@target_vendor@,$target_vendor,;t t
17117 s,@target_os@,$target_os,;t t
17118 s,@target_noncanonical@,$target_noncanonical,;t t
17119 s,@build_subdir@,$build_subdir,;t t
17120 s,@host_subdir@,$host_subdir,;t t
17121 s,@target_subdir@,$target_subdir,;t t
17122 s,@GENINSRC@,$GENINSRC,;t t
17124 s,@CFLAGS@,$CFLAGS,;t t
17125 s,@LDFLAGS@,$LDFLAGS,;t t
17126 s,@CPPFLAGS@,$CPPFLAGS,;t t
17127 s,@ac_ct_CC@,$ac_ct_CC,;t t
17128 s,@EXEEXT@,$EXEEXT,;t t
17129 s,@OBJEXT@,$OBJEXT,;t t
17130 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17131 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17133 s,@EGREP@,$EGREP,;t t
17134 s,@strict1_warn@,$strict1_warn,;t t
17135 s,@warn_cflags@,$warn_cflags,;t t
17136 s,@WERROR@,$WERROR,;t t
17137 s,@nocommon_flag@,$nocommon_flag,;t t
17138 s,@TREEBROWSER@,$TREEBROWSER,;t t
17139 s,@valgrind_path@,$valgrind_path,;t t
17140 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17141 s,@valgrind_command@,$valgrind_command,;t t
17142 s,@coverage_flags@,$coverage_flags,;t t
17143 s,@enable_multilib@,$enable_multilib,;t t
17144 s,@enable_decimal_float@,$enable_decimal_float,;t t
17145 s,@enable_shared@,$enable_shared,;t t
17146 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17147 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17148 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17149 s,@onestep@,$onestep,;t t
17150 s,@SET_MAKE@,$SET_MAKE,;t t
17152 s,@LN_S@,$LN_S,;t t
17154 s,@RANLIB@,$RANLIB,;t t
17155 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17156 s,@ranlib_flags@,$ranlib_flags,;t t
17157 s,@INSTALL@,$INSTALL,;t t
17158 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17159 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17160 s,@make_compare_target@,$make_compare_target,;t t
17161 s,@have_mktemp_command@,$have_mktemp_command,;t t
17162 s,@MAKEINFO@,$MAKEINFO,;t t
17163 s,@BUILD_INFO@,$BUILD_INFO,;t t
17164 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17165 s,@FLEX@,$FLEX,;t t
17166 s,@BISON@,$BISON,;t t
17169 s,@stage1_cflags@,$stage1_cflags,;t t
17170 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17171 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17172 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17173 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17174 s,@LIBICONV@,$LIBICONV,;t t
17175 s,@LTLIBICONV@,$LTLIBICONV,;t t
17176 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17177 s,@manext@,$manext,;t t
17178 s,@objext@,$objext,;t t
17179 s,@gthread_flags@,$gthread_flags,;t t
17180 s,@extra_modes_file@,$extra_modes_file,;t t
17181 s,@extra_opt_files@,$extra_opt_files,;t t
17182 s,@USE_NLS@,$USE_NLS,;t t
17183 s,@LIBINTL@,$LIBINTL,;t t
17184 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17185 s,@INCINTL@,$INCINTL,;t t
17186 s,@XGETTEXT@,$XGETTEXT,;t t
17187 s,@GMSGFMT@,$GMSGFMT,;t t
17188 s,@POSUB@,$POSUB,;t t
17189 s,@CATALOGS@,$CATALOGS,;t t
17190 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17191 s,@CROSS@,$CROSS,;t t
17193 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17194 s,@inhibit_libc@,$inhibit_libc,;t t
17195 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17196 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17197 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17198 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17199 s,@collect2@,$collect2,;t t
17200 s,@gcc_cv_as@,$gcc_cv_as,;t t
17201 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17202 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17203 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17204 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17205 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17206 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17207 s,@ORIGINAL_OBJDUMP_FOR_TARGET@,$ORIGINAL_OBJDUMP_FOR_TARGET,;t t
17208 s,@libgcc_visibility@,$libgcc_visibility,;t t
17210 s,@zlibdir@,$zlibdir,;t t
17211 s,@zlibinc@,$zlibinc,;t t
17212 s,@MAINT@,$MAINT,;t t
17213 s,@gcc_tooldir@,$gcc_tooldir,;t t
17214 s,@dollar@,$dollar,;t t
17215 s,@slibdir@,$slibdir,;t t
17216 s,@objdir@,$objdir,;t t
17217 s,@subdirs@,$subdirs,;t t
17218 s,@srcdir@,$srcdir,;t t
17219 s,@all_boot_languages@,$all_boot_languages,;t t
17220 s,@all_compilers@,$all_compilers,;t t
17221 s,@all_gtfiles@,$all_gtfiles,;t t
17222 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17223 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17224 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17225 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17226 s,@all_languages@,$all_languages,;t t
17227 s,@all_stagestuff@,$all_stagestuff,;t t
17228 s,@build_exeext@,$build_exeext,;t t
17229 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17230 s,@build_xm_file_list@,$build_xm_file_list,;t t
17231 s,@build_xm_include_list@,$build_xm_include_list,;t t
17232 s,@build_xm_defines@,$build_xm_defines,;t t
17233 s,@check_languages@,$check_languages,;t t
17234 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17235 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17236 s,@cpp_install_dir@,$cpp_install_dir,;t t
17237 s,@xmake_file@,$xmake_file,;t t
17238 s,@tmake_file@,$tmake_file,;t t
17239 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17240 s,@extra_headers_list@,$extra_headers_list,;t t
17241 s,@extra_objs@,$extra_objs,;t t
17242 s,@extra_parts@,$extra_parts,;t t
17243 s,@extra_passes@,$extra_passes,;t t
17244 s,@extra_programs@,$extra_programs,;t t
17245 s,@float_h_file@,$float_h_file,;t t
17246 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17247 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17248 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17249 s,@host_exeext@,$host_exeext,;t t
17250 s,@host_xm_file_list@,$host_xm_file_list,;t t
17251 s,@host_xm_include_list@,$host_xm_include_list,;t t
17252 s,@host_xm_defines@,$host_xm_defines,;t t
17253 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17254 s,@install@,$install,;t t
17255 s,@lang_opt_files@,$lang_opt_files,;t t
17256 s,@lang_specs_files@,$lang_specs_files,;t t
17257 s,@lang_tree_files@,$lang_tree_files,;t t
17258 s,@local_prefix@,$local_prefix,;t t
17259 s,@md_file@,$md_file,;t t
17260 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17261 s,@out_file@,$out_file,;t t
17262 s,@out_object_file@,$out_object_file,;t t
17263 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17264 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17265 s,@thread_file@,$thread_file,;t t
17266 s,@tm_file_list@,$tm_file_list,;t t
17267 s,@tm_include_list@,$tm_include_list,;t t
17268 s,@tm_defines@,$tm_defines,;t t
17269 s,@tm_p_file_list@,$tm_p_file_list,;t t
17270 s,@tm_p_include_list@,$tm_p_include_list,;t t
17271 s,@xm_file_list@,$xm_file_list,;t t
17272 s,@xm_include_list@,$xm_include_list,;t t
17273 s,@xm_defines@,$xm_defines,;t t
17274 s,@c_target_objs@,$c_target_objs,;t t
17275 s,@cxx_target_objs@,$cxx_target_objs,;t t
17276 s,@target_cpu_default@,$target_cpu_default,;t t
17277 s,@GMPLIBS@,$GMPLIBS,;t t
17278 s,@GMPINC@,$GMPINC,;t t
17279 s,@LIBOBJS@,$LIBOBJS,;t t
17280 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17281 /@language_hooks@/r $language_hooks
17282 s,@language_hooks@,,;t t
17287 cat >>$CONFIG_STATUS <<\_ACEOF
17288 # Split the substitutions into bite-sized pieces for seds with
17289 # small command number limits, like on Digital OSF/1 and HP-UX.
17290 ac_max_sed_lines
=48
17291 ac_sed_frag
=1 # Number of current file.
17292 ac_beg
=1 # First line for current file.
17293 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17296 while $ac_more_lines; do
17297 if test $ac_beg -gt 1; then
17298 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17300 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17302 if test ! -s $tmp/subs.frag
; then
17303 ac_more_lines
=false
17305 # The purpose of the label and of the branching condition is to
17306 # speed up the sed processing (if there are no `@' at all, there
17307 # is no need to browse any of the substitutions).
17308 # These are the two extra sed commands mentioned above.
17310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17311 if test -z "$ac_sed_cmds"; then
17312 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17314 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17316 ac_sed_frag
=`expr $ac_sed_frag + 1`
17318 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17321 if test -z "$ac_sed_cmds"; then
17324 fi # test -n "$CONFIG_FILES"
17327 cat >>$CONFIG_STATUS <<\_ACEOF
17328 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17329 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17331 - |
*:- |
*:-:* ) # input from stdin
17333 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17334 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17335 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17336 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17337 * ) ac_file_in
=$ac_file.
in ;;
17340 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17341 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17343 X"$ac_file" : 'X\(//\)[^/]' \| \
17344 X"$ac_file" : 'X\(//\)$' \| \
17345 X"$ac_file" : 'X\(/\)' \| \
17346 . : '\(.\)' 2>/dev/null ||
17348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17350 /^X\(\/\/\)$/{ s//\1/; q; }
17351 /^X\(\/\).*/{ s//\1/; q; }
17353 { if $as_mkdir_p; then
17358 while test ! -d "$as_dir"; do
17359 as_dirs
="$as_dir $as_dirs"
17360 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17362 X"$as_dir" : 'X\(//\)[^/]' \| \
17363 X"$as_dir" : 'X\(//\)$' \| \
17364 X"$as_dir" : 'X\(/\)' \| \
17365 . : '\(.\)' 2>/dev/null ||
17367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17369 /^X\(\/\/\)$/{ s//\1/; q; }
17370 /^X\(\/\).*/{ s//\1/; q; }
17373 test ! -n "$as_dirs" || mkdir
$as_dirs
17374 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17375 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17376 { (exit 1); exit 1; }; }; }
17380 if test "$ac_dir" != .
; then
17381 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17382 # A "../" for each directory in $ac_dir_suffix.
17383 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17385 ac_dir_suffix
= ac_top_builddir
=
17389 .
) # No --srcdir option. We are building in place.
17391 if test -z "$ac_top_builddir"; then
17394 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17396 [\\/]* | ?
:[\\/]* ) # Absolute path.
17397 ac_srcdir
=$srcdir$ac_dir_suffix;
17398 ac_top_srcdir
=$srcdir ;;
17399 *) # Relative path.
17400 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17401 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17404 # Do not use `cd foo && pwd` to compute absolute paths, because
17405 # the directories may not exist.
17407 .
) ac_abs_builddir
="$ac_dir";;
17410 .
) ac_abs_builddir
=`pwd`;;
17411 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17412 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17415 case $ac_abs_builddir in
17416 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17418 case ${ac_top_builddir}.
in
17419 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17420 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17421 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17424 case $ac_abs_builddir in
17425 .
) ac_abs_srcdir
=$ac_srcdir;;
17428 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17429 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17430 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17433 case $ac_abs_builddir in
17434 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17436 case $ac_top_srcdir in
17437 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17438 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17439 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17445 # Let's still pretend it is `configure' which instantiates (i.e., don't
17446 # use $as_me), people would be surprised to read:
17447 # /* config.h. Generated by config.status. */
17448 if test x
"$ac_file" = x-
; then
17451 configure_input
="$ac_file. "
17453 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17454 sed 's,.*/,,'` by configure."
17456 # First look for the input files in the build tree, otherwise in the
17458 ac_file_inputs
=`IFS=:
17459 for f in $ac_file_in; do
17461 -) echo $tmp/stdin ;;
17463 # Absolute (can't be DOS-style, as IFS=:)
17464 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17465 echo "$as_me: error: cannot find input file: $f" >&2;}
17466 { (exit 1); exit 1; }; }
17469 if test -f "$f"; then
17472 elif test -f "$srcdir/$f"; then
17477 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17478 echo "$as_me: error: cannot find input file: $f" >&2;}
17479 { (exit 1); exit 1; }; }
17482 done` ||
{ (exit 1); exit 1; }
17484 if test x
"$ac_file" != x-
; then
17485 { echo "$as_me:$LINENO: creating $ac_file" >&5
17486 echo "$as_me: creating $ac_file" >&6;}
17490 cat >>$CONFIG_STATUS <<_ACEOF
17494 cat >>$CONFIG_STATUS <<\_ACEOF
17496 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17497 s
,@configure_input@
,$configure_input,;t t
17498 s
,@srcdir@
,$ac_srcdir,;t t
17499 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17500 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17501 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17502 s
,@builddir@
,$ac_builddir,;t t
17503 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17504 s
,@top_builddir@
,$ac_top_builddir,;t t
17505 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17506 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17508 if test x"$ac_file" != x-; then
17509 mv $tmp/out $ac_file
17517 cat >>$CONFIG_STATUS <<\_ACEOF
17520 # CONFIG_HEADER section.
17523 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17524 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17526 # ac_d sets the value in "#define NAME VALUE" lines.
17527 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17528 ac_dB
='[ ].*$,\1#\2'
17531 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17532 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17533 ac_uB
='$,\1#\2define\3'
17537 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17540 - |
*:- |
*:-:* ) # input from stdin
17542 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17543 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17544 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17545 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17546 * ) ac_file_in
=$ac_file.
in ;;
17549 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17550 echo "$as_me: creating $ac_file" >&6;}
17552 # First look for the input files in the build tree, otherwise in the
17554 ac_file_inputs
=`IFS=:
17555 for f in $ac_file_in; do
17557 -) echo $tmp/stdin ;;
17559 # Absolute (can't be DOS-style, as IFS=:)
17560 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17561 echo "$as_me: error: cannot find input file: $f" >&2;}
17562 { (exit 1); exit 1; }; }
17563 # Do quote $f, to prevent DOS paths from being IFS'd.
17566 if test -f "$f"; then
17569 elif test -f "$srcdir/$f"; then
17574 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17575 echo "$as_me: error: cannot find input file: $f" >&2;}
17576 { (exit 1); exit 1; }; }
17579 done` ||
{ (exit 1); exit 1; }
17580 # Remove the trailing spaces.
17581 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17585 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17586 # `conftest.undefs', that substitutes the proper values into
17587 # config.h.in to produce config.h. The first handles `#define'
17588 # templates, and the second `#undef' templates.
17589 # And first: Protect against being on the right side of a sed subst in
17590 # config.status. Protect against being in an unquoted here document
17591 # in config.status.
17592 rm -f conftest.defines conftest.undefs
17593 # Using a here document instead of a string reduces the quoting nightmare.
17594 # Putting comments in sed scripts is not portable.
17596 # `end' is used to avoid that the second main sed command (meant for
17597 # 0-ary CPP macros) applies to n-ary macro definitions.
17598 # See the Autoconf documentation for `clear'.
17599 cat >confdef2sed.
sed <<\_ACEOF
17604 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17606 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17609 # If some macros were called several times there might be several times
17610 # the same #defines, which is useless. Nevertheless, we may not want to
17611 # sort them, since we want the *last* AC-DEFINE to be honored.
17612 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17613 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17614 rm -f confdef2sed.sed
17616 # This sed command replaces #undef with comments. This is necessary, for
17617 # example, in the case of _POSIX_SOURCE, which is predefined and required
17618 # on some systems where configure will not decide to define it.
17619 cat >>conftest.undefs <<\_ACEOF
17620 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17623 # Break up conftest.defines because some shells have a limit on the size
17624 # of here documents, and old seds have small limits too (100 cmds).
17625 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17626 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17627 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17628 echo ' :' >>$CONFIG_STATUS
17629 rm -f conftest.tail
17630 while grep . conftest.defines >/dev/null
17632 # Write a limited-size here document to $tmp/defines.sed.
17633 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17634 # Speed up: don't consider the non `#define' lines.
17635 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17636 # Work around the forget-to-reset-the-flag bug.
17637 echo 't clr' >>$CONFIG_STATUS
17638 echo ': clr' >>$CONFIG_STATUS
17639 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17641 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17643 mv $tmp/out $tmp/in
17645 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17646 rm -f conftest.defines
17647 mv conftest.
tail conftest.defines
17649 rm -f conftest.defines
17650 echo ' fi # grep' >>$CONFIG_STATUS
17651 echo >>$CONFIG_STATUS
17653 # Break up conftest.undefs because some shells have a limit on the size
17654 # of here documents, and old seds have small limits too (100 cmds).
17655 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17656 rm -f conftest.
tail
17657 while grep . conftest.undefs
>/dev
/null
17659 # Write a limited-size here document to $tmp/undefs.sed.
17660 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17661 # Speed up: don't consider the non
`#undef'
17662 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17663 # Work around the forget-to-reset-the-flag bug.
17664 echo 't clr' >>$CONFIG_STATUS
17665 echo ': clr' >>$CONFIG_STATUS
17666 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17668 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17670 mv $tmp/out $tmp/in
17672 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17673 rm -f conftest.undefs
17674 mv conftest.tail conftest.undefs
17676 rm -f conftest.undefs
17678 cat >>$CONFIG_STATUS <<\_ACEOF
17679 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17680 # use $as_me), people would be surprised to read:
17681 # /* config.h. Generated by config.status. */
17682 if test x
"$ac_file" = x-
; then
17683 echo "/* Generated by configure. */" >$tmp/config.h
17685 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17687 cat $tmp/in >>$tmp/config.h
17689 if test x
"$ac_file" != x-
; then
17690 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17691 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17692 echo "$as_me: $ac_file is unchanged" >&6;}
17694 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17696 X"$ac_file" : 'X\(//\)[^/]' \| \
17697 X"$ac_file" : 'X\(//\)$' \| \
17698 X"$ac_file" : 'X\(/\)' \| \
17699 . : '\(.\)' 2>/dev/null ||
17701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17703 /^X\(\/\/\)$/{ s//\1/; q; }
17704 /^X\(\/\).*/{ s//\1/; q; }
17706 { if $as_mkdir_p; then
17711 while test ! -d "$as_dir"; do
17712 as_dirs
="$as_dir $as_dirs"
17713 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17715 X"$as_dir" : 'X\(//\)[^/]' \| \
17716 X"$as_dir" : 'X\(//\)$' \| \
17717 X"$as_dir" : 'X\(/\)' \| \
17718 . : '\(.\)' 2>/dev/null ||
17720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17722 /^X\(\/\/\)$/{ s//\1/; q; }
17723 /^X\(\/\).*/{ s//\1/; q; }
17726 test ! -n "$as_dirs" || mkdir
$as_dirs
17727 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17729 { (exit 1); exit 1; }; }; }
17732 mv $tmp/config.h
$ac_file
17736 rm -f $tmp/config.h
17740 cat >>$CONFIG_STATUS <<\_ACEOF
17743 # CONFIG_COMMANDS section.
17745 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17746 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17747 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17748 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17749 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17750 X"$ac_dest" : 'X\(//\)[^/]' \| \
17751 X"$ac_dest" : 'X\(//\)$' \| \
17752 X"$ac_dest" : 'X\(/\)' \| \
17753 . : '\(.\)' 2>/dev/null ||
17755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17757 /^X\(\/\/\)$/{ s//\1/; q; }
17758 /^X\(\/\).*/{ s//\1/; q; }
17760 { if $as_mkdir_p; then
17765 while test ! -d "$as_dir"; do
17766 as_dirs
="$as_dir $as_dirs"
17767 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17769 X"$as_dir" : 'X\(//\)[^/]' \| \
17770 X"$as_dir" : 'X\(//\)$' \| \
17771 X"$as_dir" : 'X\(/\)' \| \
17772 . : '\(.\)' 2>/dev/null ||
17774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17776 /^X\(\/\/\)$/{ s//\1/; q; }
17777 /^X\(\/\).*/{ s//\1/; q; }
17780 test ! -n "$as_dirs" || mkdir
$as_dirs
17781 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17782 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17783 { (exit 1); exit 1; }; }; }
17787 if test "$ac_dir" != .
; then
17788 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17789 # A "../" for each directory in $ac_dir_suffix.
17790 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17792 ac_dir_suffix
= ac_top_builddir
=
17796 .
) # No --srcdir option. We are building in place.
17798 if test -z "$ac_top_builddir"; then
17801 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17803 [\\/]* | ?
:[\\/]* ) # Absolute path.
17804 ac_srcdir
=$srcdir$ac_dir_suffix;
17805 ac_top_srcdir
=$srcdir ;;
17806 *) # Relative path.
17807 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17808 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17811 # Do not use `cd foo && pwd` to compute absolute paths, because
17812 # the directories may not exist.
17814 .
) ac_abs_builddir
="$ac_dir";;
17817 .
) ac_abs_builddir
=`pwd`;;
17818 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17819 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17822 case $ac_abs_builddir in
17823 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17825 case ${ac_top_builddir}.
in
17826 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17827 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17828 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17831 case $ac_abs_builddir in
17832 .
) ac_abs_srcdir
=$ac_srcdir;;
17835 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17836 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17837 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17840 case $ac_abs_builddir in
17841 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17843 case $ac_top_srcdir in
17844 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17845 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17846 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17851 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17852 echo "$as_me: executing $ac_dest commands" >&6;}
17855 case ${CONFIG_HEADERS} in
17856 *auto-host.h
:config.
in*)
17859 # Make sure all the subdirs exist.
17860 for d
in $subdirs doc build
17862 test -d $d || mkdir
$d
17864 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17865 # bootstrapping and the installation procedure can still use
17866 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17867 # FLAGS_TO_PASS has been modified to solve the problem there.
17868 # This is virtually a duplicate of what happens in configure.lang; we do
17869 # an extra check to make sure this only happens if ln -s can be used.
17872 for d
in ${subdirs} ; do
17873 STARTDIR
=`${PWDCMD-pwd}`
17875 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17878 $LN_S ..
/$t $t 2>/dev
/null
17889 cat >>$CONFIG_STATUS <<\_ACEOF
17891 { (exit 0); exit 0; }
17893 chmod +x
$CONFIG_STATUS
17894 ac_clean_files
=$ac_clean_files_save
17897 # configure is writing to config.log, and then calls config.status.
17898 # config.status does its own redirection, appending to config.log.
17899 # Unfortunately, on DOS this fails, as config.log is still kept open
17900 # by configure, so config.status won't be able to write to it; its
17901 # output is simply discarded. So we exec the FD to /dev/null,
17902 # effectively closing config.log, so it can be properly (re)opened and
17903 # appended to by config.status. When coming back to configure, we
17904 # need to make the FD available again.
17905 if test "$no_create" != yes; then
17907 ac_config_status_args
=
17908 test "$silent" = yes &&
17909 ac_config_status_args
="$ac_config_status_args --quiet"
17911 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17913 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17914 # would make configure fail if this is the last instruction.
17915 $ac_cs_success ||
{ (exit 1); exit 1; }