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_libsubdir 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 loose_warn cxx_compat_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir 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 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 DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT 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 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages 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 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 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 despite compiler version
866 --enable-checking=LIST
867 enable expensive run-time checks. With LIST
,
868 enable only specific categories of checks.
869 Categories are
: yes,no
,all
,none
,release.
870 Flags are
: assert
,df
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
872 --enable-coverage=LEVEL
873 enable compiler
's code coverage collection.
874 Use to measure compiler performance and locate
875 unused parts of the compiler. With LEVEL, specify
876 optimization. Values are opt, noopt,
878 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
879 --enable-multilib enable library support for multiple ABIs
880 --enable-__cxa_atexit enable __cxa_atexit for C++
881 --enable-decimal-float={no,yes,bid,dpd}
882 enable decimal float extension to C. Selecting 'bid
'
883 or 'dpd
' choses which decimal floating point format
885 --enable-fixed-point enable fixed-point arithmetic extension to C
886 --enable-threads enable thread usage for target GCC
887 --enable-threads=LIB use LIB thread package for target GCC
888 --enable-tls enable or disable generation of tls code
889 overriding the assembler check for tls support
890 --enable-objc-gc enable the use of Boehm's garbage collector with
891 the GNU Objective-C runtime
892 --disable-shared don
't provide a shared libgcc
893 --enable-intermodule build the compiler in one step
894 --enable-languages=LIST specify which front-ends to build
895 --disable-rpath do not hardcode runtime library paths
896 --enable-initfini-array use .init_array/.fini_array sections
897 --enable-sjlj-exceptions
898 arrange to use setjmp/longjmp exception handling
899 --enable-secureplt enable -msecure-plt by default for PowerPC
900 --disable-win32-registry
901 disable lookup of installation paths in the
902 Registry on Windows hosts
903 --enable-win32-registry enable registry lookup (default)
904 --enable-win32-registry=KEY
905 use KEY instead of GCC version as the last portion
907 --enable-maintainer-mode
908 enable make rules and dependencies not useful
909 (and sometimes confusing) to the casual installer
910 --enable-version-specific-runtime-libs
911 specify that runtime libraries should be
912 installed in a compiler-specific directory
915 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
916 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
917 --with-build-libsubdir=DIR Directory where to find libraries for build system
918 --with-local-prefix=DIR specifies directory to put local include
919 --with-gxx-include-dir=DIR
920 specifies directory to put g++ header files
921 --with-cpp-install-dir=DIR
922 install the user visible C preprocessor in DIR
923 (relative to PREFIX) as well as PREFIX/bin
924 --with-gnu-ld arrange to work with GNU ld.
925 --with-ld arrange to use the specified ld (full pathname)
926 --with-demangler-in-ld try to use demangler in GNU ld.
927 --with-gnu-as arrange to work with GNU as
928 --with-as arrange to use the specified as (full pathname)
929 --with-stabs arrange to use stabs instead of host debug format
930 --with-dwarf2 force the default debug format to be DWARF 2
931 --with-build-sysroot=sysroot
932 use sysroot as the system root during the build
933 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
935 --with-bugurl=URL Direct users to URL to report a bug
936 --with-gnu-ld assume the C compiler uses GNU ld default=no
937 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
938 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
939 --with-system-libunwind use installed libunwind
940 --with-long-double-128 Use
128-bit long double by default.
941 --with-gc={page
,zone
} choose the garbage collection mechanism to use
943 --with-system-zlib use installed libz
944 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
945 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
946 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
947 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
949 Some influential environment variables
:
950 CC C compiler
command
951 CFLAGS C compiler flags
952 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
953 nonstandard directory
<lib dir
>
954 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
955 headers
in a nonstandard directory
<include dir
>
957 GMPLIBS How to link GMP
958 GMPINC How to
find GMP include files
960 Use these variables to override the choices made by
`configure' or to help
961 it to find libraries and programs with nonstandard names/locations.
966 if test "$ac_init_help" = "recursive"; then
967 # If there are subdirs, report their specific --help.
969 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
970 test -d $ac_dir || continue
973 if test "$ac_dir" != .; then
974 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
975 # A "../" for each directory in $ac_dir_suffix.
976 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
978 ac_dir_suffix= ac_top_builddir=
982 .) # No --srcdir option. We are building in place.
984 if test -z "$ac_top_builddir"; then
987 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
989 [\\/]* | ?:[\\/]* ) # Absolute path.
990 ac_srcdir=$srcdir$ac_dir_suffix;
991 ac_top_srcdir=$srcdir ;;
993 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
994 ac_top_srcdir=$ac_top_builddir$srcdir ;;
997 # Do not use `cd foo
&& pwd` to compute absolute paths, because
998 # the directories may not exist.
1000 .) ac_abs_builddir="$ac_dir";;
1003 .) ac_abs_builddir=`pwd`;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1005 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1011 case ${ac_top_builddir}. in
1012 .) ac_abs_top_builddir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1014 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1017 case $ac_abs_builddir in
1018 .) ac_abs_srcdir=$ac_srcdir;;
1021 .) ac_abs_srcdir=$ac_abs_builddir;;
1022 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1023 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1026 case $ac_abs_builddir in
1027 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1029 case $ac_top_srcdir in
1030 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1031 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1032 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1037 # Check for guested configure; otherwise get Cygnus style configure.
1038 if test -f $ac_srcdir/configure.gnu; then
1040 $SHELL $ac_srcdir/configure.gnu --help=recursive
1041 elif test -f $ac_srcdir/configure; then
1043 $SHELL $ac_srcdir/configure --help=recursive
1044 elif test -f $ac_srcdir/configure.ac ||
1045 test -f $ac_srcdir/configure.in; then
1047 $ac_configure --help
1049 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1055 test -n "$ac_init_help" && exit 0
1056 if $ac_init_version; then
1059 Copyright (C) 2003 Free Software Foundation, Inc.
1060 This configure script is free software; the Free Software Foundation
1061 gives unlimited permission to copy, distribute and modify it.
1067 This file contains any messages produced by compilers while
1068 running configure, to aid debugging if configure makes a mistake.
1070 It was created by $as_me, which was
1071 generated by GNU Autoconf 2.59. Invocation command line was
1082 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1083 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1084 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1085 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1086 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1088 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1089 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1091 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1092 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1093 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1094 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1095 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1096 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1097 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1105 test -z "$as_dir" && as_dir=.
1106 echo "PATH: $as_dir"
1121 # Keep a trace of the command line.
1122 # Strip out --no-create and --no-recursion so they do not pile up.
1123 # Strip out --silent because we don't want to record it for future runs.
1124 # Also quote any args containing shell meta-characters.
1125 # Make two passes to allow for proper duplicate-argument suppression.
1130 ac_must_keep_next=false
1136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1140 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1141 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1144 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1146 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1147 if test $ac_must_keep_next = true; then
1148 ac_must_keep_next=false # Got value, back to normal.
1151 *=* | --config-cache | -C | -disable-* | --disable-* \
1152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1154 | -with-* | --with-* | -without-* | --without-* | --x)
1155 case "$ac_configure_args0 " in
1156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1159 -* ) ac_must_keep_next=true ;;
1162 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1163 # Get rid of the leading space.
1169 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1170 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1172 # When interrupted or exit'd, cleanup temporary files, and complete
1173 # config.log. We remove comments because anyway the quotes in there
1174 # would cause problems or look ugly.
1175 # WARNING: Be sure not to use single quotes in there, as some shells,
1176 # such as our DU 5.0 friend, will then `close
' the trap.
1177 trap 'exit_status
=$?
1178 # Save into config.log some information that might help in debugging.
1183 ## ---------------- ##
1184 ## Cache variables. ##
1185 ## ---------------- ##
1188 # The following way of writing the cache mishandles newlines in values,
1191 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1194 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1199 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1206 ## ----------------- ##
1207 ## Output variables. ##
1208 ## ----------------- ##
1211 for ac_var
in $ac_subst_vars
1213 eval ac_val
=$
`echo $ac_var`
1214 echo "$ac_var='"'"'$ac_val'"'"'"
1218 if test -n "$ac_subst_files"; then
1225 for ac_var
in $ac_subst_files
1227 eval ac_val
=$
`echo $ac_var`
1228 echo "$ac_var='"'"'$ac_val'"'"'"
1233 if test -s confdefs.h
; then
1240 sed "/^$/d" confdefs.h |
sort
1243 test "$ac_signal" != 0 &&
1244 echo "$as_me: caught signal $ac_signal"
1245 echo "$as_me: exit $exit_status"
1247 rm -f core
*.core
&&
1248 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1251 for ac_signal in 1 2 13 15; do
1252 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1256 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1257 rm -rf conftest* confdefs.h
1258 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1261 # Predefined preprocessor variables.
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_NAME "$PACKAGE_NAME"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_STRING "$PACKAGE_STRING"
1283 cat >>confdefs.h <<_ACEOF
1284 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1288 # Let the site file select an alternate cache file if it wants to.
1289 # Prefer explicitly selected file to automatically selected ones.
1290 if test -z "$CONFIG_SITE"; then
1291 if test "x$prefix" != xNONE; then
1292 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1294 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1297 for ac_site_file in $CONFIG_SITE; do
1298 if test -r "$ac_site_file"; then
1299 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1300 echo "$as_me: loading site script $ac_site_file" >&6;}
1301 sed 's
/^
/|
/' "$ac_site_file" >&5
1306 if test -r "$cache_file"; then
1307 # Some versions of bash will fail to source /dev/null (special
1308 # files actually), so we avoid doing that.
1309 if test -f "$cache_file"; then
1310 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1311 echo "$as_me: loading cache $cache_file" >&6;}
1313 [\\/]* | ?:[\\/]* ) . $cache_file;;
1314 *) . ./$cache_file;;
1318 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1319 echo "$as_me: creating cache $cache_file" >&6;}
1323 # Check that the precious variables saved in the cache have kept the same
1325 ac_cache_corrupted=false
1326 for ac_var in `(set) 2>&1 |
1327 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1328 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1329 eval ac_new_set=\$ac_env_${ac_var}_set
1330 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1331 eval ac_new_val="\$ac_env_${ac_var}_value"
1332 case $ac_old_set,$ac_new_set in
1334 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1336 ac_cache_corrupted=: ;;
1338 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1339 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1340 ac_cache_corrupted=: ;;
1343 if test "x$ac_old_val" != "x$ac_new_val"; then
1344 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1345 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1346 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1347 echo "$as_me: former value: $ac_old_val" >&2;}
1348 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1349 echo "$as_me: current value: $ac_new_val" >&2;}
1350 ac_cache_corrupted=:
1353 # Pass precious variables to config.status.
1354 if test "$ac_new_set" = set; then
1356 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1357 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1358 *) ac_arg=$ac_var=$ac_new_val ;;
1360 case " $ac_configure_args " in
1361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1362 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1366 if $ac_cache_corrupted; then
1367 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1368 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1369 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1370 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1371 { (exit 1); exit 1; }; }
1375 ac_cpp='$CPP $CPPFLAGS'
1376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1377 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1402 gcc_version=`cat $srcdir/BASE-VER`
1404 # Determine the host, build, and target systems
1406 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407 if test -f $ac_dir/install-sh; then
1409 ac_install_sh="$ac_aux_dir/install-sh -c"
1411 elif test -f $ac_dir/install.sh; then
1413 ac_install_sh="$ac_aux_dir/install.sh -c"
1415 elif test -f $ac_dir/shtool; then
1417 ac_install_sh="$ac_aux_dir/shtool install -c"
1421 if test -z "$ac_aux_dir"; then
1422 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1423 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1424 { (exit 1); exit 1; }; }
1426 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1427 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1428 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1430 # Make sure we can run config.sub.
1431 $ac_config_sub sun4 >/dev/null 2>&1 ||
1432 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1433 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1434 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: checking build system type" >&5
1437 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1438 if test "${ac_cv_build+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 ac_cv_build_alias=$build_alias
1442 test -z "$ac_cv_build_alias" &&
1443 ac_cv_build_alias=`$ac_config_guess`
1444 test -z "$ac_cv_build_alias" &&
1445 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1447 { (exit 1); exit 1; }; }
1448 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1449 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1451 { (exit 1); exit 1; }; }
1454 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1455 echo "${ECHO_T}$ac_cv_build" >&6
1457 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1458 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1459 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1462 echo "$as_me:$LINENO: checking host system type" >&5
1463 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1464 if test "${ac_cv_host+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 ac_cv_host_alias=$host_alias
1468 test -z "$ac_cv_host_alias" &&
1469 ac_cv_host_alias=$ac_cv_build_alias
1470 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1471 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1473 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1477 echo "${ECHO_T}$ac_cv_host" >&6
1479 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1480 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1481 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1484 echo "$as_me:$LINENO: checking target system type" >&5
1485 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1486 if test "${ac_cv_target+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 ac_cv_target_alias=$target_alias
1490 test "x$ac_cv_target_alias" = "x" &&
1491 ac_cv_target_alias=$ac_cv_host_alias
1492 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1493 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1495 { (exit 1); exit 1; }; }
1498 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1499 echo "${ECHO_T}$ac_cv_target" >&6
1500 target=$ac_cv_target
1501 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1502 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1503 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1506 # The aliases save the names the user supplied, while $host etc.
1507 # will get canonicalized.
1508 test -n "$target_alias" &&
1509 test "$program_prefix$program_suffix$program_transform_name" = \
1511 program_prefix=${target_alias}-
1513 # Determine the noncanonical target name, for directory use.
1514 case ${build_alias} in
1515 "") build_noncanonical=${build} ;;
1516 *) build_noncanonical=${build_alias} ;;
1519 case ${host_alias} in
1520 "") host_noncanonical=${build_noncanonical} ;;
1521 *) host_noncanonical=${host_alias} ;;
1524 case ${target_alias} in
1525 "") target_noncanonical=${host_noncanonical} ;;
1526 *) target_noncanonical=${target_alias} ;;
1532 # Determine the target- and build-specific subdirectories
1534 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1535 # have matching libraries, they should use host libraries: Makefile.tpl
1536 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1537 # However, they still use the build modules, because the corresponding
1538 # host modules (e.g. bison) are only built for the host when bootstrap
1540 # - build_subdir is where we find build modules, and never changes.
1541 # - build_libsubdir is where we find build libraries, and can be overridden.
1543 # Prefix 'build-
' so this never conflicts with target_subdir.
1544 build_subdir="build-${build_noncanonical}"
1546 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1547 if test "${with_build_libsubdir+set}" = set; then
1548 withval="$with_build_libsubdir"
1549 build_libsubdir="$withval"
1551 build_libsubdir="$build_subdir"
1553 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1554 if ( test $srcdir = . && test -d gcc ) \
1555 || test -d $srcdir/../host-${host_noncanonical}; then
1556 host_subdir="host-${host_noncanonical}"
1561 target_subdir=${target_noncanonical}
1564 # Set program_transform_name
1565 test "$program_prefix" != NONE &&
1566 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1567 # Use a double $ so make ignores it.
1568 test "$program_suffix" != NONE &&
1569 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1570 # Double any \ or $. echo might interpret backslashes.
1571 # By default was `s,x,x', remove it
if useless.
1572 cat <<\_ACEOF
>conftest.
sed
1573 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1575 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1579 # Check for bogus environment variables.
1580 # Test if LIBRARY_PATH contains the notation for the current directory
1581 # since this would lead to problems installing/building glibc.
1582 # LIBRARY_PATH contains the current directory if one of the following
1584 # - one of the terminals (":" and ";") is the first or last sign
1585 # - two terminals occur directly after each other
1586 # - the path contains an element with a dot in it
1587 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1588 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1589 case ${LIBRARY_PATH} in
1590 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1591 library_path_setting
="contains current directory"
1594 library_path_setting
="ok"
1597 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1598 echo "${ECHO_T}$library_path_setting" >&6
1599 if test "$library_path_setting" != "ok"; then
1600 { { echo "$as_me:$LINENO: error:
1601 *** LIBRARY_PATH shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&5
1604 echo "$as_me: error:
1605 *** LIBRARY_PATH shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&2;}
1608 { (exit 1); exit 1; }; }
1611 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1612 # since this would lead to problems installing/building glibc.
1613 # GCC_EXEC_PREFIX contains the current directory if one of the following
1615 # - one of the terminals (":" and ";") is the first or last sign
1616 # - two terminals occur directly after each other
1617 # - the path contains an element with a dot in it
1618 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1619 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1620 case ${GCC_EXEC_PREFIX} in
1621 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1622 gcc_exec_prefix_setting
="contains current directory"
1625 gcc_exec_prefix_setting
="ok"
1628 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1629 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1630 if test "$gcc_exec_prefix_setting" != "ok"; then
1631 { { echo "$as_me:$LINENO: error:
1632 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1633 *** building gcc. Please change the environment variable
1634 *** and run configure again." >&5
1635 echo "$as_me: error:
1636 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1637 *** building gcc. Please change the environment variable
1638 *** and run configure again." >&2;}
1639 { (exit 1); exit 1; }; }
1646 # Specify the local prefix
1649 # Check whether --with-local-prefix or --without-local-prefix was given.
1650 if test "${with_local_prefix+set}" = set; then
1651 withval
="$with_local_prefix"
1652 case "${withval}" in
1653 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1654 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1655 { (exit 1); exit 1; }; } ;;
1657 *) local_prefix
=$with_local_prefix ;;
1661 # Default local prefix if it is empty
1662 if test x
$local_prefix = x
; then
1663 local_prefix
=/usr
/local
1666 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1667 # passed in by the toplevel make and thus we'd get different behavior
1668 # depending on where we built the sources.
1669 gcc_gxx_include_dir
=
1670 # Specify the g++ header file directory
1672 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1673 if test "${with_gxx_include_dir+set}" = set; then
1674 withval
="$with_gxx_include_dir"
1675 case "${withval}" in
1676 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1677 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1678 { (exit 1); exit 1; }; } ;;
1680 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1684 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1685 if test x
${gcc_gxx_include_dir} = x
; then
1686 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1687 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1689 libstdcxx_incdir
='include/c++/$(version)'
1690 if test x
$host != x
$target; then
1691 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1693 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1698 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1699 if test "${with_cpp_install_dir+set}" = set; then
1700 withval
="$with_cpp_install_dir"
1701 if test x
$withval = xyes
; then
1702 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1703 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1704 { (exit 1); exit 1; }; }
1705 elif test x
$withval != xno
; then
1706 cpp_install_dir
=$withval
1710 # We would like to our source tree to be readonly. However when releases or
1711 # pre-releases are generated, the flex/bison generated files as well as the
1712 # various formats of manuals need to be included along with the rest of the
1713 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1716 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1717 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1718 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1719 if test "${enable_generated_files_in_srcdir+set}" = set; then
1720 enableval
="$enable_generated_files_in_srcdir"
1721 generated_files_in_srcdir
=$enableval
1723 generated_files_in_srcdir
=no
1726 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1727 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1729 if test "$generated_files_in_srcdir" = "yes"; then
1736 # -------------------
1737 # Find default linker
1738 # -------------------
1742 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1743 if test "${with_gnu_ld+set}" = set; then
1744 withval
="$with_gnu_ld"
1745 gnu_ld_flag
="$with_gnu_ld"
1750 # With pre-defined ld
1752 # Check whether --with-ld or --without-ld was given.
1753 if test "${with_ld+set}" = set; then
1755 DEFAULT_LINKER
="$with_ld"
1757 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1758 if test ! -x "$DEFAULT_LINKER"; then
1759 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1760 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1761 { (exit 1); exit 1; }; }
1762 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1766 cat >>confdefs.h
<<_ACEOF
1767 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1772 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1774 cat >>confdefs.h
<<_ACEOF
1775 #define HAVE_GNU_LD $gnu_ld
1779 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1780 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1781 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1782 if test x
"$gnu_ld_flag" = x
"no"; then
1783 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1784 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1786 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1787 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1794 # With demangler in GNU ld
1796 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1797 if test "${with_demangler_in_ld+set}" = set; then
1798 withval
="$with_demangler_in_ld"
1799 demangler_in_ld
="$with_demangler_in_ld"
1804 # ----------------------
1805 # Find default assembler
1806 # ----------------------
1810 # Check whether --with-gnu-as or --without-gnu-as was given.
1811 if test "${with_gnu_as+set}" = set; then
1812 withval
="$with_gnu_as"
1813 gas_flag
="$with_gnu_as"
1819 # Check whether --with-as or --without-as was given.
1820 if test "${with_as+set}" = set; then
1822 DEFAULT_ASSEMBLER
="$with_as"
1824 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1825 if test ! -x "$DEFAULT_ASSEMBLER"; then
1826 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1827 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1828 { (exit 1); exit 1; }; }
1829 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1833 cat >>confdefs.h
<<_ACEOF
1834 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1839 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1841 cat >>confdefs.h
<<_ACEOF
1842 #define HAVE_GNU_AS $gnu_as
1846 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1847 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1848 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1849 if test x
"$gas_flag" = x
"no"; then
1850 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1851 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1853 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1854 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1865 # If a non-executable a.out is present (e.g. created by GNU as above even if
1866 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1867 # file, even when creating an executable, so an execution test fails.
1868 # Remove possible default executable files to avoid this.
1870 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1871 # Autoconf includes it.
1872 rm -f a.out a.exe b.out
1874 # Find the native compiler
1876 ac_cpp
='$CPP $CPPFLAGS'
1877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1880 if test -n "$ac_tool_prefix"; then
1881 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1882 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC
="$CC" # Let the user override the test.
1891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir
=.
1896 for ac_exec_ext
in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$CC"; then
1909 echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1917 if test -z "$ac_cv_prog_CC"; then
1919 # Extract the first word of "gcc", so it can be a program name with args.
1920 set dummy gcc
; ac_word
=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 if test -n "$ac_ct_CC"; then
1927 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir
=.
1934 for ac_exec_ext
in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_ac_ct_CC
="gcc"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1959 if test -z "$CC"; then
1960 if test -n "$ac_tool_prefix"; then
1961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1962 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC
="$CC" # Let the user override the test.
1971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir
=.
1976 for ac_exec_ext
in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 if test -n "$CC"; then
1989 echo "$as_me:$LINENO: result: $CC" >&5
1990 echo "${ECHO_T}$CC" >&6
1992 echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1997 if test -z "$ac_cv_prog_CC"; then
1999 # Extract the first word of "cc", so it can be a program name with args.
2000 set dummy cc
; ac_word
=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$ac_ct_CC"; then
2007 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir
=.
2014 for ac_exec_ext
in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_CC
="cc"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2040 if test -z "$CC"; then
2041 # Extract the first word of "cc", so it can be a program name with args.
2042 set dummy cc
; ac_word
=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC
="$CC" # Let the user override the test.
2052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir
=.
2057 for ac_exec_ext
in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2060 ac_prog_rejected
=yes
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test $ac_prog_rejected = yes; then
2071 # We found a bogon in the path, so make sure we never use it.
2072 set dummy
$ac_cv_prog_CC
2074 if test $# != 0; then
2075 # We chose a different compiler from the bogus one.
2076 # However, it has the same basename, so the bogon will be chosen
2077 # first if we set CC to just the basename; use the full file name.
2079 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2085 if test -n "$CC"; then
2086 echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2089 echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2094 if test -z "$CC"; then
2095 if test -n "$ac_tool_prefix"; then
2098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2099 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC
="$CC" # Let the user override the test.
2108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2112 test -z "$as_dir" && as_dir
=.
2113 for ac_exec_ext
in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 if test -n "$CC"; then
2126 echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6
2129 echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6
2133 test -n "$CC" && break
2136 if test -z "$CC"; then
2140 # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy
$ac_prog; ac_word
=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$ac_ct_CC"; then
2148 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir
=.
2155 for ac_exec_ext
in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_ac_ct_CC
="$ac_prog"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2175 test -n "$ac_ct_CC" && break
2184 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: no acceptable C compiler found in \$PATH
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2190 # Provide some information about the compiler.
2191 echo "$as_me:$LINENO:" \
2192 "checking for C compiler version" >&5
2193 ac_compiler
=`set X $ac_compile; echo $2`
2194 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2195 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2199 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2200 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }
2204 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2205 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }
2210 cat >conftest.
$ac_ext <<_ACEOF
2213 cat confdefs.h
>>conftest.
$ac_ext
2214 cat >>conftest.
$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2225 ac_clean_files_save
=$ac_clean_files
2226 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2227 # Try to create an executable without -o first, disregard a.out.
2228 # It will help us diagnose broken compilers, and finding out an intuition
2230 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2231 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2232 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2234 (eval $ac_link_default) 2>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; then
2238 # Find the output, starting from the most likely. This scheme is
2239 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2242 # Be careful to initialize this variable, since it used to be cached.
2243 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2245 # b.out is created by i960 compilers.
2246 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2248 test -f "$ac_file" ||
continue
2250 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2253 # This is the source file.
2256 # We found the default executable, but exeext='' is most
2260 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2261 # FIXME: I believe we export ac_cv_exeext for Libtool,
2262 # but it would be cool to find out if it's true. Does anybody
2263 # maintain Libtool? --akim.
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.
$ac_ext >&5
2274 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: C compiler cannot create executables
2277 See \`config.log' for more details." >&2;}
2278 { (exit 77); exit 77; }; }
2281 ac_exeext
=$ac_cv_exeext
2282 echo "$as_me:$LINENO: result: $ac_file" >&5
2283 echo "${ECHO_T}$ac_file" >&6
2285 # Check the compiler produces executables we can run. If not, either
2286 # the compiler is broken, or we cross compile.
2287 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2289 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290 # If not cross compiling, check that we can run a simple program.
2291 if test "$cross_compiling" != yes; then
2292 if { ac_try
='./$ac_file'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2300 if test "$cross_compiling" = maybe
; then
2303 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2313 echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6
2316 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2317 ac_clean_files
=$ac_clean_files_save
2318 # Check the compiler produces executables we can run. If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2322 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2323 echo "${ECHO_T}$cross_compiling" >&6
2325 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2328 (eval $ac_link) 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2333 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2334 # work properly (i.e., refer to `conftest.exe'), while it won't with
2336 for ac_file
in conftest.exe conftest conftest.
*; do
2337 test -f "$ac_file" ||
continue
2339 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2340 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2350 See \`config.log' for more details." >&2;}
2351 { (exit 1); exit 1; }; }
2354 rm -f conftest
$ac_cv_exeext
2355 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2356 echo "${ECHO_T}$ac_cv_exeext" >&6
2358 rm -f conftest.
$ac_ext
2359 EXEEXT
=$ac_cv_exeext
2361 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2362 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2363 if test "${ac_cv_objext+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.
$ac_ext <<_ACEOF
2369 cat confdefs.h
>>conftest.
$ac_ext
2370 cat >>conftest.
$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2381 rm -f conftest.o conftest.obj
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; then
2387 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2389 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2390 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.
$ac_ext >&5
2398 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2401 See \`config.log' for more details." >&2;}
2402 { (exit 1); exit 1; }; }
2405 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2407 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2408 echo "${ECHO_T}$ac_cv_objext" >&6
2409 OBJEXT
=$ac_cv_objext
2411 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2412 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2413 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 cat >conftest.
$ac_ext <<_ACEOF
2419 cat confdefs.h
>>conftest.
$ac_ext
2420 cat >>conftest.
$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2434 rm -f conftest.
$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2438 grep -v '^ *+' conftest.er1
>conftest.err
2440 cat conftest.err
>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try
='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try
='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.
$ac_ext >&5
2463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2464 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2467 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2469 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS
=${CFLAGS+set}
2471 ac_save_CFLAGS
=$CFLAGS
2473 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 cat >conftest.
$ac_ext <<_ACEOF
2481 cat confdefs.h
>>conftest.
$ac_ext
2482 cat >>conftest.
$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 rm -f conftest.
$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2497 grep -v '^ *+' conftest.er1
>conftest.err
2499 cat conftest.err
>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try
='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try
='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.
$ac_ext >&5
2522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2524 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2525 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2526 if test "$ac_test_CFLAGS" = set; then
2527 CFLAGS
=$ac_save_CFLAGS
2528 elif test $ac_cv_prog_cc_g = yes; then
2529 if test "$GCC" = yes; then
2535 if test "$GCC" = yes; then
2541 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2542 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 ac_cv_prog_cc_stdc
=no
2548 cat >conftest.
$ac_ext <<_ACEOF
2551 cat confdefs.h
>>conftest.
$ac_ext
2552 cat >>conftest.
$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2556 #include <sys/types.h>
2557 #include <sys/stat.h>
2558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2559 struct buf { int x; };
2560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2561 static char *e (p, i)
2567 static char *f (char * (*g) (char **, int), char **p, ...)
2572 s = g (p, va_arg (v,int));
2577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2578 function prototypes and stuff, but not '\xHH' hex character constants.
2579 These don't provoke an error unfortunately, instead are silently treated
2580 as 'x'. The following induces an error, until -std1 is added to get
2581 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2582 array size at least. It's necessary to write '\x00'==0 to get something
2583 that's true only with -std1. */
2584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2586 int test (int i, double x);
2587 struct s1 {int (*f) (int a);};
2588 struct s2 {int (*f) (double a);};
2589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2595 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2600 # Don't try gcc -ansi; that turns off useful extensions and
2601 # breaks some systems' header files.
2602 # AIX -qlanglvl=ansi
2603 # Ultrix and OSF/1 -std1
2604 # HP-UX 10.20 and later -Ae
2605 # HP-UX older versions -Aa -D_HPUX_SOURCE
2606 # SVR4 -Xc -D__EXTENSIONS__
2607 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2609 CC
="$ac_save_CC $ac_arg"
2610 rm -f conftest.
$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2614 grep -v '^ *+' conftest.er1
>conftest.err
2616 cat conftest.err
>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try
='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try
='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_prog_cc_stdc
=$ac_arg
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.
$ac_ext >&5
2639 rm -f conftest.err conftest.
$ac_objext
2641 rm -f conftest.
$ac_ext conftest.
$ac_objext
2646 case "x$ac_cv_prog_cc_stdc" in
2648 echo "$as_me:$LINENO: result: none needed" >&5
2649 echo "${ECHO_T}none needed" >&6 ;;
2651 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2653 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2656 # Some people use a C++ compiler to compile C. Since we use `exit',
2657 # in C++ we need to declare it. In case someone uses the same compiler
2658 # for both compiling C and C++ we need to have the C++ compiler decide
2659 # the declaration of exit, since it's the most demanding environment.
2660 cat >conftest.
$ac_ext <<_ACEOF
2665 rm -f conftest.
$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>conftest.er1
2669 grep -v '^ *+' conftest.er1
>conftest.err
2671 cat conftest.err
>&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try
='test -z "$ac_c_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try
='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2687 for ac_declaration
in \
2689 'extern "C" void std::exit (int) throw (); using std::exit;' \
2690 'extern "C" void std::exit (int); using std::exit;' \
2691 'extern "C" void exit (int) throw ();' \
2692 'extern "C" void exit (int);' \
2695 cat >conftest.
$ac_ext <<_ACEOF
2698 cat confdefs.h
>>conftest.
$ac_ext
2699 cat >>conftest.
$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2711 rm -f conftest.
$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1
>conftest.err
2717 cat conftest.err
>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try
='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try
='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.
$ac_ext >&5
2740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2741 cat >conftest.
$ac_ext <<_ACEOF
2744 cat confdefs.h
>>conftest.
$ac_ext
2745 cat >>conftest.
$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2756 rm -f conftest.
$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2760 grep -v '^ *+' conftest.er1
>conftest.err
2762 cat conftest.err
>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try
='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try
='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.
$ac_ext >&5
2784 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2787 if test -n "$ac_declaration"; then
2788 echo '#ifdef __cplusplus' >>confdefs.h
2789 echo $ac_declaration >>confdefs.h
2790 echo '#endif' >>confdefs.h
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.
$ac_ext >&5
2798 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2800 ac_cpp
='$CPP $CPPFLAGS'
2801 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2805 if test "x$CC" != xcc
; then
2806 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2807 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2809 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2810 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2812 set dummy
$CC; ac_cc
=`echo $2 |
2813 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2814 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 cat >conftest.
$ac_ext <<_ACEOF
2820 cat confdefs.h
>>conftest.
$ac_ext
2821 cat >>conftest.
$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2832 # Make sure it works both with $CC and with simple cc.
2833 # We do the test twice because some compilers refuse to overwrite an
2834 # existing .o file with -o, though they will create one.
2835 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2836 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); };
2847 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2848 if test "x$CC" != xcc
; then
2849 # Test first that cc exists at all.
2850 if { ac_try
='cc -c conftest.$ac_ext >&5'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); };
2871 # cc exists but doesn't like -o.
2872 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2877 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2882 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2883 echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6
2886 echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2889 cat >>confdefs.h
<<\_ACEOF
2890 #define NO_MINUS_C_MINUS_O 1
2895 # expand $ac_aux_dir to an absolute path
2896 am_aux_dir
=`cd $ac_aux_dir && pwd`
2898 # FIXME: we rely on the cache variable name because
2899 # there is no other way.
2901 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2903 # Losing compiler, so override with the script.
2904 # FIXME: It is wrong to rewrite CC.
2905 # But if we don't then we get into trouble of one sort or another.
2906 # A longer-term fix would be to have automake use am__CC in this case,
2907 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2908 CC
="$am_aux_dir/compile $CC"
2911 # autoconf is lame and doesn't give us any substitution variable for this.
2912 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2913 NO_MINUS_C_MINUS_O
=yes
2915 OUTPUT_OPTION
='-o $@'
2920 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2921 # optimizations to be activated explicitly by the toplevel.
2923 */prev-gcc
/xgcc
*) ;;
2924 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2928 # -------------------------
2929 # Check C compiler features
2930 # -------------------------
2933 ac_cpp
='$CPP $CPPFLAGS'
2934 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2937 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2938 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2939 # On Suns, sometimes $CPP names a directory.
2940 if test -n "$CPP" && test -d "$CPP"; then
2943 if test -z "$CPP"; then
2944 if test "${ac_cv_prog_CPP+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 # Double quotes because CPP needs to be expanded
2948 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2951 for ac_c_preproc_warn_flag
in '' yes
2953 # Use a header file that comes with gcc, so configuring glibc
2954 # with a fresh cross-compiler works.
2955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2956 # <limits.h> exists even on freestanding compilers.
2957 # On the NeXT, cc -E runs the code through the compiler's parser,
2958 # not just through cpp. "Syntax error" is here to catch this case.
2959 cat >conftest.
$ac_ext <<_ACEOF
2962 cat confdefs.h
>>conftest.
$ac_ext
2963 cat >>conftest.
$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2966 # include <limits.h>
2968 # include <assert.h>
2972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1
>conftest.err
2977 cat conftest.err
>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } >/dev
/null
; then
2980 if test -s conftest.err
; then
2981 ac_cpp_err
=$ac_c_preproc_warn_flag
2982 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2989 if test -z "$ac_cpp_err"; then
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.
$ac_ext >&5
2995 # Broken: fails on valid input.
2998 rm -f conftest.err conftest.
$ac_ext
3000 # OK, works on sane cases. Now check whether non-existent headers
3001 # can be detected and how.
3002 cat >conftest.
$ac_ext <<_ACEOF
3005 cat confdefs.h
>>conftest.
$ac_ext
3006 cat >>conftest.
$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008 #include <ac_nonexistent.h>
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3013 grep -v '^ *+' conftest.er1
>conftest.err
3015 cat conftest.err
>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev
/null
; then
3018 if test -s conftest.err
; then
3019 ac_cpp_err
=$ac_c_preproc_warn_flag
3020 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3027 if test -z "$ac_cpp_err"; then
3028 # Broken: success on invalid input.
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.
$ac_ext >&5
3034 # Passes both tests.
3038 rm -f conftest.err conftest.
$ac_ext
3041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3042 rm -f conftest.err conftest.
$ac_ext
3043 if $ac_preproc_ok; then
3055 echo "$as_me:$LINENO: result: $CPP" >&5
3056 echo "${ECHO_T}$CPP" >&6
3058 for ac_c_preproc_warn_flag
in '' yes
3060 # Use a header file that comes with gcc, so configuring glibc
3061 # with a fresh cross-compiler works.
3062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3063 # <limits.h> exists even on freestanding compilers.
3064 # On the NeXT, cc -E runs the code through the compiler's parser,
3065 # not just through cpp. "Syntax error" is here to catch this case.
3066 cat >conftest.
$ac_ext <<_ACEOF
3069 cat confdefs.h
>>conftest.
$ac_ext
3070 cat >>conftest.
$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3073 # include <limits.h>
3075 # include <assert.h>
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3082 grep -v '^ *+' conftest.er1
>conftest.err
3084 cat conftest.err
>&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev
/null
; then
3087 if test -s conftest.err
; then
3088 ac_cpp_err
=$ac_c_preproc_warn_flag
3089 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3096 if test -z "$ac_cpp_err"; then
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.
$ac_ext >&5
3102 # Broken: fails on valid input.
3105 rm -f conftest.err conftest.
$ac_ext
3107 # OK, works on sane cases. Now check whether non-existent headers
3108 # can be detected and how.
3109 cat >conftest.
$ac_ext <<_ACEOF
3112 cat confdefs.h
>>conftest.
$ac_ext
3113 cat >>conftest.
$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3115 #include <ac_nonexistent.h>
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3120 grep -v '^ *+' conftest.er1
>conftest.err
3122 cat conftest.err
>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev
/null
; then
3125 if test -s conftest.err
; then
3126 ac_cpp_err
=$ac_c_preproc_warn_flag
3127 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3134 if test -z "$ac_cpp_err"; then
3135 # Broken: success on invalid input.
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.
$ac_ext >&5
3141 # Passes both tests.
3145 rm -f conftest.err conftest.
$ac_ext
3148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3149 rm -f conftest.err conftest.
$ac_ext
3150 if $ac_preproc_ok; then
3153 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3161 ac_cpp
='$CPP $CPPFLAGS'
3162 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3167 echo "$as_me:$LINENO: checking for inline" >&5
3168 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3169 if test "${ac_cv_c_inline+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 for ac_kw
in inline __inline__ __inline
; do
3174 cat >conftest.
$ac_ext <<_ACEOF
3177 cat confdefs.h
>>conftest.
$ac_ext
3178 cat >>conftest.
$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3182 static $ac_kw foo_t static_foo () {return 0; }
3183 $ac_kw foo_t foo () {return 0; }
3187 rm -f conftest.
$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>conftest.er1
3191 grep -v '^ *+' conftest.er1
>conftest.err
3193 cat conftest.err
>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try
='test -z "$ac_c_werror_flag"
3197 || test ! -s conftest.err'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try
='test -s conftest.$ac_objext'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3209 ac_cv_c_inline
=$ac_kw; break
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.
$ac_ext >&5
3215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3219 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3220 echo "${ECHO_T}$ac_cv_c_inline" >&6
3223 case $ac_cv_c_inline in
3226 case $ac_cv_c_inline in
3228 *) ac_val
=$ac_cv_c_inline;;
3230 cat >>confdefs.h
<<_ACEOF
3232 #define inline $ac_val
3239 # sizeof(char) is 1 by definition.
3241 echo "$as_me:$LINENO: checking for egrep" >&5
3242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3243 if test "${ac_cv_prog_egrep+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3247 then ac_cv_prog_egrep
='grep -E'
3248 else ac_cv_prog_egrep
='egrep'
3251 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3252 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3253 EGREP
=$ac_cv_prog_egrep
3256 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3257 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3258 if test "${ac_cv_header_stdc+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 cat >conftest.
$ac_ext <<_ACEOF
3264 cat confdefs.h
>>conftest.
$ac_ext
3265 cat >>conftest.
$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3280 rm -f conftest.
$ac_objext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3282 (eval $ac_compile) 2>conftest.er1
3284 grep -v '^ *+' conftest.er1
>conftest.err
3286 cat conftest.err
>&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try
='test -z "$ac_c_werror_flag"
3290 || test ! -s conftest.err'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; } &&
3296 { ac_try
='test -s conftest.$ac_objext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 ac_cv_header_stdc
=yes
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.
$ac_ext >&5
3307 ac_cv_header_stdc
=no
3309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3311 if test $ac_cv_header_stdc = yes; then
3312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3313 cat >conftest.
$ac_ext <<_ACEOF
3316 cat confdefs.h
>>conftest.
$ac_ext
3317 cat >>conftest.
$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 $EGREP "memchr" >/dev
/null
2>&1; then
3326 ac_cv_header_stdc
=no
3332 if test $ac_cv_header_stdc = yes; then
3333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3334 cat >conftest.
$ac_ext <<_ACEOF
3337 cat confdefs.h
>>conftest.
$ac_ext
3338 cat >>conftest.
$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3344 $EGREP "free" >/dev
/null
2>&1; then
3347 ac_cv_header_stdc
=no
3353 if test $ac_cv_header_stdc = yes; then
3354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3355 if test "$cross_compiling" = yes; then
3358 cat >conftest.
$ac_ext <<_ACEOF
3361 cat confdefs.h
>>conftest.
$ac_ext
3362 cat >>conftest.
$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3365 #if ((' ' & 0x0FF) == 0x020)
3366 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3367 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3369 # define ISLOWER(c) \
3370 (('a' <= (c) && (c) <= 'i') \
3371 || ('j' <= (c) && (c) <= 'r') \
3372 || ('s' <= (c) && (c) <= 'z'))
3373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3381 for (i = 0; i < 256; i++)
3382 if (XOR (islower (i), ISLOWER (i))
3383 || toupper (i) != TOUPPER (i))
3388 rm -f conftest
$ac_exeext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3390 (eval $ac_link) 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
3401 echo "$as_me: program exited with status $ac_status" >&5
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.
$ac_ext >&5
3406 ac_cv_header_stdc
=no
3408 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3412 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3413 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3414 if test $ac_cv_header_stdc = yes; then
3416 cat >>confdefs.h
<<\_ACEOF
3417 #define STDC_HEADERS 1
3422 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3432 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3433 inttypes.h stdint.h unistd.h
3435 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3436 echo "$as_me:$LINENO: checking for $ac_header" >&5
3437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.
$ac_ext <<_ACEOF
3444 cat confdefs.h
>>conftest.
$ac_ext
3445 cat >>conftest.
$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 $ac_includes_default
3449 #include <$ac_header>
3451 rm -f conftest.
$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>conftest.er1
3455 grep -v '^ *+' conftest.er1
>conftest.err
3457 cat conftest.err
>&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try
='test -z "$ac_c_werror_flag"
3461 || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try
='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 eval "$as_ac_Header=yes"
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.
$ac_ext >&5
3478 eval "$as_ac_Header=no"
3480 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3485 cat >>confdefs.h
<<_ACEOF
3486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3494 echo "$as_me:$LINENO: checking for void *" >&5
3495 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3496 if test "${ac_cv_type_void_p+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 cat >conftest.
$ac_ext <<_ACEOF
3502 cat confdefs.h
>>conftest.
$ac_ext
3503 cat >>conftest.
$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 $ac_includes_default
3511 if (sizeof (void *))
3517 rm -f conftest.
$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1
>conftest.err
3523 cat conftest.err
>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try
='test -z "$ac_c_werror_flag"
3527 || test ! -s conftest.err'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; } &&
3533 { ac_try
='test -s conftest.$ac_objext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 ac_cv_type_void_p
=yes
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.
$ac_ext >&5
3544 ac_cv_type_void_p
=no
3546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3548 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3549 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3551 echo "$as_me:$LINENO: checking size of void *" >&5
3552 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3553 if test "${ac_cv_sizeof_void_p+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if test "$ac_cv_type_void_p" = yes; then
3557 # The cast to unsigned long works around a bug in the HP C Compiler
3558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3560 # This bug is HP SR number 8606223364.
3561 if test "$cross_compiling" = yes; then
3562 # Depending upon the size, compute the lo and hi bounds.
3563 cat >conftest.
$ac_ext <<_ACEOF
3566 cat confdefs.h
>>conftest.
$ac_ext
3567 cat >>conftest.
$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569 $ac_includes_default
3573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3580 rm -f conftest.
$ac_objext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582 (eval $ac_compile) 2>conftest.er1
3584 grep -v '^ *+' conftest.er1
>conftest.err
3586 cat conftest.err
>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } &&
3589 { ac_try
='test -z "$ac_c_werror_flag"
3590 || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try
='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3604 cat >conftest.
$ac_ext <<_ACEOF
3607 cat confdefs.h
>>conftest.
$ac_ext
3608 cat >>conftest.
$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 $ac_includes_default
3614 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3621 rm -f conftest.
$ac_objext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3623 (eval $ac_compile) 2>conftest.er1
3625 grep -v '^ *+' conftest.er1
>conftest.err
3627 cat conftest.err
>&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try
='test -z "$ac_c_werror_flag"
3631 || test ! -s conftest.err'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; } &&
3637 { ac_try
='test -s conftest.$ac_objext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_hi
=$ac_mid; break
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.
$ac_ext >&5
3648 ac_lo
=`expr $ac_mid + 1`
3649 if test $ac_lo -le $ac_mid; then
3653 ac_mid
=`expr 2 '*' $ac_mid + 1`
3655 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.
$ac_ext >&5
3661 cat >conftest.
$ac_ext <<_ACEOF
3664 cat confdefs.h
>>conftest.
$ac_ext
3665 cat >>conftest.
$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 $ac_includes_default
3671 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3678 rm -f conftest.
$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3682 grep -v '^ *+' conftest.er1
>conftest.err
3684 cat conftest.err
>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try
='test -z "$ac_c_werror_flag"
3688 || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try
='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3702 cat >conftest.
$ac_ext <<_ACEOF
3705 cat confdefs.h
>>conftest.
$ac_ext
3706 cat >>conftest.
$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 $ac_includes_default
3712 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3719 rm -f conftest.
$ac_objext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>conftest.er1
3723 grep -v '^ *+' conftest.er1
>conftest.err
3725 cat conftest.err
>&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try
='test -z "$ac_c_werror_flag"
3729 || test ! -s conftest.err'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; } &&
3735 { ac_try
='test -s conftest.$ac_objext'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 ac_lo
=$ac_mid; break
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.
$ac_ext >&5
3746 ac_hi
=`expr '(' $ac_mid ')' - 1`
3747 if test $ac_mid -le $ac_hi; then
3751 ac_mid
=`expr 2 '*' $ac_mid`
3753 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3756 echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.
$ac_ext >&5
3761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3763 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3764 # Binary search between lo and hi bounds.
3765 while test "x$ac_lo" != "x$ac_hi"; do
3766 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3767 cat >conftest.
$ac_ext <<_ACEOF
3770 cat confdefs.h
>>conftest.
$ac_ext
3771 cat >>conftest.
$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 $ac_includes_default
3777 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3784 rm -f conftest.
$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1
>conftest.err
3790 cat conftest.err
>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try
='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try
='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.
$ac_ext >&5
3811 ac_lo
=`expr '(' $ac_mid ')' + 1`
3813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3816 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3817 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3818 See \`config.log' for more details." >&5
3819 echo "$as_me: error: cannot compute sizeof (void *), 77
3820 See \`config.log' for more details." >&2;}
3821 { (exit 1); exit 1; }; } ;;
3824 if test "$cross_compiling" = yes; then
3825 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3826 See \`config.log' for more details." >&5
3827 echo "$as_me: error: cannot run test program while cross compiling
3828 See \`config.log' for more details." >&2;}
3829 { (exit 1); exit 1; }; }
3831 cat >conftest.
$ac_ext <<_ACEOF
3834 cat confdefs.h
>>conftest.
$ac_ext
3835 cat >>conftest.
$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 $ac_includes_default
3838 long longval () { return (long) (sizeof (void *)); }
3839 unsigned long ulongval () { return (long) (sizeof (void *)); }
3846 FILE *f = fopen ("conftest.val", "w");
3849 if (((long) (sizeof (void *))) < 0)
3851 long i = longval ();
3852 if (i != ((long) (sizeof (void *))))
3854 fprintf (f, "%ld\n", i);
3858 unsigned long i = ulongval ();
3859 if (i != ((long) (sizeof (void *))))
3861 fprintf (f, "%lu\n", i);
3863 exit (ferror (f) || fclose (f) != 0);
3869 rm -f conftest
$ac_exeext
3870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3871 (eval $ac_link) 2>&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_sizeof_void_p
=`cat conftest.val`
3882 echo "$as_me: program exited with status $ac_status" >&5
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.
$ac_ext >&5
3887 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3888 See \`config.log' for more details." >&5
3889 echo "$as_me: error: cannot compute sizeof (void *), 77
3890 See \`config.log' for more details." >&2;}
3891 { (exit 1); exit 1; }; }
3893 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3898 ac_cv_sizeof_void_p
=0
3901 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3902 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3903 cat >>confdefs.h
<<_ACEOF
3904 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3908 echo "$as_me:$LINENO: checking for short" >&5
3909 echo $ECHO_N "checking for short... $ECHO_C" >&6
3910 if test "${ac_cv_type_short+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 cat >conftest.
$ac_ext <<_ACEOF
3916 cat confdefs.h
>>conftest.
$ac_ext
3917 cat >>conftest.
$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 $ac_includes_default
3931 rm -f conftest.
$ac_objext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933 (eval $ac_compile) 2>conftest.er1
3935 grep -v '^ *+' conftest.er1
>conftest.err
3937 cat conftest.err
>&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } &&
3940 { ac_try
='test -z "$ac_c_werror_flag"
3941 || test ! -s conftest.err'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; } &&
3947 { ac_try
='test -s conftest.$ac_objext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 ac_cv_type_short
=yes
3955 echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.
$ac_ext >&5
3960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3962 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3963 echo "${ECHO_T}$ac_cv_type_short" >&6
3965 echo "$as_me:$LINENO: checking size of short" >&5
3966 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3967 if test "${ac_cv_sizeof_short+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 if test "$ac_cv_type_short" = yes; then
3971 # The cast to unsigned long works around a bug in the HP C Compiler
3972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3974 # This bug is HP SR number 8606223364.
3975 if test "$cross_compiling" = yes; then
3976 # Depending upon the size, compute the lo and hi bounds.
3977 cat >conftest.
$ac_ext <<_ACEOF
3980 cat confdefs.h
>>conftest.
$ac_ext
3981 cat >>conftest.
$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 $ac_includes_default
3987 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3994 rm -f conftest.
$ac_objext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996 (eval $ac_compile) 2>conftest.er1
3998 grep -v '^ *+' conftest.er1
>conftest.err
4000 cat conftest.err
>&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try
='test -z "$ac_c_werror_flag"
4004 || test ! -s conftest.err'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; } &&
4010 { ac_try
='test -s conftest.$ac_objext'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; }; then
4018 cat >conftest.
$ac_ext <<_ACEOF
4021 cat confdefs.h
>>conftest.
$ac_ext
4022 cat >>conftest.
$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4028 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4035 rm -f conftest.
$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>conftest.er1
4039 grep -v '^ *+' conftest.er1
>conftest.err
4041 cat conftest.err
>&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try
='test -z "$ac_c_werror_flag"
4045 || test ! -s conftest.err'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try
='test -s conftest.$ac_objext'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_hi
=$ac_mid; break
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.
$ac_ext >&5
4062 ac_lo
=`expr $ac_mid + 1`
4063 if test $ac_lo -le $ac_mid; then
4067 ac_mid
=`expr 2 '*' $ac_mid + 1`
4069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.
$ac_ext >&5
4075 cat >conftest.
$ac_ext <<_ACEOF
4078 cat confdefs.h
>>conftest.
$ac_ext
4079 cat >>conftest.
$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 $ac_includes_default
4085 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4092 rm -f conftest.
$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>conftest.er1
4096 grep -v '^ *+' conftest.er1
>conftest.err
4098 cat conftest.err
>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try
='test -z "$ac_c_werror_flag"
4102 || test ! -s conftest.err'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try
='test -s conftest.$ac_objext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4116 cat >conftest.
$ac_ext <<_ACEOF
4119 cat confdefs.h
>>conftest.
$ac_ext
4120 cat >>conftest.
$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 $ac_includes_default
4126 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4133 rm -f conftest.
$ac_objext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135 (eval $ac_compile) 2>conftest.er1
4137 grep -v '^ *+' conftest.er1
>conftest.err
4139 cat conftest.err
>&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try
='test -z "$ac_c_werror_flag"
4143 || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try
='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_lo
=$ac_mid; break
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.
$ac_ext >&5
4160 ac_hi
=`expr '(' $ac_mid ')' - 1`
4161 if test $ac_mid -le $ac_hi; then
4165 ac_mid
=`expr 2 '*' $ac_mid`
4167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.
$ac_ext >&5
4175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4178 # Binary search between lo and hi bounds.
4179 while test "x$ac_lo" != "x$ac_hi"; do
4180 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4181 cat >conftest.
$ac_ext <<_ACEOF
4184 cat confdefs.h
>>conftest.
$ac_ext
4185 cat >>conftest.
$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 $ac_includes_default
4191 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4198 rm -f conftest.
$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>conftest.er1
4202 grep -v '^ *+' conftest.er1
>conftest.err
4204 cat conftest.err
>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try
='test -z "$ac_c_werror_flag"
4208 || test ! -s conftest.err'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; } &&
4214 { ac_try
='test -s conftest.$ac_objext'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.
$ac_ext >&5
4225 ac_lo
=`expr '(' $ac_mid ')' + 1`
4227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4230 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4231 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4232 See \`config.log' for more details." >&5
4233 echo "$as_me: error: cannot compute sizeof (short), 77
4234 See \`config.log' for more details." >&2;}
4235 { (exit 1); exit 1; }; } ;;
4238 if test "$cross_compiling" = yes; then
4239 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4240 See \`config.log' for more details." >&5
4241 echo "$as_me: error: cannot run test program while cross compiling
4242 See \`config.log' for more details." >&2;}
4243 { (exit 1); exit 1; }; }
4245 cat >conftest.
$ac_ext <<_ACEOF
4248 cat confdefs.h
>>conftest.
$ac_ext
4249 cat >>conftest.
$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 $ac_includes_default
4252 long longval () { return (long) (sizeof (short)); }
4253 unsigned long ulongval () { return (long) (sizeof (short)); }
4260 FILE *f = fopen ("conftest.val", "w");
4263 if (((long) (sizeof (short))) < 0)
4265 long i = longval ();
4266 if (i != ((long) (sizeof (short))))
4268 fprintf (f, "%ld\n", i);
4272 unsigned long i = ulongval ();
4273 if (i != ((long) (sizeof (short))))
4275 fprintf (f, "%lu\n", i);
4277 exit (ferror (f) || fclose (f) != 0);
4283 rm -f conftest
$ac_exeext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 ac_cv_sizeof_short
=`cat conftest.val`
4296 echo "$as_me: program exited with status $ac_status" >&5
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.
$ac_ext >&5
4301 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4302 See \`config.log' for more details." >&5
4303 echo "$as_me: error: cannot compute sizeof (short), 77
4304 See \`config.log' for more details." >&2;}
4305 { (exit 1); exit 1; }; }
4307 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4312 ac_cv_sizeof_short
=0
4315 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4316 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4317 cat >>confdefs.h
<<_ACEOF
4318 #define SIZEOF_SHORT $ac_cv_sizeof_short
4322 echo "$as_me:$LINENO: checking for int" >&5
4323 echo $ECHO_N "checking for int... $ECHO_C" >&6
4324 if test "${ac_cv_type_int+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 cat >conftest.
$ac_ext <<_ACEOF
4330 cat confdefs.h
>>conftest.
$ac_ext
4331 cat >>conftest.
$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4345 rm -f conftest.
$ac_objext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4347 (eval $ac_compile) 2>conftest.er1
4349 grep -v '^ *+' conftest.er1
>conftest.err
4351 cat conftest.err
>&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try
='test -z "$ac_c_werror_flag"
4355 || test ! -s conftest.err'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try
='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.
$ac_ext >&5
4374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4376 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4377 echo "${ECHO_T}$ac_cv_type_int" >&6
4379 echo "$as_me:$LINENO: checking size of int" >&5
4380 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4381 if test "${ac_cv_sizeof_int+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 if test "$ac_cv_type_int" = yes; then
4385 # The cast to unsigned long works around a bug in the HP C Compiler
4386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4388 # This bug is HP SR number 8606223364.
4389 if test "$cross_compiling" = yes; then
4390 # Depending upon the size, compute the lo and hi bounds.
4391 cat >conftest.
$ac_ext <<_ACEOF
4394 cat confdefs.h
>>conftest.
$ac_ext
4395 cat >>conftest.
$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 $ac_includes_default
4401 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4408 rm -f conftest.
$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>conftest.er1
4412 grep -v '^ *+' conftest.er1
>conftest.err
4414 cat conftest.err
>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try
='test -z "$ac_c_werror_flag"
4418 || test ! -s conftest.err'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try
='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4432 cat >conftest.
$ac_ext <<_ACEOF
4435 cat confdefs.h
>>conftest.
$ac_ext
4436 cat >>conftest.
$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4442 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4449 rm -f conftest.
$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>conftest.er1
4453 grep -v '^ *+' conftest.er1
>conftest.err
4455 cat conftest.err
>&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try
='test -z "$ac_c_werror_flag"
4459 || test ! -s conftest.err'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try
='test -s conftest.$ac_objext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 ac_hi
=$ac_mid; break
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.
$ac_ext >&5
4476 ac_lo
=`expr $ac_mid + 1`
4477 if test $ac_lo -le $ac_mid; then
4481 ac_mid
=`expr 2 '*' $ac_mid + 1`
4483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.
$ac_ext >&5
4489 cat >conftest.
$ac_ext <<_ACEOF
4492 cat confdefs.h
>>conftest.
$ac_ext
4493 cat >>conftest.
$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 $ac_includes_default
4499 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4506 rm -f conftest.
$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4510 grep -v '^ *+' conftest.er1
>conftest.err
4512 cat conftest.err
>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try
='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try
='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4530 cat >conftest.
$ac_ext <<_ACEOF
4533 cat confdefs.h
>>conftest.
$ac_ext
4534 cat >>conftest.
$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 $ac_includes_default
4540 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4547 rm -f conftest.
$ac_objext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549 (eval $ac_compile) 2>conftest.er1
4551 grep -v '^ *+' conftest.er1
>conftest.err
4553 cat conftest.err
>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try
='test -z "$ac_c_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try
='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 ac_lo
=$ac_mid; break
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.
$ac_ext >&5
4574 ac_hi
=`expr '(' $ac_mid ')' - 1`
4575 if test $ac_mid -le $ac_hi; then
4579 ac_mid
=`expr 2 '*' $ac_mid`
4581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.
$ac_ext >&5
4589 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4592 # Binary search between lo and hi bounds.
4593 while test "x$ac_lo" != "x$ac_hi"; do
4594 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4595 cat >conftest.
$ac_ext <<_ACEOF
4598 cat confdefs.h
>>conftest.
$ac_ext
4599 cat >>conftest.
$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4605 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4612 rm -f conftest.
$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4616 grep -v '^ *+' conftest.er1
>conftest.err
4618 cat conftest.err
>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try
='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try
='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.
$ac_ext >&5
4639 ac_lo
=`expr '(' $ac_mid ')' + 1`
4641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4644 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4645 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4646 See \`config.log' for more details." >&5
4647 echo "$as_me: error: cannot compute sizeof (int), 77
4648 See \`config.log' for more details." >&2;}
4649 { (exit 1); exit 1; }; } ;;
4652 if test "$cross_compiling" = yes; then
4653 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4654 See \`config.log' for more details." >&5
4655 echo "$as_me: error: cannot run test program while cross compiling
4656 See \`config.log' for more details." >&2;}
4657 { (exit 1); exit 1; }; }
4659 cat >conftest.
$ac_ext <<_ACEOF
4662 cat confdefs.h
>>conftest.
$ac_ext
4663 cat >>conftest.
$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4665 $ac_includes_default
4666 long longval () { return (long) (sizeof (int)); }
4667 unsigned long ulongval () { return (long) (sizeof (int)); }
4674 FILE *f = fopen ("conftest.val", "w");
4677 if (((long) (sizeof (int))) < 0)
4679 long i = longval ();
4680 if (i != ((long) (sizeof (int))))
4682 fprintf (f, "%ld\n", i);
4686 unsigned long i = ulongval ();
4687 if (i != ((long) (sizeof (int))))
4689 fprintf (f, "%lu\n", i);
4691 exit (ferror (f) || fclose (f) != 0);
4697 rm -f conftest
$ac_exeext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4699 (eval $ac_link) 2>&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 ac_cv_sizeof_int
=`cat conftest.val`
4710 echo "$as_me: program exited with status $ac_status" >&5
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.
$ac_ext >&5
4715 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4716 See \`config.log' for more details." >&5
4717 echo "$as_me: error: cannot compute sizeof (int), 77
4718 See \`config.log' for more details." >&2;}
4719 { (exit 1); exit 1; }; }
4721 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4730 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4731 cat >>confdefs.h
<<_ACEOF
4732 #define SIZEOF_INT $ac_cv_sizeof_int
4736 echo "$as_me:$LINENO: checking for long" >&5
4737 echo $ECHO_N "checking for long... $ECHO_C" >&6
4738 if test "${ac_cv_type_long+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 cat >conftest.
$ac_ext <<_ACEOF
4744 cat confdefs.h
>>conftest.
$ac_ext
4745 cat >>conftest.
$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 $ac_includes_default
4759 rm -f conftest.
$ac_objext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761 (eval $ac_compile) 2>conftest.er1
4763 grep -v '^ *+' conftest.er1
>conftest.err
4765 cat conftest.err
>&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try
='test -z "$ac_c_werror_flag"
4769 || test ! -s conftest.err'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; } &&
4775 { ac_try
='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.
$ac_ext >&5
4788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4790 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4791 echo "${ECHO_T}$ac_cv_type_long" >&6
4793 echo "$as_me:$LINENO: checking size of long" >&5
4794 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4795 if test "${ac_cv_sizeof_long+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 if test "$ac_cv_type_long" = yes; then
4799 # The cast to unsigned long works around a bug in the HP C Compiler
4800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4802 # This bug is HP SR number 8606223364.
4803 if test "$cross_compiling" = yes; then
4804 # Depending upon the size, compute the lo and hi bounds.
4805 cat >conftest.
$ac_ext <<_ACEOF
4808 cat confdefs.h
>>conftest.
$ac_ext
4809 cat >>conftest.
$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 $ac_includes_default
4815 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4822 rm -f conftest.
$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4826 grep -v '^ *+' conftest.er1
>conftest.err
4828 cat conftest.err
>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try
='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4846 cat >conftest.
$ac_ext <<_ACEOF
4849 cat confdefs.h
>>conftest.
$ac_ext
4850 cat >>conftest.
$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4856 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4863 rm -f conftest.
$ac_objext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4865 (eval $ac_compile) 2>conftest.er1
4867 grep -v '^ *+' conftest.er1
>conftest.err
4869 cat conftest.err
>&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } &&
4872 { ac_try
='test -z "$ac_c_werror_flag"
4873 || test ! -s conftest.err'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; } &&
4879 { ac_try
='test -s conftest.$ac_objext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_hi
=$ac_mid; break
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.
$ac_ext >&5
4890 ac_lo
=`expr $ac_mid + 1`
4891 if test $ac_lo -le $ac_mid; then
4895 ac_mid
=`expr 2 '*' $ac_mid + 1`
4897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.
$ac_ext >&5
4903 cat >conftest.
$ac_ext <<_ACEOF
4906 cat confdefs.h
>>conftest.
$ac_ext
4907 cat >>conftest.
$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 $ac_includes_default
4913 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4920 rm -f conftest.
$ac_objext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>conftest.er1
4924 grep -v '^ *+' conftest.er1
>conftest.err
4926 cat conftest.err
>&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try
='test -z "$ac_c_werror_flag"
4930 || test ! -s conftest.err'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; } &&
4936 { ac_try
='test -s conftest.$ac_objext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4944 cat >conftest.
$ac_ext <<_ACEOF
4947 cat confdefs.h
>>conftest.
$ac_ext
4948 cat >>conftest.
$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 $ac_includes_default
4954 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4961 rm -f conftest.
$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>conftest.er1
4965 grep -v '^ *+' conftest.er1
>conftest.err
4967 cat conftest.err
>&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try
='test -z "$ac_c_werror_flag"
4971 || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try
='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_lo
=$ac_mid; break
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.
$ac_ext >&5
4988 ac_hi
=`expr '(' $ac_mid ')' - 1`
4989 if test $ac_mid -le $ac_hi; then
4993 ac_mid
=`expr 2 '*' $ac_mid`
4995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.
$ac_ext >&5
5003 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5005 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5006 # Binary search between lo and hi bounds.
5007 while test "x$ac_lo" != "x$ac_hi"; do
5008 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5009 cat >conftest.
$ac_ext <<_ACEOF
5012 cat confdefs.h
>>conftest.
$ac_ext
5013 cat >>conftest.
$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 $ac_includes_default
5019 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5026 rm -f conftest.
$ac_objext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028 (eval $ac_compile) 2>conftest.er1
5030 grep -v '^ *+' conftest.er1
>conftest.err
5032 cat conftest.err
>&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try
='test -z "$ac_c_werror_flag"
5036 || test ! -s conftest.err'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; } &&
5042 { ac_try
='test -s conftest.$ac_objext'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.
$ac_ext >&5
5053 ac_lo
=`expr '(' $ac_mid ')' + 1`
5055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5058 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5059 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5060 See \`config.log' for more details." >&5
5061 echo "$as_me: error: cannot compute sizeof (long), 77
5062 See \`config.log' for more details." >&2;}
5063 { (exit 1); exit 1; }; } ;;
5066 if test "$cross_compiling" = yes; then
5067 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5068 See \`config.log' for more details." >&5
5069 echo "$as_me: error: cannot run test program while cross compiling
5070 See \`config.log' for more details." >&2;}
5071 { (exit 1); exit 1; }; }
5073 cat >conftest.
$ac_ext <<_ACEOF
5076 cat confdefs.h
>>conftest.
$ac_ext
5077 cat >>conftest.
$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 $ac_includes_default
5080 long longval () { return (long) (sizeof (long)); }
5081 unsigned long ulongval () { return (long) (sizeof (long)); }
5088 FILE *f = fopen ("conftest.val", "w");
5091 if (((long) (sizeof (long))) < 0)
5093 long i = longval ();
5094 if (i != ((long) (sizeof (long))))
5096 fprintf (f, "%ld\n", i);
5100 unsigned long i = ulongval ();
5101 if (i != ((long) (sizeof (long))))
5103 fprintf (f, "%lu\n", i);
5105 exit (ferror (f) || fclose (f) != 0);
5111 rm -f conftest
$ac_exeext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113 (eval $ac_link) 2>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; }; then
5122 ac_cv_sizeof_long
=`cat conftest.val`
5124 echo "$as_me: program exited with status $ac_status" >&5
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.
$ac_ext >&5
5129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: cannot compute sizeof (long), 77
5132 See \`config.log' for more details." >&2;}
5133 { (exit 1); exit 1; }; }
5135 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5144 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5145 cat >>confdefs.h
<<_ACEOF
5146 #define SIZEOF_LONG $ac_cv_sizeof_long
5150 echo "$as_me:$LINENO: checking for long long" >&5
5151 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5152 if test "${ac_cv_type_long_long+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 cat >conftest.
$ac_ext <<_ACEOF
5158 cat confdefs.h
>>conftest.
$ac_ext
5159 cat >>conftest.
$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 $ac_includes_default
5165 if ((long long *) 0)
5167 if (sizeof (long long))
5173 rm -f conftest.
$ac_objext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175 (eval $ac_compile) 2>conftest.er1
5177 grep -v '^ *+' conftest.er1
>conftest.err
5179 cat conftest.err
>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try
='test -z "$ac_c_werror_flag"
5183 || test ! -s conftest.err'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; } &&
5189 { ac_try
='test -s conftest.$ac_objext'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; }; then
5195 ac_cv_type_long_long
=yes
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.
$ac_ext >&5
5200 ac_cv_type_long_long
=no
5202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5204 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5205 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5206 if test $ac_cv_type_long_long = yes; then
5208 cat >>confdefs.h
<<_ACEOF
5209 #define HAVE_LONG_LONG 1
5212 echo "$as_me:$LINENO: checking for long long" >&5
5213 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5214 if test "${ac_cv_type_long_long+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 cat >conftest.
$ac_ext <<_ACEOF
5220 cat confdefs.h
>>conftest.
$ac_ext
5221 cat >>conftest.
$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 $ac_includes_default
5227 if ((long long *) 0)
5229 if (sizeof (long long))
5235 rm -f conftest.
$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>conftest.er1
5239 grep -v '^ *+' conftest.er1
>conftest.err
5241 cat conftest.err
>&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try
='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try
='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_type_long_long
=yes
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.
$ac_ext >&5
5262 ac_cv_type_long_long
=no
5264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5267 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5269 echo "$as_me:$LINENO: checking size of long long" >&5
5270 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_long_long+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 if test "$ac_cv_type_long_long" = yes; then
5275 # The cast to unsigned long works around a bug in the HP C Compiler
5276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278 # This bug is HP SR number 8606223364.
5279 if test "$cross_compiling" = yes; then
5280 # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.
$ac_ext <<_ACEOF
5284 cat confdefs.h
>>conftest.
$ac_ext
5285 cat >>conftest.
$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 $ac_includes_default
5291 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5298 rm -f conftest.
$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1
>conftest.err
5304 cat conftest.err
>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try
='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try
='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5322 cat >conftest.
$ac_ext <<_ACEOF
5325 cat confdefs.h
>>conftest.
$ac_ext
5326 cat >>conftest.
$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 $ac_includes_default
5332 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5339 rm -f conftest.
$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>conftest.er1
5343 grep -v '^ *+' conftest.er1
>conftest.err
5345 cat conftest.err
>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try
='test -z "$ac_c_werror_flag"
5349 || test ! -s conftest.err'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try
='test -s conftest.$ac_objext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5361 ac_hi
=$ac_mid; break
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.
$ac_ext >&5
5366 ac_lo
=`expr $ac_mid + 1`
5367 if test $ac_lo -le $ac_mid; then
5371 ac_mid
=`expr 2 '*' $ac_mid + 1`
5373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.
$ac_ext >&5
5379 cat >conftest.
$ac_ext <<_ACEOF
5382 cat confdefs.h
>>conftest.
$ac_ext
5383 cat >>conftest.
$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5389 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5396 rm -f conftest.
$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1
>conftest.err
5402 cat conftest.err
>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try
='test -z "$ac_c_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try
='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5420 cat >conftest.
$ac_ext <<_ACEOF
5423 cat confdefs.h
>>conftest.
$ac_ext
5424 cat >>conftest.
$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5430 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5437 rm -f conftest.
$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>conftest.er1
5441 grep -v '^ *+' conftest.er1
>conftest.err
5443 cat conftest.err
>&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try
='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try
='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_lo
=$ac_mid; break
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.
$ac_ext >&5
5464 ac_hi
=`expr '(' $ac_mid ')' - 1`
5465 if test $ac_mid -le $ac_hi; then
5469 ac_mid
=`expr 2 '*' $ac_mid`
5471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.
$ac_ext >&5
5479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5482 # Binary search between lo and hi bounds.
5483 while test "x$ac_lo" != "x$ac_hi"; do
5484 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5485 cat >conftest.
$ac_ext <<_ACEOF
5488 cat confdefs.h
>>conftest.
$ac_ext
5489 cat >>conftest.
$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5495 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5502 rm -f conftest.
$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5506 grep -v '^ *+' conftest.er1
>conftest.err
5508 cat conftest.err
>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try
='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try
='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.
$ac_ext >&5
5529 ac_lo
=`expr '(' $ac_mid ')' + 1`
5531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5534 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5536 See \`config.log' for more details." >&5
5537 echo "$as_me: error: cannot compute sizeof (long long), 77
5538 See \`config.log' for more details." >&2;}
5539 { (exit 1); exit 1; }; } ;;
5542 if test "$cross_compiling" = yes; then
5543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5544 See \`config.log' for more details." >&5
5545 echo "$as_me: error: cannot run test program while cross compiling
5546 See \`config.log' for more details." >&2;}
5547 { (exit 1); exit 1; }; }
5549 cat >conftest.
$ac_ext <<_ACEOF
5552 cat confdefs.h
>>conftest.
$ac_ext
5553 cat >>conftest.
$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 $ac_includes_default
5556 long longval () { return (long) (sizeof (long long)); }
5557 unsigned long ulongval () { return (long) (sizeof (long long)); }
5564 FILE *f = fopen ("conftest.val", "w");
5567 if (((long) (sizeof (long long))) < 0)
5569 long i = longval ();
5570 if (i != ((long) (sizeof (long long))))
5572 fprintf (f, "%ld\n", i);
5576 unsigned long i = ulongval ();
5577 if (i != ((long) (sizeof (long long))))
5579 fprintf (f, "%lu\n", i);
5581 exit (ferror (f) || fclose (f) != 0);
5587 rm -f conftest
$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589 (eval $ac_link) 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_sizeof_long_long
=`cat conftest.val`
5600 echo "$as_me: program exited with status $ac_status" >&5
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.
$ac_ext >&5
5605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot compute sizeof (long long), 77
5608 See \`config.log' for more details." >&2;}
5609 { (exit 1); exit 1; }; }
5611 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5616 ac_cv_sizeof_long_long
=0
5619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5620 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5621 cat >>confdefs.h
<<_ACEOF
5622 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5628 echo "$as_me:$LINENO: checking for __int64" >&5
5629 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5630 if test "${ac_cv_type___int64+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 cat >conftest.
$ac_ext <<_ACEOF
5636 cat confdefs.h
>>conftest.
$ac_ext
5637 cat >>conftest.
$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 $ac_includes_default
5645 if (sizeof (__int64))
5651 rm -f conftest.
$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653 (eval $ac_compile) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1
>conftest.err
5657 cat conftest.err
>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try
='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try
='test -s conftest.$ac_objext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_type___int64
=yes
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.
$ac_ext >&5
5678 ac_cv_type___int64
=no
5680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5683 echo "${ECHO_T}$ac_cv_type___int64" >&6
5684 if test $ac_cv_type___int64 = yes; then
5686 cat >>confdefs.h
<<_ACEOF
5687 #define HAVE___INT64 1
5690 echo "$as_me:$LINENO: checking for __int64" >&5
5691 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5692 if test "${ac_cv_type___int64+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 cat >conftest.
$ac_ext <<_ACEOF
5698 cat confdefs.h
>>conftest.
$ac_ext
5699 cat >>conftest.
$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5707 if (sizeof (__int64))
5713 rm -f conftest.
$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>conftest.er1
5717 grep -v '^ *+' conftest.er1
>conftest.err
5719 cat conftest.err
>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } &&
5722 { ac_try
='test -z "$ac_c_werror_flag"
5723 || test ! -s conftest.err'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; } &&
5729 { ac_try
='test -s conftest.$ac_objext'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
5735 ac_cv_type___int64
=yes
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.
$ac_ext >&5
5740 ac_cv_type___int64
=no
5742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5744 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5745 echo "${ECHO_T}$ac_cv_type___int64" >&6
5747 echo "$as_me:$LINENO: checking size of __int64" >&5
5748 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5749 if test "${ac_cv_sizeof___int64+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 if test "$ac_cv_type___int64" = yes; then
5753 # The cast to unsigned long works around a bug in the HP C Compiler
5754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5756 # This bug is HP SR number 8606223364.
5757 if test "$cross_compiling" = yes; then
5758 # Depending upon the size, compute the lo and hi bounds.
5759 cat >conftest.
$ac_ext <<_ACEOF
5762 cat confdefs.h
>>conftest.
$ac_ext
5763 cat >>conftest.
$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 $ac_includes_default
5769 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5776 rm -f conftest.
$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5780 grep -v '^ *+' conftest.er1
>conftest.err
5782 cat conftest.err
>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try
='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try
='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5800 cat >conftest.
$ac_ext <<_ACEOF
5803 cat confdefs.h
>>conftest.
$ac_ext
5804 cat >>conftest.
$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 $ac_includes_default
5810 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5817 rm -f conftest.
$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5821 grep -v '^ *+' conftest.er1
>conftest.err
5823 cat conftest.err
>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try
='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try
='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_hi
=$ac_mid; break
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.
$ac_ext >&5
5844 ac_lo
=`expr $ac_mid + 1`
5845 if test $ac_lo -le $ac_mid; then
5849 ac_mid
=`expr 2 '*' $ac_mid + 1`
5851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.
$ac_ext >&5
5857 cat >conftest.
$ac_ext <<_ACEOF
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 $ac_includes_default
5867 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5874 rm -f conftest.
$ac_objext
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>conftest.er1
5878 grep -v '^ *+' conftest.er1
>conftest.err
5880 cat conftest.err
>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try
='test -z "$ac_c_werror_flag"
5884 || test ! -s conftest.err'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; } &&
5890 { ac_try
='test -s conftest.$ac_objext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5898 cat >conftest.
$ac_ext <<_ACEOF
5901 cat confdefs.h
>>conftest.
$ac_ext
5902 cat >>conftest.
$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 $ac_includes_default
5908 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5915 rm -f conftest.
$ac_objext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917 (eval $ac_compile) 2>conftest.er1
5919 grep -v '^ *+' conftest.er1
>conftest.err
5921 cat conftest.err
>&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try
='test -z "$ac_c_werror_flag"
5925 || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try
='test -s conftest.$ac_objext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_lo
=$ac_mid; break
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.
$ac_ext >&5
5942 ac_hi
=`expr '(' $ac_mid ')' - 1`
5943 if test $ac_mid -le $ac_hi; then
5947 ac_mid
=`expr 2 '*' $ac_mid`
5949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.
$ac_ext >&5
5957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5959 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5960 # Binary search between lo and hi bounds.
5961 while test "x$ac_lo" != "x$ac_hi"; do
5962 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5963 cat >conftest.
$ac_ext <<_ACEOF
5966 cat confdefs.h
>>conftest.
$ac_ext
5967 cat >>conftest.
$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 $ac_includes_default
5973 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5980 rm -f conftest.
$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5984 grep -v '^ *+' conftest.er1
>conftest.err
5986 cat conftest.err
>&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try
='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try
='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.
$ac_ext >&5
6007 ac_lo
=`expr '(' $ac_mid ')' + 1`
6009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6012 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6013 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6014 See \`config.log' for more details." >&5
6015 echo "$as_me: error: cannot compute sizeof (__int64), 77
6016 See \`config.log' for more details." >&2;}
6017 { (exit 1); exit 1; }; } ;;
6020 if test "$cross_compiling" = yes; then
6021 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6022 See \`config.log' for more details." >&5
6023 echo "$as_me: error: cannot run test program while cross compiling
6024 See \`config.log' for more details." >&2;}
6025 { (exit 1); exit 1; }; }
6027 cat >conftest.
$ac_ext <<_ACEOF
6030 cat confdefs.h
>>conftest.
$ac_ext
6031 cat >>conftest.
$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 $ac_includes_default
6034 long longval () { return (long) (sizeof (__int64)); }
6035 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6042 FILE *f = fopen ("conftest.val", "w");
6045 if (((long) (sizeof (__int64))) < 0)
6047 long i = longval ();
6048 if (i != ((long) (sizeof (__int64))))
6050 fprintf (f, "%ld\n", i);
6054 unsigned long i = ulongval ();
6055 if (i != ((long) (sizeof (__int64))))
6057 fprintf (f, "%lu\n", i);
6059 exit (ferror (f) || fclose (f) != 0);
6065 rm -f conftest
$ac_exeext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067 (eval $ac_link) 2>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_sizeof___int64
=`cat conftest.val`
6078 echo "$as_me: program exited with status $ac_status" >&5
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.
$ac_ext >&5
6083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6084 See \`config.log' for more details." >&5
6085 echo "$as_me: error: cannot compute sizeof (__int64), 77
6086 See \`config.log' for more details." >&2;}
6087 { (exit 1); exit 1; }; }
6089 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6094 ac_cv_sizeof___int64
=0
6097 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6098 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6099 cat >>confdefs.h
<<_ACEOF
6100 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6107 # ---------------------
6108 # Warnings and checking
6109 # ---------------------
6111 # Check $CC warning features (if it's GCC).
6112 # We want to use -pedantic, but we don't want warnings about
6115 # * overlong strings
6116 # So, we only use -pedantic if we can disable those warnings.
6119 save_CFLAGS
="$CFLAGS"
6120 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6121 -Wmissing-prototypes; do
6122 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6124 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6125 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6126 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 cat >conftest.
$ac_ext <<_ACEOF
6133 cat confdefs.h
>>conftest.
$ac_ext
6134 cat >>conftest.
$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6145 rm -f conftest.
$ac_objext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6147 (eval $ac_compile) 2>conftest.er1
6149 grep -v '^ *+' conftest.er1
>conftest.err
6151 cat conftest.err
>&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try
='test -z "$ac_c_werror_flag"
6155 || test ! -s conftest.err'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try
='test -s conftest.$ac_objext'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 eval "$as_acx_Woption=yes"
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.
$ac_ext >&5
6172 eval "$as_acx_Woption=no"
6174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6177 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6179 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6180 loose_warn
="$loose_warn${loose_warn:+ }$option"
6184 CFLAGS
="$save_CFLAGS"
6187 save_CFLAGS
="$CFLAGS"
6188 for option
in -Wc++-compat; do
6189 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6191 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6192 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6193 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 cat >conftest.
$ac_ext <<_ACEOF
6200 cat confdefs.h
>>conftest.
$ac_ext
6201 cat >>conftest.
$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6212 rm -f conftest.
$ac_objext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214 (eval $ac_compile) 2>conftest.er1
6216 grep -v '^ *+' conftest.er1
>conftest.err
6218 cat conftest.err
>&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try
='test -z "$ac_c_werror_flag"
6222 || test ! -s conftest.err'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; } &&
6228 { ac_try
='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 eval "$as_acx_Woption=yes"
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.
$ac_ext >&5
6239 eval "$as_acx_Woption=no"
6241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6244 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6245 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6246 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6247 cxx_compat_warn
="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6251 CFLAGS
="$save_CFLAGS"
6254 save_CFLAGS
="$CFLAGS"
6255 for option
in -Wold-style-definition \
6256 -Wmissing-format-attribute; do
6257 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6259 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6260 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6261 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 cat >conftest.
$ac_ext <<_ACEOF
6268 cat confdefs.h
>>conftest.
$ac_ext
6269 cat >>conftest.
$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6280 rm -f conftest.
$ac_objext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282 (eval $ac_compile) 2>conftest.er1
6284 grep -v '^ *+' conftest.er1
>conftest.err
6286 cat conftest.err
>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try
='test -z "$ac_c_werror_flag"
6290 || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try
='test -s conftest.$ac_objext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 eval "$as_acx_Woption=yes"
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.
$ac_ext >&5
6307 eval "$as_acx_Woption=no"
6309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6312 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6313 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6314 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6315 strict_warn
="$strict_warn${strict_warn:+ }$option"
6319 CFLAGS
="$save_CFLAGS"
6321 if test "$GCC" = yes; then
6322 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6323 -Wno-overlength-strings" >&5
6324 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6325 -Wno-overlength-strings... $ECHO_C" >&6
6326 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 save_CFLAGS
="$CFLAGS"
6330 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros \
6331 -Wno-overlength-strings"
6332 cat >conftest.
$ac_ext <<_ACEOF
6335 cat confdefs.h
>>conftest.
$ac_ext
6336 cat >>conftest.
$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6347 rm -f conftest.
$ac_objext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349 (eval $ac_compile) 2>conftest.er1
6351 grep -v '^ *+' conftest.er1
>conftest.err
6353 cat conftest.err
>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try
='test -z "$ac_c_werror_flag"
6357 || test ! -s conftest.err'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; } &&
6363 { ac_try
='test -s conftest.$ac_objext'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=yes
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.
$ac_ext >&5
6374 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=no
6376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6377 CFLAGS
="$save_CFLAGS"
6379 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6380 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6381 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6382 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6383 -Wno-overlength-strings"
6390 # Check whether --enable-werror-always or --disable-werror-always was given.
6391 if test "${enable_werror_always+set}" = set; then
6392 enableval
="$enable_werror_always"
6395 enable_werror_always
=no
6397 if test $enable_werror_always = yes; then
6398 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6404 # The above macros do nothing if the compiler is not GCC. However, the
6405 # Makefile has more goo to add other flags, so this variabl is used to
6406 # enables warnings only for GCC.
6408 if test "x$GCC" = "xyes"; then
6409 warn_cflags
='$(GCC_WARN_CFLAGS)'
6413 # Enable expensive internal checks
6415 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6419 # Check whether --enable-checking or --disable-checking was given.
6420 if test "${enable_checking+set}" = set; then
6421 enableval
="$enable_checking"
6422 ac_checking_flags
="${enableval}"
6425 # Determine the default checks.
6426 if test x
$is_release = x
; then
6427 ac_checking_flags
=yes
6429 ac_checking_flags
=release
6432 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6433 for check
in release
$ac_checking_flags
6436 # these set all the flags to specific states
6437 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6438 ac_fold_checking
= ; ac_gc_checking
=1 ;
6439 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6440 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6441 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6442 ac_types_checking
= ;;
6443 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6444 ac_fold_checking
= ; ac_gc_checking
= ;
6445 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6446 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6447 ac_tree_checking
= ; ac_valgrind_checking
= ;
6448 ac_types_checking
= ;;
6449 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6450 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6451 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6452 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6453 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6454 ac_types_checking
=1 ;;
6455 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6456 ac_fold_checking
= ; ac_gc_checking
= ;
6457 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6458 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6459 ac_tree_checking
= ; ac_valgrind_checking
= ;
6460 ac_types_checking
= ;;
6461 # these enable particular checks
6462 assert
) ac_assert_checking
=1 ;;
6463 df
) ac_df_checking
=1 ;;
6464 fold) ac_fold_checking
=1 ;;
6465 gc
) ac_gc_checking
=1 ;;
6466 gcac
) ac_gc_always_collect
=1 ;;
6467 misc
) ac_checking
=1 ;;
6468 rtl
) ac_rtl_checking
=1 ;;
6469 rtlflag
) ac_rtlflag_checking
=1 ;;
6470 runtime
) ac_runtime_checking
=1 ;;
6471 tree
) ac_tree_checking
=1 ;;
6472 types
) ac_types_checking
=1 ;;
6473 valgrind
) ac_valgrind_checking
=1 ;;
6474 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6475 echo "$as_me: error: unknown check category $check" >&2;}
6476 { (exit 1); exit 1; }; } ;;
6482 if test x
$ac_checking != x
; then
6484 cat >>confdefs.h
<<\_ACEOF
6485 #define ENABLE_CHECKING 1
6488 nocommon_flag
=-fno-common
6491 if test x
$ac_df_checking != x
; then
6493 cat >>confdefs.h
<<\_ACEOF
6494 #define ENABLE_DF_CHECKING 1
6498 if test x
$ac_assert_checking != x
; then
6500 cat >>confdefs.h
<<\_ACEOF
6501 #define ENABLE_ASSERT_CHECKING 1
6506 if test x
$ac_runtime_checking != x
; then
6508 cat >>confdefs.h
<<\_ACEOF
6509 #define ENABLE_RUNTIME_CHECKING 1
6513 if test x
$ac_tree_checking != x
; then
6515 cat >>confdefs.h
<<\_ACEOF
6516 #define ENABLE_TREE_CHECKING 1
6519 TREEBROWSER
=tree-browser.o
6521 if test x
$ac_types_checking != x
; then
6523 cat >>confdefs.h
<<\_ACEOF
6524 #define ENABLE_TYPES_CHECKING 1
6529 if test x
$ac_rtl_checking != x
; then
6531 cat >>confdefs.h
<<\_ACEOF
6532 #define ENABLE_RTL_CHECKING 1
6536 if test x
$ac_rtlflag_checking != x
; then
6538 cat >>confdefs.h
<<\_ACEOF
6539 #define ENABLE_RTL_FLAG_CHECKING 1
6543 if test x
$ac_gc_checking != x
; then
6545 cat >>confdefs.h
<<\_ACEOF
6546 #define ENABLE_GC_CHECKING 1
6550 if test x
$ac_gc_always_collect != x
; then
6552 cat >>confdefs.h
<<\_ACEOF
6553 #define ENABLE_GC_ALWAYS_COLLECT 1
6557 if test x
$ac_fold_checking != x
; then
6559 cat >>confdefs.h
<<\_ACEOF
6560 #define ENABLE_FOLD_CHECKING 1
6564 valgrind_path_defines
=
6567 if test "${ac_cv_header_valgrind_h+set}" = set; then
6568 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6569 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6570 if test "${ac_cv_header_valgrind_h+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6574 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6576 # Is the header compilable?
6577 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6578 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6579 cat >conftest.
$ac_ext <<_ACEOF
6582 cat confdefs.h
>>conftest.
$ac_ext
6583 cat >>conftest.
$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 $ac_includes_default
6586 #include <valgrind.h>
6588 rm -f conftest.
$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>conftest.er1
6592 grep -v '^ *+' conftest.er1
>conftest.err
6594 cat conftest.err
>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try
='test -z "$ac_c_werror_flag"
6598 || test ! -s conftest.err'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; } &&
6604 { ac_try
='test -s conftest.$ac_objext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_header_compiler
=yes
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.
$ac_ext >&5
6615 ac_header_compiler
=no
6617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619 echo "${ECHO_T}$ac_header_compiler" >&6
6621 # Is the header present?
6622 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6623 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6624 cat >conftest.
$ac_ext <<_ACEOF
6627 cat confdefs.h
>>conftest.
$ac_ext
6628 cat >>conftest.
$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <valgrind.h>
6632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6635 grep -v '^ *+' conftest.er1
>conftest.err
6637 cat conftest.err
>&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } >/dev
/null
; then
6640 if test -s conftest.err
; then
6641 ac_cpp_err
=$ac_c_preproc_warn_flag
6642 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6649 if test -z "$ac_cpp_err"; then
6650 ac_header_preproc
=yes
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.
$ac_ext >&5
6655 ac_header_preproc
=no
6657 rm -f conftest.err conftest.
$ac_ext
6658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6659 echo "${ECHO_T}$ac_header_preproc" >&6
6661 # So? What about this header?
6662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6664 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6665 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6667 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6668 ac_header_preproc
=yes
6671 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6672 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6674 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6676 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6678 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6680 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6682 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6685 ## ------------------------------------------ ##
6686 ## Report this to the AC_PACKAGE_NAME lists. ##
6687 ## ------------------------------------------ ##
6690 sed "s/^/$as_me: WARNING: /" >&2
6693 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6694 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6695 if test "${ac_cv_header_valgrind_h+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 ac_cv_header_valgrind_h
=$ac_header_preproc
6700 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6701 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6704 if test $ac_cv_header_valgrind_h = yes; then
6712 if test x
$ac_valgrind_checking != x
; then
6713 # It is certainly possible that there's valgrind but no valgrind.h.
6714 # GCC relies on making annotations so we must have both.
6715 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6716 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6717 cat >conftest.
$ac_ext <<_ACEOF
6720 cat confdefs.h
>>conftest.
$ac_ext
6721 cat >>conftest.
$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <valgrind/memcheck.h>
6724 #ifndef VALGRIND_DISCARD
6725 #error VALGRIND_DISCARD not defined
6728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6729 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6731 grep -v '^ *+' conftest.er1
>conftest.err
6733 cat conftest.err
>&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } >/dev
/null
; then
6736 if test -s conftest.err
; then
6737 ac_cpp_err
=$ac_c_preproc_warn_flag
6738 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6745 if test -z "$ac_cpp_err"; then
6746 gcc_cv_header_valgrind_memcheck_h
=yes
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.
$ac_ext >&5
6751 gcc_cv_header_valgrind_memcheck_h
=no
6753 rm -f conftest.err conftest.
$ac_ext
6754 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6755 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6756 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6757 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6758 cat >conftest.
$ac_ext <<_ACEOF
6761 cat confdefs.h
>>conftest.
$ac_ext
6762 cat >>conftest.
$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <memcheck.h>
6765 #ifndef VALGRIND_DISCARD
6766 #error VALGRIND_DISCARD not defined
6769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6770 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6772 grep -v '^ *+' conftest.er1
>conftest.err
6774 cat conftest.err
>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } >/dev
/null
; then
6777 if test -s conftest.err
; then
6778 ac_cpp_err
=$ac_c_preproc_warn_flag
6779 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6786 if test -z "$ac_cpp_err"; then
6787 gcc_cv_header_memcheck_h
=yes
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.
$ac_ext >&5
6792 gcc_cv_header_memcheck_h
=no
6794 rm -f conftest.err conftest.
$ac_ext
6795 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6796 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6798 # Prepare PATH_SEPARATOR.
6799 # The user is always right.
6800 if test "${PATH_SEPARATOR+set}" != set; then
6801 echo "#! /bin/sh" >conf$$.sh
6802 echo "exit 0" >>conf$$.sh
6804 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6812 # Find out how to test for executable files. Don't use a zero-byte file,
6813 # as systems may use methods other than mode bits to determine executability.
6814 cat >conf$$.
file <<_ASEOF
6818 chmod +x conf$$.
file
6819 if test -x conf$$.
file >/dev
/null
2>&1; then
6820 ac_executable_p
="test -x"
6822 ac_executable_p
="test -f"
6826 # Extract the first word of "valgrind", so it can be a program name with args.
6827 set dummy valgrind
; ac_word
=$2
6828 echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6830 if test "${ac_cv_path_valgrind_path+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 case "$valgrind_path" in
6835 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6838 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6839 for ac_dir
in $PATH; do
6841 test -z "$ac_dir" && ac_dir
=.
6842 for ac_exec_ext
in '' $ac_executable_extensions; do
6843 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6844 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6845 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6855 valgrind_path
="$ac_cv_path_valgrind_path"
6856 if test -n "$valgrind_path"; then
6857 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6858 echo "${ECHO_T}$valgrind_path" >&6
6860 echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6
6864 if test "x$valgrind_path" = "x" \
6865 ||
(test $have_valgrind_h = no \
6866 && test $gcc_cv_header_memcheck_h = no \
6867 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6868 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6869 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6870 { (exit 1); exit 1; }; }
6872 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6873 valgrind_command
="$valgrind_path -q"
6875 cat >>confdefs.h
<<\_ACEOF
6876 #define ENABLE_VALGRIND_CHECKING 1
6879 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6881 cat >>confdefs.h
<<\_ACEOF
6882 #define HAVE_VALGRIND_MEMCHECK_H 1
6886 if test $gcc_cv_header_memcheck_h = yes; then
6888 cat >>confdefs.h
<<\_ACEOF
6889 #define HAVE_MEMCHECK_H 1
6897 # Enable code coverage collection
6898 # Check whether --enable-coverage or --disable-coverage was given.
6899 if test "${enable_coverage+set}" = set; then
6900 enableval
="$enable_coverage"
6901 case "${enableval}" in
6903 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6906 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6909 # a.k.a. --disable-coverage
6913 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6914 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6915 { (exit 1); exit 1; }; }
6923 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6924 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6925 enableval
="$enable_gather_detailed_mem_stats"
6928 enable_gather_detailed_mem_stats
=no
6930 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6932 cat >>confdefs.h
<<\_ACEOF
6933 #define GATHER_STATISTICS 1
6938 # -------------------------------
6939 # Miscenalleous configure options
6940 # -------------------------------
6944 # Check whether --with-stabs or --without-stabs was given.
6945 if test "${with_stabs+set}" = set; then
6946 withval
="$with_stabs"
6952 # Determine whether or not multilibs are enabled.
6953 # Check whether --enable-multilib or --disable-multilib was given.
6954 if test "${enable_multilib+set}" = set; then
6955 enableval
="$enable_multilib"
6962 # Enable __cxa_atexit for C++.
6963 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6964 if test "${enable___cxa_atexit+set}" = set; then
6965 enableval
="$enable___cxa_atexit"
6969 # Enable C extension for decimal float if target supports it.
6970 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6971 if test "${enable_decimal_float+set}" = set; then
6972 enableval
="$enable_decimal_float"
6974 case $enable_decimal_float in
6975 yes | no | bid | dpd
) ;;
6976 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6977 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
6978 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6979 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
6980 { (exit 1); exit 1; }; } ;;
6986 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
6987 enable_decimal_float
=yes
6990 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6991 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6992 enable_decimal_float
=no
6998 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7000 cat >>confdefs.h
<<_ACEOF
7001 #define ENABLE_DECIMAL_FLOAT $dfp
7005 # x86's use BID format instead of DPD
7006 case x
$enable_decimal_float in
7009 i?
86*-*-linux* | x86_64
*-*-linux*)
7010 enable_decimal_float
=bid
7013 enable_decimal_float
=dpd
7018 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7019 # dependency on libdecnumber.
7020 enable_decimal_float
=dpd
7025 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7027 cat >>confdefs.h
<<_ACEOF
7028 #define ENABLE_DECIMAL_BID_FORMAT $bid
7032 # Enable C extension for fixed-point arithmetic.
7033 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7034 if test "${enable_fixed_point+set}" = set; then
7035 enableval
="$enable_fixed_point"
7044 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7045 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7046 enable_fixed_point
=no
7049 enable_fixed_point
=yes
7054 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7055 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7056 enable_fixed_point
=no
7063 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7065 cat >>confdefs.h
<<_ACEOF
7066 #define ENABLE_FIXED_POINT $fixedpoint
7071 # Pass with no value to take the default
7072 # Pass with a value to specify a thread package
7073 # Check whether --enable-threads or --disable-threads was given.
7074 if test "${enable_threads+set}" = set; then
7075 enableval
="$enable_threads"
7081 # Check whether --enable-tls or --disable-tls was given.
7082 if test "${enable_tls+set}" = set; then
7083 enableval
="$enable_tls"
7087 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7088 Valid choices are 'yes' and 'no'." >&5
7089 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7090 Valid choices are 'yes' and 'no'." >&2;}
7091 { (exit 1); exit 1; }; } ;;
7098 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7099 if test "${enable_objc_gc+set}" = set; then
7100 enableval
="$enable_objc_gc"
7101 if test x
$enable_objc_gc = xno
; then
7111 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7112 if test "${with_dwarf2+set}" = set; then
7113 withval
="$with_dwarf2"
7114 dwarf2
="$with_dwarf2"
7119 # Check whether --enable-shared or --disable-shared was given.
7120 if test "${enable_shared+set}" = set; then
7121 enableval
="$enable_shared"
7123 case $enable_shared in
7127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7128 for pkg
in $enableval; do
7129 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7143 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7144 if test "${with_build_sysroot+set}" = set; then
7145 withval
="$with_build_sysroot"
7150 # Check whether --with-sysroot or --without-sysroot was given.
7151 if test "${with_sysroot+set}" = set; then
7152 withval
="$with_sysroot"
7154 case ${with_sysroot} in
7155 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7156 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7159 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7160 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7162 if test "x$prefix" = xNONE
; then
7163 test_prefix
=/usr
/local
7167 if test "x$exec_prefix" = xNONE
; then
7168 test_exec_prefix
=$test_prefix
7170 test_exec_prefix
=$exec_prefix
7172 case ${TARGET_SYSTEM_ROOT} in
7173 "${test_prefix}"|
"${test_prefix}/"*|\
7174 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7175 '${prefix}'|
'${prefix}/'*|\
7176 '${exec_prefix}'|
'${exec_prefix}/'*)
7177 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7178 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7185 TARGET_SYSTEM_ROOT_DEFINE
=
7186 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7193 # Build with intermodule optimisations
7194 # Check whether --enable-intermodule or --disable-intermodule was given.
7195 if test "${enable_intermodule+set}" = set; then
7196 enableval
="$enable_intermodule"
7197 case ${enable_intermodule} in
7198 yes) onestep
="-onestep";;
7208 # Check whether --with-pkgversion or --without-pkgversion was given.
7209 if test "${with_pkgversion+set}" = set; then
7210 withval
="$with_pkgversion"
7212 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7213 echo "$as_me: error: package version not specified" >&2;}
7214 { (exit 1); exit 1; }; } ;;
7216 *) PKGVERSION
="($withval) " ;;
7226 # Check whether --with-bugurl or --without-bugurl was given.
7227 if test "${with_bugurl+set}" = set; then
7228 withval
="$with_bugurl"
7230 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7231 echo "$as_me: error: bug URL not specified" >&2;}
7232 { (exit 1); exit 1; }; } ;;
7235 *) BUGURL
="$withval"
7239 BUGURL
="http://gcc.gnu.org/bugs.html"
7248 REPORT_BUGS_TO
="<$BUGURL>"
7249 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7256 # Sanity check enable_languages in case someone does not run the toplevel
7257 # configure # script.
7258 # Check whether --enable-languages or --disable-languages was given.
7259 if test "${enable_languages+set}" = set; then
7260 enableval
="$enable_languages"
7261 case ,${enable_languages}, in
7263 # go safe -- we cannot be much sure without the toplevel
7265 # analysis of which target libs are present and usable
7269 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7270 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7271 { (exit 1); exit 1; }; }
7276 enable_languages
=c
,${enable_languages}
7283 # Used by documentation targets
7288 # -------------------------
7289 # Checks for other programs
7290 # -------------------------
7292 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7293 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7294 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7295 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 cat >conftest.
make <<\_ACEOF
7300 @
echo 'ac_maketemp="$(MAKE)"'
7302 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7303 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7304 if test -n "$ac_maketemp"; then
7305 eval ac_cv_prog_make_
${ac_make}_set
=yes
7307 eval ac_cv_prog_make_
${ac_make}_set
=no
7311 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7312 echo "$as_me:$LINENO: result: yes" >&5
7313 echo "${ECHO_T}yes" >&6
7316 echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6
7318 SET_MAKE
="MAKE=${MAKE-make}"
7322 # Find some useful tools
7323 for ac_prog
in gawk mawk nawk
awk
7325 # Extract the first word of "$ac_prog", so it can be a program name with args.
7326 set dummy
$ac_prog; ac_word
=$2
7327 echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7329 if test "${ac_cv_prog_AWK+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 if test -n "$AWK"; then
7333 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7339 test -z "$as_dir" && as_dir
=.
7340 for ac_exec_ext
in '' $ac_executable_extensions; do
7341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342 ac_cv_prog_AWK
="$ac_prog"
7343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 if test -n "$AWK"; then
7353 echo "$as_me:$LINENO: result: $AWK" >&5
7354 echo "${ECHO_T}$AWK" >&6
7356 echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6
7360 test -n "$AWK" && break
7363 # We need awk to create options.c and options.h.
7364 # Bail out if it's missing.
7366 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7367 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7368 { (exit 1); exit 1; }; } ;;
7371 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7372 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7373 if test "${gcc_cv_prog_LN_S+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 rm -f conftestdata_t
7377 echo >conftestdata_f
7378 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7380 gcc_cv_prog_LN_S
="ln -s"
7382 if ln conftestdata_f conftestdata_t
2>/dev
/null
7386 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7388 gcc_cv_prog_LN_S
="cp -p"
7394 rm -f conftestdata_f conftestdata_t
7397 LN_S
="$gcc_cv_prog_LN_S"
7398 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7399 echo "$as_me:$LINENO: result: yes" >&5
7400 echo "${ECHO_T}yes" >&6
7402 if test "$gcc_cv_prog_LN_S" = "ln"; then
7403 echo "$as_me:$LINENO: result: no, using ln" >&5
7404 echo "${ECHO_T}no, using ln" >&6
7406 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7407 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7411 echo "$as_me:$LINENO: checking whether ln works" >&5
7412 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7413 if test "${acx_cv_prog_LN+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 rm -f conftestdata_t
7417 echo >conftestdata_f
7418 if ln conftestdata_f conftestdata_t
2>/dev
/null
7424 rm -f conftestdata_f conftestdata_t
7427 if test $acx_cv_prog_LN = no
; then
7429 echo "$as_me:$LINENO: result: no, using $LN" >&5
7430 echo "${ECHO_T}no, using $LN" >&6
7432 LN
="$acx_cv_prog_LN"
7433 echo "$as_me:$LINENO: result: yes" >&5
7434 echo "${ECHO_T}yes" >&6
7437 if test -n "$ac_tool_prefix"; then
7438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7439 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_prog_RANLIB+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 if test -n "$RANLIB"; then
7446 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir
=.
7453 for ac_exec_ext
in '' $ac_executable_extensions; do
7454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 RANLIB
=$ac_cv_prog_RANLIB
7465 if test -n "$RANLIB"; then
7466 echo "$as_me:$LINENO: result: $RANLIB" >&5
7467 echo "${ECHO_T}$RANLIB" >&6
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7474 if test -z "$ac_cv_prog_RANLIB"; then
7475 ac_ct_RANLIB
=$RANLIB
7476 # Extract the first word of "ranlib", so it can be a program name with args.
7477 set dummy ranlib
; ac_word
=$2
7478 echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 if test -n "$ac_ct_RANLIB"; then
7484 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir
=.
7491 for ac_exec_ext
in '' $ac_executable_extensions; do
7492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7503 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7504 if test -n "$ac_ct_RANLIB"; then
7505 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7506 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7508 echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7512 RANLIB
=$ac_ct_RANLIB
7514 RANLIB
="$ac_cv_prog_RANLIB"
7519 # By default, the Darwin ranlib will not treat common symbols as
7520 # definitions when building the archive table of contents. Other
7521 # ranlibs do that; pass an option to the Darwin ranlib that makes
7522 # it behave similarly.
7530 # Find a good install program. We prefer a C program (faster),
7531 # so one script is as good as another. But avoid the broken or
7532 # incompatible versions:
7533 # SysV /etc/install, /usr/sbin/install
7534 # SunOS /usr/etc/install
7535 # IRIX /sbin/install
7537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7539 # ./install, which can be erroneously created by make from ./install.sh.
7540 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7541 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7542 if test -z "$INSTALL"; then
7543 if test "${ac_cv_path_install+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7547 for ac_dir
in $PATH; do
7548 # Account for people who put trailing slashes in PATH elements.
7550 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7552 # OSF1 and SCO ODT 3.0 have their own names for install.
7553 for ac_prog
in ginstall scoinst
install; do
7554 if test -f $ac_dir/$ac_prog; then
7555 if test $ac_prog = install &&
7556 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7557 # AIX install. It has an incompatible calling convention.
7558 # OSF/1 installbsd also uses dspmsg, but is usable.
7561 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7572 if test "${ac_cv_path_install+set}" = set; then
7573 INSTALL
="$ac_cv_path_install"
7575 # As a last resort, use the slow shell script. We don't cache a
7576 # path for INSTALL within a source directory, because that will
7577 # break other packages using the cache if that directory is
7578 # removed, or if the path is relative.
7579 INSTALL
="$ac_install_sh"
7582 echo "$as_me:$LINENO: result: $INSTALL" >&5
7583 echo "${ECHO_T}$INSTALL" >&6
7585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7586 # It thinks the first close brace ends the variable substitution.
7587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7589 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7592 # See if cmp has --ignore-initial.
7593 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7594 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7595 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 gcc_cv_prog_cmp_skip
=slowcompare
7601 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7602 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7605 gcc_cv_prog_cmp_skip
=gnucompare
7608 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7609 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7610 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7613 gcc_cv_prog_cmp_skip
=fastcompare
7620 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7621 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7622 make_compare_target
=$gcc_cv_prog_cmp_skip
7626 # See if we have the mktemp command.
7627 # Extract the first word of "mktemp", so it can be a program name with args.
7628 set dummy mktemp
; ac_word
=$2
7629 echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7631 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 if test -n "$have_mktemp_command"; then
7635 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir
=.
7642 for ac_exec_ext
in '' $ac_executable_extensions; do
7643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_have_mktemp_command
="yes"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7654 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7655 if test -n "$have_mktemp_command"; then
7656 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7657 echo "${ECHO_T}$have_mktemp_command" >&6
7659 echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6
7664 # See if makeinfo has been installed and is modern enough
7665 # that we can use it.
7667 # Extract the first word of "makeinfo", so it can be a program name with args.
7668 set dummy makeinfo
; ac_word
=$2
7669 echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 if test -n "$MAKEINFO"; then
7675 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir
=.
7682 for ac_exec_ext
in '' $ac_executable_extensions; do
7683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_MAKEINFO
="makeinfo"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 MAKEINFO
=$ac_cv_prog_MAKEINFO
7694 if test -n "$MAKEINFO"; then
7695 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7696 echo "${ECHO_T}$MAKEINFO" >&6
7698 echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6
7702 if test -n "$MAKEINFO"; then
7703 # Found it, now check the version.
7704 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7705 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7706 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7710 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7712 case $ac_prog_version in
7713 '') gcc_cv_prog_makeinfo_modern
=no
;;
7714 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7715 *) gcc_cv_prog_makeinfo_modern
=no
;;
7719 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7720 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7722 gcc_cv_prog_makeinfo_modern
=no
7724 if test $gcc_cv_prog_makeinfo_modern = no
; then
7725 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7728 if test $gcc_cv_prog_makeinfo_modern = no
; then
7729 { echo "$as_me:$LINENO: WARNING:
7730 *** Makeinfo is missing or too old.
7731 *** Info documentation will not be built." >&5
7732 echo "$as_me: WARNING:
7733 *** Makeinfo is missing or too old.
7734 *** Info documentation will not be built." >&2;}
7741 # Is pod2man recent enough to regenerate manpages?
7742 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7743 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7744 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746 echo "${ECHO_T}yes" >&6
7747 GENERATED_MANPAGES
=generated-manpages
7749 echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6
7755 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7760 # Extract the first word of "$ac_prog", so it can be a program name with args.
7761 set dummy
$ac_prog; ac_word
=$2
7762 echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7764 if test "${ac_cv_prog_FLEX+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 if test -n "$FLEX"; then
7768 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir
=.
7775 for ac_exec_ext
in '' $ac_executable_extensions; do
7776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777 ac_cv_prog_FLEX
="$ac_prog"
7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 FLEX
=$ac_cv_prog_FLEX
7787 if test -n "$FLEX"; then
7788 echo "$as_me:$LINENO: result: $FLEX" >&5
7789 echo "${ECHO_T}$FLEX" >&6
7791 echo "$as_me:$LINENO: result: no" >&5
7792 echo "${ECHO_T}no" >&6
7795 test -n "$FLEX" && break
7797 test -n "$FLEX" || FLEX
="$MISSING flex"
7801 for ac_prog
in bison
7803 # Extract the first word of "$ac_prog", so it can be a program name with args.
7804 set dummy
$ac_prog; ac_word
=$2
7805 echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7807 if test "${ac_cv_prog_BISON+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 if test -n "$BISON"; then
7811 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7817 test -z "$as_dir" && as_dir
=.
7818 for ac_exec_ext
in '' $ac_executable_extensions; do
7819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820 ac_cv_prog_BISON
="$ac_prog"
7821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 BISON
=$ac_cv_prog_BISON
7830 if test -n "$BISON"; then
7831 echo "$as_me:$LINENO: result: $BISON" >&5
7832 echo "${ECHO_T}$BISON" >&6
7834 echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6
7838 test -n "$BISON" && break
7840 test -n "$BISON" || BISON
="$MISSING bison"
7843 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7844 # check for build == host before using them.
7847 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7848 && test -d ..
/binutils
; then
7849 NM
='$(objdir)/../binutils/nm-new'
7851 # Extract the first word of "nm", so it can be a program name with args.
7852 set dummy nm
; ac_word
=$2
7853 echo "$as_me:$LINENO: checking for $ac_word" >&5
7854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7855 if test "${ac_cv_prog_NM+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 if test -n "$NM"; then
7859 ac_cv_prog_NM
="$NM" # Let the user override the test.
7861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir
=.
7866 for ac_exec_ext
in '' $ac_executable_extensions; do
7867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7879 if test -n "$NM"; then
7880 echo "$as_me:$LINENO: result: $NM" >&5
7881 echo "${ECHO_T}$NM" >&6
7883 echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7890 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7891 && test -d ..
/binutils
; then
7892 AR
='$(objdir)/../binutils/ar'
7894 # Extract the first word of "ar", so it can be a program name with args.
7895 set dummy
ar; ac_word
=$2
7896 echo "$as_me:$LINENO: checking for $ac_word" >&5
7897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7898 if test "${ac_cv_prog_AR+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 if test -n "$AR"; then
7902 ac_cv_prog_AR
="$AR" # Let the user override the test.
7904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7908 test -z "$as_dir" && as_dir
=.
7909 for ac_exec_ext
in '' $ac_executable_extensions; do
7910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7922 if test -n "$AR"; then
7923 echo "$as_me:$LINENO: result: $AR" >&5
7924 echo "${ECHO_T}$AR" >&6
7926 echo "$as_me:$LINENO: result: no" >&5
7927 echo "${ECHO_T}no" >&6
7933 # --------------------
7934 # Checks for C headers
7935 # --------------------
7937 echo "$as_me:$LINENO: checking for GNU C library" >&5
7938 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7939 if test "${gcc_cv_glibc+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 cat >conftest.
$ac_ext <<_ACEOF
7945 cat confdefs.h
>>conftest.
$ac_ext
7946 cat >>conftest.
$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 #include <features.h>
7953 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7954 #error Not a GNU C library system
7960 rm -f conftest.
$ac_objext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>conftest.er1
7964 grep -v '^ *+' conftest.er1
>conftest.err
7966 cat conftest.err
>&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try
='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try
='test -s conftest.$ac_objext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.
$ac_ext >&5
7989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7992 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7993 echo "${ECHO_T}$gcc_cv_glibc" >&6
7994 if test $gcc_cv_glibc = yes; then
7996 cat >>confdefs.h
<<\_ACEOF
7997 #define _GNU_SOURCE 1
8002 # Need to reject headers which give warnings, so that the -Werror bootstrap
8003 # works later. *sigh* This needs to come before all header checks.
8005 ac_c_preproc_warn_flag
=yes
8007 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8008 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8009 if test "${ac_cv_header_stdc+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 cat >conftest.
$ac_ext <<_ACEOF
8015 cat confdefs.h
>>conftest.
$ac_ext
8016 cat >>conftest.
$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8031 rm -f conftest.
$ac_objext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033 (eval $ac_compile) 2>conftest.er1
8035 grep -v '^ *+' conftest.er1
>conftest.err
8037 cat conftest.err
>&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try
='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try
='test -s conftest.$ac_objext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_cv_header_stdc
=yes
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.
$ac_ext >&5
8058 ac_cv_header_stdc
=no
8060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8062 if test $ac_cv_header_stdc = yes; then
8063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8064 cat >conftest.
$ac_ext <<_ACEOF
8067 cat confdefs.h
>>conftest.
$ac_ext
8068 cat >>conftest.
$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8074 $EGREP "memchr" >/dev
/null
2>&1; then
8077 ac_cv_header_stdc
=no
8083 if test $ac_cv_header_stdc = yes; then
8084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8085 cat >conftest.
$ac_ext <<_ACEOF
8088 cat confdefs.h
>>conftest.
$ac_ext
8089 cat >>conftest.
$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8095 $EGREP "free" >/dev
/null
2>&1; then
8098 ac_cv_header_stdc
=no
8104 if test $ac_cv_header_stdc = yes; then
8105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8106 if test "$cross_compiling" = yes; then
8109 cat >conftest.
$ac_ext <<_ACEOF
8112 cat confdefs.h
>>conftest.
$ac_ext
8113 cat >>conftest.
$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8116 #if ((' ' & 0x0FF) == 0x020)
8117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8120 # define ISLOWER(c) \
8121 (('a' <= (c) && (c) <= 'i') \
8122 || ('j' <= (c) && (c) <= 'r') \
8123 || ('s' <= (c) && (c) <= 'z'))
8124 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8127 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8132 for (i = 0; i < 256; i++)
8133 if (XOR (islower (i), ISLOWER (i))
8134 || toupper (i) != TOUPPER (i))
8139 rm -f conftest
$ac_exeext
8140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141 (eval $ac_link) 2>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8152 echo "$as_me: program exited with status $ac_status" >&5
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.
$ac_ext >&5
8157 ac_cv_header_stdc
=no
8159 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8163 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8164 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8165 if test $ac_cv_header_stdc = yes; then
8167 cat >>confdefs.h
<<\_ACEOF
8168 #define STDC_HEADERS 1
8173 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8174 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8175 if test "${ac_cv_header_time+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 cat >conftest.
$ac_ext <<_ACEOF
8181 cat confdefs.h
>>conftest.
$ac_ext
8182 cat >>conftest.
$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8184 #include <sys/types.h>
8185 #include <sys/time.h>
8191 if ((struct tm *) 0)
8197 rm -f conftest.
$ac_objext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8199 (eval $ac_compile) 2>conftest.er1
8201 grep -v '^ *+' conftest.er1
>conftest.err
8203 cat conftest.err
>&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } &&
8206 { ac_try
='test -z "$ac_c_werror_flag"
8207 || test ! -s conftest.err'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; } &&
8213 { ac_try
='test -s conftest.$ac_objext'
8214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
8219 ac_cv_header_time
=yes
8221 echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.
$ac_ext >&5
8224 ac_cv_header_time
=no
8226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8228 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8229 echo "${ECHO_T}$ac_cv_header_time" >&6
8230 if test $ac_cv_header_time = yes; then
8232 cat >>confdefs.h
<<\_ACEOF
8233 #define TIME_WITH_SYS_TIME 1
8238 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8239 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8240 if test "${gcc_cv_header_string+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 cat >conftest.
$ac_ext <<_ACEOF
8246 cat confdefs.h
>>conftest.
$ac_ext
8247 cat >>conftest.
$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8250 #include <strings.h>
8259 rm -f conftest.
$ac_objext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8261 (eval $ac_compile) 2>conftest.er1
8263 grep -v '^ *+' conftest.er1
>conftest.err
8265 cat conftest.err
>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try
='test -z "$ac_c_werror_flag"
8269 || test ! -s conftest.err'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try
='test -s conftest.$ac_objext'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8281 gcc_cv_header_string
=yes
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.
$ac_ext >&5
8286 gcc_cv_header_string
=no
8288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8290 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8291 echo "${ECHO_T}$gcc_cv_header_string" >&6
8292 if test $gcc_cv_header_string = yes; then
8294 cat >>confdefs.h
<<\_ACEOF
8295 #define STRING_WITH_STRINGS 1
8300 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8301 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8302 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 cat >conftest.
$ac_ext <<_ACEOF
8308 cat confdefs.h
>>conftest.
$ac_ext
8309 cat >>conftest.
$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 #include <sys/types.h>
8312 #include <sys/wait.h>
8314 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8317 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8325 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8330 rm -f conftest.
$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332 (eval $ac_compile) 2>conftest.er1
8334 grep -v '^ *+' conftest.er1
>conftest.err
8336 cat conftest.err
>&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try
='test -z "$ac_c_werror_flag"
8340 || test ! -s conftest.err'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; } &&
8346 { ac_try
='test -s conftest.$ac_objext'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8352 ac_cv_header_sys_wait_h
=yes
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.
$ac_ext >&5
8357 ac_cv_header_sys_wait_h
=no
8359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8361 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8362 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8363 if test $ac_cv_header_sys_wait_h = yes; then
8365 cat >>confdefs.h
<<\_ACEOF
8366 #define HAVE_SYS_WAIT_H 1
8393 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8394 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8395 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8396 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8398 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8399 echo "$as_me:$LINENO: checking for $ac_header" >&5
8400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 cat >conftest.
$ac_ext <<_ACEOF
8407 cat confdefs.h
>>conftest.
$ac_ext
8408 cat >>conftest.
$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 #include <$ac_header>
8412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8415 grep -v '^ *+' conftest.er1
>conftest.err
8417 cat conftest.err
>&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } >/dev
/null
; then
8420 if test -s conftest.err
; then
8421 ac_cpp_err
=$ac_c_preproc_warn_flag
8422 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8429 if test -z "$ac_cpp_err"; then
8430 eval "$as_ac_Header=yes"
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.
$ac_ext >&5
8435 eval "$as_ac_Header=no"
8437 rm -f conftest.err conftest.
$ac_ext
8439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8442 cat >>confdefs.h
<<_ACEOF
8443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8450 # Check for thread headers.
8451 echo "$as_me:$LINENO: checking for thread.h" >&5
8452 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8453 if test "${ac_cv_header_thread_h+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 cat >conftest.
$ac_ext <<_ACEOF
8459 cat confdefs.h
>>conftest.
$ac_ext
8460 cat >>conftest.
$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8465 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8467 grep -v '^ *+' conftest.er1
>conftest.err
8469 cat conftest.err
>&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } >/dev
/null
; then
8472 if test -s conftest.err
; then
8473 ac_cpp_err
=$ac_c_preproc_warn_flag
8474 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8481 if test -z "$ac_cpp_err"; then
8482 ac_cv_header_thread_h
=yes
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.
$ac_ext >&5
8487 ac_cv_header_thread_h
=no
8489 rm -f conftest.err conftest.
$ac_ext
8491 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8492 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8493 if test $ac_cv_header_thread_h = yes; then
8499 echo "$as_me:$LINENO: checking for pthread.h" >&5
8500 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8501 if test "${ac_cv_header_pthread_h+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 cat >conftest.
$ac_ext <<_ACEOF
8507 cat confdefs.h
>>conftest.
$ac_ext
8508 cat >>conftest.
$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 #include <pthread.h>
8512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8513 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
8520 if test -s conftest.err
; then
8521 ac_cpp_err
=$ac_c_preproc_warn_flag
8522 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8529 if test -z "$ac_cpp_err"; then
8530 ac_cv_header_pthread_h
=yes
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.
$ac_ext >&5
8535 ac_cv_header_pthread_h
=no
8537 rm -f conftest.err conftest.
$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8540 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8541 if test $ac_cv_header_pthread_h = yes; then
8548 # These tests can't be done till we know if we have limits.h.
8549 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8550 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8551 if test "${gcc_cv_decl_char_bit+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 cat >conftest.
$ac_ext <<_ACEOF
8557 cat confdefs.h
>>conftest.
$ac_ext
8558 cat >>conftest.
$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8560 #ifdef HAVE_LIMITS_H
8567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8568 $EGREP "found" >/dev
/null
2>&1; then
8569 gcc_cv_decl_char_bit
=yes
8571 gcc_cv_decl_char_bit
=no
8577 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8578 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8579 if test $gcc_cv_decl_char_bit = no
; then
8580 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8581 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8582 if test "${gcc_cv_c_nbby+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 while test $i -lt 65; do
8588 cat >conftest.
$ac_ext <<_ACEOF
8591 cat confdefs.h
>>conftest.
$ac_ext
8592 cat >>conftest.
$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8599 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8600 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8606 rm -f conftest.
$ac_objext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608 (eval $ac_compile) 2>conftest.er1
8610 grep -v '^ *+' conftest.er1
>conftest.err
8612 cat conftest.err
>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try
='test -z "$ac_c_werror_flag"
8616 || test ! -s conftest.err'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try
='test -s conftest.$ac_objext'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 gcc_cv_c_nbby
=$i; break
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.
$ac_ext >&5
8634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8637 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8640 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8641 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8642 if test $gcc_cv_c_nbby = failed
; then
8643 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8644 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8645 { (exit 1); exit 1; }; }
8648 cat >>confdefs.h
<<_ACEOF
8649 #define CHAR_BIT $gcc_cv_c_nbby
8654 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8655 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8656 if test "${ac_cv_c_bigendian+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 # See if sys/param.h defines the BYTE_ORDER macro.
8660 cat >conftest.
$ac_ext <<_ACEOF
8663 cat confdefs.h
>>conftest.
$ac_ext
8664 cat >>conftest.
$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 #include <sys/types.h>
8667 #include <sys/param.h>
8672 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8680 rm -f conftest.
$ac_objext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8682 (eval $ac_compile) 2>conftest.er1
8684 grep -v '^ *+' conftest.er1
>conftest.err
8686 cat conftest.err
>&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try
='test -z "$ac_c_werror_flag"
8690 || test ! -s conftest.err'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; } &&
8696 { ac_try
='test -s conftest.$ac_objext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 # It does; now see whether it defined to BIG_ENDIAN or not.
8703 cat >conftest.
$ac_ext <<_ACEOF
8706 cat confdefs.h
>>conftest.
$ac_ext
8707 cat >>conftest.
$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 #include <sys/types.h>
8710 #include <sys/param.h>
8715 #if BYTE_ORDER != BIG_ENDIAN
8723 rm -f conftest.
$ac_objext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725 (eval $ac_compile) 2>conftest.er1
8727 grep -v '^ *+' conftest.er1
>conftest.err
8729 cat conftest.err
>&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try
='test -z "$ac_c_werror_flag"
8733 || test ! -s conftest.err'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try
='test -s conftest.$ac_objext'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 ac_cv_c_bigendian
=yes
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.
$ac_ext >&5
8750 ac_cv_c_bigendian
=no
8752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.
$ac_ext >&5
8757 # It does not; compile a test program.
8758 if test "$cross_compiling" = yes; then
8759 # try to guess the endianness by grepping values into an object file
8760 ac_cv_c_bigendian
=unknown
8761 cat >conftest.
$ac_ext <<_ACEOF
8764 cat confdefs.h
>>conftest.
$ac_ext
8765 cat >>conftest.
$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8768 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8769 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8770 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8771 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8772 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8776 _ascii (); _ebcdic ();
8781 rm -f conftest.
$ac_objext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783 (eval $ac_compile) 2>conftest.er1
8785 grep -v '^ *+' conftest.er1
>conftest.err
8787 cat conftest.err
>&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } &&
8790 { ac_try
='test -z "$ac_c_werror_flag"
8791 || test ! -s conftest.err'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try
='test -s conftest.$ac_objext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8804 ac_cv_c_bigendian
=yes
8806 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8807 if test "$ac_cv_c_bigendian" = unknown
; then
8808 ac_cv_c_bigendian
=no
8810 # finding both strings is unlikely to happen, but who knows?
8811 ac_cv_c_bigendian
=unknown
8815 echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.
$ac_ext >&5
8819 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8821 cat >conftest.
$ac_ext <<_ACEOF
8824 cat confdefs.h
>>conftest.
$ac_ext
8825 cat >>conftest.
$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8830 /* Are we little or big endian? From Harbison&Steele. */
8834 char c[sizeof (long)];
8837 exit (u.c[sizeof (long) - 1] == 1);
8840 rm -f conftest
$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 ac_cv_c_bigendian
=no
8853 echo "$as_me: program exited with status $ac_status" >&5
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.
$ac_ext >&5
8858 ac_cv_c_bigendian
=yes
8860 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8863 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8866 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8867 case $ac_cv_c_bigendian in
8870 cat >>confdefs.h
<<\_ACEOF
8871 #define WORDS_BIGENDIAN 1
8877 { { echo "$as_me:$LINENO: error: unknown endianness
8878 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8879 echo "$as_me: error: unknown endianness
8880 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8881 { (exit 1); exit 1; }; } ;;
8890 # These libraries may be used by collect2.
8891 # We may need a special search path to get them linked.
8892 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8893 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8894 if test "${gcc_cv_collect2_libs+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 for libs
in '' -lld -lmld \
8899 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8900 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8903 cat >conftest.
$ac_ext <<_ACEOF
8906 cat confdefs.h
>>conftest.
$ac_ext
8907 cat >>conftest.
$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 /* Override any gcc2 internal prototype to avoid an error. */
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8925 rm -f conftest.
$ac_objext conftest
$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>conftest.er1
8929 grep -v '^ *+' conftest.er1
>conftest.err
8931 cat conftest.err
>&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try
='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try
='test -s conftest$ac_exeext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 gcc_cv_collect2_libs
="$libs"; break
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.
$ac_ext >&5
8953 rm -f conftest.err conftest.
$ac_objext \
8954 conftest
$ac_exeext conftest.
$ac_ext
8957 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8959 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8960 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8961 case $gcc_cv_collect2_libs in
8963 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8967 # When building Ada code on Alpha, we need exc_resume which is usually in
8968 # -lexc. So test for it.
8971 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8972 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8973 if test "${ac_cv_search_exc_resume+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 ac_func_search_save_LIBS
=$LIBS
8977 ac_cv_search_exc_resume
=no
8978 cat >conftest.
$ac_ext <<_ACEOF
8981 cat confdefs.h
>>conftest.
$ac_ext
8982 cat >>conftest.
$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8985 /* Override any gcc2 internal prototype to avoid an error. */
8989 /* We use char because int might match the return type of a gcc2
8990 builtin and then its argument prototype would still apply. */
9000 rm -f conftest.
$ac_objext conftest
$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>conftest.er1
9004 grep -v '^ *+' conftest.er1
>conftest.err
9006 cat conftest.err
>&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try
='test -z "$ac_c_werror_flag"
9010 || test ! -s conftest.err'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try
='test -s conftest$ac_exeext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_search_exc_resume
="none required"
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.
$ac_ext >&5
9028 rm -f conftest.err conftest.
$ac_objext \
9029 conftest
$ac_exeext conftest.
$ac_ext
9030 if test "$ac_cv_search_exc_resume" = no
; then
9031 for ac_lib
in exc
; do
9032 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9033 cat >conftest.
$ac_ext <<_ACEOF
9036 cat confdefs.h
>>conftest.
$ac_ext
9037 cat >>conftest.
$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9040 /* Override any gcc2 internal prototype to avoid an error. */
9044 /* We use char because int might match the return type of a gcc2
9045 builtin and then its argument prototype would still apply. */
9055 rm -f conftest.
$ac_objext conftest
$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057 (eval $ac_link) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1
>conftest.err
9061 cat conftest.err
>&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try
='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try
='test -s conftest$ac_exeext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_cv_search_exc_resume
="-l$ac_lib"
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.
$ac_ext >&5
9084 rm -f conftest.err conftest.
$ac_objext \
9085 conftest
$ac_exeext conftest.
$ac_ext
9088 LIBS
=$ac_func_search_save_LIBS
9090 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9091 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9092 if test "$ac_cv_search_exc_resume" != no
; then
9093 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9101 # Some systems put ldexp and frexp in libm instead of libc; assume
9102 # they're both in the same place. jcf-dump needs them.
9105 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9106 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9107 if test "${ac_cv_search_ldexp+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 ac_func_search_save_LIBS
=$LIBS
9111 ac_cv_search_ldexp
=no
9112 cat >conftest.
$ac_ext <<_ACEOF
9115 cat confdefs.h
>>conftest.
$ac_ext
9116 cat >>conftest.
$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9119 /* Override any gcc2 internal prototype to avoid an error. */
9123 /* We use char because int might match the return type of a gcc2
9124 builtin and then its argument prototype would still apply. */
9134 rm -f conftest.
$ac_objext conftest
$ac_exeext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>conftest.er1
9138 grep -v '^ *+' conftest.er1
>conftest.err
9140 cat conftest.err
>&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try
='test -z "$ac_c_werror_flag"
9144 || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try
='test -s conftest$ac_exeext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 ac_cv_search_ldexp
="none required"
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.
$ac_ext >&5
9162 rm -f conftest.err conftest.
$ac_objext \
9163 conftest
$ac_exeext conftest.
$ac_ext
9164 if test "$ac_cv_search_ldexp" = no
; then
9166 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9167 cat >conftest.
$ac_ext <<_ACEOF
9170 cat confdefs.h
>>conftest.
$ac_ext
9171 cat >>conftest.
$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9174 /* Override any gcc2 internal prototype to avoid an error. */
9178 /* We use char because int might match the return type of a gcc2
9179 builtin and then its argument prototype would still apply. */
9189 rm -f conftest.
$ac_objext conftest
$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1
>conftest.err
9195 cat conftest.err
>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try
='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try
='test -s conftest$ac_exeext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_cv_search_ldexp
="-l$ac_lib"
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.
$ac_ext >&5
9218 rm -f conftest.err conftest.
$ac_objext \
9219 conftest
$ac_exeext conftest.
$ac_ext
9222 LIBS
=$ac_func_search_save_LIBS
9224 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9225 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9226 if test "$ac_cv_search_ldexp" != no
; then
9227 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9235 # Use <inttypes.h> only if it exists,
9236 # doesn't clash with <sys/types.h>, and declares intmax_t.
9237 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9238 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9239 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 cat >conftest.
$ac_ext <<_ACEOF
9245 cat confdefs.h
>>conftest.
$ac_ext
9246 cat >>conftest.
$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 #include <sys/types.h>
9249 #include <inttypes.h>
9258 rm -f conftest.
$ac_objext
9259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9260 (eval $ac_compile) 2>conftest.er1
9262 grep -v '^ *+' conftest.er1
>conftest.err
9264 cat conftest.err
>&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } &&
9267 { ac_try
='test -z "$ac_c_werror_flag"
9268 || test ! -s conftest.err'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; } &&
9274 { ac_try
='test -s conftest.$ac_objext'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; }; then
9280 gcc_cv_header_inttypes_h
=yes
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.
$ac_ext >&5
9285 gcc_cv_header_inttypes_h
=no
9287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9290 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9291 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9292 if test $gcc_cv_header_inttypes_h = yes; then
9294 cat >>confdefs.h
<<\_ACEOF
9295 #define HAVE_INTTYPES_H 1
9337 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9338 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9339 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9340 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
9342 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9343 echo "$as_me:$LINENO: checking for $ac_func" >&5
9344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9345 if eval "test \"\${$as_ac_var+set}\" = set"; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 cat >conftest.
$ac_ext <<_ACEOF
9351 cat confdefs.h
>>conftest.
$ac_ext
9352 cat >>conftest.
$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9356 #define $ac_func innocuous_$ac_func
9358 /* System header to define __stub macros and hopefully few prototypes,
9359 which can conflict with char $ac_func (); below.
9360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9361 <limits.h> exists even on freestanding compilers. */
9364 # include <limits.h>
9366 # include <assert.h>
9371 /* Override any gcc2 internal prototype to avoid an error. */
9376 /* We use char because int might match the return type of a gcc2
9377 builtin and then its argument prototype would still apply. */
9379 /* The GNU C library defines this for functions which it implements
9380 to always fail with ENOSYS. Some functions are actually named
9381 something starting with __ and the normal name is an alias. */
9382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9385 char (*f) () = $ac_func;
9394 return f != $ac_func;
9399 rm -f conftest.
$ac_objext conftest
$ac_exeext
9400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401 (eval $ac_link) 2>conftest.er1
9403 grep -v '^ *+' conftest.er1
>conftest.err
9405 cat conftest.err
>&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
9408 { ac_try
='test -z "$ac_c_werror_flag"
9409 || test ! -s conftest.err'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; } &&
9415 { ac_try
='test -s conftest$ac_exeext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9421 eval "$as_ac_var=yes"
9423 echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.
$ac_ext >&5
9426 eval "$as_ac_var=no"
9428 rm -f conftest.err conftest.
$ac_objext \
9429 conftest
$ac_exeext conftest.
$ac_ext
9431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9433 if test `eval echo '${'$as_ac_var'}'` = yes; then
9434 cat >>confdefs.h
<<_ACEOF
9435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9442 if test x
$ac_cv_func_mbstowcs = xyes
; then
9443 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9444 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9445 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 if test "$cross_compiling" = yes; then
9449 gcc_cv_func_mbstowcs_works
=yes
9451 cat >conftest.
$ac_ext <<_ACEOF
9454 cat confdefs.h
>>conftest.
$ac_ext
9455 cat >>conftest.
$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9464 rm -f conftest
$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; }; then
9475 gcc_cv_func_mbstowcs_works
=yes
9477 echo "$as_me: program exited with status $ac_status" >&5
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.
$ac_ext >&5
9482 gcc_cv_func_mbstowcs_works
=no
9484 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9487 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9488 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9489 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9491 cat >>confdefs.h
<<\_ACEOF
9492 #define HAVE_WORKING_MBSTOWCS 1
9498 echo "$as_me:$LINENO: checking for ssize_t" >&5
9499 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9500 if test "${ac_cv_type_ssize_t+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 cat >conftest.
$ac_ext <<_ACEOF
9506 cat confdefs.h
>>conftest.
$ac_ext
9507 cat >>conftest.
$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 $ac_includes_default
9515 if (sizeof (ssize_t))
9521 rm -f conftest.
$ac_objext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523 (eval $ac_compile) 2>conftest.er1
9525 grep -v '^ *+' conftest.er1
>conftest.err
9527 cat conftest.err
>&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } &&
9530 { ac_try
='test -z "$ac_c_werror_flag"
9531 || test ! -s conftest.err'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; } &&
9537 { ac_try
='test -s conftest.$ac_objext'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 ac_cv_type_ssize_t
=yes
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.
$ac_ext >&5
9548 ac_cv_type_ssize_t
=no
9550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9552 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9553 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9554 if test $ac_cv_type_ssize_t = yes; then
9558 cat >>confdefs.h
<<_ACEOF
9565 # Try to determine the array type of the second argument of getgroups
9566 # for the target system (int or gid_t).
9567 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9568 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9569 if test "${ac_cv_type_uid_t+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 cat >conftest.
$ac_ext <<_ACEOF
9575 cat confdefs.h
>>conftest.
$ac_ext
9576 cat >>conftest.
$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 #include <sys/types.h>
9581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9582 $EGREP "uid_t" >/dev
/null
2>&1; then
9583 ac_cv_type_uid_t
=yes
9590 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9591 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9592 if test $ac_cv_type_uid_t = no
; then
9594 cat >>confdefs.h
<<\_ACEOF
9599 cat >>confdefs.h
<<\_ACEOF
9605 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9606 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9607 if test "${ac_cv_type_getgroups+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 if test "$cross_compiling" = yes; then
9611 ac_cv_type_getgroups
=cross
9613 cat >conftest.
$ac_ext <<_ACEOF
9616 cat confdefs.h
>>conftest.
$ac_ext
9617 cat >>conftest.
$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 /* Thanks to Mike Rendell for this test. */
9620 #include <sys/types.h>
9623 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9630 union { gid_t gval; long lval; } val;
9633 for (i = 0; i < NGID; i++)
9634 gidset[i] = val.gval;
9635 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9637 /* Exit non-zero if getgroups seems to require an array of ints. This
9638 happens when gid_t is short but getgroups modifies an array of ints. */
9639 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9642 rm -f conftest
$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 ac_cv_type_getgroups
=gid_t
9655 echo "$as_me: program exited with status $ac_status" >&5
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.
$ac_ext >&5
9660 ac_cv_type_getgroups
=int
9662 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9664 if test $ac_cv_type_getgroups = cross
; then
9665 cat >conftest.
$ac_ext <<_ACEOF
9668 cat confdefs.h
>>conftest.
$ac_ext
9669 cat >>conftest.
$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9675 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9676 ac_cv_type_getgroups
=gid_t
9678 ac_cv_type_getgroups
=int
9684 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9685 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9687 cat >>confdefs.h
<<_ACEOF
9688 #define GETGROUPS_T $ac_cv_type_getgroups
9692 if test "${target}" = "${build}"; then
9693 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9696 # This condition may need some tweaking. It should include all
9697 # targets where the array type of the second argument of getgroups
9698 # is int and the type of gid_t is not equivalent to int.
9699 *-*-sunos* |
*-*-ultrix*)
9700 TARGET_GETGROUPS_T
=int
9703 TARGET_GETGROUPS_T
=gid_t
9710 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9711 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9712 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.
$ac_ext <<_ACEOF
9718 cat confdefs.h
>>conftest.
$ac_ext
9719 cat >>conftest.
$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 #include <sys/mman.h>
9723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9724 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9726 grep -v '^ *+' conftest.er1
>conftest.err
9728 cat conftest.err
>&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } >/dev
/null
; then
9731 if test -s conftest.err
; then
9732 ac_cpp_err
=$ac_c_preproc_warn_flag
9733 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9740 if test -z "$ac_cpp_err"; then
9741 ac_cv_header_sys_mman_h
=yes
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.
$ac_ext >&5
9746 ac_cv_header_sys_mman_h
=no
9748 rm -f conftest.err conftest.
$ac_ext
9750 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9751 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9752 if test $ac_cv_header_sys_mman_h = yes; then
9753 gcc_header_sys_mman_h
=yes
9755 gcc_header_sys_mman_h
=no
9758 echo "$as_me:$LINENO: checking for mmap" >&5
9759 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9760 if test "${ac_cv_func_mmap+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.
$ac_ext <<_ACEOF
9766 cat confdefs.h
>>conftest.
$ac_ext
9767 cat >>conftest.
$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9771 #define mmap innocuous_mmap
9773 /* System header to define __stub macros and hopefully few prototypes,
9774 which can conflict with char mmap (); below.
9775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776 <limits.h> exists even on freestanding compilers. */
9779 # include <limits.h>
9781 # include <assert.h>
9786 /* Override any gcc2 internal prototype to avoid an error. */
9791 /* We use char because int might match the return type of a gcc2
9792 builtin and then its argument prototype would still apply. */
9794 /* The GNU C library defines this for functions which it implements
9795 to always fail with ENOSYS. Some functions are actually named
9796 something starting with __ and the normal name is an alias. */
9797 #if defined (__stub_mmap) || defined (__stub___mmap)
9800 char (*f) () = mmap;
9814 rm -f conftest.
$ac_objext conftest
$ac_exeext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816 (eval $ac_link) 2>conftest.er1
9818 grep -v '^ *+' conftest.er1
>conftest.err
9820 cat conftest.err
>&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try
='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try
='test -s conftest$ac_exeext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.
$ac_ext >&5
9843 rm -f conftest.err conftest.
$ac_objext \
9844 conftest
$ac_exeext conftest.
$ac_ext
9846 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9847 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9848 if test $ac_cv_func_mmap = yes; then
9854 if test "$gcc_header_sys_mman_h" != yes \
9855 ||
test "$gcc_func_mmap" != yes; then
9856 gcc_cv_func_mmap_file
=no
9857 gcc_cv_func_mmap_dev_zero
=no
9858 gcc_cv_func_mmap_anon
=no
9860 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9861 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9862 if test "${gcc_cv_func_mmap_file+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 # Add a system to this blacklist if
9866 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9867 # memory area containing the same data that you'd get if you applied
9868 # read() to the same fd. The only system known to have a problem here
9869 # is VMS, where text files have record structure.
9872 gcc_cv_func_mmap_file
=no
;;
9874 gcc_cv_func_mmap_file
=yes;;
9877 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9878 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9879 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9880 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9881 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 # Add a system to this blacklist if it has mmap() but /dev/zero
9885 # does not exist, or if mmapping /dev/zero does not give anonymous
9886 # zeroed pages with both the following properties:
9887 # 1. If you map N consecutive pages in with one call, and then
9888 # unmap any subset of those pages, the pages that were not
9889 # explicitly unmapped remain accessible.
9890 # 2. If you map two adjacent blocks of memory and then unmap them
9891 # both at once, they must both go away.
9892 # Systems known to be in this category are Windows (all variants),
9895 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9896 gcc_cv_func_mmap_dev_zero
=no
;;
9898 gcc_cv_func_mmap_dev_zero
=yes;;
9901 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9902 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9904 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9905 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9906 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9907 if test "${gcc_cv_decl_map_anon+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 cat >conftest.
$ac_ext <<_ACEOF
9913 cat confdefs.h
>>conftest.
$ac_ext
9914 cat >>conftest.
$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 #include <sys/types.h>
9917 #include <sys/mman.h>
9920 #ifndef MAP_ANONYMOUS
9921 #define MAP_ANONYMOUS MAP_ANON
9927 int n = MAP_ANONYMOUS;
9932 rm -f conftest.
$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934 (eval $ac_compile) 2>conftest.er1
9936 grep -v '^ *+' conftest.er1
>conftest.err
9938 cat conftest.err
>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try
='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try
='test -s conftest.$ac_objext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 gcc_cv_decl_map_anon
=yes
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.
$ac_ext >&5
9959 gcc_cv_decl_map_anon
=no
9961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9963 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9964 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9966 if test $gcc_cv_decl_map_anon = no
; then
9967 gcc_cv_func_mmap_anon
=no
9969 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9970 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9971 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9975 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9976 # doesn't give anonymous zeroed pages with the same properties listed
9977 # above for use of /dev/zero.
9978 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9980 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9981 gcc_cv_func_mmap_anon
=no
;;
9983 gcc_cv_func_mmap_anon
=yes;;
9986 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9987 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9991 if test $gcc_cv_func_mmap_file = yes; then
9993 cat >>confdefs.h
<<\_ACEOF
9994 #define HAVE_MMAP_FILE 1
9998 if test $gcc_cv_func_mmap_dev_zero = yes; then
10000 cat >>confdefs.h
<<\_ACEOF
10001 #define HAVE_MMAP_DEV_ZERO 1
10005 if test $gcc_cv_func_mmap_anon = yes; then
10007 cat >>confdefs.h
<<\_ACEOF
10008 #define HAVE_MMAP_ANON 1
10016 # Under VMS, vfork works very differently than on Unix. The standard test
10017 # won't work, and it isn't easily adaptable. It makes more sense to
10019 ac_cv_func_vfork_works
=yes
10022 echo "$as_me:$LINENO: checking for pid_t" >&5
10023 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10024 if test "${ac_cv_type_pid_t+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 cat >conftest.
$ac_ext <<_ACEOF
10030 cat confdefs.h
>>conftest.
$ac_ext
10031 cat >>conftest.
$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033 $ac_includes_default
10039 if (sizeof (pid_t))
10045 rm -f conftest.
$ac_objext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>conftest.er1
10049 grep -v '^ *+' conftest.er1
>conftest.err
10051 cat conftest.err
>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try
='test -z "$ac_c_werror_flag"
10055 || test ! -s conftest.err'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try
='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_type_pid_t
=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.
$ac_ext >&5
10072 ac_cv_type_pid_t
=no
10074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10077 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10078 if test $ac_cv_type_pid_t = yes; then
10082 cat >>confdefs.h
<<_ACEOF
10090 for ac_header
in unistd.h vfork.h
10092 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10093 echo "$as_me:$LINENO: checking for $ac_header" >&5
10094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 cat >conftest.
$ac_ext <<_ACEOF
10101 cat confdefs.h
>>conftest.
$ac_ext
10102 cat >>conftest.
$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 #include <$ac_header>
10106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10107 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10109 grep -v '^ *+' conftest.er1
>conftest.err
10111 cat conftest.err
>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } >/dev
/null
; then
10114 if test -s conftest.err
; then
10115 ac_cpp_err
=$ac_c_preproc_warn_flag
10116 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10123 if test -z "$ac_cpp_err"; then
10124 eval "$as_ac_Header=yes"
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.
$ac_ext >&5
10129 eval "$as_ac_Header=no"
10131 rm -f conftest.err conftest.
$ac_ext
10133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10136 cat >>confdefs.h
<<_ACEOF
10137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10145 for ac_func
in fork vfork
10147 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10148 echo "$as_me:$LINENO: checking for $ac_func" >&5
10149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10150 if eval "test \"\${$as_ac_var+set}\" = set"; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 cat >conftest.
$ac_ext <<_ACEOF
10156 cat confdefs.h
>>conftest.
$ac_ext
10157 cat >>conftest.
$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10161 #define $ac_func innocuous_$ac_func
10163 /* System header to define __stub macros and hopefully few prototypes,
10164 which can conflict with char $ac_func (); below.
10165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166 <limits.h> exists even on freestanding compilers. */
10169 # include <limits.h>
10171 # include <assert.h>
10176 /* Override any gcc2 internal prototype to avoid an error. */
10181 /* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */
10184 /* The GNU C library defines this for functions which it implements
10185 to always fail with ENOSYS. Some functions are actually named
10186 something starting with __ and the normal name is an alias. */
10187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10190 char (*f) () = $ac_func;
10199 return f != $ac_func;
10204 rm -f conftest.
$ac_objext conftest
$ac_exeext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206 (eval $ac_link) 2>conftest.er1
10208 grep -v '^ *+' conftest.er1
>conftest.err
10210 cat conftest.err
>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try
='test -z "$ac_c_werror_flag"
10214 || test ! -s conftest.err'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try
='test -s conftest$ac_exeext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 eval "$as_ac_var=yes"
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.
$ac_ext >&5
10231 eval "$as_ac_var=no"
10233 rm -f conftest.err conftest.
$ac_objext \
10234 conftest
$ac_exeext conftest.
$ac_ext
10236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10238 if test `eval echo '${'$as_ac_var'}'` = yes; then
10239 cat >>confdefs.h
<<_ACEOF
10240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10246 if test "x$ac_cv_func_fork" = xyes
; then
10247 echo "$as_me:$LINENO: checking for working fork" >&5
10248 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10249 if test "${ac_cv_func_fork_works+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 if test "$cross_compiling" = yes; then
10253 ac_cv_func_fork_works
=cross
10255 cat >conftest.
$ac_ext <<_ACEOF
10256 /* By Ruediger Kuhlmann. */
10257 #include <sys/types.h>
10259 # include <unistd.h>
10261 /* Some systems only have a dummy stub for fork() */
10269 rm -f conftest
$ac_exeext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10271 (eval $ac_link) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10280 ac_cv_func_fork_works
=yes
10282 echo "$as_me: program exited with status $ac_status" >&5
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.
$ac_ext >&5
10286 ( exit $ac_status )
10287 ac_cv_func_fork_works
=no
10289 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10292 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10293 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10296 ac_cv_func_fork_works
=$ac_cv_func_fork
10298 if test "x$ac_cv_func_fork_works" = xcross
; then
10300 *-*-amigaos* |
*-*-msdosdjgpp*)
10301 # Override, as these systems have only a dummy fork() stub
10302 ac_cv_func_fork_works
=no
10305 ac_cv_func_fork_works
=yes
10308 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10309 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10311 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10312 if test "x$ac_cv_func_vfork" = xyes
; then
10313 echo "$as_me:$LINENO: checking for working vfork" >&5
10314 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10315 if test "${ac_cv_func_vfork_works+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 if test "$cross_compiling" = yes; then
10319 ac_cv_func_vfork_works
=cross
10321 cat >conftest.
$ac_ext <<_ACEOF
10324 cat confdefs.h
>>conftest.
$ac_ext
10325 cat >>conftest.
$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 /* Thanks to Paul Eggert for this test. */
10329 #include <stdlib.h>
10330 #include <sys/types.h>
10331 #include <sys/stat.h>
10332 #include <sys/wait.h>
10334 # include <unistd.h>
10337 # include <vfork.h>
10339 /* On some sparc systems, changes by the child to local and incoming
10340 argument registers are propagated back to the parent. The compiler
10341 is told about this with #include <vfork.h>, but some compilers
10342 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10343 static variable whose address is put into a register that is
10344 clobbered by the vfork. */
10347 sparc_address_test (int arg)
10349 sparc_address_test (arg) int arg;
10352 static pid_t child;
10370 pid_t parent = getpid ();
10373 sparc_address_test (0);
10378 /* Here is another test for sparc vfork register problems. This
10379 test uses lots of local variables, at least as many local
10380 variables as main has allocated so far including compiler
10381 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10382 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10383 reuse the register of parent for one of the local variables,
10384 since it will think that parent can't possibly be used any more
10385 in this routine. Assigning to the local variable will thus
10386 munge parent in the parent process. */
10388 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10389 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10390 /* Convince the compiler that p..p7 are live; otherwise, it might
10391 use the same hardware register for all 8 local variables. */
10392 if (p != p1 || p != p2 || p != p3 || p != p4
10393 || p != p5 || p != p6 || p != p7)
10396 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10397 from child file descriptors. If the child closes a descriptor
10398 before it execs or exits, this munges the parent's descriptor
10399 as well. Test for this by closing stdout in the child. */
10400 _exit(close(fileno(stdout)) != 0);
10405 while (wait(&status) != child)
10408 /* Was there some problem with vforking? */
10411 /* Did the child fail? (This shouldn't happen.) */
10414 /* Did the vfork/compiler bug occur? */
10415 || parent != getpid()
10417 /* Did the file descriptor bug occur? */
10418 || fstat(fileno(stdout), &st) != 0
10423 rm -f conftest
$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_func_vfork_works
=yes
10436 echo "$as_me: program exited with status $ac_status" >&5
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.
$ac_ext >&5
10440 ( exit $ac_status )
10441 ac_cv_func_vfork_works
=no
10443 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10446 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10447 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10450 if test "x$ac_cv_func_fork_works" = xcross
; then
10451 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10452 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10453 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10456 if test "x$ac_cv_func_vfork_works" = xyes
; then
10458 cat >>confdefs.h
<<\_ACEOF
10459 #define HAVE_WORKING_VFORK 1
10464 cat >>confdefs.h
<<\_ACEOF
10469 if test "x$ac_cv_func_fork_works" = xyes
; then
10471 cat >>confdefs.h
<<\_ACEOF
10472 #define HAVE_WORKING_FORK 1
10479 if test "X$prefix" = "XNONE"; then
10480 acl_final_prefix
="$ac_default_prefix"
10482 acl_final_prefix
="$prefix"
10484 if test "X$exec_prefix" = "XNONE"; then
10485 acl_final_exec_prefix
='${prefix}'
10487 acl_final_exec_prefix
="$exec_prefix"
10489 acl_save_prefix
="$prefix"
10490 prefix
="$acl_final_prefix"
10491 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10492 prefix
="$acl_save_prefix"
10495 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10496 if test "${with_gnu_ld+set}" = set; then
10497 withval
="$with_gnu_ld"
10498 test "$withval" = no || with_gnu_ld
=yes
10502 # Prepare PATH_SEPARATOR.
10503 # The user is always right.
10504 if test "${PATH_SEPARATOR+set}" != set; then
10505 echo "#! /bin/sh" >conf$$.sh
10506 echo "exit 0" >>conf$$.sh
10508 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10516 if test "$GCC" = yes; then
10517 # Check if gcc -print-prog-name=ld gives a path.
10518 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10519 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10522 # gcc leaves a trailing carriage return which upsets mingw
10523 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10525 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10528 # Accept absolute paths.
10529 [\\/]* |
[A-Za-z
]:[\\/]*)
10530 re_direlt
='/[^/][^/]*/\.\./'
10531 # Canonicalize the path of ld
10532 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10533 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10534 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10536 test -z "$LD" && LD
="$ac_prog"
10539 # If it fails, then pretend we aren't using GCC.
10543 # If it is relative, then search for the first ld in PATH.
10544 with_gnu_ld
=unknown
10547 elif test "$with_gnu_ld" = yes; then
10548 echo "$as_me:$LINENO: checking for GNU ld" >&5
10549 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10551 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10552 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10554 if test "${acl_cv_path_LD+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 if test -z "$LD"; then
10558 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10559 for ac_dir
in $PATH; do
10560 test -z "$ac_dir" && ac_dir
=.
10561 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10562 acl_cv_path_LD
="$ac_dir/$ac_prog"
10563 # Check to see if the program is GNU ld. I'd rather use --version,
10564 # but apparently some GNU ld's only accept -v.
10565 # Break only if it was the GNU/non-GNU ld that we prefer.
10566 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10567 test "$with_gnu_ld" != no
&& break
10569 test "$with_gnu_ld" != yes && break
10575 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10579 LD
="$acl_cv_path_LD"
10580 if test -n "$LD"; then
10581 echo "$as_me:$LINENO: result: $LD" >&5
10582 echo "${ECHO_T}$LD" >&6
10584 echo "$as_me:$LINENO: result: no" >&5
10585 echo "${ECHO_T}no" >&6
10587 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10588 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10589 { (exit 1); exit 1; }; }
10590 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10591 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10592 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10596 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10597 acl_cv_prog_gnu_ld
=yes
10599 acl_cv_prog_gnu_ld
=no
10602 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10603 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10604 with_gnu_ld
=$acl_cv_prog_gnu_ld
10608 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10609 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10610 if test "${acl_cv_rpath+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10615 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10617 rm -f .
/conftest.sh
10621 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10622 echo "${ECHO_T}$acl_cv_rpath" >&6
10624 libext
="$acl_cv_libext"
10625 shlibext
="$acl_cv_shlibext"
10626 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10627 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10628 hardcode_direct
="$acl_cv_hardcode_direct"
10629 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10630 # Check whether --enable-rpath or --disable-rpath was given.
10631 if test "${enable_rpath+set}" = set; then
10632 enableval
="$enable_rpath"
10646 acl_save_prefix
="$prefix"
10647 prefix
="$acl_final_prefix"
10648 acl_save_exec_prefix
="$exec_prefix"
10649 exec_prefix
="$acl_final_exec_prefix"
10651 eval additional_includedir
=\"$includedir\"
10652 eval additional_libdir
=\"$libdir\"
10654 exec_prefix
="$acl_save_exec_prefix"
10655 prefix
="$acl_save_prefix"
10658 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10659 if test "${with_libiconv_prefix+set}" = set; then
10660 withval
="$with_libiconv_prefix"
10662 if test "X$withval" = "Xno"; then
10665 if test "X$withval" = "X"; then
10667 acl_save_prefix
="$prefix"
10668 prefix
="$acl_final_prefix"
10669 acl_save_exec_prefix
="$exec_prefix"
10670 exec_prefix
="$acl_final_exec_prefix"
10672 eval additional_includedir
=\"$includedir\"
10673 eval additional_libdir
=\"$libdir\"
10675 exec_prefix
="$acl_save_exec_prefix"
10676 prefix
="$acl_save_prefix"
10679 additional_includedir
="$withval/include"
10680 additional_libdir
="$withval/lib"
10690 names_already_handled
=
10691 names_next_round
='iconv '
10692 while test -n "$names_next_round"; do
10693 names_this_round
="$names_next_round"
10695 for name
in $names_this_round; do
10697 for n
in $names_already_handled; do
10698 if test "$n" = "$name"; then
10699 already_handled
=yes
10703 if test -z "$already_handled"; then
10704 names_already_handled
="$names_already_handled $name"
10705 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10706 eval value
=\"\
$HAVE_LIB$uppername\"
10707 if test -n "$value"; then
10708 if test "$value" = yes; then
10709 eval value
=\"\
$LIB$uppername\"
10710 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10711 eval value
=\"\
$LTLIB$uppername\"
10712 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10721 if test $use_additional = yes; then
10722 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10723 found_dir
="$additional_libdir"
10724 found_so
="$additional_libdir/lib$name.$shlibext"
10725 if test -f "$additional_libdir/lib$name.la"; then
10726 found_la
="$additional_libdir/lib$name.la"
10729 if test -f "$additional_libdir/lib$name.$libext"; then
10730 found_dir
="$additional_libdir"
10731 found_a
="$additional_libdir/lib$name.$libext"
10732 if test -f "$additional_libdir/lib$name.la"; then
10733 found_la
="$additional_libdir/lib$name.la"
10738 if test "X$found_dir" = "X"; then
10739 for x
in $LDFLAGS $LTLIBICONV; do
10741 acl_save_prefix
="$prefix"
10742 prefix
="$acl_final_prefix"
10743 acl_save_exec_prefix
="$exec_prefix"
10744 exec_prefix
="$acl_final_exec_prefix"
10746 exec_prefix
="$acl_save_exec_prefix"
10747 prefix
="$acl_save_prefix"
10751 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10752 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10754 found_so
="$dir/lib$name.$shlibext"
10755 if test -f "$dir/lib$name.la"; then
10756 found_la
="$dir/lib$name.la"
10759 if test -f "$dir/lib$name.$libext"; then
10761 found_a
="$dir/lib$name.$libext"
10762 if test -f "$dir/lib$name.la"; then
10763 found_la
="$dir/lib$name.la"
10769 if test "X$found_dir" != "X"; then
10774 if test "X$found_dir" != "X"; then
10775 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10776 if test "X$found_so" != "X"; then
10777 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10778 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10781 for x
in $ltrpathdirs; do
10782 if test "X$x" = "X$found_dir"; then
10787 if test -z "$haveit"; then
10788 ltrpathdirs
="$ltrpathdirs $found_dir"
10790 if test "$hardcode_direct" = yes; then
10791 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10793 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10794 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10796 for x
in $rpathdirs; do
10797 if test "X$x" = "X$found_dir"; then
10802 if test -z "$haveit"; then
10803 rpathdirs
="$rpathdirs $found_dir"
10807 for x
in $LDFLAGS $LIBICONV; do
10809 acl_save_prefix
="$prefix"
10810 prefix
="$acl_final_prefix"
10811 acl_save_exec_prefix
="$exec_prefix"
10812 exec_prefix
="$acl_final_exec_prefix"
10814 exec_prefix
="$acl_save_exec_prefix"
10815 prefix
="$acl_save_prefix"
10817 if test "X$x" = "X-L$found_dir"; then
10822 if test -z "$haveit"; then
10823 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10825 if test "$hardcode_minus_L" != no
; then
10826 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10828 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10834 if test "X$found_a" != "X"; then
10835 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10837 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10840 additional_includedir
=
10841 case "$found_dir" in
10843 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10844 additional_includedir
="$basedir/include"
10847 if test "X$additional_includedir" != "X"; then
10848 if test "X$additional_includedir" != "X/usr/include"; then
10850 if test "X$additional_includedir" = "X/usr/local/include"; then
10851 if test -n "$GCC"; then
10853 linux
*) haveit
=yes;;
10857 if test -z "$haveit"; then
10858 for x
in $CPPFLAGS $INCICONV; do
10860 acl_save_prefix
="$prefix"
10861 prefix
="$acl_final_prefix"
10862 acl_save_exec_prefix
="$exec_prefix"
10863 exec_prefix
="$acl_final_exec_prefix"
10865 exec_prefix
="$acl_save_exec_prefix"
10866 prefix
="$acl_save_prefix"
10868 if test "X$x" = "X-I$additional_includedir"; then
10873 if test -z "$haveit"; then
10874 if test -d "$additional_includedir"; then
10875 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10881 if test -n "$found_la"; then
10882 save_libdir
="$libdir"
10883 case "$found_la" in
10884 */* |
*\\*) .
"$found_la" ;;
10885 *) .
"./$found_la" ;;
10887 libdir
="$save_libdir"
10888 for dep
in $dependency_libs; do
10891 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10892 if test "X$additional_libdir" != "X/usr/lib"; then
10894 if test "X$additional_libdir" = "X/usr/local/lib"; then
10895 if test -n "$GCC"; then
10897 linux
*) haveit
=yes;;
10901 if test -z "$haveit"; then
10903 for x
in $LDFLAGS $LIBICONV; do
10905 acl_save_prefix
="$prefix"
10906 prefix
="$acl_final_prefix"
10907 acl_save_exec_prefix
="$exec_prefix"
10908 exec_prefix
="$acl_final_exec_prefix"
10910 exec_prefix
="$acl_save_exec_prefix"
10911 prefix
="$acl_save_prefix"
10913 if test "X$x" = "X-L$additional_libdir"; then
10918 if test -z "$haveit"; then
10919 if test -d "$additional_libdir"; then
10920 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10924 for x
in $LDFLAGS $LTLIBICONV; do
10926 acl_save_prefix
="$prefix"
10927 prefix
="$acl_final_prefix"
10928 acl_save_exec_prefix
="$exec_prefix"
10929 exec_prefix
="$acl_final_exec_prefix"
10931 exec_prefix
="$acl_save_exec_prefix"
10932 prefix
="$acl_save_prefix"
10934 if test "X$x" = "X-L$additional_libdir"; then
10939 if test -z "$haveit"; then
10940 if test -d "$additional_libdir"; then
10941 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10948 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10949 if test "$enable_rpath" != no
; then
10951 for x
in $rpathdirs; do
10952 if test "X$x" = "X$dir"; then
10957 if test -z "$haveit"; then
10958 rpathdirs
="$rpathdirs $dir"
10961 for x
in $ltrpathdirs; do
10962 if test "X$x" = "X$dir"; then
10967 if test -z "$haveit"; then
10968 ltrpathdirs
="$ltrpathdirs $dir"
10973 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10976 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10979 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10980 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10986 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10987 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10993 if test "X$rpathdirs" != "X"; then
10994 if test -n "$hardcode_libdir_separator"; then
10996 for found_dir
in $rpathdirs; do
10997 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10999 acl_save_libdir
="$libdir"
11001 eval flag
=\"$hardcode_libdir_flag_spec\"
11002 libdir
="$acl_save_libdir"
11003 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11005 for found_dir
in $rpathdirs; do
11006 acl_save_libdir
="$libdir"
11007 libdir
="$found_dir"
11008 eval flag
=\"$hardcode_libdir_flag_spec\"
11009 libdir
="$acl_save_libdir"
11010 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11014 if test "X$ltrpathdirs" != "X"; then
11015 for found_dir
in $ltrpathdirs; do
11016 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11026 am_save_CPPFLAGS
="$CPPFLAGS"
11028 for element
in $INCICONV; do
11030 for x
in $CPPFLAGS; do
11032 acl_save_prefix
="$prefix"
11033 prefix
="$acl_final_prefix"
11034 acl_save_exec_prefix
="$exec_prefix"
11035 exec_prefix
="$acl_final_exec_prefix"
11037 exec_prefix
="$acl_save_exec_prefix"
11038 prefix
="$acl_save_prefix"
11040 if test "X$x" = "X$element"; then
11045 if test -z "$haveit"; then
11046 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11051 echo "$as_me:$LINENO: checking for iconv" >&5
11052 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11053 if test "${am_cv_func_iconv+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 am_cv_func_iconv
="no, consider installing GNU libiconv"
11059 cat >conftest.
$ac_ext <<_ACEOF
11062 cat confdefs.h
>>conftest.
$ac_ext
11063 cat >>conftest.
$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11065 #include <stdlib.h>
11070 iconv_t cd = iconv_open("","");
11071 iconv(cd,NULL,NULL,NULL,NULL);
11077 rm -f conftest.
$ac_objext conftest
$ac_exeext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11079 (eval $ac_link) 2>conftest.er1
11081 grep -v '^ *+' conftest.er1
>conftest.err
11083 cat conftest.err
>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
11086 { ac_try
='test -z "$ac_c_werror_flag"
11087 || test ! -s conftest.err'
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; } &&
11093 { ac_try
='test -s conftest$ac_exeext'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11099 am_cv_func_iconv
=yes
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.
$ac_ext >&5
11105 rm -f conftest.err conftest.
$ac_objext \
11106 conftest
$ac_exeext conftest.
$ac_ext
11107 if test "$am_cv_func_iconv" != yes; then
11108 am_save_LIBS
="$LIBS"
11109 LIBS
="$LIBS $LIBICONV"
11110 cat >conftest.
$ac_ext <<_ACEOF
11113 cat confdefs.h
>>conftest.
$ac_ext
11114 cat >>conftest.
$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 #include <stdlib.h>
11121 iconv_t cd = iconv_open("","");
11122 iconv(cd,NULL,NULL,NULL,NULL);
11128 rm -f conftest.
$ac_objext conftest
$ac_exeext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130 (eval $ac_link) 2>conftest.er1
11132 grep -v '^ *+' conftest.er1
>conftest.err
11134 cat conftest.err
>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try
='test -z "$ac_c_werror_flag"
11138 || test ! -s conftest.err'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try
='test -s conftest$ac_exeext'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 am_cv_lib_iconv
=yes
11151 am_cv_func_iconv
=yes
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.
$ac_ext >&5
11157 rm -f conftest.err conftest.
$ac_objext \
11158 conftest
$ac_exeext conftest.
$ac_ext
11159 LIBS
="$am_save_LIBS"
11163 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11164 echo "${ECHO_T}$am_cv_func_iconv" >&6
11165 if test "$am_cv_func_iconv" = yes; then
11167 cat >>confdefs.h
<<\_ACEOF
11168 #define HAVE_ICONV 1
11172 if test "$am_cv_lib_iconv" = yes; then
11173 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11174 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11175 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11176 echo "${ECHO_T}$LIBICONV" >&6
11178 CPPFLAGS
="$am_save_CPPFLAGS"
11185 if test "$am_cv_func_iconv" = yes; then
11186 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11187 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11188 if test "${am_cv_proto_iconv+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 cat >conftest.
$ac_ext <<_ACEOF
11195 cat confdefs.h
>>conftest.
$ac_ext
11196 cat >>conftest.
$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11199 #include <stdlib.h>
11205 #if defined(__STDC__) || defined(__cplusplus)
11206 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11219 rm -f conftest.
$ac_objext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>conftest.er1
11223 grep -v '^ *+' conftest.er1
>conftest.err
11225 cat conftest.err
>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try
='test -z "$ac_c_werror_flag"
11229 || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try
='test -s conftest.$ac_objext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 am_cv_proto_iconv_arg1
=""
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.
$ac_ext >&5
11246 am_cv_proto_iconv_arg1
="const"
11248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11249 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);"
11252 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11253 echo "$as_me:$LINENO: result: ${ac_t:-
11254 }$am_cv_proto_iconv" >&5
11255 echo "${ECHO_T}${ac_t:-
11256 }$am_cv_proto_iconv" >&6
11258 cat >>confdefs.h
<<_ACEOF
11259 #define ICONV_CONST $am_cv_proto_iconv_arg1
11264 # Until we have in-tree GNU iconv:
11269 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11270 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11271 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 cat >conftest.
$ac_ext <<_ACEOF
11277 cat confdefs.h
>>conftest.
$ac_ext
11278 cat >>conftest.
$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11280 #include <locale.h>
11289 rm -f conftest.
$ac_objext conftest
$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291 (eval $ac_link) 2>conftest.er1
11293 grep -v '^ *+' conftest.er1
>conftest.err
11295 cat conftest.err
>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try
='test -z "$ac_c_werror_flag"
11299 || test ! -s conftest.err'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try
='test -s conftest$ac_exeext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 am_cv_val_LC_MESSAGES
=yes
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.
$ac_ext >&5
11316 am_cv_val_LC_MESSAGES
=no
11318 rm -f conftest.err conftest.
$ac_objext \
11319 conftest
$ac_exeext conftest.
$ac_ext
11321 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11322 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11323 if test $am_cv_val_LC_MESSAGES = yes; then
11325 cat >>confdefs.h
<<\_ACEOF
11326 #define HAVE_LC_MESSAGES 1
11333 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11334 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11335 if test "${am_cv_langinfo_codeset+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 cat >conftest.
$ac_ext <<_ACEOF
11341 cat confdefs.h
>>conftest.
$ac_ext
11342 cat >>conftest.
$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 #include <langinfo.h>
11348 char* cs = nl_langinfo(CODESET);
11353 rm -f conftest.
$ac_objext conftest
$ac_exeext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355 (eval $ac_link) 2>conftest.er1
11357 grep -v '^ *+' conftest.er1
>conftest.err
11359 cat conftest.err
>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try
='test -z "$ac_c_werror_flag"
11363 || test ! -s conftest.err'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; } &&
11369 { ac_try
='test -s conftest$ac_exeext'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 am_cv_langinfo_codeset
=yes
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.
$ac_ext >&5
11380 am_cv_langinfo_codeset
=no
11382 rm -f conftest.err conftest.
$ac_objext \
11383 conftest
$ac_exeext conftest.
$ac_ext
11386 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11387 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11388 if test $am_cv_langinfo_codeset = yes; then
11390 cat >>confdefs.h
<<\_ACEOF
11391 #define HAVE_LANGINFO_CODESET 1
11397 # We will need to find libiberty.h and ansidecl.h
11398 saved_CFLAGS
="$CFLAGS"
11399 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11439 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11440 strsignal strstr strverscmp \
11441 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11442 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
11444 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11445 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11446 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11447 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 cat >conftest.
$ac_ext <<_ACEOF
11453 cat confdefs.h
>>conftest.
$ac_ext
11454 cat >>conftest.
$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11457 #define $ac_tr_decl 1
11459 #include "ansidecl.h"
11460 #include "system.h"
11466 char *(*pfn) = (char *(*)) $ac_func ;
11472 rm -f conftest.
$ac_objext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11474 (eval $ac_compile) 2>conftest.er1
11476 grep -v '^ *+' conftest.er1
>conftest.err
11478 cat conftest.err
>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try
='test -z "$ac_c_werror_flag"
11482 || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try
='test -s conftest.$ac_objext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 eval "gcc_cv_have_decl_$ac_func=yes"
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.
$ac_ext >&5
11499 eval "gcc_cv_have_decl_$ac_func=no"
11501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11504 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11505 echo "$as_me:$LINENO: result: yes" >&5
11506 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11507 #define $ac_tr_decl 1
11511 echo "$as_me:$LINENO: result: no" >&5
11512 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11513 #define $ac_tr_decl 0
11524 for ac_func
in getrlimit setrlimit getrusage
11526 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11527 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11528 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11529 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 cat >conftest.
$ac_ext <<_ACEOF
11535 cat confdefs.h
>>conftest.
$ac_ext
11536 cat >>conftest.
$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11539 #define $ac_tr_decl 1
11541 #include "ansidecl.h"
11542 #include "system.h"
11543 #ifdef HAVE_SYS_RESOURCE_H
11544 #include <sys/resource.h>
11552 char *(*pfn) = (char *(*)) $ac_func ;
11558 rm -f conftest.
$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11562 grep -v '^ *+' conftest.er1
>conftest.err
11564 cat conftest.err
>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try
='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try
='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 eval "gcc_cv_have_decl_$ac_func=yes"
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.
$ac_ext >&5
11585 eval "gcc_cv_have_decl_$ac_func=no"
11587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11590 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11591 echo "$as_me:$LINENO: result: yes" >&5
11592 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11593 #define $ac_tr_decl 1
11597 echo "$as_me:$LINENO: result: no" >&5
11598 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11599 #define $ac_tr_decl 0
11607 cat >conftest.
$ac_ext <<_ACEOF
11610 cat confdefs.h
>>conftest.
$ac_ext
11611 cat >>conftest.
$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11614 #include "ansidecl.h"
11615 #include "system.h"
11616 #ifdef HAVE_SYS_RESOURCE_H
11617 #include <sys/resource.h>
11628 rm -f conftest.
$ac_objext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11630 (eval $ac_compile) 2>conftest.er1
11632 grep -v '^ *+' conftest.er1
>conftest.err
11634 cat conftest.err
>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try
='test -z "$ac_c_werror_flag"
11638 || test ! -s conftest.err'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try
='test -s conftest.$ac_objext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.
$ac_ext >&5
11656 cat >>confdefs.h
<<\_ACEOF
11657 #define rlim_t long
11661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11663 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11664 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11665 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11666 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11668 for ac_func
in ldgetname
11670 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11671 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11672 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11673 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 cat >conftest.
$ac_ext <<_ACEOF
11679 cat confdefs.h
>>conftest.
$ac_ext
11680 cat >>conftest.
$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11683 #define $ac_tr_decl 1
11685 #include "ansidecl.h"
11686 #include "system.h"
11687 #ifdef HAVE_LDFCN_H
11698 char *(*pfn) = (char *(*)) $ac_func ;
11704 rm -f conftest.
$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>conftest.er1
11708 grep -v '^ *+' conftest.er1
>conftest.err
11710 cat conftest.err
>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try
='test -z "$ac_c_werror_flag"
11714 || test ! -s conftest.err'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try
='test -s conftest.$ac_objext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 eval "gcc_cv_have_decl_$ac_func=yes"
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.
$ac_ext >&5
11731 eval "gcc_cv_have_decl_$ac_func=no"
11733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11736 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11737 echo "$as_me:$LINENO: result: yes" >&5
11738 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11739 #define $ac_tr_decl 1
11743 echo "$as_me:$LINENO: result: no" >&5
11744 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11745 #define $ac_tr_decl 0
11754 for ac_func
in times
11756 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11757 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11758 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11759 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 cat >conftest.
$ac_ext <<_ACEOF
11765 cat confdefs.h
>>conftest.
$ac_ext
11766 cat >>conftest.
$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11769 #define $ac_tr_decl 1
11771 #include "ansidecl.h"
11772 #include "system.h"
11773 #ifdef HAVE_SYS_TIMES_H
11774 #include <sys/times.h>
11782 char *(*pfn) = (char *(*)) $ac_func ;
11788 rm -f conftest.
$ac_objext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11790 (eval $ac_compile) 2>conftest.er1
11792 grep -v '^ *+' conftest.er1
>conftest.err
11794 cat conftest.err
>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try
='test -z "$ac_c_werror_flag"
11798 || test ! -s conftest.err'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try
='test -s conftest.$ac_objext'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
11810 eval "gcc_cv_have_decl_$ac_func=yes"
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.
$ac_ext >&5
11815 eval "gcc_cv_have_decl_$ac_func=no"
11817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11820 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11821 echo "$as_me:$LINENO: result: yes" >&5
11822 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11823 #define $ac_tr_decl 1
11827 echo "$as_me:$LINENO: result: no" >&5
11828 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11829 #define $ac_tr_decl 0
11838 for ac_func
in sigaltstack
11840 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11841 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11842 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11843 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 cat >conftest.
$ac_ext <<_ACEOF
11849 cat confdefs.h
>>conftest.
$ac_ext
11850 cat >>conftest.
$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11853 #define $ac_tr_decl 1
11855 #include "ansidecl.h"
11856 #include "system.h"
11857 #include <signal.h>
11864 char *(*pfn) = (char *(*)) $ac_func ;
11870 rm -f conftest.
$ac_objext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11872 (eval $ac_compile) 2>conftest.er1
11874 grep -v '^ *+' conftest.er1
>conftest.err
11876 cat conftest.err
>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } &&
11879 { ac_try
='test -z "$ac_c_werror_flag"
11880 || test ! -s conftest.err'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; } &&
11886 { ac_try
='test -s conftest.$ac_objext'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 eval "gcc_cv_have_decl_$ac_func=yes"
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.
$ac_ext >&5
11897 eval "gcc_cv_have_decl_$ac_func=no"
11899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11902 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11903 echo "$as_me:$LINENO: result: yes" >&5
11904 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11905 #define $ac_tr_decl 1
11909 echo "$as_me:$LINENO: result: no" >&5
11910 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11911 #define $ac_tr_decl 0
11919 # More time-related stuff.
11920 echo "$as_me:$LINENO: checking for struct tms" >&5
11921 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11922 if test "${ac_cv_struct_tms+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 cat >conftest.
$ac_ext <<_ACEOF
11929 cat confdefs.h
>>conftest.
$ac_ext
11930 cat >>conftest.
$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11933 #include "ansidecl.h"
11934 #include "system.h"
11935 #ifdef HAVE_SYS_TIMES_H
11936 #include <sys/times.h>
11947 rm -f conftest.
$ac_objext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949 (eval $ac_compile) 2>conftest.er1
11951 grep -v '^ *+' conftest.er1
>conftest.err
11953 cat conftest.err
>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try
='test -z "$ac_c_werror_flag"
11957 || test ! -s conftest.err'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; } &&
11963 { ac_try
='test -s conftest.$ac_objext'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969 ac_cv_struct_tms
=yes
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.
$ac_ext >&5
11974 ac_cv_struct_tms
=no
11976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11978 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11979 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11980 if test $ac_cv_struct_tms = yes; then
11982 cat >>confdefs.h
<<\_ACEOF
11983 #define HAVE_STRUCT_TMS 1
11988 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11989 # revisit after autoconf 2.50.
11990 echo "$as_me:$LINENO: checking for clock_t" >&5
11991 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11992 if test "${gcc_cv_type_clock_t+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 cat >conftest.
$ac_ext <<_ACEOF
11999 cat confdefs.h
>>conftest.
$ac_ext
12000 cat >>conftest.
$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12003 #include "ansidecl.h"
12004 #include "system.h"
12014 rm -f conftest.
$ac_objext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12016 (eval $ac_compile) 2>conftest.er1
12018 grep -v '^ *+' conftest.er1
>conftest.err
12020 cat conftest.err
>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try
='test -z "$ac_c_werror_flag"
12024 || test ! -s conftest.err'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try
='test -s conftest.$ac_objext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 gcc_cv_type_clock_t
=yes
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.
$ac_ext >&5
12041 gcc_cv_type_clock_t
=no
12043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12045 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12046 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12047 if test $gcc_cv_type_clock_t = yes; then
12049 cat >>confdefs.h
<<\_ACEOF
12050 #define HAVE_CLOCK_T 1
12055 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12056 CFLAGS
="$saved_CFLAGS"
12058 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12059 if test "${enable_initfini_array+set}" = set; then
12060 enableval
="$enable_initfini_array"
12064 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12065 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12066 if test "${gcc_cv_initfini_array+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 if test "$cross_compiling" = yes; then
12070 gcc_cv_initfini_array
=no
12072 cat >conftest.
$ac_ext <<_ACEOF
12075 cat confdefs.h
>>conftest.
$ac_ext
12076 cat >>conftest.
$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12080 int main (void) { return x; }
12081 int foo (void) { x = 0; }
12082 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12084 rm -f conftest
$ac_exeext
12085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12086 (eval $ac_link) 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 gcc_cv_initfini_array
=yes
12097 echo "$as_me: program exited with status $ac_status" >&5
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.
$ac_ext >&5
12101 ( exit $ac_status )
12102 gcc_cv_initfini_array
=no
12104 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12107 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12108 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12109 enable_initfini_array
=$gcc_cv_initfini_array
12112 if test $enable_initfini_array = yes; then
12114 cat >>confdefs.h
<<\_ACEOF
12115 #define HAVE_INITFINI_ARRAY 1
12120 # mkdir takes a single argument on some systems.
12121 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12122 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12123 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 cat >conftest.
$ac_ext <<_ACEOF
12129 cat confdefs.h
>>conftest.
$ac_ext
12130 cat >>conftest.
$ac_ext <<_ACEOF
12131 /* end confdefs.h. */
12133 #include <sys/types.h>
12134 #ifdef HAVE_SYS_STAT_H
12135 # include <sys/stat.h>
12137 #ifdef HAVE_UNISTD_H
12138 # include <unistd.h>
12140 #ifdef HAVE_DIRECT_H
12141 # include <direct.h>
12151 rm -f conftest.
$ac_objext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>conftest.er1
12155 grep -v '^ *+' conftest.er1
>conftest.err
12157 cat conftest.err
>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try
='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try
='test -s conftest.$ac_objext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 gcc_cv_mkdir_takes_one_arg
=no
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.
$ac_ext >&5
12178 gcc_cv_mkdir_takes_one_arg
=yes
12180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12182 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12183 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12184 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12186 cat >>confdefs.h
<<\_ACEOF
12187 #define MKDIR_TAKES_ONE_ARG 1
12199 # With Setjmp/Longjmp based exception handling.
12200 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12201 if test "${enable_sjlj_exceptions+set}" = set; then
12202 enableval
="$enable_sjlj_exceptions"
12205 if test $enableval != yes; then
12206 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12207 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12212 force_sjlj_exceptions
=yes
12216 force_sjlj_exceptions
=yes
12220 force_sjlj_exceptions
=no
12224 if test $force_sjlj_exceptions = yes; then
12225 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12227 cat >>confdefs.h
<<_ACEOF
12228 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12233 # For platforms with the unwind ABI which includes an unwind library,
12234 # libunwind, we can choose to use the system libunwind.
12236 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12237 if test "${with_system_libunwind+set}" = set; then
12238 withval
="$with_system_libunwind"
12242 # config.gcc also contains tests of with_system_libunwind.
12243 if test x
$with_system_libunwind = xyes
; then
12245 cat >>confdefs.h
<<\_ACEOF
12246 #define HAVE_GETIPINFO 1
12251 # --------------------------------------------------------
12252 # Build, host, and target specific configuration fragments
12253 # --------------------------------------------------------
12255 # Collect build-machine-specific information.
12256 .
${srcdir}/config.build
12258 # Collect host-machine-specific information.
12259 .
${srcdir}/config.
host
12263 # Collect target-machine-specific information.
12264 .
${srcdir}/config.gcc
12266 extra_objs
="${host_extra_objs} ${extra_objs}"
12267 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12269 # Default the target-machine variables that were not explicitly set.
12270 if test x
"$tm_file" = x
12271 then tm_file
=$cpu_type/$cpu_type.h
; fi
12273 if test x
"$extra_headers" = x
12274 then extra_headers
=; fi
12276 if test x
$md_file = x
12277 then md_file
=$cpu_type/$cpu_type.md
; fi
12279 if test x
$out_file = x
12280 then out_file
=$cpu_type/$cpu_type.c
; fi
12282 if test x
"$tmake_file" = x
12283 then tmake_file
=$cpu_type/t-
$cpu_type
12286 if test x
"$dwarf2" = xyes
12287 then tm_file
="$tm_file tm-dwarf2.h"
12290 # Say what files are being used for the output code and MD file.
12291 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12292 echo "Using \`$srcdir/config/$md_file' as machine description file."
12294 # If any of the xm_file variables contain nonexistent files, warn
12295 # about them and drop them.
12298 for x
in $build_xm_file; do
12299 if test -f $srcdir/config
/$x
12301 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12302 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12305 build_xm_file
="$bx"
12308 for x
in $host_xm_file; do
12309 if test -f $srcdir/config
/$x
12311 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12312 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12318 for x
in $xm_file; do
12319 if test -f $srcdir/config
/$x
12321 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12322 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12328 for f
in $tm_file; do
12331 if test $count = ax
; then
12332 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12334 echo "Using the following target machine macro files:"
12335 for f
in $tm_file; do
12336 echo " $srcdir/config/$f"
12340 if test x
$need_64bit_hwint = xyes
; then
12342 cat >>confdefs.h
<<\_ACEOF
12343 #define NEED_64BIT_HOST_WIDE_INT 1
12348 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12350 cat >>confdefs.h
<<\_ACEOF
12351 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12357 for f
in $host_xm_file; do
12360 if test $count = a
; then
12362 elif test $count = ax
; then
12363 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12365 echo "Using the following host machine macro files:"
12366 for f
in $host_xm_file; do
12367 echo " $srcdir/config/$f"
12370 echo "Using ${out_host_hook_obj} for host machine hooks."
12372 if test "$host_xm_file" != "$build_xm_file"; then
12374 for f
in $build_xm_file; do
12377 if test $count = a
; then
12379 elif test $count = ax
; then
12380 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12382 echo "Using the following build machine macro files:"
12383 for f
in $build_xm_file; do
12384 echo " $srcdir/config/$f"
12390 powerpc
*-*-darwin*)
12391 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12392 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12393 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 cat >conftest.
$ac_ext <<_ACEOF
12398 #include <sys/cdefs.h>
12399 #include <sys/signal.h>
12400 #include <ucontext.h>
12401 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12404 rm -f conftest.
$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>conftest.er1
12408 grep -v '^ *+' conftest.er1
>conftest.err
12410 cat conftest.err
>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try
='test -z "$ac_c_werror_flag"
12414 || test ! -s conftest.err'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try
='test -s conftest.$ac_objext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 gcc_cv_mcontext_underscores
=no
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.
$ac_ext >&5
12431 gcc_cv_mcontext_underscores
=yes
12433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12435 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12436 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12437 if test $gcc_cv_mcontext_underscores = yes; then
12439 cat >>confdefs.h
<<\_ACEOF
12440 #define HAS_MCONTEXT_T_UNDERSCORES
12451 # Check if a valid thread package
12452 case ${enable_threads} in
12455 target_thread_file
='single'
12459 target_thread_file
='single'
12461 aix | dce | gnat | irix | posix | posix95 | rtems | \
12462 single | solaris | vxworks | win32 | mipssde
)
12463 target_thread_file
=${enable_threads}
12466 echo "${enable_threads} is an unknown thread package" 1>&2
12471 if test x
${thread_file} = x
; then
12472 # No thread file set by target-specific clauses in config.gcc,
12473 # so use file chosen by default logic above
12474 thread_file
=${target_thread_file}
12477 # Make gthr-default.h if we have a thread file.
12479 if test $thread_file != single
; then
12480 rm -f gthr-default.h
12481 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12482 gthread_flags
=-DHAVE_GTHR_DEFAULT
12491 if test x
$enable___cxa_atexit = xyes || \
12492 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12493 if test x
$host = x
$target; then
12495 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12496 # keyed to flag_use_cxa_atexit
12501 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12502 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12503 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 cat >conftest.
$ac_ext <<_ACEOF
12509 cat confdefs.h
>>conftest.
$ac_ext
12510 cat >>conftest.
$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12514 #define __cxa_atexit innocuous___cxa_atexit
12516 /* System header to define __stub macros and hopefully few prototypes,
12517 which can conflict with char __cxa_atexit (); below.
12518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12519 <limits.h> exists even on freestanding compilers. */
12522 # include <limits.h>
12524 # include <assert.h>
12527 #undef __cxa_atexit
12529 /* Override any gcc2 internal prototype to avoid an error. */
12534 /* We use char because int might match the return type of a gcc2
12535 builtin and then its argument prototype would still apply. */
12536 char __cxa_atexit ();
12537 /* The GNU C library defines this for functions which it implements
12538 to always fail with ENOSYS. Some functions are actually named
12539 something starting with __ and the normal name is an alias. */
12540 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12543 char (*f) () = __cxa_atexit;
12552 return f != __cxa_atexit;
12557 rm -f conftest.
$ac_objext conftest
$ac_exeext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559 (eval $ac_link) 2>conftest.er1
12561 grep -v '^ *+' conftest.er1
>conftest.err
12563 cat conftest.err
>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try
='test -z "$ac_c_werror_flag"
12567 || test ! -s conftest.err'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try
='test -s conftest$ac_exeext'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 ac_cv_func___cxa_atexit
=yes
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.
$ac_ext >&5
12584 ac_cv_func___cxa_atexit
=no
12586 rm -f conftest.err conftest.
$ac_objext \
12587 conftest
$ac_exeext conftest.
$ac_ext
12589 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12590 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12591 if test $ac_cv_func___cxa_atexit = yes; then
12594 echo "__cxa_atexit can't be enabled on this target"
12600 # We can't check for __cxa_atexit when building a cross, so assume
12604 if test x
$use_cxa_atexit = xyes
; then
12606 cat >>confdefs.h
<<\_ACEOF
12607 #define DEFAULT_USE_CXA_ATEXIT 2
12614 if test x
$with_system_libunwind = xyes
; then
12615 if test x
$host = x
$target; then
12616 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12617 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12618 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 ac_func_search_save_LIBS
=$LIBS
12622 ac_cv_search__Unwind_GetIPInfo
=no
12623 cat >conftest.
$ac_ext <<_ACEOF
12626 cat confdefs.h
>>conftest.
$ac_ext
12627 cat >>conftest.
$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12630 /* Override any gcc2 internal prototype to avoid an error. */
12634 /* We use char because int might match the return type of a gcc2
12635 builtin and then its argument prototype would still apply. */
12636 char _Unwind_GetIPInfo ();
12640 _Unwind_GetIPInfo ();
12645 rm -f conftest.
$ac_objext conftest
$ac_exeext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647 (eval $ac_link) 2>conftest.er1
12649 grep -v '^ *+' conftest.er1
>conftest.err
12651 cat conftest.err
>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try
='test -z "$ac_c_werror_flag"
12655 || test ! -s conftest.err'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try
='test -s conftest$ac_exeext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_cv_search__Unwind_GetIPInfo
="none required"
12669 echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.
$ac_ext >&5
12673 rm -f conftest.err conftest.
$ac_objext \
12674 conftest
$ac_exeext conftest.
$ac_ext
12675 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
12676 for ac_lib
in unwind
; do
12677 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12678 cat >conftest.
$ac_ext <<_ACEOF
12681 cat confdefs.h
>>conftest.
$ac_ext
12682 cat >>conftest.
$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12685 /* Override any gcc2 internal prototype to avoid an error. */
12689 /* We use char because int might match the return type of a gcc2
12690 builtin and then its argument prototype would still apply. */
12691 char _Unwind_GetIPInfo ();
12695 _Unwind_GetIPInfo ();
12700 rm -f conftest.
$ac_objext conftest
$ac_exeext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12702 (eval $ac_link) 2>conftest.er1
12704 grep -v '^ *+' conftest.er1
>conftest.err
12706 cat conftest.err
>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try
='test -z "$ac_c_werror_flag"
12710 || test ! -s conftest.err'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try
='test -s conftest$ac_exeext'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
12722 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.
$ac_ext >&5
12729 rm -f conftest.err conftest.
$ac_objext \
12730 conftest
$ac_exeext conftest.
$ac_ext
12733 LIBS
=$ac_func_search_save_LIBS
12735 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12736 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12737 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
12738 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12747 if test x
$use_getipinfo = xyes
; then
12749 cat >>confdefs.h
<<\_ACEOF
12750 #define HAVE_GETIPINFO 1
12754 echo "The system unwind library does not support _Unwind_GetIPInfo."
12757 # Look for a file containing extra machine modes.
12758 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12759 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12762 cat >>confdefs.h
<<_ACEOF
12763 #define EXTRA_MODES_FILE "config/$extra_modes"
12768 # Convert extra_options into a form suitable for Makefile use.
12770 for f
in $extra_options; do
12771 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12775 # auto-host.h is the file containing items generated by autoconf and is
12776 # the first file included by config.h.
12777 # If host=build, it is correct to have bconfig include auto-host.h
12778 # as well. If host!=build, we are in error and need to do more
12779 # work to find out the build config parameters.
12780 if test x
$host = x
$build
12782 build_auto
=auto-host.h
12784 # We create a subdir, then run autoconf in the subdir.
12785 # To prevent recursion we set host and build for the new
12786 # invocation of configure to the build for this invocation
12793 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12794 *) realsrcdir
=..
/${srcdir};;
12796 saved_CFLAGS
="${CFLAGS}"
12797 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12798 ${realsrcdir}/configure \
12799 --enable-languages=${enable_languages-all} \
12800 --target=$target_alias --host=$build_alias --build=$build_alias
12801 CFLAGS
="${saved_CFLAGS}"
12803 # We just finished tests for the build machine, so rename
12804 # the file auto-build.h in the gcc directory.
12805 mv auto-host.h ..
/auto-build.h
12808 build_auto
=auto-build.h
12812 tm_file
="${tm_file} defaults.h"
12813 tm_p_file
="${tm_p_file} tm-preds.h"
12814 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12815 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12816 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12817 # put this back in temporarily.
12818 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12824 # Compile in configure arguments.
12825 if test -f configargs.h
; then
12826 # Being re-configured.
12827 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12828 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12830 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12833 # Double all backslashes and backslash all quotes to turn
12834 # gcc_config_arguments into a C string.
12835 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12836 $gcc_config_arguments
12838 gcc_config_arguments_str
=`cat conftest.out`
12841 cat > configargs.h
<<EOF
12842 /* Generated automatically. */
12843 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12844 static const char thread_model[] = "$thread_file";
12846 static const struct {
12847 const char *name, *value;
12848 } configure_default_options[] = $configure_default_options;
12851 # Internationalization
12852 # If we haven't got the data from the intl directory,
12853 # assume NLS is disabled.
12862 if test -f ..
/intl
/config.intl
; then
12863 . ..
/intl
/config.intl
12865 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12866 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12867 if test x
"$USE_NLS" != xyes
; then
12868 echo "$as_me:$LINENO: result: no" >&5
12869 echo "${ECHO_T}no" >&6
12871 echo "$as_me:$LINENO: result: yes" >&5
12872 echo "${ECHO_T}yes" >&6
12874 cat >>confdefs.h
<<\_ACEOF
12875 #define ENABLE_NLS 1
12879 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12880 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12881 # Look for .po and .gmo files in the source directory.
12884 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12885 # If there aren't any .gmo files the shell will give us the
12886 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12888 case "$cat" in *\
**)
12891 # The quadruple backslash is collapsed to a double backslash
12892 # by the backticks, then collapsed again by the double quotes,
12893 # leaving us with one backslash in the sed expression (right
12894 # before the dot that mustn't act as a wildcard).
12895 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12896 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12897 # The user is allowed to set LINGUAS to a list of languages to
12898 # install catalogs for. If it's empty that means "all of them."
12899 if test "x$LINGUAS" = x
; then
12900 CATALOGS
="$CATALOGS $cat"
12901 XLINGUAS
="$XLINGUAS $lang"
12903 case "$LINGUAS" in *$lang*)
12904 CATALOGS
="$CATALOGS $cat"
12905 XLINGUAS
="$XLINGUAS $lang"
12910 LINGUAS
="$XLINGUAS"
12911 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12912 echo "${ECHO_T}$LINGUAS" >&6
12925 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12926 # -liconv on the link line twice.
12927 case "$LIBINTL" in *$LIBICONV*)
12931 # Check whether --enable-secureplt or --disable-secureplt was given.
12932 if test "${enable_secureplt+set}" = set; then
12933 enableval
="$enable_secureplt"
12937 # Windows32 Registry support for specifying GCC installation paths.
12938 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12939 if test "${enable_win32_registry+set}" = set; then
12940 enableval
="$enable_win32_registry"
12945 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12946 if test "x$enable_win32_registry" != xno
; then
12947 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12948 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12949 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 ac_func_search_save_LIBS
=$LIBS
12953 ac_cv_search_RegOpenKeyExA
=no
12954 cat >conftest.
$ac_ext <<_ACEOF
12957 cat confdefs.h
>>conftest.
$ac_ext
12958 cat >>conftest.
$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12961 /* Override any gcc2 internal prototype to avoid an error. */
12965 /* We use char because int might match the return type of a gcc2
12966 builtin and then its argument prototype would still apply. */
12967 char RegOpenKeyExA ();
12976 rm -f conftest.
$ac_objext conftest
$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>conftest.er1
12980 grep -v '^ *+' conftest.er1
>conftest.err
12982 cat conftest.err
>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try
='test -z "$ac_c_werror_flag"
12986 || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try
='test -s conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 ac_cv_search_RegOpenKeyExA
="none required"
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.
$ac_ext >&5
13004 rm -f conftest.err conftest.
$ac_objext \
13005 conftest
$ac_exeext conftest.
$ac_ext
13006 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13007 for ac_lib
in advapi32
; do
13008 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13009 cat >conftest.
$ac_ext <<_ACEOF
13012 cat confdefs.h
>>conftest.
$ac_ext
13013 cat >>conftest.
$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13016 /* Override any gcc2 internal prototype to avoid an error. */
13020 /* We use char because int might match the return type of a gcc2
13021 builtin and then its argument prototype would still apply. */
13022 char RegOpenKeyExA ();
13031 rm -f conftest.
$ac_objext conftest
$ac_exeext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>conftest.er1
13035 grep -v '^ *+' conftest.er1
>conftest.err
13037 cat conftest.err
>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try
='test -z "$ac_c_werror_flag"
13041 || test ! -s conftest.err'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try
='test -s conftest$ac_exeext'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.
$ac_ext >&5
13060 rm -f conftest.err conftest.
$ac_objext \
13061 conftest
$ac_exeext conftest.
$ac_ext
13064 LIBS
=$ac_func_search_save_LIBS
13066 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13067 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13068 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13069 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13072 enable_win32_registry
=no
13077 if test "x$enable_win32_registry" != xno
; then
13079 cat >>confdefs.h
<<\_ACEOF
13080 #define ENABLE_WIN32_REGISTRY 1
13084 if test "x$enable_win32_registry" != xyes \
13085 && test "x$enable_win32_registry" != x
; then
13087 cat >>confdefs.h
<<_ACEOF
13088 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13096 # Get an absolute path to the GCC top-level source directory
13097 holddir
=`${PWDCMD-pwd}`
13099 topdir
=`${PWDCMD-pwd}`
13102 # Conditionalize the makefile for this host machine.
13104 for f
in ${host_xmake_file}
13106 if test -f ${srcdir}/config
/$f
13108 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13112 # Conditionalize the makefile for this target machine.
13114 for f
in ${tmake_file}
13116 if test -f ${srcdir}/config
/$f
13118 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13121 tmake_file
="${tmake_file_}"
13123 # This is a terrible hack which will go away some day.
13124 host_cc_for_libada
=${CC}
13127 out_object_file
=`basename $out_file .c`.o
13129 tm_file_list
="options.h"
13130 tm_include_list
="options.h"
13131 for f
in $tm_file; do
13134 f
=`echo $f | sed 's/^..//'`
13135 tm_file_list
="${tm_file_list} $f"
13136 tm_include_list
="${tm_include_list} $f"
13139 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13140 tm_include_list
="${tm_include_list} $f"
13143 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13144 tm_include_list
="${tm_include_list} config/$f"
13151 for f
in $tm_p_file; do
13154 tm_p_file_list
="${tm_p_file_list} $f"
13155 tm_p_include_list
="${tm_p_include_list} $f"
13158 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13159 tm_p_include_list
="${tm_p_include_list} config/$f"
13165 for f
in $xm_file; do
13168 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13169 xm_include_list
="${xm_include_list} $f"
13172 xm_file_list
="${xm_file_list} $f"
13173 xm_include_list
="${xm_include_list} $f"
13176 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13177 xm_include_list
="${xm_include_list} config/$f"
13183 host_xm_include_list
=
13184 for f
in $host_xm_file; do
13187 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13188 host_xm_include_list
="${host_xm_include_list} $f"
13191 host_xm_file_list
="${host_xm_file_list} $f"
13192 host_xm_include_list
="${host_xm_include_list} $f"
13195 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13196 host_xm_include_list
="${host_xm_include_list} config/$f"
13201 build_xm_file_list
=
13202 for f
in $build_xm_file; do
13205 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13206 build_xm_include_list
="${build_xm_include_list} $f"
13208 auto-build.h | auto-host.h
)
13209 build_xm_file_list
="${build_xm_file_list} $f"
13210 build_xm_include_list
="${build_xm_include_list} $f"
13213 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13214 build_xm_include_list
="${build_xm_include_list} config/$f"
13219 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13220 # cross-compiler which does not use the native headers and libraries.
13221 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13224 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13226 if test "x$with_build_sysroot" != x
; then
13227 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13229 # This value is used, even on a native system, because
13230 # CROSS_SYSTEM_HEADER_DIR is just
13231 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13232 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13235 if test x
$host != x
$target
13237 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13239 SYSTEM_HEADER_DIR
=$build_system_header_dir
13240 case "$host","$target" in
13241 # Darwin crosses can use the host system's libraries and headers,
13242 # because of the fat library support. Of course, it must be the
13243 # same version of Darwin on both sides. Allow the user to
13244 # just say --target=foo-darwin without a version number to mean
13245 # "the version on this system".
13246 *-*-darwin*,*-*-darwin*)
13247 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13248 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13249 if test $hostos = $targetos -o $targetos = darwin
; then
13251 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13256 i?
86-*-*,x86_64-
*-* \
13257 | powerpc
*-*-*,powerpc64
*-*-*)
13258 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13260 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13261 SYSTEM_HEADER_DIR
=$build_system_header_dir
13264 # If this is a cross-compiler that does not
13265 # have its own set of headers then define
13268 # If this is using newlib, without having the headers available now,
13269 # then define inhibit_libc in LIBGCC2_CFLAGS.
13270 # This prevents libgcc2 from containing any code which requires libc
13273 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13274 test x
$with_newlib = xyes
; } &&
13275 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13280 # When building gcc with a cross-compiler, we need to adjust things so
13281 # that the generator programs are still built with the native compiler.
13282 # Also, we cannot run fixincludes or fix-header.
13284 # These are the normal (build=host) settings:
13285 CC_FOR_BUILD
='$(CC)'
13286 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13287 STMP_FIXINC
=stmp-fixinc
13289 # Possibly disable fixproto, on a per-target basis.
13290 case ${use_fixproto} in
13295 STMP_FIXPROTO
=stmp-fixproto
13300 # And these apply if build != host, or we are generating coverage data
13301 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13303 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13305 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13306 if test "x$STMP_FIXPROTO" != x
; then
13307 STMP_FIXPROTO
=stmp-install-fixproto
13312 # Expand extra_headers to include complete path.
13313 # This substitutes for lots of t-* files.
13314 extra_headers_list
=
13315 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13316 for file in ${extra_headers} ; do
13317 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13320 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13321 if test x
"$use_gcc_tgmath" = xyes
13322 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13325 # Define collect2 in Makefile.
13326 case $host_can_use_collect2 in
13328 *) collect2
='collect2$(exeext)' ;;
13332 # Add a definition of USE_COLLECT2 if system wants one.
13333 case $use_collect2 in
13334 no
) use_collect2
= ;;
13337 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13338 xm_defines
="${xm_defines} USE_COLLECT2"
13339 case $host_can_use_collect2 in
13341 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13342 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13343 { (exit 1); exit 1; }; }
13349 # ---------------------------
13350 # Assembler & linker features
13351 # ---------------------------
13353 # Identify the assembler which will work hand-in-glove with the newly
13354 # built GCC, so that we can examine its features. This is the assembler
13355 # which will be driven by the driver program.
13357 # If build != host, and we aren't building gas in-tree, we identify a
13358 # build->target assembler and hope that it will have the same features
13359 # as the host->target assembler we'll be using.
13360 gcc_cv_gas_major_version
=
13361 gcc_cv_gas_minor_version
=
13362 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13364 if test "${gcc_cv_as+set}" = set; then
13368 if test -x "$DEFAULT_ASSEMBLER"; then
13369 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13370 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13371 && test -f ..
/gas
/Makefile \
13372 && test x
$build = x
$host; then
13373 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13374 elif test -x as
$build_exeext; then
13375 # Build using assembler in the current directory.
13376 gcc_cv_as
=.
/as
$build_exeext
13377 elif test -x $AS_FOR_TARGET; then
13378 gcc_cv_as
="$AS_FOR_TARGET"
13380 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13381 set dummy
$AS_FOR_TARGET; ac_word
=$2
13382 echo "$as_me:$LINENO: checking for $ac_word" >&5
13383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13384 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13393 for as_dir
in $PATH
13396 test -z "$as_dir" && as_dir
=.
13397 for ac_exec_ext
in '' $ac_executable_extensions; do
13398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13399 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13409 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13411 if test -n "$gcc_cv_as"; then
13412 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13413 echo "${ECHO_T}$gcc_cv_as" >&6
13415 echo "$as_me:$LINENO: result: no" >&5
13416 echo "${ECHO_T}no" >&6
13423 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13425 case "$ORIGINAL_AS_FOR_TARGET" in
13426 .
/as | .
/as
$build_exeext) ;;
13427 *) ac_config_files
="$ac_config_files as:exec-tool.in"
13431 echo "$as_me:$LINENO: checking what assembler to use" >&5
13432 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13433 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13434 # Single tree build which includes gas. We want to prefer it
13435 # over whatever linker top-level may have detected, since
13436 # we'll use what we're building after installation anyway.
13437 echo "$as_me:$LINENO: result: newly built gas" >&5
13438 echo "${ECHO_T}newly built gas" >&6
13440 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13441 for f
in $gcc_cv_as_bfd_srcdir/configure \
13442 $gcc_cv_as_gas_srcdir/configure \
13443 $gcc_cv_as_gas_srcdir/configure.
in \
13444 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13445 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13446 if test x
$gcc_cv_gas_version != x
; then
13450 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13451 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13452 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13453 case $gcc_cv_gas_patch_version in
13454 "") gcc_cv_gas_patch_version
="0" ;;
13456 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13457 + $gcc_cv_gas_minor_version \) \* 1000 \
13458 + $gcc_cv_gas_patch_version`
13460 in_tree_gas_is_elf
=no
13461 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13462 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13463 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13465 in_tree_gas_is_elf
=yes
13468 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13469 echo "${ECHO_T}$gcc_cv_as" >&6
13473 # Identify the linker which will work hand-in-glove with the newly
13474 # built GCC, so that we can examine its features. This is the linker
13475 # which will be driven by the driver program.
13477 # If build != host, and we aren't building gas in-tree, we identify a
13478 # build->target linker and hope that it will have the same features
13479 # as the host->target linker we'll be using.
13480 gcc_cv_gld_major_version
=
13481 gcc_cv_gld_minor_version
=
13482 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13483 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13485 if test "${gcc_cv_ld+set}" = set; then
13489 if test -x "$DEFAULT_LINKER"; then
13490 gcc_cv_ld
="$DEFAULT_LINKER"
13491 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13492 && test -f ..
/ld
/Makefile \
13493 && test x
$build = x
$host; then
13494 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13495 elif test -x collect-ld
$build_exeext; then
13496 # Build using linker in the current directory.
13497 gcc_cv_ld
=.
/collect-ld
$build_exeext
13498 elif test -x $LD_FOR_TARGET; then
13499 gcc_cv_ld
="$LD_FOR_TARGET"
13501 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13502 set dummy
$LD_FOR_TARGET; ac_word
=$2
13503 echo "$as_me:$LINENO: checking for $ac_word" >&5
13504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13505 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13514 for as_dir
in $PATH
13517 test -z "$as_dir" && as_dir
=.
13518 for ac_exec_ext
in '' $ac_executable_extensions; do
13519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13520 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13530 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13532 if test -n "$gcc_cv_ld"; then
13533 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13534 echo "${ECHO_T}$gcc_cv_ld" >&6
13536 echo "$as_me:$LINENO: result: no" >&5
13537 echo "${ECHO_T}no" >&6
13544 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13546 case "$ORIGINAL_LD_FOR_TARGET" in
13547 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
13548 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
13552 echo "$as_me:$LINENO: checking what linker to use" >&5
13553 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13554 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13555 # Single tree build which includes ld. We want to prefer it
13556 # over whatever linker top-level may have detected, since
13557 # we'll use what we're building after installation anyway.
13558 echo "$as_me:$LINENO: result: newly built ld" >&5
13559 echo "${ECHO_T}newly built ld" >&6
13561 in_tree_ld_is_elf
=no
13562 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13563 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13564 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13565 in_tree_ld_is_elf
=yes
13567 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
13569 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13570 if test x
$gcc_cv_gld_version != x
; then
13574 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13575 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13577 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13578 echo "${ECHO_T}$gcc_cv_ld" >&6
13582 # Figure out what nm we will be using.
13583 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13584 if test "${gcc_cv_nm+set}" = set; then
13588 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13589 && test -f ..
/binutils
/Makefile \
13590 && test x
$build = x
$host; then
13591 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13592 elif test -x nm
$build_exeext; then
13593 gcc_cv_nm
=.
/nm
$build_exeext
13594 elif test -x $NM_FOR_TARGET; then
13595 gcc_cv_nm
="$NM_FOR_TARGET"
13597 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13598 set dummy
$NM_FOR_TARGET; ac_word
=$2
13599 echo "$as_me:$LINENO: checking for $ac_word" >&5
13600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13601 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13610 for as_dir
in $PATH
13613 test -z "$as_dir" && as_dir
=.
13614 for ac_exec_ext
in '' $ac_executable_extensions; do
13615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13616 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13628 if test -n "$gcc_cv_nm"; then
13629 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13630 echo "${ECHO_T}$gcc_cv_nm" >&6
13632 echo "$as_me:$LINENO: result: no" >&5
13633 echo "${ECHO_T}no" >&6
13640 echo "$as_me:$LINENO: checking what nm to use" >&5
13641 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13642 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13643 # Single tree build which includes binutils.
13644 echo "$as_me:$LINENO: result: newly built nm" >&5
13645 echo "${ECHO_T}newly built nm" >&6
13648 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13649 echo "${ECHO_T}$gcc_cv_nm" >&6
13653 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13655 case "$ORIGINAL_NM_FOR_TARGET" in
13656 .
/nm | .
/nm
$build_exeext) ;;
13657 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
13662 # Figure out what objdump we will be using.
13663 if test "${gcc_cv_objdump+set}" = set; then
13667 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13668 && test -f ..
/binutils
/Makefile \
13669 && test x
$build = x
$host; then
13670 # Single tree build which includes binutils.
13671 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13672 elif test -x objdump
$build_exeext; then
13673 gcc_cv_objdump
=.
/objdump
$build_exeext
13674 elif test -x $OBJDUMP_FOR_TARGET; then
13675 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13677 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13678 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13679 echo "$as_me:$LINENO: checking for $ac_word" >&5
13680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13681 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 case $gcc_cv_objdump in
13686 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13690 for as_dir
in $PATH
13693 test -z "$as_dir" && as_dir
=.
13694 for ac_exec_ext
in '' $ac_executable_extensions; do
13695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13696 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13706 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13708 if test -n "$gcc_cv_objdump"; then
13709 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13710 echo "${ECHO_T}$gcc_cv_objdump" >&6
13712 echo "$as_me:$LINENO: result: no" >&5
13713 echo "${ECHO_T}no" >&6
13720 echo "$as_me:$LINENO: checking what objdump to use" >&5
13721 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13722 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13723 # Single tree build which includes binutils.
13724 echo "$as_me:$LINENO: result: newly built objdump" >&5
13725 echo "${ECHO_T}newly built objdump" >&6
13726 elif test x
$gcc_cv_objdump = x
; then
13727 echo "$as_me:$LINENO: result: not found" >&5
13728 echo "${ECHO_T}not found" >&6
13730 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13731 echo "${ECHO_T}$gcc_cv_objdump" >&6
13734 # Figure out what assembler alignment features are present.
13735 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13736 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13737 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 gcc_cv_as_balign_and_p2align
=no
13741 if test $in_tree_gas = yes; then
13742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13743 then gcc_cv_as_balign_and_p2align
=yes
13745 elif test x
$gcc_cv_as != x
; then
13747 .p2align 2' > conftest.s
13748 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }
13755 gcc_cv_as_balign_and_p2align
=yes
13757 echo "configure: failed program was" >&5
13760 rm -f conftest.o conftest.s
13763 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13764 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13765 if test $gcc_cv_as_balign_and_p2align = yes; then
13767 cat >>confdefs.h
<<\_ACEOF
13768 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13773 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13774 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13775 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 gcc_cv_as_max_skip_p2align
=no
13779 if test $in_tree_gas = yes; then
13780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13781 then gcc_cv_as_max_skip_p2align
=yes
13783 elif test x
$gcc_cv_as != x
; then
13784 echo '.p2align 4,,7' > conftest.s
13785 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }
13792 gcc_cv_as_max_skip_p2align
=yes
13794 echo "configure: failed program was" >&5
13797 rm -f conftest.o conftest.s
13800 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13801 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13802 if test $gcc_cv_as_max_skip_p2align = yes; then
13804 cat >>confdefs.h
<<\_ACEOF
13805 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13810 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13811 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13812 if test "${gcc_cv_as_literal16+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 gcc_cv_as_literal16
=no
13816 if test $in_tree_gas = yes; then
13817 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13818 then gcc_cv_as_literal16
=yes
13820 elif test x
$gcc_cv_as != x
; then
13821 echo '.literal16' > conftest.s
13822 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }
13829 gcc_cv_as_literal16
=yes
13831 echo "configure: failed program was" >&5
13834 rm -f conftest.o conftest.s
13837 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13838 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13839 if test $gcc_cv_as_literal16 = yes; then
13841 cat >>confdefs.h
<<\_ACEOF
13842 #define HAVE_GAS_LITERAL16 1
13847 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13848 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13849 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 gcc_cv_as_subsection_m1
=no
13853 if test $in_tree_gas = yes; then
13854 if test $in_tree_gas_is_elf = yes \
13855 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13856 then gcc_cv_as_subsection_m1
=yes
13858 elif test x
$gcc_cv_as != x
; then
13859 echo 'conftest_label1: .word 0
13861 conftest_label2: .word 0
13862 .previous' > conftest.s
13863 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }
13870 if test x
$gcc_cv_nm != x
; then
13871 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13872 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13873 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13875 else gcc_cv_as_subsection_m1
=yes
13877 rm -f conftest.nm1 conftest.nm2
13880 echo "configure: failed program was" >&5
13883 rm -f conftest.o conftest.s
13886 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13887 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13888 if test $gcc_cv_as_subsection_m1 = yes; then
13890 cat >>confdefs.h
<<\_ACEOF
13891 #define HAVE_GAS_SUBSECTION_ORDERING 1
13896 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13897 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13898 if test "${gcc_cv_as_weak+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 if test $in_tree_gas = yes; then
13903 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13904 then gcc_cv_as_weak
=yes
13906 elif test x
$gcc_cv_as != x
; then
13907 echo ' .weak foobar' > conftest.s
13908 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }
13917 echo "configure: failed program was" >&5
13920 rm -f conftest.o conftest.s
13923 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13924 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13925 if test $gcc_cv_as_weak = yes; then
13927 cat >>confdefs.h
<<\_ACEOF
13928 #define HAVE_GAS_WEAK 1
13933 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13934 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13935 if test "${gcc_cv_as_weakref+set}" = set; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 gcc_cv_as_weakref
=no
13939 if test $in_tree_gas = yes; then
13940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13941 then gcc_cv_as_weakref
=yes
13943 elif test x
$gcc_cv_as != x
; then
13944 echo ' .weakref foobar, barfnot' > conftest.s
13945 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }
13952 gcc_cv_as_weakref
=yes
13954 echo "configure: failed program was" >&5
13957 rm -f conftest.o conftest.s
13960 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13961 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13962 if test $gcc_cv_as_weakref = yes; then
13964 cat >>confdefs.h
<<\_ACEOF
13965 #define HAVE_GAS_WEAKREF 1
13970 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13971 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13972 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 gcc_cv_as_nsubspa_comdat
=no
13976 if test $in_tree_gas = yes; then
13977 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13978 then gcc_cv_as_nsubspa_comdat
=yes
13980 elif test x
$gcc_cv_as != x
; then
13981 echo ' .SPACE $TEXT$
13982 .NSUBSPA $CODE$,COMDAT' > conftest.s
13983 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; }
13990 gcc_cv_as_nsubspa_comdat
=yes
13992 echo "configure: failed program was" >&5
13995 rm -f conftest.o conftest.s
13998 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13999 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
14000 if test $gcc_cv_as_nsubspa_comdat = yes; then
14002 cat >>confdefs.h
<<\_ACEOF
14003 #define HAVE_GAS_NSUBSPA_COMDAT 1
14008 # .hidden needs to be supported in both the assembler and the linker,
14009 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14010 # This is irritatingly difficult to feature test for; we have to check the
14011 # date string after the version number. If we've got an in-tree
14012 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14014 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14015 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14016 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14017 if test "${gcc_cv_as_hidden+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 gcc_cv_as_hidden
=no
14021 if test $in_tree_gas = yes; then
14022 if test $in_tree_gas_is_elf = yes \
14023 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14024 then gcc_cv_as_hidden
=yes
14026 elif test x
$gcc_cv_as != x
; then
14027 echo ' .hidden foobar
14028 foobar:' > conftest.s
14029 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }
14036 gcc_cv_as_hidden
=yes
14038 echo "configure: failed program was" >&5
14041 rm -f conftest.o conftest.s
14044 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14045 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14048 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14049 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14050 if test "${gcc_cv_ld_hidden+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 if test $in_tree_ld = yes ; then
14054 gcc_cv_ld_hidden
=no
14055 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 \
14056 && test $in_tree_ld_is_elf = yes; then
14057 gcc_cv_ld_hidden
=yes
14060 gcc_cv_ld_hidden
=yes
14061 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14062 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
14063 ld_vers
=`echo $ld_ver | sed -n \
14064 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14065 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'`
14066 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
14067 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14068 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14069 if test 0"$ld_date" -lt 20020404; then
14070 if test -n "$ld_date"; then
14071 # If there was date string, but was earlier than 2002-04-04, fail
14072 gcc_cv_ld_hidden
=no
14073 elif test -z "$ld_vers"; then
14074 # If there was no date string nor ld version number, something is wrong
14075 gcc_cv_ld_hidden
=no
14077 test -z "$ld_vers_patch" && ld_vers_patch
=0
14078 if test "$ld_vers_major" -lt 2; then
14079 gcc_cv_ld_hidden
=no
14080 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14081 gcc_cv_ld_hidden
="no"
14082 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14083 gcc_cv_ld_hidden
=no
14088 case "${target}" in
14089 hppa64
*-*-hpux* | ia64
*-*-hpux*)
14090 gcc_cv_ld_hidden
=yes
14093 gcc_cv_ld_hidden
=no
14099 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14100 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14101 libgcc_visibility
=no
14104 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14105 libgcc_visibility
=yes
14107 cat >>confdefs.h
<<\_ACEOF
14108 #define HAVE_GAS_HIDDEN 1
14113 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14114 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14115 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14116 if test "${gcc_cv_as_leb128+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 gcc_cv_as_leb128
=no
14120 if test $in_tree_gas = yes; then
14121 if test $in_tree_gas_is_elf = yes \
14122 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14123 then gcc_cv_as_leb128
=yes
14125 elif test x
$gcc_cv_as != x
; then
14132 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }
14139 # GAS versions before 2.11 do not support uleb128,
14140 # despite appearing to.
14141 # ??? There exists an elf-specific test that will crash
14142 # the assembler. Perhaps it's better to figure out whether
14143 # arbitrary sections are supported and try the test.
14144 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14145 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
14146 as_vers
=`echo $as_ver | sed -n \
14147 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14148 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
14149 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14150 if test $as_major -eq 2 && test $as_minor -lt 11
14152 else gcc_cv_as_leb128
=yes
14156 echo "configure: failed program was" >&5
14159 rm -f conftest.o conftest.s
14162 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14163 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14164 if test $gcc_cv_as_leb128 = yes; then
14166 cat >>confdefs.h
<<\_ACEOF
14167 #define HAVE_AS_LEB128 1
14172 # GAS versions up to and including 2.11.0 may mis-optimize
14174 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14175 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14176 if test "${gcc_cv_as_eh_frame+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 gcc_cv_as_eh_frame
=no
14180 if test $in_tree_gas = yes; then
14181 if test $in_tree_gas_is_elf = yes \
14182 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14183 then gcc_cv_as_eh_frame
=yes
14185 elif test x
$gcc_cv_as != x
; then
14192 .section .eh_frame,"aw",@progbits
14194 .4byte .LECIE1-.LSCIE1
14208 .4byte .LEFDE1-.LASFDE1
14210 .4byte .LASFDE1-__FRAME_BEGIN__
14217 .LEFDE1:' > conftest.s
14218 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }
14225 cat > conftest.lit
<<EOF
14226 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14227 0010 01000000 12000000 18000000 00000000 ................
14228 0020 08000000 04080000 0044 .........D
14230 cat > conftest.big
<<EOF
14231 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14232 0010 00000001 00000012 00000018 00000000 ................
14233 0020 00000008 04000000 0844 .........D
14235 # If the assembler didn't choke, and we can objdump,
14236 # and we got the correct data, then succeed.
14237 # The text in the here-document typically retains its unix-style line
14238 # endings, while the output of objdump will use host line endings.
14239 # Therefore, use diff -b for the comparisons.
14240 if test x
$gcc_cv_objdump != x \
14241 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
14242 |
tail -3 > conftest.got \
14243 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
14244 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
14246 gcc_cv_as_eh_frame
=yes
14247 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 gcc_cv_as_eh_frame
=buggy
14255 # Uh oh, what do we do now?
14256 gcc_cv_as_eh_frame
=no
14259 echo "configure: failed program was" >&5
14262 rm -f conftest.o conftest.s
14265 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14266 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14269 if test $gcc_cv_as_eh_frame = buggy
; then
14271 cat >>confdefs.h
<<\_ACEOF
14272 #define USE_AS_TRADITIONAL_FORMAT 1
14277 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14278 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14279 if test "${gcc_cv_as_shf_merge+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 gcc_cv_as_shf_merge
=no
14283 if test $in_tree_gas = yes; then
14284 if test $in_tree_gas_is_elf = yes \
14285 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14286 then gcc_cv_as_shf_merge
=yes
14288 elif test x
$gcc_cv_as != x
; then
14289 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14290 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }
14297 gcc_cv_as_shf_merge
=yes
14299 echo "configure: failed program was" >&5
14302 rm -f conftest.o conftest.s
14305 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14306 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14308 if test $gcc_cv_as_shf_merge = no
; then
14309 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14310 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14311 if test "${gcc_cv_as_shf_merge+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 gcc_cv_as_shf_merge
=no
14315 if test $in_tree_gas = yes; then
14316 if test $in_tree_gas_is_elf = yes \
14317 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14318 then gcc_cv_as_shf_merge
=yes
14320 elif test x
$gcc_cv_as != x
; then
14321 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14322 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }
14329 gcc_cv_as_shf_merge
=yes
14331 echo "configure: failed program was" >&5
14334 rm -f conftest.o conftest.s
14337 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14338 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14342 cat >>confdefs.h
<<_ACEOF
14343 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14347 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14348 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14349 if test "${gcc_cv_as_comdat_group+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 gcc_cv_as_comdat_group
=no
14353 if test $in_tree_gas = yes; then
14354 if test $in_tree_gas_is_elf = yes \
14355 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14356 then gcc_cv_as_comdat_group
=yes
14358 elif test x
$gcc_cv_as != x
; then
14359 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14360 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }
14367 gcc_cv_as_comdat_group
=yes
14369 echo "configure: failed program was" >&5
14372 rm -f conftest.o conftest.s
14375 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14376 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14378 if test $gcc_cv_as_comdat_group = yes; then
14379 gcc_cv_as_comdat_group_percent
=no
14381 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14382 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14383 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 gcc_cv_as_comdat_group_percent
=no
14387 if test $in_tree_gas = yes; then
14388 if test $in_tree_gas_is_elf = yes \
14389 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14390 then gcc_cv_as_comdat_group_percent
=yes
14392 elif test x
$gcc_cv_as != x
; then
14393 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14394 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }
14401 gcc_cv_as_comdat_group_percent
=yes
14403 echo "configure: failed program was" >&5
14406 rm -f conftest.o conftest.s
14409 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14410 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14413 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14415 if test 0"$ld_date" -lt 20050308; then
14416 if test -n "$ld_date"; then
14417 # If there was date string, but was earlier than 2005-03-08, fail
14419 elif test "$ld_vers_major" -lt 2; then
14421 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14426 # assume linkers other than GNU ld don't support COMDAT group
14429 if test $comdat_group = no
; then
14430 gcc_cv_as_comdat_group
=no
14431 gcc_cv_as_comdat_group_percent
=no
14434 cat >>confdefs.h
<<_ACEOF
14435 #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`
14439 # Thread-local storage - the check is heavily parametrized.
14447 .section ".tdata","awT",@progbits
14450 ldq $27,__tls_get_addr($29) !literal!1
14451 lda $16,foo($29) !tlsgd!1
14452 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14453 ldq $27,__tls_get_addr($29) !literal!2
14454 lda $16,foo($29) !tlsldm!2
14455 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14456 ldq $1,foo($29) !gotdtprel
14457 ldah $2,foo($29) !dtprelhi
14458 lda $3,foo($2) !dtprello
14459 lda $4,foo($29) !dtprel
14460 ldq $1,foo($29) !gottprel
14461 ldah $2,foo($29) !tprelhi
14462 lda $3,foo($2) !tprello
14463 lda $4,foo($29) !tprel'
14466 tls_as_opt
=--fatal-warnings
14470 .section ".tdata","awT",@progbits
14473 call #gettlsoff(x)'
14482 .section ".tdata","awT",@progbits
14486 addil LT%foo-$tls_gdidx$,gp
14487 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14490 addil LT%foo-$tls_ldidx$,gp
14492 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14493 addil LR%foo-$tls_dtpoff$,%ret0
14494 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14496 addil LT%foo-$tls_ieoff$,gp
14497 ldw RT%foo-$tls_ieoff$(%r1),%t2
14500 addil LR%foo-$tls_leoff$,%t1
14501 ldo RR%foo-$tls_leoff$(%r1),%t2'
14504 tls_as_opt
=--fatal-warnings
14508 .section ".tdata","awT",%progbits
14511 .word foo(gottpoff)
14521 .section ".tdata","awT",@progbits
14525 leal foo@TLSGD(,%ebx,1), %eax
14526 leal foo@TLSLDM(%ebx), %eax
14527 leal foo@DTPOFF(%eax), %edx
14528 movl foo@GOTTPOFF(%ebx), %eax
14529 subl foo@GOTTPOFF(%ebx), %eax
14530 addl foo@GOTNTPOFF(%ebx), %eax
14531 movl foo@INDNTPOFF, %eax
14532 movl $foo@TPOFF, %eax
14533 subl $foo@TPOFF, %eax
14534 leal foo@NTPOFF(%ecx), %eax'
14537 tls_as_opt
=--fatal-warnings
14541 .section ".tdata","awT",@progbits
14545 leaq foo@TLSGD(%rip), %rdi
14546 leaq foo@TLSLD(%rip), %rdi
14547 leaq foo@DTPOFF(%rax), %rdx
14548 movq foo@GOTTPOFF(%rip), %rax
14549 movq $foo@TPOFF, %rax'
14552 tls_as_opt
=--fatal-warnings
14556 .section ".tdata","awT",@progbits
14559 addl r16 = @ltoff(@dtpmod(foo#)), gp
14560 addl r17 = @ltoff(@dtprel(foo#)), gp
14561 addl r18 = @ltoff(@tprel(foo#)), gp
14562 addl r19 = @dtprel(foo#), gp
14563 adds r21 = @dtprel(foo#), r13
14564 movl r23 = @dtprel(foo#)
14565 addl r20 = @tprel(foo#), gp
14566 adds r22 = @tprel(foo#), r13
14567 movl r24 = @tprel(foo#)'
14570 tls_as_opt
=--fatal-warnings
14574 .section .tdata,"awT",@progbits
14578 addiu $4, $28, %tlsgd(x)
14579 addiu $4, $28, %tlsldm(x)
14580 lui $4, %dtprel_hi(x)
14581 addiu $4, $4, %dtprel_lo(x)
14582 lw $4, %gottprel(x)($28)
14583 lui $4, %tprel_hi(x)
14584 addiu $4, $4, %tprel_lo(x)'
14587 tls_as_opt
='-32 --fatal-warnings'
14591 .section ".tdata","awT",@progbits
14599 addi 3,31,ld0@got@tlsgd
14601 addi 3,31,x1@got@tlsld
14604 addis 9,3,x2@dtprel@ha
14605 addi 9,9,x2@dtprel@l
14606 lwz 9,x3@got@tprel(31)
14609 addis 9,2,x2@tprel@ha
14610 addi 9,9,x2@tprel@l'
14613 tls_as_opt
="-a32 --fatal-warnings"
14617 .section ".tdata","awT",@progbits
14625 addi 3,2,ld0@got@tlsgd
14631 addi 3,2,x1@got@tlsld
14637 addis 9,3,x2@dtprel@ha
14638 addi 9,9,x2@dtprel@l
14641 ld 9,x3@got@dtprel(2)
14647 tls_as_opt
="-a64 --fatal-warnings"
14651 .section ".tdata","awT",@progbits
14658 .long foo@GOTNTPOFF
14659 .long foo@INDNTPOFF
14660 l %r1,foo@GOTNTPOFF(%r12)
14661 l %r1,0(%r1):tls_load:foo
14662 bas %r14,0(%r1,%r13):tls_gdcall:foo
14663 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14666 tls_as_opt
="-m31 --fatal-warnings"
14670 .section ".tdata","awT",@progbits
14677 .quad foo@GOTNTPOFF
14678 lg %r1,foo@GOTNTPOFF(%r12)
14679 larl %r1,foo@INDNTPOFF
14680 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14681 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14684 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14686 sh-
*-* | sh
[34]-*-*)
14688 .section ".tdata","awT",@progbits
14698 tls_as_opt
=--fatal-warnings
14702 sparc
*-sun-solaris2.
[56789]*)
14703 # TLS was introduced in the Solaris 9 4/04 release but
14704 # we do not enable it by default on Solaris 9 either.
14705 if test "x$enable_tls" = xyes
; then
14711 sparc
*-sun-solaris2.
*)
14718 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14720 .section ".tdata",#alloc,#write,#tls
14723 sethi %tgd_hi22(foo), %o0
14724 add %o0, %tgd_lo10(foo), %o1
14725 add %l7, %o1, %o0, %tgd_add(foo)
14726 call __tls_get_addr, %tgd_call(foo)
14727 sethi %tldm_hi22(foo), %l1
14728 add %l1, %tldm_lo10(foo), %l2
14729 add %l7, %l2, %o0, %tldm_add(foo)
14730 call __tls_get_addr, %tldm_call(foo)
14731 sethi %tldo_hix22(foo), %l3
14732 xor %l3, %tldo_lox10(foo), %l4
14733 add %o0, %l4, %l5, %tldo_add(foo)
14734 sethi %tie_hi22(foo), %o3
14735 add %o3, %tie_lo10(foo), %o3
14736 ld [%l7 + %o3], %o2, %tie_ld(foo)
14737 add %g7, %o2, %o4, %tie_add(foo)
14738 sethi %tle_hix22(foo), %l1
14739 xor %l1, %tle_lox10(foo), %o5
14740 ld [%g7 + %o5], %o1'
14745 .section ".tdata","awT",@progbits
14748 sethi %tgd_hi22(foo), %o0
14749 add %o0, %tgd_lo10(foo), %o1
14750 add %l7, %o1, %o0, %tgd_add(foo)
14751 call __tls_get_addr, %tgd_call(foo)
14752 sethi %tldm_hi22(foo), %l1
14753 add %l1, %tldm_lo10(foo), %l2
14754 add %l7, %l2, %o0, %tldm_add(foo)
14755 call __tls_get_addr, %tldm_call(foo)
14756 sethi %tldo_hix22(foo), %l3
14757 xor %l3, %tldo_lox10(foo), %l4
14758 add %o0, %l4, %l5, %tldo_add(foo)
14759 sethi %tie_hi22(foo), %o3
14760 add %o3, %tie_lo10(foo), %o3
14761 ld [%l7 + %o3], %o2, %tie_ld(foo)
14762 add %g7, %o2, %o4, %tie_add(foo)
14763 sethi %tle_hix22(foo), %l1
14764 xor %l1, %tle_lox10(foo), %o5
14765 ld [%g7 + %o5], %o1'
14768 tls_as_opt
="-32 --fatal-warnings"
14773 if test "x$enable_tls" = xno
; then
14774 : # TLS explicitly disabled.
14775 elif test "x$enable_tls" = xyes
; then
14776 set_have_as_tls
=yes # TLS explicitly enabled.
14777 elif test -z "$tls_first_major"; then
14778 : # If we don't have a check, assume no support.
14780 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14781 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14782 if test "${gcc_cv_as_tls+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 if test $in_tree_gas = yes; then
14787 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14788 then gcc_cv_as_tls
=yes
14790 elif test x
$gcc_cv_as != x
; then
14791 echo "$conftest_s" > conftest.s
14792 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }
14801 echo "configure: failed program was" >&5
14804 rm -f conftest.o conftest.s
14807 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14808 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14809 if test $gcc_cv_as_tls = yes; then
14810 set_have_as_tls
=yes
14813 if test $set_have_as_tls = yes ; then
14815 cat >>confdefs.h
<<\_ACEOF
14816 #define HAVE_AS_TLS 1
14821 # Target-specific assembler checks.
14823 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14824 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14825 gcc_cv_ld_static_dynamic
=no
14826 if test $in_tree_ld = yes ; then
14827 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14828 gcc_cv_ld_static_dynamic
=yes
14830 elif test x
$gcc_cv_ld != x
; then
14831 # Check if linker supports -Bstatic/-Bdynamic option
14832 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14833 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14834 gcc_cv_ld_static_dynamic
=yes
14837 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14839 cat >>confdefs.h
<<\_ACEOF
14840 #define HAVE_LD_STATIC_DYNAMIC 1
14844 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14845 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14847 if test x
"$demangler_in_ld" = xyes
; then
14848 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14849 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14850 gcc_cv_ld_demangle
=no
14851 if test $in_tree_ld = yes; then
14852 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 \
14853 gcc_cv_ld_demangle
=yes
14855 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14856 # Check if the GNU linker supports --demangle option
14857 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14858 gcc_cv_ld_demangle
=yes
14861 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14863 cat >>confdefs.h
<<\_ACEOF
14864 #define HAVE_LD_DEMANGLE 1
14868 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14869 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14873 # All TARGET_ABI_OSF targets.
14874 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14875 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14876 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14877 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 gcc_cv_as_alpha_explicit_relocs
=no
14881 if test $in_tree_gas = yes; then
14882 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14883 then gcc_cv_as_alpha_explicit_relocs
=yes
14885 elif test x
$gcc_cv_as != x
; then
14886 echo ' .set nomacro
14888 extbl $3, $2, $3 !lituse_bytoff!1
14889 ldq $2, a($29) !literal!1
14890 ldq $4, b($29) !literal!2
14891 ldq_u $3, 0($2) !lituse_base!1
14892 ldq $27, f($29) !literal!5
14893 jsr $26, ($27), f !lituse_jsr!5
14894 ldah $29, 0($26) !gpdisp!3
14895 lda $0, c($29) !gprel
14896 ldah $1, d($29) !gprelhigh
14897 lda $1, d($1) !gprellow
14898 lda $29, 0($29) !gpdisp!3' > conftest.s
14899 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }
14906 gcc_cv_as_alpha_explicit_relocs
=yes
14908 echo "configure: failed program was" >&5
14911 rm -f conftest.o conftest.s
14914 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14915 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14916 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14918 cat >>confdefs.h
<<\_ACEOF
14919 #define HAVE_AS_EXPLICIT_RELOCS 1
14923 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14924 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14925 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 gcc_cv_as_alpha_jsrdirect_relocs
=no
14929 if test $in_tree_gas = yes; then
14930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14931 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14933 elif test x
$gcc_cv_as != x
; then
14934 echo ' .set nomacro
14936 ldq $27, a($29) !literal!1
14937 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14938 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }
14945 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14947 echo "configure: failed program was" >&5
14950 rm -f conftest.o conftest.s
14953 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14954 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14955 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14957 cat >>confdefs.h
<<\_ACEOF
14958 #define HAVE_AS_JSRDIRECT_RELOCS 1
14965 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14966 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14967 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 gcc_cv_as_cris_no_mul_bug
=no
14971 if test $in_tree_gas = yes; then
14972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14973 then gcc_cv_as_cris_no_mul_bug
=yes
14975 elif test x
$gcc_cv_as != x
; then
14976 echo '.text' > conftest.s
14977 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }
14984 gcc_cv_as_cris_no_mul_bug
=yes
14986 echo "configure: failed program was" >&5
14989 rm -f conftest.o conftest.s
14992 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14993 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14994 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14996 cat >>confdefs.h
<<\_ACEOF
14997 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15004 echo "$as_me:$LINENO: checking assembler for .register" >&5
15005 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
15006 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15009 gcc_cv_as_sparc_register_op
=no
15010 if test x
$gcc_cv_as != x
; then
15011 echo '.register %g2, #scratch' > conftest.s
15012 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }
15019 gcc_cv_as_sparc_register_op
=yes
15021 echo "configure: failed program was" >&5
15024 rm -f conftest.o conftest.s
15027 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15028 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15029 if test $gcc_cv_as_sparc_register_op = yes; then
15031 cat >>confdefs.h
<<\_ACEOF
15032 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15037 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15038 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15039 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 gcc_cv_as_sparc_relax
=no
15043 if test x
$gcc_cv_as != x
; then
15044 echo '.text' > conftest.s
15045 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }
15052 gcc_cv_as_sparc_relax
=yes
15054 echo "configure: failed program was" >&5
15057 rm -f conftest.o conftest.s
15060 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15061 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15062 if test $gcc_cv_as_sparc_relax = yes; then
15064 cat >>confdefs.h
<<\_ACEOF
15065 #define HAVE_AS_RELAX_OPTION 1
15070 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15071 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15072 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 gcc_cv_as_sparc_ua_pcrel
=no
15076 if test x
$gcc_cv_as != x
; then
15083 .uaword %r_disp32(foo)' > conftest.s
15084 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; }
15091 if test x
$gcc_cv_ld != x \
15092 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
15093 gcc_cv_as_sparc_ua_pcrel
=yes
15097 echo "configure: failed program was" >&5
15100 rm -f conftest.o conftest.s
15103 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15104 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15105 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15107 cat >>confdefs.h
<<\_ACEOF
15108 #define HAVE_AS_SPARC_UA_PCREL 1
15112 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15113 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15114 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 gcc_cv_as_sparc_ua_pcrel_hidden
=no
15118 if test x
$gcc_cv_as != x
; then
15122 .uaword %r_disp32(foo)
15123 .byte 0x32, 0x33, 0x34
15127 .skip 4' > conftest.s
15128 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }
15135 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
15136 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
15137 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
15138 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
15139 if $gcc_cv_objdump -R conftest
2> /dev
/null \
15140 |
grep 'DISP32' > /dev
/null
2>&1; then
15143 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
15148 echo "configure: failed program was" >&5
15151 rm -f conftest.o conftest.s
15154 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15155 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15156 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15158 cat >>confdefs.h
<<\_ACEOF
15159 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15164 fi # unaligned pcrel relocs
15166 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15167 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15168 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 gcc_cv_as_sparc_offsetable_lo10
=no
15172 if test x
$gcc_cv_as != x
; then
15174 or %g1, %lo(ab) + 12, %g1
15175 or %g1, %lo(ab + 12), %g1' > conftest.s
15176 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; }
15183 if test x
$gcc_cv_objdump != x \
15184 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
15185 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
15186 gcc_cv_as_sparc_offsetable_lo10
=yes
15189 echo "configure: failed program was" >&5
15192 rm -f conftest.o conftest.s
15195 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15196 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15197 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15199 cat >>confdefs.h
<<\_ACEOF
15200 #define HAVE_AS_OFFSETABLE_LO10 1
15206 i
[34567]86-*-* | x86_64-
*-*)
15208 cygwin
* | pe | mingw32
*)
15209 # Used for DWARF 2 in PE
15210 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15211 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15212 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 gcc_cv_as_ix86_pe_secrel32
=no
15216 if test $in_tree_gas = yes; then
15217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15218 then gcc_cv_as_ix86_pe_secrel32
=yes
15220 elif test x
$gcc_cv_as != x
; then
15224 .secrel32 foo' > conftest.s
15225 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }
15232 if test x
$gcc_cv_ld != x \
15233 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
15234 gcc_cv_as_ix86_pe_secrel32
=yes
15238 echo "configure: failed program was" >&5
15241 rm -f conftest.o conftest.s
15244 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15245 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15246 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15248 cat >>confdefs.h
<<\_ACEOF
15249 #define HAVE_GAS_PE_SECREL32_RELOC 1
15256 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15257 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15258 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15261 gcc_cv_as_ix86_filds_fists
=no
15262 if test $in_tree_gas = yes; then
15263 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15264 then gcc_cv_as_ix86_filds_fists
=yes
15266 elif test x
$gcc_cv_as != x
; then
15267 echo 'filds mem; fists mem' > conftest.s
15268 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }
15275 gcc_cv_as_ix86_filds_fists
=yes
15277 echo "configure: failed program was" >&5
15280 rm -f conftest.o conftest.s
15283 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15284 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15285 if test $gcc_cv_as_ix86_filds_fists = yes; then
15287 cat >>confdefs.h
<<\_ACEOF
15288 #define HAVE_GAS_FILDS_FISTS 1
15293 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15294 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15295 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 gcc_cv_as_ix86_cmov_sun_syntax
=no
15299 if test x
$gcc_cv_as != x
; then
15300 echo 'cmovl.l %edx, %eax' > conftest.s
15301 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }
15308 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15310 echo "configure: failed program was" >&5
15313 rm -f conftest.o conftest.s
15316 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15317 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15318 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15320 cat >>confdefs.h
<<\_ACEOF
15321 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15326 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15327 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15328 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 gcc_cv_as_ix86_ffreep
=no
15332 if test x
$gcc_cv_as != x
; then
15333 echo 'ffreep %st(1)' > conftest.s
15334 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }
15341 gcc_cv_as_ix86_ffreep
=yes
15343 echo "configure: failed program was" >&5
15346 rm -f conftest.o conftest.s
15349 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15350 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15351 if test $gcc_cv_as_ix86_ffreep = yes; then
15353 cat >>confdefs.h
<<\_ACEOF
15354 #define HAVE_AS_IX86_FFREEP 1
15359 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15360 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15361 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15364 gcc_cv_as_ix86_sahf
=no
15365 if test x
$gcc_cv_as != x
; then
15366 echo 'sahf' > conftest.s
15367 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }
15374 gcc_cv_as_ix86_sahf
=yes
15376 echo "configure: failed program was" >&5
15379 rm -f conftest.o conftest.s
15382 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15383 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15384 if test $gcc_cv_as_ix86_sahf = yes; then
15386 cat >>confdefs.h
<<\_ACEOF
15387 #define HAVE_AS_IX86_SAHF 1
15392 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15393 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15394 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 gcc_cv_as_ix86_diff_sect_delta
=no
15398 if test x
$gcc_cv_as != x
; then
15399 echo '.section .rodata
15405 .L2: nop' > conftest.s
15406 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }
15413 gcc_cv_as_ix86_diff_sect_delta
=yes
15415 echo "configure: failed program was" >&5
15418 rm -f conftest.o conftest.s
15421 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15422 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15423 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15425 cat >>confdefs.h
<<\_ACEOF
15426 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15431 # This one is used unconditionally by i386.[ch]; it is to be defined
15432 # to 1 if the feature is present, 0 otherwise.
15433 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15434 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15435 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 gcc_cv_as_ix86_gotoff_in_data
=no
15439 if test $in_tree_gas = yes; then
15440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15441 then gcc_cv_as_ix86_gotoff_in_data
=yes
15443 elif test x
$gcc_cv_as != x
; then
15448 .long .L0@GOTOFF' > conftest.s
15449 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }
15456 gcc_cv_as_ix86_gotoff_in_data
=yes
15458 echo "configure: failed program was" >&5
15461 rm -f conftest.o conftest.s
15464 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15465 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15468 cat >>confdefs.h
<<_ACEOF
15469 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15475 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15476 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15477 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15481 if test $in_tree_gas = yes; then
15482 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15483 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15485 elif test x
$gcc_cv_as != x
; then
15487 addl r15 = @ltoffx(x#), gp
15489 ld8.mov r16 = [r15], x#' > conftest.s
15490 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }
15497 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15499 echo "configure: failed program was" >&5
15502 rm -f conftest.o conftest.s
15505 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15506 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15507 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15509 cat >>confdefs.h
<<\_ACEOF
15510 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15519 *-*-aix*) conftest_s
=' .machine "pwr5"
15523 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15524 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15525 if test "${gcc_cv_as_machine_directive+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 gcc_cv_as_machine_directive
=no
15529 if test x
$gcc_cv_as != x
; then
15530 echo ' .machine ppc7400' > conftest.s
15531 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }
15538 gcc_cv_as_machine_directive
=yes
15540 echo "configure: failed program was" >&5
15543 rm -f conftest.o conftest.s
15546 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15547 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15549 if test x
$gcc_cv_as_machine_directive != xyes
; then
15550 echo "*** This target requires an assembler supporting \".machine\"" >&2
15551 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15552 test x
$build = x
$target && exit 1
15556 *) conftest_s
=' .machine power4
15561 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15562 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15563 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 gcc_cv_as_powerpc_mfcrf
=no
15567 if test $in_tree_gas = yes; then
15568 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15569 then gcc_cv_as_powerpc_mfcrf
=yes
15571 elif test x
$gcc_cv_as != x
; then
15572 echo "$conftest_s" > conftest.s
15573 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; }
15580 gcc_cv_as_powerpc_mfcrf
=yes
15582 echo "configure: failed program was" >&5
15585 rm -f conftest.o conftest.s
15588 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15589 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15590 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15592 cat >>confdefs.h
<<\_ACEOF
15593 #define HAVE_AS_MFCRF 1
15599 *-*-aix*) conftest_s
=' .machine "pwr5"
15602 *) conftest_s
=' .machine power5
15607 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15608 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15609 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 gcc_cv_as_powerpc_popcntb
=no
15613 if test $in_tree_gas = yes; then
15614 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15615 then gcc_cv_as_powerpc_popcntb
=yes
15617 elif test x
$gcc_cv_as != x
; then
15618 echo "$conftest_s" > conftest.s
15619 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }
15626 gcc_cv_as_powerpc_popcntb
=yes
15628 echo "configure: failed program was" >&5
15631 rm -f conftest.o conftest.s
15634 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15635 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15636 if test $gcc_cv_as_powerpc_popcntb = yes; then
15638 cat >>confdefs.h
<<\_ACEOF
15639 #define HAVE_AS_POPCNTB 1
15645 *-*-aix*) conftest_s
=' .machine "pwr5x"
15648 *) conftest_s
=' .machine power5
15653 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15654 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15655 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15658 gcc_cv_as_powerpc_fprnd
=no
15659 if test $in_tree_gas = yes; then
15660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15661 then gcc_cv_as_powerpc_fprnd
=yes
15663 elif test x
$gcc_cv_as != x
; then
15664 echo "$conftest_s" > conftest.s
15665 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }
15672 gcc_cv_as_powerpc_fprnd
=yes
15674 echo "configure: failed program was" >&5
15677 rm -f conftest.o conftest.s
15680 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15681 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15682 if test $gcc_cv_as_powerpc_fprnd = yes; then
15684 cat >>confdefs.h
<<\_ACEOF
15685 #define HAVE_AS_FPRND 1
15691 *-*-aix*) conftest_s
=' .machine "pwr6"
15694 *) conftest_s
=' .machine power6
15699 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15700 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15701 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 gcc_cv_as_powerpc_mfpgpr
=no
15705 if test $in_tree_gas = yes; then
15706 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15707 then gcc_cv_as_powerpc_mfpgpr
=yes
15709 elif test x
$gcc_cv_as != x
; then
15710 echo "$conftest_s" > conftest.s
15711 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }
15718 gcc_cv_as_powerpc_mfpgpr
=yes
15720 echo "configure: failed program was" >&5
15723 rm -f conftest.o conftest.s
15726 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15727 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15728 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15730 cat >>confdefs.h
<<\_ACEOF
15731 #define HAVE_AS_MFPGPR 1
15737 *-*-aix*) conftest_s
=' .csect .text[PR]
15739 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15743 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15744 *) conftest_s
=' .text
15746 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15749 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15750 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15751 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 gcc_cv_as_powerpc_rel16
=no
15755 if test $in_tree_gas = yes; then
15756 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15757 then gcc_cv_as_powerpc_rel16
=yes
15759 elif test x
$gcc_cv_as != x
; then
15760 echo "$conftest_s" > conftest.s
15761 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }
15768 gcc_cv_as_powerpc_rel16
=yes
15770 echo "configure: failed program was" >&5
15773 rm -f conftest.o conftest.s
15776 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15777 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15778 if test $gcc_cv_as_powerpc_rel16 = yes; then
15780 cat >>confdefs.h
<<\_ACEOF
15781 #define HAVE_AS_REL16 1
15787 *-*-aix*) conftest_s
=' .machine "pwr6"
15790 *) conftest_s
=' .machine power6
15795 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15796 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15797 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 gcc_cv_as_powerpc_cmpb
=no
15801 if test $in_tree_gas = yes; then
15802 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15803 then gcc_cv_as_powerpc_cmpb
=yes
15805 elif test x
$gcc_cv_as != x
; then
15806 echo "$conftest_s" > conftest.s
15807 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; }
15814 gcc_cv_as_powerpc_cmpb
=yes
15816 echo "configure: failed program was" >&5
15819 rm -f conftest.o conftest.s
15822 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15823 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15824 if test $gcc_cv_as_powerpc_cmpb = yes; then
15826 cat >>confdefs.h
<<\_ACEOF
15827 #define HAVE_AS_CMPB 1
15833 *-*-aix*) conftest_s
=' .machine "pwr6"
15836 *) conftest_s
=' .machine power6
15841 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15842 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15843 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 gcc_cv_as_powerpc_dfp
=no
15847 if test $in_tree_gas = yes; then
15848 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15849 then gcc_cv_as_powerpc_dfp
=yes
15851 elif test x
$gcc_cv_as != x
; then
15852 echo "$conftest_s" > conftest.s
15853 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }
15860 gcc_cv_as_powerpc_dfp
=yes
15862 echo "configure: failed program was" >&5
15865 rm -f conftest.o conftest.s
15868 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15869 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15870 if test $gcc_cv_as_powerpc_dfp = yes; then
15872 cat >>confdefs.h
<<\_ACEOF
15873 #define HAVE_AS_DFP 1
15878 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15879 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15880 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 gcc_cv_as_powerpc_gnu_attribute
=no
15884 if test $in_tree_gas = yes; then
15885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15886 then gcc_cv_as_powerpc_gnu_attribute
=yes
15888 elif test x
$gcc_cv_as != x
; then
15889 echo '.gnu_attribute 4,1' > conftest.s
15890 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }
15897 gcc_cv_as_powerpc_gnu_attribute
=yes
15899 echo "configure: failed program was" >&5
15902 rm -f conftest.o conftest.s
15905 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
15906 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
15907 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
15909 cat >>confdefs.h
<<\_ACEOF
15910 #define HAVE_AS_GNU_ATTRIBUTE 1
15917 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15918 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15919 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15922 gcc_cv_as_mips_explicit_relocs
=no
15923 if test $in_tree_gas = yes; then
15924 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15925 then gcc_cv_as_mips_explicit_relocs
=yes
15927 elif test x
$gcc_cv_as != x
; then
15928 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15929 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }
15936 gcc_cv_as_mips_explicit_relocs
=yes
15938 echo "configure: failed program was" >&5
15941 rm -f conftest.o conftest.s
15944 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15945 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15946 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15947 if test x
$target_cpu_default = x
15948 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15949 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15952 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15953 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15954 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15957 gcc_cv_as_mips_no_shared
=no
15958 if test $in_tree_gas = yes; then
15959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15960 then gcc_cv_as_mips_no_shared
=yes
15962 elif test x
$gcc_cv_as != x
; then
15963 echo 'nop' > conftest.s
15964 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }
15971 gcc_cv_as_mips_no_shared
=yes
15973 echo "configure: failed program was" >&5
15976 rm -f conftest.o conftest.s
15979 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15980 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15981 if test $gcc_cv_as_mips_no_shared = yes; then
15983 cat >>confdefs.h
<<\_ACEOF
15984 #define HAVE_AS_NO_SHARED 1
15989 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15990 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15991 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 gcc_cv_as_mips_gnu_attribute
=no
15995 if test $in_tree_gas = yes; then
15996 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15997 then gcc_cv_as_mips_gnu_attribute
=yes
15999 elif test x
$gcc_cv_as != x
; then
16000 echo '.gnu_attribute 4,1' > conftest.s
16001 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }
16008 gcc_cv_as_mips_gnu_attribute
=yes
16010 echo "configure: failed program was" >&5
16013 rm -f conftest.o conftest.s
16016 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16017 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
16018 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16020 cat >>confdefs.h
<<\_ACEOF
16021 #define HAVE_AS_GNU_ATTRIBUTE 1
16026 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16027 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
16028 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 gcc_cv_as_mips_dtprelword
=no
16032 if test $in_tree_gas = yes; then
16033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16034 then gcc_cv_as_mips_dtprelword
=yes
16036 elif test x
$gcc_cv_as != x
; then
16037 echo '.section .tdata,"awT",@progbits
16041 .dtprelword x+0x8000' > conftest.s
16042 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }
16049 gcc_cv_as_mips_dtprelword
=yes
16051 echo "configure: failed program was" >&5
16054 rm -f conftest.o conftest.s
16057 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16058 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
16059 if test $gcc_cv_as_mips_dtprelword = yes; then
16061 cat >>confdefs.h
<<\_ACEOF
16062 #define HAVE_AS_DTPRELWORD 1
16069 # Mips and HP-UX need the GNU assembler.
16070 # Linux on IA64 might be able to use the Intel assembler.
16073 mips
*-*-* |
*-*-hpux* )
16074 if test x
$gas_flag = xyes \
16075 ||
test x
"$host" != x
"$build" \
16076 ||
test ! -x "$gcc_cv_as" \
16077 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
16080 echo "*** This configuration requires the GNU assembler" >&2
16086 # ??? Not all targets support dwarf2 debug_line, even within a version
16087 # of gas. Moreover, we need to emit a valid instruction to trigger any
16088 # info to the output file. So, as supported targets are added to gas 2.11,
16089 # add some instruction here to (also) show we expect this might work.
16090 # ??? Once 2.11 is released, probably need to add first known working
16091 # version to the per-target configury.
16093 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
16094 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
16095 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* | spu-
*-*)
16098 ia64
*-*-* | s390
*-*-*)
16105 if test x
"$insn" != x
; then
16107 .file 1 \"conftest.s\"
16110 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16111 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16112 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 gcc_cv_as_dwarf2_debug_line
=no
16116 if test $in_tree_gas = yes; then
16117 if test $in_tree_gas_is_elf = yes \
16118 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16119 then gcc_cv_as_dwarf2_debug_line
=yes
16121 elif test x
$gcc_cv_as != x
; then
16122 echo "$conftest_s" > conftest.s
16123 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }
16130 if test x
$gcc_cv_objdump != x \
16131 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
16132 |
grep debug_line
> /dev
/null
2>&1; then
16133 gcc_cv_as_dwarf2_debug_line
=yes
16136 echo "configure: failed program was" >&5
16139 rm -f conftest.o conftest.s
16142 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16143 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16146 # The .debug_line file table must be in the exact order that
16147 # we specified the files, since these indices are also used
16148 # by DW_AT_decl_file. Approximate this test by testing if
16149 # the assembler bitches if the same index is assigned twice.
16150 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16151 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16152 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 gcc_cv_as_dwarf2_file_buggy
=no
16156 if test x
$gcc_cv_as != x
; then
16157 echo ' .file 1 "foo.s"
16158 .file 1 "bar.s"' > conftest.s
16159 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }
16166 gcc_cv_as_dwarf2_file_buggy
=yes
16168 echo "configure: failed program was" >&5
16171 rm -f conftest.o conftest.s
16174 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16175 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16178 if test $gcc_cv_as_dwarf2_debug_line = yes \
16179 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
16181 cat >>confdefs.h
<<\_ACEOF
16182 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16187 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16188 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16189 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 gcc_cv_as_gdwarf2_flag
=no
16193 if test $in_tree_gas = yes; then
16194 if test $in_tree_gas_is_elf = yes \
16195 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16196 then gcc_cv_as_gdwarf2_flag
=yes
16198 elif test x
$gcc_cv_as != x
; then
16199 echo "$insn" > conftest.s
16200 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }
16207 gcc_cv_as_gdwarf2_flag
=yes
16209 echo "configure: failed program was" >&5
16212 rm -f conftest.o conftest.s
16215 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16216 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16217 if test $gcc_cv_as_gdwarf2_flag = yes; then
16219 cat >>confdefs.h
<<\_ACEOF
16220 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16225 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16226 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16227 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 gcc_cv_as_gstabs_flag
=no
16231 if test $in_tree_gas = yes; then
16232 if test $in_tree_gas_is_elf = yes \
16233 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16234 then gcc_cv_as_gstabs_flag
=yes
16236 elif test x
$gcc_cv_as != x
; then
16237 echo "$insn" > conftest.s
16238 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }
16245 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16246 # and warns about it, but still exits successfully. So check for
16248 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }
16255 else gcc_cv_as_gstabs_flag
=yes
16258 echo "configure: failed program was" >&5
16261 rm -f conftest.o conftest.s
16264 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16265 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16266 if test $gcc_cv_as_gstabs_flag = yes; then
16268 cat >>confdefs.h
<<\_ACEOF
16269 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16274 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16275 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
16276 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 gcc_cv_as_debug_prefix_map_flag
=no
16280 if test $in_tree_gas = yes; then
16281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16282 then gcc_cv_as_debug_prefix_map_flag
=yes
16284 elif test x
$gcc_cv_as != x
; then
16285 echo "$insn" > conftest.s
16286 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }
16293 gcc_cv_as_debug_prefix_map_flag
=yes
16295 echo "configure: failed program was" >&5
16298 rm -f conftest.o conftest.s
16301 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16302 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
16303 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16305 cat >>confdefs.h
<<\_ACEOF
16306 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16312 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16313 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16314 if test "${gcc_cv_as_line_zero+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 gcc_cv_as_line_zero
=no
16318 if test $in_tree_gas = yes; then
16319 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16320 then gcc_cv_as_line_zero
=yes
16322 elif test "x$gcc_cv_as" != x
; then
16323 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16324 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; } &&
16330 test "x`cat conftest.out`" = x
16332 gcc_cv_as_line_zero
=yes
16334 echo "configure: failed program was" >&5
16336 echo "configure: error output was" >&5
16337 cat conftest.out
>&5
16339 rm -f conftest.o conftest.s conftest.out
16342 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16343 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16344 if test "x$gcc_cv_as_line_zero" = xyes
; then
16346 cat >>confdefs.h
<<\_ACEOF
16347 #define HAVE_AS_LINE_ZERO 1
16352 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16353 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16354 gcc_cv_ld_ro_rw_mix
=unknown
16355 if test $in_tree_ld = yes ; then
16356 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 \
16357 && test $in_tree_ld_is_elf = yes; then
16358 gcc_cv_ld_ro_rw_mix
=read-write
16360 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16361 echo '.section myfoosect, "a"' > conftest1.s
16362 echo '.section myfoosect, "aw"' > conftest2.s
16363 echo '.byte 1' >> conftest2.s
16364 echo '.section myfoosect, "a"' > conftest3.s
16365 echo '.byte 0' >> conftest3.s
16366 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16367 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16368 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
16369 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16370 conftest2.o conftest3.o
> /dev
/null
2>&1; then
16371 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
16372 | sed -e '/myfoosect/!d' -e N`
16373 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
16374 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
16375 gcc_cv_ld_ro_rw_mix
=read-only
16377 gcc_cv_ld_ro_rw_mix
=read-write
16381 rm -f conftest.
* conftest
[123].
*
16383 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
16385 cat >>confdefs.h
<<\_ACEOF
16386 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16390 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16391 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16393 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16394 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16395 gcc_cv_ld_eh_frame_hdr
=no
16396 if test $in_tree_ld = yes ; then
16397 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 \
16398 && test $in_tree_ld_is_elf = yes; then
16399 gcc_cv_ld_eh_frame_hdr
=yes
16401 elif test x
$gcc_cv_ld != x
; then
16402 # Check if linker supports --eh-frame-hdr option
16403 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
16404 gcc_cv_ld_eh_frame_hdr
=yes
16408 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
16410 cat >>confdefs.h
<<\_ACEOF
16411 #define HAVE_LD_EH_FRAME_HDR 1
16415 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16416 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16418 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16419 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16421 if test $in_tree_ld = yes ; then
16422 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 \
16423 && test $in_tree_ld_is_elf = yes; then
16426 elif test x
$gcc_cv_ld != x
; then
16427 # Check if linker supports -pie option
16428 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
16432 if test x
"$gcc_cv_ld_pie" = xyes
; then
16434 cat >>confdefs.h
<<\_ACEOF
16435 #define HAVE_LD_PIE 1
16439 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16440 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16442 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16443 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16444 gcc_cv_ld_eh_gc_sections
=no
16445 if test $in_tree_ld = yes ; then
16446 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16447 && test $in_tree_ld_is_elf = yes; then
16448 gcc_cv_ld_eh_gc_sections
=yes
16450 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16451 cat > conftest.s
<<EOF
16454 .type _start, @function
16457 .size _start, .-_start
16458 .section .text.foo,"ax",@progbits
16459 .type foo, @function
16463 .section .gcc_except_table.foo,"a",@progbits
16466 .section .eh_frame,"a",@progbits
16469 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
16470 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
16471 |
grep "gc-sections option ignored" > /dev
/null
; then
16472 gcc_cv_ld_eh_gc_sections
=no
16473 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
16474 gcc_cv_ld_eh_gc_sections
=yes
16475 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16476 if test x
$gcc_cv_as_comdat_group != xyes
; then
16477 gcc_cv_ld_eh_gc_sections
=no
16478 cat > conftest.s
<<EOF
16481 .type _start, @function
16484 .size _start, .-_start
16485 .section .gnu.linkonce.t.foo,"ax",@progbits
16486 .type foo, @function
16490 .section .gcc_except_table.foo,"a",@progbits
16493 .section .eh_frame,"a",@progbits
16496 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
16497 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
16498 |
grep "gc-sections option ignored" > /dev
/null
; then
16499 gcc_cv_ld_eh_gc_sections
=no
16500 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
16501 gcc_cv_ld_eh_gc_sections
=yes
16507 rm -f conftest.s conftest.o conftest
16511 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16512 gcc_cv_ld_eh_gc_sections
=no
16515 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
16517 cat >>confdefs.h
<<\_ACEOF
16518 #define HAVE_LD_EH_GC_SECTIONS 1
16522 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16523 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16529 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16530 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16531 if test "${gcc_cv_ld_as_needed+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16534 gcc_cv_ld_as_needed
=no
16535 if test $in_tree_ld = yes ; then
16536 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 \
16537 && test $in_tree_ld_is_elf = yes; then
16538 gcc_cv_ld_as_needed
=yes
16540 elif test x
$gcc_cv_ld != x
; then
16541 # Check if linker supports --as-needed and --no-as-needed options
16542 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
16543 gcc_cv_ld_as_needed
=yes
16548 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16549 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16550 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
16552 cat >>confdefs.h
<<\_ACEOF
16553 #define HAVE_LD_AS_NEEDED 1
16558 case "$target:$tm_file" in
16559 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
16560 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16561 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16562 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16565 gcc_cv_ld_no_dot_syms
=no
16566 if test $in_tree_ld = yes ; then
16567 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
16568 gcc_cv_ld_no_dot_syms
=yes
16570 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
16571 cat > conftest1.s
<<EOF
16575 cat > conftest2.s
<<EOF
16576 .section ".opd","aw"
16579 .type foo,@function
16581 .quad .LEfoo,.TOC.@tocbase,0
16587 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16588 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16589 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
16590 gcc_cv_ld_no_dot_syms
=yes
16592 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16596 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16597 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16598 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
16600 cat >>confdefs.h
<<\_ACEOF
16601 #define HAVE_LD_NO_DOT_SYMS 1
16608 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16609 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16610 if test "${gcc_cv_ld_sysroot+set}" = set; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 gcc_cv_ld_sysroot
=no
16614 if test $in_tree_ld = yes ; then
16615 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
16616 gcc_cv_ld_sysroot
=yes
16618 elif test x
$gcc_cv_ld != x
; then
16619 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
16620 gcc_cv_ld_sysroot
=yes
16624 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16625 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16626 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
16628 cat >>confdefs.h
<<\_ACEOF
16629 #define HAVE_LD_SYSROOT 1
16634 if test x
$with_sysroot = x
&& test x
$host = x
$target \
16635 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16636 && test "$prefix" != "NONE"; then
16638 cat >>confdefs.h
<<_ACEOF
16639 #define PREFIX_INCLUDE_DIR "$prefix/include"
16644 # Test for stack protector support in target C library.
16645 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16646 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16647 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 gcc_cv_libc_provides_ssp
=no
16653 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16654 if test "x$with_sysroot" = x
; then
16655 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16656 elif test "x$with_build_sysroot" != "x"; then
16657 glibc_header_dir
="${with_build_sysroot}/usr/include"
16658 elif test "x$with_sysroot" = xyes
; then
16659 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16661 glibc_header_dir
="${with_sysroot}/usr/include"
16664 glibc_header_dir
=/usr
/include
16666 # glibc 2.4 and later provides __stack_chk_fail and
16667 # either __stack_chk_guard, or TLS access to stack guard canary.
16668 if test -f $glibc_header_dir/features.h \
16669 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16670 $glibc_header_dir/features.h
> /dev
/null
; then
16671 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16672 $glibc_header_dir/features.h
> /dev
/null
; then
16673 gcc_cv_libc_provides_ssp
=yes
16674 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16675 $glibc_header_dir/features.h
> /dev
/null \
16676 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16677 $glibc_header_dir/features.h
> /dev
/null
; then
16678 gcc_cv_libc_provides_ssp
=yes
16679 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
16680 $glibc_header_dir/features.h
> /dev
/null
&& \
16681 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
16682 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
16683 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
16684 gcc_cv_libc_provides_ssp
=yes
16689 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16690 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16691 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 cat >conftest.
$ac_ext <<_ACEOF
16697 cat confdefs.h
>>conftest.
$ac_ext
16698 cat >>conftest.
$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16702 #define __stack_chk_fail innocuous___stack_chk_fail
16704 /* System header to define __stub macros and hopefully few prototypes,
16705 which can conflict with char __stack_chk_fail (); below.
16706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16707 <limits.h> exists even on freestanding compilers. */
16710 # include <limits.h>
16712 # include <assert.h>
16715 #undef __stack_chk_fail
16717 /* Override any gcc2 internal prototype to avoid an error. */
16722 /* We use char because int might match the return type of a gcc2
16723 builtin and then its argument prototype would still apply. */
16724 char __stack_chk_fail ();
16725 /* The GNU C library defines this for functions which it implements
16726 to always fail with ENOSYS. Some functions are actually named
16727 something starting with __ and the normal name is an alias. */
16728 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16731 char (*f) () = __stack_chk_fail;
16740 return f != __stack_chk_fail;
16745 rm -f conftest.
$ac_objext conftest
$ac_exeext
16746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16747 (eval $ac_link) 2>conftest.er1
16749 grep -v '^ *+' conftest.er1
>conftest.err
16751 cat conftest.err
>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try
='test -z "$ac_c_werror_flag"
16755 || test ! -s conftest.err'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try
='test -s conftest$ac_exeext'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 ac_cv_func___stack_chk_fail
=yes
16769 echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.
$ac_ext >&5
16772 ac_cv_func___stack_chk_fail
=no
16774 rm -f conftest.err conftest.
$ac_objext \
16775 conftest
$ac_exeext conftest.
$ac_ext
16777 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16778 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16779 if test $ac_cv_func___stack_chk_fail = yes; then
16780 gcc_cv_libc_provides_ssp
=yes
16782 echo "no __stack_chk_fail on this target"
16786 *) gcc_cv_libc_provides_ssp
=no
;;
16789 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16790 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16792 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
16794 cat >>confdefs.h
<<\_ACEOF
16795 #define TARGET_LIBC_PROVIDES_SSP 1
16800 # Check if TFmode long double should be used by default or not.
16801 # Some glibc targets used DFmode long double, but with glibc 2.4
16802 # and later they can use TFmode.
16804 powerpc
*-*-linux* | \
16805 powerpc
*-*-gnu* | \
16806 sparc
*-*-linux* | \
16810 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16811 if test "${with_long_double_128+set}" = set; then
16812 withval
="$with_long_double_128"
16813 gcc_cv_target_ldbl128
="$with_long_double_128"
16815 gcc_cv_target_ldbl128
=no
16816 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16817 if test "x$with_sysroot" = x
; then
16818 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16819 elif test "x$with_build_sysroot" != "x"; then
16820 glibc_header_dir
="${with_build_sysroot}/usr/include"
16821 elif test "x$with_sysroot" = xyes
; then
16822 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16824 glibc_header_dir
="${with_sysroot}/usr/include"
16827 glibc_header_dir
=/usr
/include
16829 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16830 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
16831 && gcc_cv_target_ldbl128
=yes
16836 if test x
$gcc_cv_target_ldbl128 = xyes
; then
16838 cat >>confdefs.h
<<\_ACEOF
16839 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16844 # Find out what GC implementation we want, or may, use.
16846 # Check whether --with-gc or --without-gc was given.
16847 if test "${with_gc+set}" = set; then
16856 cat >>confdefs.h
<<\_ACEOF
16862 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16863 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16864 { (exit 1); exit 1; }; }
16871 echo "Using $GGC for garbage collection."
16873 # Use the system's zlib library.
16875 zlibinc
="-I\$(srcdir)/../zlib"
16877 # Check whether --with-system-zlib or --without-system-zlib was given.
16878 if test "${with_system_zlib+set}" = set; then
16879 withval
="$with_system_zlib"
16888 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16889 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16890 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16891 if test "${enable_maintainer_mode+set}" = set; then
16892 enableval
="$enable_maintainer_mode"
16893 maintainer_mode
=$enableval
16898 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16899 echo "${ECHO_T}$maintainer_mode" >&6
16901 if test "$maintainer_mode" = "yes"; then
16911 # Make empty files to contain the specs and options for each language.
16912 # Then add #include lines to for a compiler that has specs and/or options.
16918 # These (without "all_") are set in each config-lang.in.
16919 # `language' must be a single word so is spelled singularly.
16922 all_outputs
='Makefile gccbug libada-mk'
16923 # List of language makefile fragments.
16924 all_lang_makefrags
=
16925 # List of language subdirectory makefiles. Deprecated.
16926 all_lang_makefiles
=
16927 # Additional files for gengtype
16928 all_gtfiles
="$target_gtfiles"
16930 # These are the languages that are set in --enable-languages,
16931 # and are available in the GCC tree.
16932 all_selected_languages
=
16934 # Add the language fragments.
16935 # Languages are added via two mechanisms. Some information must be
16936 # recorded in makefile variables, these are defined in config-lang.in.
16937 # We accumulate them and plug them into the main Makefile.
16938 # The other mechanism is a set of hooks for each of the main targets
16939 # like `clean', `install', etc.
16941 language_hooks
="Make-hooks"
16943 for lang
in ${srcdir}/*/config-lang.
in
16945 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16947 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16948 if test "x$lang_alias" = x
16950 echo "$lang doesn't set \$language." 1>&2
16953 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16954 subdirs
="$subdirs $subdir"
16955 case ",$enable_languages," in
16957 all_selected_languages
="$all_selected_languages $lang_alias"
16958 if test -f $srcdir/$subdir/lang-specs.h
; then
16959 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16970 .
${srcdir}/$subdir/config-lang.
in
16971 if test "x$language" = x
16973 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16978 case ",$enable_languages," in
16979 *,$lang_alias,*) ;;
16981 for i
in $subdir_requires; do
16982 test -f "${srcdir}/$i/config-lang.in" && continue
16990 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16991 if test -f $srcdir/$subdir/lang.opt
; then
16992 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16994 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16995 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16997 if test -f ${srcdir}/$subdir/Makefile.
in
16998 then all_lang_makefiles
="$subdir/Makefile"
17000 all_languages
="$all_languages $language"
17001 all_compilers
="$all_compilers $compilers"
17002 all_outputs
="$all_outputs $outputs"
17003 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
17006 # Pick up gtfiles for c
17008 .
${srcdir}/c-config-lang.
in
17009 all_gtfiles
="$all_gtfiles [c] $gtfiles"
17012 for language
in $all_selected_languages
17014 check_languages
="$check_languages check-$language"
17017 # We link each language in with a set of hooks, reached indirectly via
17018 # lang.${target}. Only do so for selected languages.
17022 target_list
="all.cross start.encap rest.encap tags \
17023 install-common install-man install-info install-pdf dvi pdf \
17024 html uninstall info man srcextra srcman srcinfo \
17025 mostlyclean clean distclean maintainer-clean"
17027 for t
in $target_list
17030 for lang
in $all_selected_languages
17034 echo "lang.$t: $x" >> Make-hooks
17043 echo "dir ." > .gdbinit
17044 echo "dir ${srcdir}" >> .gdbinit
17045 if test x
$gdb_needs_out_file_path = xyes
17047 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17049 if test "x$subdirs" != x
; then
17052 echo "dir ${srcdir}/$s" >> .gdbinit
17055 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17057 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17061 # Find a directory in which to install a shared libgcc.
17063 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17064 if test "${enable_version_specific_runtime_libs+set}" = set; then
17065 enableval
="$enable_version_specific_runtime_libs"
17070 # Check whether --with-slibdir or --without-slibdir was given.
17071 if test "${with_slibdir+set}" = set; then
17072 withval
="$with_slibdir"
17073 slibdir
="$with_slibdir"
17075 if test "${enable_version_specific_runtime_libs+set}" = set; then
17076 slibdir
='$(libsubdir)'
17077 elif test "$host" != "$target"; then
17078 slibdir
='$(build_tooldir)/lib'
17080 slibdir
='$(libdir)'
17085 objdir
=`${PWDCMD-pwd}`
17089 # Check whether --with-datarootdir or --without-datarootdir was given.
17090 if test "${with_datarootdir+set}" = set; then
17091 withval
="$with_datarootdir"
17092 datarootdir
="\${prefix}/$with_datarootdir"
17094 datarootdir
='$(prefix)/share'
17099 # Check whether --with-docdir or --without-docdir was given.
17100 if test "${with_docdir+set}" = set; then
17101 withval
="$with_docdir"
17102 docdir
="\${prefix}/$with_docdir"
17104 docdir
='$(datarootdir)'
17109 # Check whether --with-htmldir or --without-htmldir was given.
17110 if test "${with_htmldir+set}" = set; then
17111 withval
="$with_htmldir"
17112 htmldir
="\${prefix}/$with_htmldir"
17114 htmldir
='$(docdir)'
17118 # Substitute configuration variables
17176 if test x
${build} = x
${host} ; then
17177 if test x
${host} = x
${target} ; then
17178 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17180 echo "Links are now set up to build a cross-compiler" 1>&2
17181 echo " from ${host} to ${target}." 1>&2
17184 if test x
${host} = x
${target} ; then
17185 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17186 echo " for ${target}." 1>&2
17188 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17189 echo " from ${host} to ${target}." 1>&2
17196 # Configure the subdirectories
17197 # AC_CONFIG_SUBDIRS($subdirs)
17199 # Create the Makefile
17200 # and configure language subdirectories
17201 ac_config_files
="$ac_config_files $all_outputs"
17204 ac_config_commands
="$ac_config_commands default"
17206 cat >confcache
<<\_ACEOF
17207 # This file is a shell script that caches the results of configure
17208 # tests run on this system so they can be shared between configure
17209 # scripts and configure runs, see configure's option --config-cache.
17210 # It is not useful on other systems. If it contains results you don't
17211 # want to keep, you may remove or edit it.
17213 # config.status only pays attention to the cache file if you give it
17214 # the --recheck option to rerun configure.
17216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17218 # following values.
17222 # The following way of writing the cache mishandles newlines in values,
17223 # but we know of no workaround that is simple, portable, and efficient.
17224 # So, don't put newlines in cache variables' values.
17225 # Ultrix sh set writes to stderr and can't be redirected directly,
17226 # and sets the high bit in the cache file unless we assign to the vars.
17229 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17231 # `set' does not quote correctly, so add quotes (double-quote
17232 # substitution turns \\\\ into \\, and sed turns \\ into \).
17235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17238 # `set' quotes correctly as required by POSIX, so do not add quotes.
17240 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17249 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17251 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17252 if test -w $cache_file; then
17253 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17254 cat confcache
>$cache_file
17256 echo "not updating unwritable cache $cache_file"
17261 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17262 # Let make expand exec_prefix.
17263 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17265 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17266 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17267 # trailing colons and then remove the whole line if VPATH becomes empty
17268 # (actually we leave an empty line to preserve line numbers).
17269 if test "x$srcdir" = x.
; then
17270 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17271 s/:*\$(srcdir):*/:/;
17272 s/:*\${srcdir}:*/:/;
17274 s/^\([^=]*=[ ]*\):*/\1/;
17280 DEFS
=-DHAVE_CONFIG_H
17284 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17285 # 1. Remove the extension, and $U if already installed.
17286 ac_i
=`echo "$ac_i" |
17287 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17289 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
17290 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
17292 LIBOBJS
=$ac_libobjs
17294 LTLIBOBJS
=$ac_ltlibobjs
17298 : ${CONFIG_STATUS=./config.status}
17299 ac_clean_files_save
=$ac_clean_files
17300 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17301 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17302 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17303 cat >$CONFIG_STATUS <<_ACEOF
17305 # Generated by $as_me.
17306 # Run this file to recreate the current configuration.
17307 # Compiler output produced by configure, useful for debugging
17308 # configure, is in config.log if it exists.
17311 ac_cs_recheck=false
17313 SHELL=\${CONFIG_SHELL-$SHELL}
17316 cat >>$CONFIG_STATUS <<\_ACEOF
17317 ## --------------------- ##
17318 ## M4sh Initialization. ##
17319 ## --------------------- ##
17321 # Be Bourne compatible
17322 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17325 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17326 # is contrary to our usage. Disable this feature.
17327 alias -g '${1+"$@"}'='"$@"'
17328 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17331 DUALCASE
=1; export DUALCASE
# for MKS sh
17333 # Support unset when possible.
17334 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
17341 # Work around bugs in pre-3.0 UWIN ksh.
17342 $as_unset ENV MAIL MAILPATH
17349 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17350 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17351 LC_TELEPHONE LC_TIME
17353 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17354 eval $as_var=C
; export $as_var
17360 # Required to use basename.
17361 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17367 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
17368 as_basename
=basename
17374 # Name of the executable.
17375 as_me
=`$as_basename "$0" ||
17376 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17377 X"$0" : 'X\(//\)$' \| \
17378 X"$0" : 'X\(/\)$' \| \
17379 . : '\(.\)' 2>/dev/null ||
17381 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17382 /^X\/\(\/\/\)$/{ s//\1/; q; }
17383 /^X\/\(\/\).*/{ s//\1/; q; }
17387 # PATH needs CR, and LINENO needs CR and PATH.
17388 # Avoid depending upon Character Ranges.
17389 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17390 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17391 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17392 as_cr_digits
='0123456789'
17393 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17395 # The user is always right.
17396 if test "${PATH_SEPARATOR+set}" != set; then
17397 echo "#! /bin/sh" >conf$$.sh
17398 echo "exit 0" >>conf$$.sh
17400 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
17409 as_lineno_1
=$LINENO
17410 as_lineno_2
=$LINENO
17411 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
17412 test "x$as_lineno_1" != "x$as_lineno_2" &&
17413 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
17414 # Find who we are. Look in the path if we contain no path at all
17417 *[\\/]* ) as_myself
=$0 ;;
17418 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17419 for as_dir
in $PATH
17422 test -z "$as_dir" && as_dir
=.
17423 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17428 # We did not find ourselves, most probably we were run as `sh COMMAND'
17429 # in which case we are not to be found in the path.
17430 if test "x$as_myself" = x
; then
17433 if test ! -f "$as_myself"; then
17434 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17435 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17436 { (exit 1); exit 1; }; }
17438 case $CONFIG_SHELL in
17440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17441 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17444 test -z "$as_dir" && as_dir
=.
17445 for as_base
in sh bash ksh sh5
; do
17448 if ("$as_dir/$as_base" -c '
17449 as_lineno_1=$LINENO
17450 as_lineno_2=$LINENO
17451 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17452 test "x$as_lineno_1" != "x$as_lineno_2" &&
17453 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17454 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
17455 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
17456 CONFIG_SHELL
=$as_dir/$as_base
17457 export CONFIG_SHELL
17458 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17466 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17467 # uniformly replaced by the line number. The first 'sed' inserts a
17468 # line-number line before each line; the second 'sed' does the real
17469 # work. The second script uses 'N' to pair each line-number line
17470 # with the numbered line, and appends trailing '-' during
17471 # substitution so that $LINENO is not a special case at line end.
17472 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17473 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17474 sed '=' <$as_myself |
17479 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17482 s,^['$as_cr_digits']*\n,,
17483 ' >$as_me.lineno
&&
17484 chmod +x
$as_me.lineno ||
17485 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17486 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17487 { (exit 1); exit 1; }; }
17489 # Don't try to exec as it changes $[0], causing all sort of problems
17490 # (the dirname of $[0] is not the place where we might find the
17491 # original and so on. Autoconf is especially sensible to this).
17493 # Exit status is that of the last command.
17498 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17499 *c
*,-n*) ECHO_N
= ECHO_C
='
17501 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17502 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17505 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17511 rm -f conf$$ conf$$.exe conf$$.
file
17513 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17514 # We could just check for DJGPP; but this test a) works b) is more generic
17515 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17516 if test -f conf$$.exe
; then
17517 # Don't use ln at all; we don't have any links
17522 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17527 rm -f conf$$ conf$$.exe conf$$.
file
17529 if mkdir
-p .
2>/dev
/null
; then
17532 test -d .
/-p && rmdir .
/-p
17536 as_executable_p
="test -f"
17538 # Sed expression to map a string onto a valid CPP name.
17539 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17541 # Sed expression to map a string onto a valid variable name.
17542 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17546 # We need space, tab and new line, in precisely that order.
17556 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17557 # report actual input values of CONFIG_FILES etc. instead of their
17558 # values after options handling. Logging --version etc. is OK.
17562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17563 ## Running $as_me. ##
17568 This file was extended by $as_me, which was
17569 generated by GNU Autoconf 2.59. Invocation command line was
17571 CONFIG_FILES = $CONFIG_FILES
17572 CONFIG_HEADERS = $CONFIG_HEADERS
17573 CONFIG_LINKS = $CONFIG_LINKS
17574 CONFIG_COMMANDS = $CONFIG_COMMANDS
17578 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17582 # Files that config.status was made for.
17583 if test -n "$ac_config_files"; then
17584 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17587 if test -n "$ac_config_headers"; then
17588 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17591 if test -n "$ac_config_links"; then
17592 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17595 if test -n "$ac_config_commands"; then
17596 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17599 cat >>$CONFIG_STATUS <<\_ACEOF
17602 \`$as_me' instantiates files from templates according to the
17603 current configuration.
17605 Usage: $0 [OPTIONS] [FILE]...
17607 -h, --help print this help, then exit
17608 -V, --version print version number, then exit
17609 -q, --quiet do not print progress messages
17610 -d, --debug don't remove temporary files
17611 --recheck update $as_me by reconfiguring in the same conditions
17612 --file=FILE[:TEMPLATE]
17613 instantiate the configuration file FILE
17614 --header=FILE[:TEMPLATE]
17615 instantiate the configuration header FILE
17617 Configuration files:
17620 Configuration headers:
17623 Configuration commands:
17626 Report bugs to <bug-autoconf@gnu.org>."
17629 cat >>$CONFIG_STATUS <<_ACEOF
17632 configured by $0, generated by GNU Autoconf 2.59,
17633 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17635 Copyright (C) 2003 Free Software Foundation, Inc.
17636 This config.status script is free software; the Free Software Foundation
17637 gives unlimited permission to copy, distribute and modify it."
17641 cat >>$CONFIG_STATUS <<\_ACEOF
17642 # If no file are specified by the user, then we need to provide default
17643 # value. By we need to know if files were specified by the user.
17649 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17650 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17658 *) # This is not an option, so the user has probably given explicit
17661 ac_need_defaults
=false
;;
17665 # Handling of the options.
17667 cat >>$CONFIG_STATUS <<\_ACEOF
17668 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17670 --version |
--vers* |
-V )
17671 echo "$ac_cs_version"; exit 0 ;;
17673 # Conflict between --help and --header
17674 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17675 Try \`$0 --help' for more information." >&5
17676 echo "$as_me: error: ambiguous option: $1
17677 Try \`$0 --help' for more information." >&2;}
17678 { (exit 1); exit 1; }; };;
17679 --help |
--hel |
-h )
17680 echo "$ac_cs_usage"; exit 0 ;;
17681 --debug |
--d* |
-d )
17683 --file |
--fil |
--fi |
--f )
17685 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17686 ac_need_defaults
=false
;;
17687 --header |
--heade |
--head |
--hea )
17689 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17690 ac_need_defaults
=false
;;
17691 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17692 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17695 # This is an error.
17696 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17697 Try \`$0 --help' for more information." >&5
17698 echo "$as_me: error: unrecognized option: $1
17699 Try \`$0 --help' for more information." >&2;}
17700 { (exit 1); exit 1; }; } ;;
17702 *) ac_config_targets
="$ac_config_targets $1" ;;
17708 ac_configure_extra_args
=
17710 if $ac_cs_silent; then
17712 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17716 cat >>$CONFIG_STATUS <<_ACEOF
17717 if \$ac_cs_recheck; then
17718 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17719 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17724 cat >>$CONFIG_STATUS <<_ACEOF
17726 # INIT-COMMANDS section.
17735 cat >>$CONFIG_STATUS <<\_ACEOF
17736 for ac_config_target
in $ac_config_targets
17738 case "$ac_config_target" in
17739 # Handling of arguments.
17740 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
17741 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17742 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
17743 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
17744 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17745 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
17746 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17747 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17748 { (exit 1); exit 1; }; };;
17752 # If the user did not use the arguments to specify the items to instantiate,
17753 # then the envvar interface is used. Set only those that are not.
17754 # We use the long form for the default assignment because of an extremely
17755 # bizarre bug on SunOS 4.1.3.
17756 if $ac_need_defaults; then
17757 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17758 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17759 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17762 # Have a temporary directory for convenience. Make it in the build tree
17763 # simply because there is no reason to put it here, and in addition,
17764 # creating and moving files from /tmp can sometimes cause problems.
17765 # Create a temporary directory, and hook for its removal unless debugging.
17768 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17769 trap '{ (exit 1); exit 1; }' 1 2 13 15
17772 # Create a (secure) tmp directory for tmp files.
17775 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17776 test -n "$tmp" && test -d "$tmp"
17779 tmp
=.
/confstat$$
-$RANDOM
17780 (umask 077 && mkdir
$tmp)
17783 echo "$me: cannot create a temporary directory in ." >&2
17784 { (exit 1); exit 1; }
17789 cat >>$CONFIG_STATUS <<_ACEOF
17792 # CONFIG_FILES section.
17795 # No need to generate the scripts if there are no CONFIG_FILES.
17796 # This happens for instance when ./config.status config.h
17797 if test -n "\$CONFIG_FILES"; then
17798 # Protect against being on the right side of a sed subst in config.status.
17799 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17800 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17801 s,@SHELL@,$SHELL,;t t
17802 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17803 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17804 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17805 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17806 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17807 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17808 s,@exec_prefix@,$exec_prefix,;t t
17809 s,@prefix@,$prefix,;t t
17810 s,@program_transform_name@,$program_transform_name,;t t
17811 s,@bindir@,$bindir,;t t
17812 s,@sbindir@,$sbindir,;t t
17813 s,@libexecdir@,$libexecdir,;t t
17814 s,@datadir@,$datadir,;t t
17815 s,@sysconfdir@,$sysconfdir,;t t
17816 s,@sharedstatedir@,$sharedstatedir,;t t
17817 s,@localstatedir@,$localstatedir,;t t
17818 s,@libdir@,$libdir,;t t
17819 s,@includedir@,$includedir,;t t
17820 s,@oldincludedir@,$oldincludedir,;t t
17821 s,@infodir@,$infodir,;t t
17822 s,@mandir@,$mandir,;t t
17823 s,@build_alias@,$build_alias,;t t
17824 s,@host_alias@,$host_alias,;t t
17825 s,@target_alias@,$target_alias,;t t
17826 s,@DEFS@,$DEFS,;t t
17827 s,@ECHO_C@,$ECHO_C,;t t
17828 s,@ECHO_N@,$ECHO_N,;t t
17829 s,@ECHO_T@,$ECHO_T,;t t
17830 s,@LIBS@,$LIBS,;t t
17831 s,@build@,$build,;t t
17832 s,@build_cpu@,$build_cpu,;t t
17833 s,@build_vendor@,$build_vendor,;t t
17834 s,@build_os@,$build_os,;t t
17835 s,@host@,$host,;t t
17836 s,@host_cpu@,$host_cpu,;t t
17837 s,@host_vendor@,$host_vendor,;t t
17838 s,@host_os@,$host_os,;t t
17839 s,@target@,$target,;t t
17840 s,@target_cpu@,$target_cpu,;t t
17841 s,@target_vendor@,$target_vendor,;t t
17842 s,@target_os@,$target_os,;t t
17843 s,@target_noncanonical@,$target_noncanonical,;t t
17844 s,@build_libsubdir@,$build_libsubdir,;t t
17845 s,@build_subdir@,$build_subdir,;t t
17846 s,@host_subdir@,$host_subdir,;t t
17847 s,@target_subdir@,$target_subdir,;t t
17848 s,@GENINSRC@,$GENINSRC,;t t
17850 s,@CFLAGS@,$CFLAGS,;t t
17851 s,@LDFLAGS@,$LDFLAGS,;t t
17852 s,@CPPFLAGS@,$CPPFLAGS,;t t
17853 s,@ac_ct_CC@,$ac_ct_CC,;t t
17854 s,@EXEEXT@,$EXEEXT,;t t
17855 s,@OBJEXT@,$OBJEXT,;t t
17856 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17857 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17859 s,@EGREP@,$EGREP,;t t
17860 s,@loose_warn@,$loose_warn,;t t
17861 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17862 s,@strict_warn@,$strict_warn,;t t
17863 s,@warn_cflags@,$warn_cflags,;t t
17864 s,@nocommon_flag@,$nocommon_flag,;t t
17865 s,@TREEBROWSER@,$TREEBROWSER,;t t
17866 s,@valgrind_path@,$valgrind_path,;t t
17867 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17868 s,@valgrind_command@,$valgrind_command,;t t
17869 s,@coverage_flags@,$coverage_flags,;t t
17870 s,@enable_multilib@,$enable_multilib,;t t
17871 s,@enable_decimal_float@,$enable_decimal_float,;t t
17872 s,@enable_fixed_point@,$enable_fixed_point,;t t
17873 s,@enable_shared@,$enable_shared,;t t
17874 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17875 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17876 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17877 s,@onestep@,$onestep,;t t
17878 s,@PKGVERSION@,$PKGVERSION,;t t
17879 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
17880 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
17881 s,@datarootdir@,$datarootdir,;t t
17882 s,@docdir@,$docdir,;t t
17883 s,@htmldir@,$htmldir,;t t
17884 s,@SET_MAKE@,$SET_MAKE,;t t
17886 s,@LN_S@,$LN_S,;t t
17888 s,@RANLIB@,$RANLIB,;t t
17889 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17890 s,@ranlib_flags@,$ranlib_flags,;t t
17891 s,@INSTALL@,$INSTALL,;t t
17892 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17893 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17894 s,@make_compare_target@,$make_compare_target,;t t
17895 s,@have_mktemp_command@,$have_mktemp_command,;t t
17896 s,@MAKEINFO@,$MAKEINFO,;t t
17897 s,@BUILD_INFO@,$BUILD_INFO,;t t
17898 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17899 s,@FLEX@,$FLEX,;t t
17900 s,@BISON@,$BISON,;t t
17903 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17904 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17905 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17906 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17907 s,@LIBICONV@,$LIBICONV,;t t
17908 s,@LTLIBICONV@,$LTLIBICONV,;t t
17909 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17910 s,@manext@,$manext,;t t
17911 s,@objext@,$objext,;t t
17912 s,@gthread_flags@,$gthread_flags,;t t
17913 s,@extra_modes_file@,$extra_modes_file,;t t
17914 s,@extra_opt_files@,$extra_opt_files,;t t
17915 s,@USE_NLS@,$USE_NLS,;t t
17916 s,@LIBINTL@,$LIBINTL,;t t
17917 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17918 s,@INCINTL@,$INCINTL,;t t
17919 s,@XGETTEXT@,$XGETTEXT,;t t
17920 s,@GMSGFMT@,$GMSGFMT,;t t
17921 s,@POSUB@,$POSUB,;t t
17922 s,@CATALOGS@,$CATALOGS,;t t
17923 s,@DATADIRNAME@,$DATADIRNAME,;t t
17924 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17925 s,@GENCAT@,$GENCAT,;t t
17926 s,@CATOBJEXT@,$CATOBJEXT,;t t
17927 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17928 s,@CROSS@,$CROSS,;t t
17930 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17931 s,@inhibit_libc@,$inhibit_libc,;t t
17932 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17933 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17934 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17935 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17936 s,@collect2@,$collect2,;t t
17937 s,@gcc_cv_as@,$gcc_cv_as,;t t
17938 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17939 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17940 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17941 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17942 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17943 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17944 s,@libgcc_visibility@,$libgcc_visibility,;t t
17946 s,@zlibdir@,$zlibdir,;t t
17947 s,@zlibinc@,$zlibinc,;t t
17948 s,@MAINT@,$MAINT,;t t
17949 s,@gcc_tooldir@,$gcc_tooldir,;t t
17950 s,@dollar@,$dollar,;t t
17951 s,@slibdir@,$slibdir,;t t
17952 s,@objdir@,$objdir,;t t
17953 s,@subdirs@,$subdirs,;t t
17954 s,@srcdir@,$srcdir,;t t
17955 s,@all_compilers@,$all_compilers,;t t
17956 s,@all_gtfiles@,$all_gtfiles,;t t
17957 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17958 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17959 s,@all_languages@,$all_languages,;t t
17960 s,@all_selected_languages@,$all_selected_languages,;t t
17961 s,@build_exeext@,$build_exeext,;t t
17962 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17963 s,@build_xm_file_list@,$build_xm_file_list,;t t
17964 s,@build_xm_include_list@,$build_xm_include_list,;t t
17965 s,@build_xm_defines@,$build_xm_defines,;t t
17966 s,@build_file_translate@,$build_file_translate,;t t
17967 s,@check_languages@,$check_languages,;t t
17968 s,@cpp_install_dir@,$cpp_install_dir,;t t
17969 s,@xmake_file@,$xmake_file,;t t
17970 s,@tmake_file@,$tmake_file,;t t
17971 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17972 s,@extra_headers_list@,$extra_headers_list,;t t
17973 s,@extra_objs@,$extra_objs,;t t
17974 s,@extra_parts@,$extra_parts,;t t
17975 s,@extra_passes@,$extra_passes,;t t
17976 s,@extra_programs@,$extra_programs,;t t
17977 s,@float_h_file@,$float_h_file,;t t
17978 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17979 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17980 s,@host_exeext@,$host_exeext,;t t
17981 s,@host_xm_file_list@,$host_xm_file_list,;t t
17982 s,@host_xm_include_list@,$host_xm_include_list,;t t
17983 s,@host_xm_defines@,$host_xm_defines,;t t
17984 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17985 s,@install@,$install,;t t
17986 s,@lang_opt_files@,$lang_opt_files,;t t
17987 s,@lang_specs_files@,$lang_specs_files,;t t
17988 s,@lang_tree_files@,$lang_tree_files,;t t
17989 s,@local_prefix@,$local_prefix,;t t
17990 s,@md_file@,$md_file,;t t
17991 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17992 s,@out_file@,$out_file,;t t
17993 s,@out_object_file@,$out_object_file,;t t
17994 s,@thread_file@,$thread_file,;t t
17995 s,@tm_file_list@,$tm_file_list,;t t
17996 s,@tm_include_list@,$tm_include_list,;t t
17997 s,@tm_defines@,$tm_defines,;t t
17998 s,@tm_p_file_list@,$tm_p_file_list,;t t
17999 s,@tm_p_include_list@,$tm_p_include_list,;t t
18000 s,@xm_file_list@,$xm_file_list,;t t
18001 s,@xm_include_list@,$xm_include_list,;t t
18002 s,@xm_defines@,$xm_defines,;t t
18003 s,@c_target_objs@,$c_target_objs,;t t
18004 s,@cxx_target_objs@,$cxx_target_objs,;t t
18005 s,@target_cpu_default@,$target_cpu_default,;t t
18006 s,@GMPLIBS@,$GMPLIBS,;t t
18007 s,@GMPINC@,$GMPINC,;t t
18008 s,@LIBOBJS@,$LIBOBJS,;t t
18009 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18010 /@language_hooks@/r $language_hooks
18011 s,@language_hooks@,,;t t
18016 cat >>$CONFIG_STATUS <<\_ACEOF
18017 # Split the substitutions into bite-sized pieces for seds with
18018 # small command number limits, like on Digital OSF/1 and HP-UX.
18019 ac_max_sed_lines
=48
18020 ac_sed_frag
=1 # Number of current file.
18021 ac_beg
=1 # First line for current file.
18022 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18025 while $ac_more_lines; do
18026 if test $ac_beg -gt 1; then
18027 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18029 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18031 if test ! -s $tmp/subs.frag
; then
18032 ac_more_lines
=false
18034 # The purpose of the label and of the branching condition is to
18035 # speed up the sed processing (if there are no `@' at all, there
18036 # is no need to browse any of the substitutions).
18037 # These are the two extra sed commands mentioned above.
18039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18040 if test -z "$ac_sed_cmds"; then
18041 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18043 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18045 ac_sed_frag
=`expr $ac_sed_frag + 1`
18047 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18050 if test -z "$ac_sed_cmds"; then
18053 fi # test -n "$CONFIG_FILES"
18056 cat >>$CONFIG_STATUS <<\_ACEOF
18057 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18058 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18060 - |
*:- |
*:-:* ) # input from stdin
18062 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18063 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18064 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18065 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18066 * ) ac_file_in
=$ac_file.
in ;;
18069 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18070 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18071 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18072 X"$ac_file" : 'X\(//\)[^/]' \| \
18073 X"$ac_file" : 'X\(//\)$' \| \
18074 X"$ac_file" : 'X\(/\)' \| \
18075 . : '\(.\)' 2>/dev/null ||
18077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18079 /^X\(\/\/\)$/{ s//\1/; q; }
18080 /^X\(\/\).*/{ s//\1/; q; }
18082 { if $as_mkdir_p; then
18087 while test ! -d "$as_dir"; do
18088 as_dirs
="$as_dir $as_dirs"
18089 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18091 X"$as_dir" : 'X\(//\)[^/]' \| \
18092 X"$as_dir" : 'X\(//\)$' \| \
18093 X"$as_dir" : 'X\(/\)' \| \
18094 . : '\(.\)' 2>/dev/null ||
18096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18098 /^X\(\/\/\)$/{ s//\1/; q; }
18099 /^X\(\/\).*/{ s//\1/; q; }
18102 test ! -n "$as_dirs" || mkdir
$as_dirs
18103 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18104 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18105 { (exit 1); exit 1; }; }; }
18109 if test "$ac_dir" != .
; then
18110 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18111 # A "../" for each directory in $ac_dir_suffix.
18112 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18114 ac_dir_suffix
= ac_top_builddir
=
18118 .
) # No --srcdir option. We are building in place.
18120 if test -z "$ac_top_builddir"; then
18123 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18125 [\\/]* | ?
:[\\/]* ) # Absolute path.
18126 ac_srcdir
=$srcdir$ac_dir_suffix;
18127 ac_top_srcdir
=$srcdir ;;
18128 *) # Relative path.
18129 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18130 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18133 # Do not use `cd foo && pwd` to compute absolute paths, because
18134 # the directories may not exist.
18136 .
) ac_abs_builddir
="$ac_dir";;
18139 .
) ac_abs_builddir
=`pwd`;;
18140 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18141 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18144 case $ac_abs_builddir in
18145 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18147 case ${ac_top_builddir}.
in
18148 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18149 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18150 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18153 case $ac_abs_builddir in
18154 .
) ac_abs_srcdir
=$ac_srcdir;;
18157 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18158 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18159 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18162 case $ac_abs_builddir in
18163 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18165 case $ac_top_srcdir in
18166 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18167 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18168 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18174 if test x
"$ac_file" != x-
; then
18175 { echo "$as_me:$LINENO: creating $ac_file" >&5
18176 echo "$as_me: creating $ac_file" >&6;}
18179 # Let's still pretend it is `configure' which instantiates (i.e., don't
18180 # use $as_me), people would be surprised to read:
18181 # /* config.h. Generated by config.status. */
18182 if test x
"$ac_file" = x-
; then
18185 configure_input
="$ac_file. "
18187 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18188 sed 's,.*/,,'` by configure."
18190 # First look for the input files in the build tree, otherwise in the
18192 ac_file_inputs
=`IFS=:
18193 for f in $ac_file_in; do
18195 -) echo $tmp/stdin ;;
18197 # Absolute (can't be DOS-style, as IFS=:)
18198 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18199 echo "$as_me: error: cannot find input file: $f" >&2;}
18200 { (exit 1); exit 1; }; }
18203 if test -f "$f"; then
18206 elif test -f "$srcdir/$f"; then
18211 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18212 echo "$as_me: error: cannot find input file: $f" >&2;}
18213 { (exit 1); exit 1; }; }
18216 done` ||
{ (exit 1); exit 1; }
18218 cat >>$CONFIG_STATUS <<_ACEOF
18222 cat >>$CONFIG_STATUS <<\_ACEOF
18224 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18225 s
,@configure_input@
,$configure_input,;t t
18226 s
,@srcdir@
,$ac_srcdir,;t t
18227 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18228 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18229 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18230 s
,@builddir@
,$ac_builddir,;t t
18231 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18232 s
,@top_builddir@
,$ac_top_builddir,;t t
18233 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18234 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18236 if test x"$ac_file" != x-; then
18237 mv $tmp/out $ac_file
18243 # Run the commands associated with the file.
18245 as ) chmod +x as ;;
18246 collect-ld ) chmod +x collect-ld ;;
18247 nm ) chmod +x nm ;;
18251 cat >>$CONFIG_STATUS <<\_ACEOF
18254 # CONFIG_HEADER section.
18257 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18258 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18260 # ac_d sets the value in "#define NAME VALUE" lines.
18261 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18262 ac_dB
='[ ].*$,\1#\2'
18265 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18266 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18267 ac_uB
='$,\1#\2define\3'
18271 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18274 - |
*:- |
*:-:* ) # input from stdin
18276 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18277 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18278 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18279 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18280 * ) ac_file_in
=$ac_file.
in ;;
18283 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
18284 echo "$as_me: creating $ac_file" >&6;}
18286 # First look for the input files in the build tree, otherwise in the
18288 ac_file_inputs
=`IFS=:
18289 for f in $ac_file_in; do
18291 -) echo $tmp/stdin ;;
18293 # Absolute (can't be DOS-style, as IFS=:)
18294 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18295 echo "$as_me: error: cannot find input file: $f" >&2;}
18296 { (exit 1); exit 1; }; }
18297 # Do quote $f, to prevent DOS paths from being IFS'd.
18300 if test -f "$f"; then
18303 elif test -f "$srcdir/$f"; then
18308 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18309 echo "$as_me: error: cannot find input file: $f" >&2;}
18310 { (exit 1); exit 1; }; }
18313 done` ||
{ (exit 1); exit 1; }
18314 # Remove the trailing spaces.
18315 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18319 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18320 # `conftest.undefs', that substitutes the proper values into
18321 # config.h.in to produce config.h. The first handles `#define'
18322 # templates, and the second `#undef' templates.
18323 # And first: Protect against being on the right side of a sed subst in
18324 # config.status. Protect against being in an unquoted here document
18325 # in config.status.
18326 rm -f conftest.defines conftest.undefs
18327 # Using a here document instead of a string reduces the quoting nightmare.
18328 # Putting comments in sed scripts is not portable.
18330 # `end' is used to avoid that the second main sed command (meant for
18331 # 0-ary CPP macros) applies to n-ary macro definitions.
18332 # See the Autoconf documentation for `clear'.
18333 cat >confdef2sed.
sed <<\_ACEOF
18338 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18340 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18343 # If some macros were called several times there might be several times
18344 # the same #defines, which is useless. Nevertheless, we may not want to
18345 # sort them, since we want the *last* AC-DEFINE to be honored.
18346 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18347 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18348 rm -f confdef2sed.sed
18350 # This sed command replaces #undef with comments. This is necessary, for
18351 # example, in the case of _POSIX_SOURCE, which is predefined and required
18352 # on some systems where configure will not decide to define it.
18353 cat >>conftest.undefs <<\_ACEOF
18354 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18357 # Break up conftest.defines because some shells have a limit on the size
18358 # of here documents, and old seds have small limits too (100 cmds).
18359 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18360 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18361 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18362 echo ' :' >>$CONFIG_STATUS
18363 rm -f conftest.tail
18364 while grep . conftest.defines >/dev/null
18366 # Write a limited-size here document to $tmp/defines.sed.
18367 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18368 # Speed up: don't consider the non `#define' lines.
18369 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18370 # Work around the forget-to-reset-the-flag bug.
18371 echo 't clr' >>$CONFIG_STATUS
18372 echo ': clr' >>$CONFIG_STATUS
18373 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18375 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18377 mv $tmp/out $tmp/in
18379 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18380 rm -f conftest.defines
18381 mv conftest.
tail conftest.defines
18383 rm -f conftest.defines
18384 echo ' fi # grep' >>$CONFIG_STATUS
18385 echo >>$CONFIG_STATUS
18387 # Break up conftest.undefs because some shells have a limit on the size
18388 # of here documents, and old seds have small limits too (100 cmds).
18389 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18390 rm -f conftest.
tail
18391 while grep . conftest.undefs
>/dev
/null
18393 # Write a limited-size here document to $tmp/undefs.sed.
18394 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18395 # Speed up: don't consider the non
`#undef'
18396 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18397 # Work around the forget-to-reset-the-flag bug.
18398 echo 't clr' >>$CONFIG_STATUS
18399 echo ': clr' >>$CONFIG_STATUS
18400 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18402 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18404 mv $tmp/out $tmp/in
18406 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18407 rm -f conftest.undefs
18408 mv conftest.tail conftest.undefs
18410 rm -f conftest.undefs
18412 cat >>$CONFIG_STATUS <<\_ACEOF
18413 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18414 # use $as_me), people would be surprised to read:
18415 # /* config.h. Generated by config.status. */
18416 if test x
"$ac_file" = x-
; then
18417 echo "/* Generated by configure. */" >$tmp/config.h
18419 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18421 cat $tmp/in >>$tmp/config.h
18423 if test x
"$ac_file" != x-
; then
18424 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18425 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18426 echo "$as_me: $ac_file is unchanged" >&6;}
18428 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18430 X"$ac_file" : 'X\(//\)[^/]' \| \
18431 X"$ac_file" : 'X\(//\)$' \| \
18432 X"$ac_file" : 'X\(/\)' \| \
18433 . : '\(.\)' 2>/dev/null ||
18435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18436 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18437 /^X\(\/\/\)$/{ s//\1/; q; }
18438 /^X\(\/\).*/{ s//\1/; q; }
18440 { if $as_mkdir_p; then
18445 while test ! -d "$as_dir"; do
18446 as_dirs
="$as_dir $as_dirs"
18447 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18449 X"$as_dir" : 'X\(//\)[^/]' \| \
18450 X"$as_dir" : 'X\(//\)$' \| \
18451 X"$as_dir" : 'X\(/\)' \| \
18452 . : '\(.\)' 2>/dev/null ||
18454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18456 /^X\(\/\/\)$/{ s//\1/; q; }
18457 /^X\(\/\).*/{ s//\1/; q; }
18460 test ! -n "$as_dirs" || mkdir
$as_dirs
18461 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18462 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18463 { (exit 1); exit 1; }; }; }
18466 mv $tmp/config.h
$ac_file
18470 rm -f $tmp/config.h
18474 cat >>$CONFIG_STATUS <<\_ACEOF
18477 # CONFIG_COMMANDS section.
18479 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18480 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18481 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18482 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18483 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18484 X"$ac_dest" : 'X\(//\)[^/]' \| \
18485 X"$ac_dest" : 'X\(//\)$' \| \
18486 X"$ac_dest" : 'X\(/\)' \| \
18487 . : '\(.\)' 2>/dev/null ||
18489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18491 /^X\(\/\/\)$/{ s//\1/; q; }
18492 /^X\(\/\).*/{ s//\1/; q; }
18494 { if $as_mkdir_p; then
18499 while test ! -d "$as_dir"; do
18500 as_dirs
="$as_dir $as_dirs"
18501 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18503 X"$as_dir" : 'X\(//\)[^/]' \| \
18504 X"$as_dir" : 'X\(//\)$' \| \
18505 X"$as_dir" : 'X\(/\)' \| \
18506 . : '\(.\)' 2>/dev/null ||
18508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18510 /^X\(\/\/\)$/{ s//\1/; q; }
18511 /^X\(\/\).*/{ s//\1/; q; }
18514 test ! -n "$as_dirs" || mkdir
$as_dirs
18515 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18516 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18517 { (exit 1); exit 1; }; }; }
18521 if test "$ac_dir" != .
; then
18522 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18523 # A "../" for each directory in $ac_dir_suffix.
18524 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18526 ac_dir_suffix
= ac_top_builddir
=
18530 .
) # No --srcdir option. We are building in place.
18532 if test -z "$ac_top_builddir"; then
18535 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18537 [\\/]* | ?
:[\\/]* ) # Absolute path.
18538 ac_srcdir
=$srcdir$ac_dir_suffix;
18539 ac_top_srcdir
=$srcdir ;;
18540 *) # Relative path.
18541 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18542 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18545 # Do not use `cd foo && pwd` to compute absolute paths, because
18546 # the directories may not exist.
18548 .
) ac_abs_builddir
="$ac_dir";;
18551 .
) ac_abs_builddir
=`pwd`;;
18552 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18553 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18556 case $ac_abs_builddir in
18557 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18559 case ${ac_top_builddir}.
in
18560 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18561 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18562 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18565 case $ac_abs_builddir in
18566 .
) ac_abs_srcdir
=$ac_srcdir;;
18569 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18570 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18571 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18574 case $ac_abs_builddir in
18575 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18577 case $ac_top_srcdir in
18578 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18579 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18580 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18585 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18586 echo "$as_me: executing $ac_dest commands" >&6;}
18589 case ${CONFIG_HEADERS} in
18590 *auto-host.h
:config.
in*)
18593 # Make sure all the subdirs exist.
18594 for d
in $subdirs doc build
18596 test -d $d || mkdir
$d
18603 cat >>$CONFIG_STATUS <<\_ACEOF
18605 { (exit 0); exit 0; }
18607 chmod +x
$CONFIG_STATUS
18608 ac_clean_files
=$ac_clean_files_save
18611 # configure is writing to config.log, and then calls config.status.
18612 # config.status does its own redirection, appending to config.log.
18613 # Unfortunately, on DOS this fails, as config.log is still kept open
18614 # by configure, so config.status won't be able to write to it; its
18615 # output is simply discarded. So we exec the FD to /dev/null,
18616 # effectively closing config.log, so it can be properly (re)opened and
18617 # appended to by config.status. When coming back to configure, we
18618 # need to make the FD available again.
18619 if test "$no_create" != yes; then
18621 ac_config_status_args
=
18622 test "$silent" = yes &&
18623 ac_config_status_args
="$ac_config_status_args --quiet"
18625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18628 # would make configure fail if this is the last instruction.
18629 $ac_cs_success ||
{ (exit 1); exit 1; }