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 strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep 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 stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS 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_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: yes,no
,all
,none
,release.
871 Flags are
: assert
,fold,gc
,gcac
,misc
,
872 rtlflag
,rtl
,runtime
,tree
,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler
's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don
't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-build-libsubdir=DIR Directory where to find libraries for build system
916 --with-local-prefix=DIR specifies directory to put local include
917 --with-gxx-include-dir=DIR
918 specifies directory to put g++ header files
919 --with-cpp-install-dir=DIR
920 install the user visible C preprocessor in DIR
921 (relative to PREFIX) as well as PREFIX/bin
922 --with-gnu-ld arrange to work with GNU ld.
923 --with-ld arrange to use the specified ld (full pathname)
924 --with-demangler-in-ld try to use demangler in GNU ld.
925 --with-gnu-as arrange to work with GNU as
926 --with-as arrange to use the specified as (full pathname)
927 --with-stabs arrange to use stabs instead of host debug format
928 --with-dwarf2 force the default debug format to be DWARF 2
929 --with-build-sysroot=sysroot
930 use sysroot as the system root during the build
931 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
932 --with-gnu-ld assume the C compiler uses GNU ld default=no
933 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
934 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
935 --with-system-libunwind use installed libunwind
936 --with-long-double-128 Use
128-bit long double by default.
937 --with-gc={page
,zone
} choose the garbage collection mechanism to use
939 --with-system-zlib use installed libz
940 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
941 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
942 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
943 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
945 Some influential environment variables
:
946 CC C compiler
command
947 CFLAGS C compiler flags
948 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
949 nonstandard directory
<lib dir
>
950 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
951 headers
in a nonstandard directory
<include dir
>
953 GMPLIBS How to link GMP
954 GMPINC How to
find GMP include files
956 Use these variables to override the choices made by
`configure' or to help
957 it to find libraries and programs with nonstandard names/locations.
962 if test "$ac_init_help" = "recursive"; then
963 # If there are subdirs, report their specific --help.
965 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
966 test -d $ac_dir || continue
969 if test "$ac_dir" != .; then
970 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
971 # A "../" for each directory in $ac_dir_suffix.
972 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
974 ac_dir_suffix= ac_top_builddir=
978 .) # No --srcdir option. We are building in place.
980 if test -z "$ac_top_builddir"; then
983 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
985 [\\/]* | ?:[\\/]* ) # Absolute path.
986 ac_srcdir=$srcdir$ac_dir_suffix;
987 ac_top_srcdir=$srcdir ;;
989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 # Do not use `cd foo
&& pwd` to compute absolute paths, because
994 # the directories may not exist.
996 .) ac_abs_builddir="$ac_dir";;
999 .) ac_abs_builddir=`pwd`;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1007 case ${ac_top_builddir}. in
1008 .) ac_abs_top_builddir=$ac_abs_builddir;;
1009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013 case $ac_abs_builddir in
1014 .) ac_abs_srcdir=$ac_srcdir;;
1017 .) ac_abs_srcdir=$ac_abs_builddir;;
1018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022 case $ac_abs_builddir in
1023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1025 case $ac_top_srcdir in
1026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1033 # Check for guested configure; otherwise get Cygnus style configure.
1034 if test -f $ac_srcdir/configure.gnu; then
1036 $SHELL $ac_srcdir/configure.gnu --help=recursive
1037 elif test -f $ac_srcdir/configure; then
1039 $SHELL $ac_srcdir/configure --help=recursive
1040 elif test -f $ac_srcdir/configure.ac ||
1041 test -f $ac_srcdir/configure.in; then
1043 $ac_configure --help
1045 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1051 test -n "$ac_init_help" && exit 0
1052 if $ac_init_version; then
1055 Copyright (C) 2003 Free Software Foundation, Inc.
1056 This configure script is free software; the Free Software Foundation
1057 gives unlimited permission to copy, distribute and modify it.
1063 This file contains any messages produced by compilers while
1064 running configure, to aid debugging if configure makes a mistake.
1066 It was created by $as_me, which was
1067 generated by GNU Autoconf 2.59. Invocation command line was
1078 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1079 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1080 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1081 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1082 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1084 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1085 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1087 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1088 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1089 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1090 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1091 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1092 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1093 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101 test -z "$as_dir" && as_dir=.
1102 echo "PATH: $as_dir"
1117 # Keep a trace of the command line.
1118 # Strip out --no-create and --no-recursion so they do not pile up.
1119 # Strip out --silent because we don't want to record it for future runs.
1120 # Also quote any args containing shell meta-characters.
1121 # Make two passes to allow for proper duplicate-argument suppression.
1126 ac_must_keep_next=false
1132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1136 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1137 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1140 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1142 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1143 if test $ac_must_keep_next = true; then
1144 ac_must_keep_next=false # Got value, back to normal.
1147 *=* | --config-cache | -C | -disable-* | --disable-* \
1148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1150 | -with-* | --with-* | -without-* | --without-* | --x)
1151 case "$ac_configure_args0 " in
1152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155 -* ) ac_must_keep_next=true ;;
1158 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1159 # Get rid of the leading space.
1165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1168 # When interrupted or exit'd, cleanup temporary files, and complete
1169 # config.log. We remove comments because anyway the quotes in there
1170 # would cause problems or look ugly.
1171 # WARNING: Be sure not to use single quotes in there, as some shells,
1172 # such as our DU 5.0 friend, will then `close
' the trap.
1173 trap 'exit_status
=$?
1174 # Save into config.log some information that might help in debugging.
1179 ## ---------------- ##
1180 ## Cache variables. ##
1181 ## ---------------- ##
1184 # The following way of writing the cache mishandles newlines in values,
1187 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1202 ## ----------------- ##
1203 ## Output variables. ##
1204 ## ----------------- ##
1207 for ac_var
in $ac_subst_vars
1209 eval ac_val
=$
`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1214 if test -n "$ac_subst_files"; then
1221 for ac_var
in $ac_subst_files
1223 eval ac_val
=$
`echo $ac_var`
1224 echo "$ac_var='"'"'$ac_val'"'"'"
1229 if test -s confdefs.h
; then
1236 sed "/^$/d" confdefs.h |
sort
1239 test "$ac_signal" != 0 &&
1240 echo "$as_me: caught signal $ac_signal"
1241 echo "$as_me: exit $exit_status"
1243 rm -f core
*.core
&&
1244 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1247 for ac_signal in 1 2 13 15; do
1248 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1253 rm -rf conftest* confdefs.h
1254 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 # Predefined preprocessor variables.
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 # Let the site file select an alternate cache file if it wants to.
1285 # Prefer explicitly selected file to automatically selected ones.
1286 if test -z "$CONFIG_SITE"; then
1287 if test "x$prefix" != xNONE; then
1288 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1290 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293 for ac_site_file in $CONFIG_SITE; do
1294 if test -r "$ac_site_file"; then
1295 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1296 echo "$as_me: loading site script $ac_site_file" >&6;}
1297 sed 's
/^
/|
/' "$ac_site_file" >&5
1302 if test -r "$cache_file"; then
1303 # Some versions of bash will fail to source /dev/null (special
1304 # files actually), so we avoid doing that.
1305 if test -f "$cache_file"; then
1306 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1307 echo "$as_me: loading cache $cache_file" >&6;}
1309 [\\/]* | ?:[\\/]* ) . $cache_file;;
1310 *) . ./$cache_file;;
1314 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1315 echo "$as_me: creating cache $cache_file" >&6;}
1319 # Check that the precious variables saved in the cache have kept the same
1321 ac_cache_corrupted=false
1322 for ac_var in `(set) 2>&1 |
1323 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1324 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1325 eval ac_new_set=\$ac_env_${ac_var}_set
1326 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1327 eval ac_new_val="\$ac_env_${ac_var}_value"
1328 case $ac_old_set,$ac_new_set in
1330 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1332 ac_cache_corrupted=: ;;
1334 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1336 ac_cache_corrupted=: ;;
1339 if test "x$ac_old_val" != "x$ac_new_val"; then
1340 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1341 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1342 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1343 echo "$as_me: former value: $ac_old_val" >&2;}
1344 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1345 echo "$as_me: current value: $ac_new_val" >&2;}
1346 ac_cache_corrupted=:
1349 # Pass precious variables to config.status.
1350 if test "$ac_new_set" = set; then
1352 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1354 *) ac_arg=$ac_var=$ac_new_val ;;
1356 case " $ac_configure_args " in
1357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1358 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362 if $ac_cache_corrupted; then
1363 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1364 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1365 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1366 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1367 { (exit 1); exit 1; }; }
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1373 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1395 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1398 gcc_version=`cat $srcdir/BASE-VER`
1400 # Determine the host, build, and target systems
1402 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1403 if test -f $ac_dir/install-sh; then
1405 ac_install_sh="$ac_aux_dir/install-sh -c"
1407 elif test -f $ac_dir/install.sh; then
1409 ac_install_sh="$ac_aux_dir/install.sh -c"
1411 elif test -f $ac_dir/shtool; then
1413 ac_install_sh="$ac_aux_dir/shtool install -c"
1417 if test -z "$ac_aux_dir"; then
1418 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1420 { (exit 1); exit 1; }; }
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426 # Make sure we can run config.sub.
1427 $ac_config_sub sun4 >/dev/null 2>&1 ||
1428 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1429 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1430 { (exit 1); exit 1; }; }
1432 echo "$as_me:$LINENO: checking build system type" >&5
1433 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1434 if test "${ac_cv_build+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 ac_cv_build_alias=$build_alias
1438 test -z "$ac_cv_build_alias" &&
1439 ac_cv_build_alias=`$ac_config_guess`
1440 test -z "$ac_cv_build_alias" &&
1441 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1442 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1443 { (exit 1); exit 1; }; }
1444 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1445 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1446 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1447 { (exit 1); exit 1; }; }
1450 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1451 echo "${ECHO_T}$ac_cv_build" >&6
1453 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1454 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1455 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1458 echo "$as_me:$LINENO: checking host system type" >&5
1459 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1460 if test "${ac_cv_host+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 ac_cv_host_alias=$host_alias
1464 test -z "$ac_cv_host_alias" &&
1465 ac_cv_host_alias=$ac_cv_build_alias
1466 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1467 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1468 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1469 { (exit 1); exit 1; }; }
1472 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1473 echo "${ECHO_T}$ac_cv_host" >&6
1475 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1476 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1477 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1480 echo "$as_me:$LINENO: checking target system type" >&5
1481 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1482 if test "${ac_cv_target+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 ac_cv_target_alias=$target_alias
1486 test "x$ac_cv_target_alias" = "x" &&
1487 ac_cv_target_alias=$ac_cv_host_alias
1488 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1489 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1490 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1491 { (exit 1); exit 1; }; }
1494 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1495 echo "${ECHO_T}$ac_cv_target" >&6
1496 target=$ac_cv_target
1497 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1498 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1499 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1502 # The aliases save the names the user supplied, while $host etc.
1503 # will get canonicalized.
1504 test -n "$target_alias" &&
1505 test "$program_prefix$program_suffix$program_transform_name" = \
1507 program_prefix=${target_alias}-
1509 # Determine the noncanonical target name, for directory use.
1510 case ${build_alias} in
1511 "") build_noncanonical=${build} ;;
1512 *) build_noncanonical=${build_alias} ;;
1515 case ${host_alias} in
1516 "") host_noncanonical=${build_noncanonical} ;;
1517 *) host_noncanonical=${host_alias} ;;
1520 case ${target_alias} in
1521 "") target_noncanonical=${host_noncanonical} ;;
1522 *) target_noncanonical=${target_alias} ;;
1528 # Determine the target- and build-specific subdirectories
1529 # Prefix 'build-
' so this never conflicts with target_subdir.
1530 build_subdir="build-${build_noncanonical}"
1532 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1533 if test "${with_build_libsubdir+set}" = set; then
1534 withval="$with_build_libsubdir"
1535 build_libsubdir="$withval"
1537 build_libsubdir="$build_subdir"
1539 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1540 if ( test $srcdir = . && test -d gcc ) \
1541 || test -d $srcdir/../host-${host_noncanonical}; then
1542 host_subdir="host-${host_noncanonical}"
1547 target_subdir=${target_noncanonical}
1550 # Set program_transform_name
1551 test "$program_prefix" != NONE &&
1552 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1553 # Use a double $ so make ignores it.
1554 test "$program_suffix" != NONE &&
1555 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1556 # Double any \ or $. echo might interpret backslashes.
1557 # By default was `s,x,x', remove it
if useless.
1558 cat <<\_ACEOF
>conftest.
sed
1559 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1561 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1565 # Check for bogus environment variables.
1566 # Test if LIBRARY_PATH contains the notation for the current directory
1567 # since this would lead to problems installing/building glibc.
1568 # LIBRARY_PATH contains the current directory if one of the following
1570 # - one of the terminals (":" and ";") is the first or last sign
1571 # - two terminals occur directly after each other
1572 # - the path contains an element with a dot in it
1573 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1574 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1575 case ${LIBRARY_PATH} in
1576 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1577 library_path_setting
="contains current directory"
1580 library_path_setting
="ok"
1583 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1584 echo "${ECHO_T}$library_path_setting" >&6
1585 if test "$library_path_setting" != "ok"; then
1586 { { echo "$as_me:$LINENO: error:
1587 *** LIBRARY_PATH shouldn't contain the current directory when
1588 *** building gcc. Please change the environment variable
1589 *** and run configure again." >&5
1590 echo "$as_me: error:
1591 *** LIBRARY_PATH shouldn't contain the current directory when
1592 *** building gcc. Please change the environment variable
1593 *** and run configure again." >&2;}
1594 { (exit 1); exit 1; }; }
1597 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1598 # since this would lead to problems installing/building glibc.
1599 # GCC_EXEC_PREFIX contains the current directory if one of the following
1601 # - one of the terminals (":" and ";") is the first or last sign
1602 # - two terminals occur directly after each other
1603 # - the path contains an element with a dot in it
1604 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1605 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1606 case ${GCC_EXEC_PREFIX} in
1607 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1608 gcc_exec_prefix_setting
="contains current directory"
1611 gcc_exec_prefix_setting
="ok"
1614 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1615 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1616 if test "$gcc_exec_prefix_setting" != "ok"; then
1617 { { echo "$as_me:$LINENO: error:
1618 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1619 *** building gcc. Please change the environment variable
1620 *** and run configure again." >&5
1621 echo "$as_me: error:
1622 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1623 *** building gcc. Please change the environment variable
1624 *** and run configure again." >&2;}
1625 { (exit 1); exit 1; }; }
1632 # Specify the local prefix
1635 # Check whether --with-local-prefix or --without-local-prefix was given.
1636 if test "${with_local_prefix+set}" = set; then
1637 withval
="$with_local_prefix"
1638 case "${withval}" in
1639 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1640 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1641 { (exit 1); exit 1; }; } ;;
1643 *) local_prefix
=$with_local_prefix ;;
1647 # Default local prefix if it is empty
1648 if test x
$local_prefix = x
; then
1649 local_prefix
=/usr
/local
1652 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1653 # passed in by the toplevel make and thus we'd get different behavior
1654 # depending on where we built the sources.
1655 gcc_gxx_include_dir
=
1656 # Specify the g++ header file directory
1658 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1659 if test "${with_gxx_include_dir+set}" = set; then
1660 withval
="$with_gxx_include_dir"
1661 case "${withval}" in
1662 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1663 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1664 { (exit 1); exit 1; }; } ;;
1666 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1670 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1671 if test x
${gcc_gxx_include_dir} = x
; then
1672 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1673 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1675 libstdcxx_incdir
='include/c++/$(version)'
1676 if test x
$host != x
$target; then
1677 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1679 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1684 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1685 if test "${with_cpp_install_dir+set}" = set; then
1686 withval
="$with_cpp_install_dir"
1687 if test x
$withval = xyes
; then
1688 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1689 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1690 { (exit 1); exit 1; }; }
1691 elif test x
$withval != xno
; then
1692 cpp_install_dir
=$withval
1696 # We would like to our source tree to be readonly. However when releases or
1697 # pre-releases are generated, the flex/bison generated files as well as the
1698 # various formats of manuals need to be included along with the rest of the
1699 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1702 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1703 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1704 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1705 if test "${enable_generated_files_in_srcdir+set}" = set; then
1706 enableval
="$enable_generated_files_in_srcdir"
1707 generated_files_in_srcdir
=$enableval
1709 generated_files_in_srcdir
=no
1712 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1713 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1715 if test "$generated_files_in_srcdir" = "yes"; then
1722 # -------------------
1723 # Find default linker
1724 # -------------------
1728 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1729 if test "${with_gnu_ld+set}" = set; then
1730 withval
="$with_gnu_ld"
1731 gnu_ld_flag
="$with_gnu_ld"
1736 # With pre-defined ld
1738 # Check whether --with-ld or --without-ld was given.
1739 if test "${with_ld+set}" = set; then
1741 DEFAULT_LINKER
="$with_ld"
1743 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1744 if test ! -x "$DEFAULT_LINKER"; then
1745 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1746 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1747 { (exit 1); exit 1; }; }
1748 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1752 cat >>confdefs.h
<<_ACEOF
1753 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1758 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1759 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1760 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1761 if test x
"$gnu_ld_flag" = x
"no"; then
1762 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1763 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1765 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1766 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1773 # With demangler in GNU ld
1775 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1776 if test "${with_demangler_in_ld+set}" = set; then
1777 withval
="$with_demangler_in_ld"
1778 demangler_in_ld
="$with_demangler_in_ld"
1783 # ----------------------
1784 # Find default assembler
1785 # ----------------------
1789 # Check whether --with-gnu-as or --without-gnu-as was given.
1790 if test "${with_gnu_as+set}" = set; then
1791 withval
="$with_gnu_as"
1792 gas_flag
="$with_gnu_as"
1798 # Check whether --with-as or --without-as was given.
1799 if test "${with_as+set}" = set; then
1801 DEFAULT_ASSEMBLER
="$with_as"
1803 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1804 if test ! -x "$DEFAULT_ASSEMBLER"; then
1805 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1806 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1807 { (exit 1); exit 1; }; }
1808 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1812 cat >>confdefs.h
<<_ACEOF
1813 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1818 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1819 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1820 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1821 if test x
"$gas_flag" = x
"no"; then
1822 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1823 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1825 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1826 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1837 # If a non-executable a.out is present (e.g. created by GNU as above even if
1838 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1839 # file, even when creating an executable, so an execution test fails.
1840 # Remove possible default executable files to avoid this.
1842 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1843 # Autoconf includes it.
1844 rm -f a.out a.exe b.out
1846 # Find the native compiler
1848 ac_cpp
='$CPP $CPPFLAGS'
1849 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1852 if test -n "$ac_tool_prefix"; then
1853 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1854 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$CC"; then
1861 ac_cv_prog_CC
="$CC" # Let the user override the test.
1863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir
=.
1868 for ac_exec_ext
in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 if test -n "$CC"; then
1881 echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1889 if test -z "$ac_cv_prog_CC"; then
1891 # Extract the first word of "gcc", so it can be a program name with args.
1892 set dummy gcc
; ac_word
=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$ac_ct_CC"; then
1899 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir
=.
1906 for ac_exec_ext
in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_ac_ct_CC
="gcc"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1918 if test -n "$ac_ct_CC"; then
1919 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1920 echo "${ECHO_T}$ac_ct_CC" >&6
1922 echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1931 if test -z "$CC"; then
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1934 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC
="$CC" # Let the user override the test.
1943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir
=.
1948 for ac_exec_ext
in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 if test -n "$CC"; then
1961 echo "$as_me:$LINENO: result: $CC" >&5
1962 echo "${ECHO_T}$CC" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1969 if test -z "$ac_cv_prog_CC"; then
1971 # Extract the first word of "cc", so it can be a program name with args.
1972 set dummy cc
; ac_word
=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$ac_ct_CC"; then
1979 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir
=.
1986 for ac_exec_ext
in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_ac_ct_CC
="cc"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1998 if test -n "$ac_ct_CC"; then
1999 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2000 echo "${ECHO_T}$ac_ct_CC" >&6
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2012 if test -z "$CC"; then
2013 # Extract the first word of "cc", so it can be a program name with args.
2014 set dummy cc
; ac_word
=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC
="$CC" # Let the user override the test.
2024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir
=.
2029 for ac_exec_ext
in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2032 ac_prog_rejected
=yes
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 if test $ac_prog_rejected = yes; then
2043 # We found a bogon in the path, so make sure we never use it.
2044 set dummy
$ac_cv_prog_CC
2046 if test $# != 0; then
2047 # We chose a different compiler from the bogus one.
2048 # However, it has the same basename, so the bogon will be chosen
2049 # first if we set CC to just the basename; use the full file name.
2051 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2057 if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2066 if test -z "$CC"; then
2067 if test -n "$ac_tool_prefix"; then
2070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2071 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2072 echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074 if test "${ac_cv_prog_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test -n "$CC"; then
2078 ac_cv_prog_CC
="$CC" # Let the user override the test.
2080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2084 test -z "$as_dir" && as_dir
=.
2085 for ac_exec_ext
in '' $ac_executable_extensions; do
2086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 if test -n "$CC"; then
2098 echo "$as_me:$LINENO: result: $CC" >&5
2099 echo "${ECHO_T}$CC" >&6
2101 echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6
2105 test -n "$CC" && break
2108 if test -z "$CC"; then
2112 # Extract the first word of "$ac_prog", so it can be a program name with args.
2113 set dummy
$ac_prog; ac_word
=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 if test -n "$ac_ct_CC"; then
2120 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir
=.
2127 for ac_exec_ext
in '' $ac_executable_extensions; do
2128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129 ac_cv_prog_ac_ct_CC
="$ac_prog"
2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6
2143 echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2147 test -n "$ac_ct_CC" && break
2156 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2157 See \`config.log' for more details." >&5
2158 echo "$as_me: error: no acceptable C compiler found in \$PATH
2159 See \`config.log' for more details." >&2;}
2160 { (exit 1); exit 1; }; }
2162 # Provide some information about the compiler.
2163 echo "$as_me:$LINENO:" \
2164 "checking for C compiler version" >&5
2165 ac_compiler
=`set X $ac_compile; echo $2`
2166 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2167 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }
2171 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2172 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }
2176 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2177 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }
2182 cat >conftest.
$ac_ext <<_ACEOF
2185 cat confdefs.h
>>conftest.
$ac_ext
2186 cat >>conftest.
$ac_ext <<_ACEOF
2187 /* end confdefs.h. */
2197 ac_clean_files_save
=$ac_clean_files
2198 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2199 # Try to create an executable without -o first, disregard a.out.
2200 # It will help us diagnose broken compilers, and finding out an intuition
2202 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2203 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2204 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2205 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2206 (eval $ac_link_default) 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 # Find the output, starting from the most likely. This scheme is
2211 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2214 # Be careful to initialize this variable, since it used to be cached.
2215 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2217 # b.out is created by i960 compilers.
2218 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2220 test -f "$ac_file" ||
continue
2222 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2225 # This is the source file.
2228 # We found the default executable, but exeext='' is most
2232 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2233 # FIXME: I believe we export ac_cv_exeext for Libtool,
2234 # but it would be cool to find out if it's true. Does anybody
2235 # maintain Libtool? --akim.
2243 echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.
$ac_ext >&5
2246 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: C compiler cannot create executables
2249 See \`config.log' for more details." >&2;}
2250 { (exit 77); exit 77; }; }
2253 ac_exeext
=$ac_cv_exeext
2254 echo "$as_me:$LINENO: result: $ac_file" >&5
2255 echo "${ECHO_T}$ac_file" >&6
2257 # Check the compiler produces executables we can run. If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2260 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2261 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2262 # If not cross compiling, check that we can run a simple program.
2263 if test "$cross_compiling" != yes; then
2264 if { ac_try
='./$ac_file'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2272 if test "$cross_compiling" = maybe
; then
2275 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2276 If you meant to cross compile, use \`--host'.
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: cannot run C compiled programs.
2279 If you meant to cross compile, use \`--host'.
2280 See \`config.log' for more details." >&2;}
2281 { (exit 1); exit 1; }; }
2285 echo "$as_me:$LINENO: result: yes" >&5
2286 echo "${ECHO_T}yes" >&6
2288 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2289 ac_clean_files
=$ac_clean_files_save
2290 # Check the compiler produces executables we can run. If not, either
2291 # the compiler is broken, or we cross compile.
2292 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2293 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2294 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2295 echo "${ECHO_T}$cross_compiling" >&6
2297 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2298 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2300 (eval $ac_link) 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2305 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2306 # work properly (i.e., refer to `conftest.exe'), while it won't with
2308 for ac_file
in conftest.exe conftest conftest.
*; do
2309 test -f "$ac_file" ||
continue
2311 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2312 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest
$ac_cv_exeext
2327 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2328 echo "${ECHO_T}$ac_cv_exeext" >&6
2330 rm -f conftest.
$ac_ext
2331 EXEEXT
=$ac_cv_exeext
2333 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2334 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2335 if test "${ac_cv_objext+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 cat >conftest.
$ac_ext <<_ACEOF
2341 cat confdefs.h
>>conftest.
$ac_ext
2342 cat >>conftest.
$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2353 rm -f conftest.o conftest.obj
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2361 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2362 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.
$ac_ext >&5
2370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2373 See \`config.log' for more details." >&2;}
2374 { (exit 1); exit 1; }; }
2377 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2379 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2380 echo "${ECHO_T}$ac_cv_objext" >&6
2381 OBJEXT
=$ac_cv_objext
2383 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 cat >conftest.
$ac_ext <<_ACEOF
2391 cat confdefs.h
>>conftest.
$ac_ext
2392 cat >>conftest.
$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2406 rm -f conftest.
$ac_objext
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408 (eval $ac_compile) 2>conftest.er1
2410 grep -v '^ *+' conftest.er1
>conftest.err
2412 cat conftest.err
>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try
='test -z "$ac_c_werror_flag"
2416 || test ! -s conftest.err'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; } &&
2422 { ac_try
='test -s conftest.$ac_objext'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2430 echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.
$ac_ext >&5
2435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2436 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2439 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2440 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2441 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2442 ac_test_CFLAGS
=${CFLAGS+set}
2443 ac_save_CFLAGS
=$CFLAGS
2445 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2446 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2447 if test "${ac_cv_prog_cc_g+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 cat >conftest.
$ac_ext <<_ACEOF
2453 cat confdefs.h
>>conftest.
$ac_ext
2454 cat >>conftest.
$ac_ext <<_ACEOF
2455 /* end confdefs.h. */
2465 rm -f conftest.
$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2469 grep -v '^ *+' conftest.er1
>conftest.err
2471 cat conftest.err
>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try
='test -z "$ac_c_werror_flag"
2475 || test ! -s conftest.err'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try
='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.
$ac_ext >&5
2494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2496 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2497 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2498 if test "$ac_test_CFLAGS" = set; then
2499 CFLAGS
=$ac_save_CFLAGS
2500 elif test $ac_cv_prog_cc_g = yes; then
2501 if test "$GCC" = yes; then
2507 if test "$GCC" = yes; then
2513 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2514 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2515 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 ac_cv_prog_cc_stdc
=no
2520 cat >conftest.
$ac_ext <<_ACEOF
2523 cat confdefs.h
>>conftest.
$ac_ext
2524 cat >>conftest.
$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2528 #include <sys/types.h>
2529 #include <sys/stat.h>
2530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2531 struct buf { int x; };
2532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2533 static char *e (p, i)
2539 static char *f (char * (*g) (char **, int), char **p, ...)
2544 s = g (p, va_arg (v,int));
2549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2550 function prototypes and stuff, but not '\xHH' hex character constants.
2551 These don't provoke an error unfortunately, instead are silently treated
2552 as 'x'. The following induces an error, until -std1 is added to get
2553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2554 array size at least. It's necessary to write '\x00'==0 to get something
2555 that's true only with -std1. */
2556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2558 int test (int i, double x);
2559 struct s1 {int (*f) (int a);};
2560 struct s2 {int (*f) (double a);};
2561 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2567 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2572 # Don't try gcc -ansi; that turns off useful extensions and
2573 # breaks some systems' header files.
2574 # AIX -qlanglvl=ansi
2575 # Ultrix and OSF/1 -std1
2576 # HP-UX 10.20 and later -Ae
2577 # HP-UX older versions -Aa -D_HPUX_SOURCE
2578 # SVR4 -Xc -D__EXTENSIONS__
2579 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2581 CC
="$ac_save_CC $ac_arg"
2582 rm -f conftest.
$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2586 grep -v '^ *+' conftest.er1
>conftest.err
2588 cat conftest.err
>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try
='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try
='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_cv_prog_cc_stdc
=$ac_arg
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.
$ac_ext >&5
2611 rm -f conftest.err conftest.
$ac_objext
2613 rm -f conftest.
$ac_ext conftest.
$ac_objext
2618 case "x$ac_cv_prog_cc_stdc" in
2620 echo "$as_me:$LINENO: result: none needed" >&5
2621 echo "${ECHO_T}none needed" >&6 ;;
2623 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2625 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2628 # Some people use a C++ compiler to compile C. Since we use `exit',
2629 # in C++ we need to declare it. In case someone uses the same compiler
2630 # for both compiling C and C++ we need to have the C++ compiler decide
2631 # the declaration of exit, since it's the most demanding environment.
2632 cat >conftest.
$ac_ext <<_ACEOF
2637 rm -f conftest.
$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>conftest.er1
2641 grep -v '^ *+' conftest.er1
>conftest.err
2643 cat conftest.err
>&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } &&
2646 { ac_try
='test -z "$ac_c_werror_flag"
2647 || test ! -s conftest.err'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try
='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 for ac_declaration
in \
2661 'extern "C" void std::exit (int) throw (); using std::exit;' \
2662 'extern "C" void std::exit (int); using std::exit;' \
2663 'extern "C" void exit (int) throw ();' \
2664 'extern "C" void exit (int);' \
2667 cat >conftest.
$ac_ext <<_ACEOF
2670 cat confdefs.h
>>conftest.
$ac_ext
2671 cat >>conftest.
$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2683 rm -f conftest.
$ac_objext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685 (eval $ac_compile) 2>conftest.er1
2687 grep -v '^ *+' conftest.er1
>conftest.err
2689 cat conftest.err
>&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
2692 { ac_try
='test -z "$ac_c_werror_flag"
2693 || test ! -s conftest.err'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; } &&
2699 { ac_try
='test -s conftest.$ac_objext'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.
$ac_ext >&5
2712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2713 cat >conftest.
$ac_ext <<_ACEOF
2716 cat confdefs.h
>>conftest.
$ac_ext
2717 cat >>conftest.
$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2728 rm -f conftest.
$ac_objext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>conftest.er1
2732 grep -v '^ *+' conftest.er1
>conftest.err
2734 cat conftest.err
>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 { ac_try
='test -z "$ac_c_werror_flag"
2738 || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try
='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.
$ac_ext >&5
2756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2759 if test -n "$ac_declaration"; then
2760 echo '#ifdef __cplusplus' >>confdefs.h
2761 echo $ac_declaration >>confdefs.h
2762 echo '#endif' >>confdefs.h
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.
$ac_ext >&5
2770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2772 ac_cpp
='$CPP $CPPFLAGS'
2773 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2777 if test "x$CC" != xcc
; then
2778 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2779 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2781 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2782 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2784 set dummy
$CC; ac_cc
=`echo $2 |
2785 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2786 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 cat >conftest.
$ac_ext <<_ACEOF
2792 cat confdefs.h
>>conftest.
$ac_ext
2793 cat >>conftest.
$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2804 # Make sure it works both with $CC and with simple cc.
2805 # We do the test twice because some compilers refuse to overwrite an
2806 # existing .o file with -o, though they will create one.
2807 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2808 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); };
2819 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2820 if test "x$CC" != xcc
; then
2821 # Test first that cc exists at all.
2822 if { ac_try
='cc -c conftest.$ac_ext >&5'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; }; then
2828 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2829 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); };
2843 # cc exists but doesn't like -o.
2844 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2849 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2854 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2855 echo "$as_me:$LINENO: result: yes" >&5
2856 echo "${ECHO_T}yes" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2861 cat >>confdefs.h
<<\_ACEOF
2862 #define NO_MINUS_C_MINUS_O 1
2867 # expand $ac_aux_dir to an absolute path
2868 am_aux_dir
=`cd $ac_aux_dir && pwd`
2870 # FIXME: we rely on the cache variable name because
2871 # there is no other way.
2873 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2874 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2875 # Losing compiler, so override with the script.
2876 # FIXME: It is wrong to rewrite CC.
2877 # But if we don't then we get into trouble of one sort or another.
2878 # A longer-term fix would be to have automake use am__CC in this case,
2879 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2880 CC
="$am_aux_dir/compile $CC"
2883 # autoconf is lame and doesn't give us any substitution variable for this.
2884 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2885 NO_MINUS_C_MINUS_O
=yes
2887 OUTPUT_OPTION
='-o $@'
2892 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2893 # optimizations to be activated explicitly by the toplevel.
2895 */prev-gcc
/xgcc
*) ;;
2896 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2900 # -------------------------
2901 # Check C compiler features
2902 # -------------------------
2905 ac_cpp
='$CPP $CPPFLAGS'
2906 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2909 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2910 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2911 # On Suns, sometimes $CPP names a directory.
2912 if test -n "$CPP" && test -d "$CPP"; then
2915 if test -z "$CPP"; then
2916 if test "${ac_cv_prog_CPP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 # Double quotes because CPP needs to be expanded
2920 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2923 for ac_c_preproc_warn_flag
in '' yes
2925 # Use a header file that comes with gcc, so configuring glibc
2926 # with a fresh cross-compiler works.
2927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2928 # <limits.h> exists even on freestanding compilers.
2929 # On the NeXT, cc -E runs the code through the compiler's parser,
2930 # not just through cpp. "Syntax error" is here to catch this case.
2931 cat >conftest.
$ac_ext <<_ACEOF
2934 cat confdefs.h
>>conftest.
$ac_ext
2935 cat >>conftest.
$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2938 # include <limits.h>
2940 # include <assert.h>
2944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2945 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1
>conftest.err
2949 cat conftest.err
>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } >/dev
/null
; then
2952 if test -s conftest.err
; then
2953 ac_cpp_err
=$ac_c_preproc_warn_flag
2954 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2961 if test -z "$ac_cpp_err"; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.
$ac_ext >&5
2967 # Broken: fails on valid input.
2970 rm -f conftest.err conftest.
$ac_ext
2972 # OK, works on sane cases. Now check whether non-existent headers
2973 # can be detected and how.
2974 cat >conftest.
$ac_ext <<_ACEOF
2977 cat confdefs.h
>>conftest.
$ac_ext
2978 cat >>conftest.
$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2980 #include <ac_nonexistent.h>
2982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2983 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2985 grep -v '^ *+' conftest.er1
>conftest.err
2987 cat conftest.err
>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev
/null
; then
2990 if test -s conftest.err
; then
2991 ac_cpp_err
=$ac_c_preproc_warn_flag
2992 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2999 if test -z "$ac_cpp_err"; then
3000 # Broken: success on invalid input.
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.
$ac_ext >&5
3006 # Passes both tests.
3010 rm -f conftest.err conftest.
$ac_ext
3013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3014 rm -f conftest.err conftest.
$ac_ext
3015 if $ac_preproc_ok; then
3027 echo "$as_me:$LINENO: result: $CPP" >&5
3028 echo "${ECHO_T}$CPP" >&6
3030 for ac_c_preproc_warn_flag
in '' yes
3032 # Use a header file that comes with gcc, so configuring glibc
3033 # with a fresh cross-compiler works.
3034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3035 # <limits.h> exists even on freestanding compilers.
3036 # On the NeXT, cc -E runs the code through the compiler's parser,
3037 # not just through cpp. "Syntax error" is here to catch this case.
3038 cat >conftest.
$ac_ext <<_ACEOF
3041 cat confdefs.h
>>conftest.
$ac_ext
3042 cat >>conftest.
$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3045 # include <limits.h>
3047 # include <assert.h>
3051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3052 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3054 grep -v '^ *+' conftest.er1
>conftest.err
3056 cat conftest.err
>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } >/dev
/null
; then
3059 if test -s conftest.err
; then
3060 ac_cpp_err
=$ac_c_preproc_warn_flag
3061 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3068 if test -z "$ac_cpp_err"; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.
$ac_ext >&5
3074 # Broken: fails on valid input.
3077 rm -f conftest.err conftest.
$ac_ext
3079 # OK, works on sane cases. Now check whether non-existent headers
3080 # can be detected and how.
3081 cat >conftest.
$ac_ext <<_ACEOF
3084 cat confdefs.h
>>conftest.
$ac_ext
3085 cat >>conftest.
$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 #include <ac_nonexistent.h>
3089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3090 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3092 grep -v '^ *+' conftest.er1
>conftest.err
3094 cat conftest.err
>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } >/dev
/null
; then
3097 if test -s conftest.err
; then
3098 ac_cpp_err
=$ac_c_preproc_warn_flag
3099 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3106 if test -z "$ac_cpp_err"; then
3107 # Broken: success on invalid input.
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.
$ac_ext >&5
3113 # Passes both tests.
3117 rm -f conftest.err conftest.
$ac_ext
3120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3121 rm -f conftest.err conftest.
$ac_ext
3122 if $ac_preproc_ok; then
3125 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3126 See \`config.log' for more details." >&5
3127 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3128 See \`config.log' for more details." >&2;}
3129 { (exit 1); exit 1; }; }
3133 ac_cpp
='$CPP $CPPFLAGS'
3134 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3139 echo "$as_me:$LINENO: checking for inline" >&5
3140 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3141 if test "${ac_cv_c_inline+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 for ac_kw
in inline __inline__ __inline
; do
3146 cat >conftest.
$ac_ext <<_ACEOF
3149 cat confdefs.h
>>conftest.
$ac_ext
3150 cat >>conftest.
$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3154 static $ac_kw foo_t static_foo () {return 0; }
3155 $ac_kw foo_t foo () {return 0; }
3159 rm -f conftest.
$ac_objext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>conftest.er1
3163 grep -v '^ *+' conftest.er1
>conftest.err
3165 cat conftest.err
>&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try
='test -z "$ac_c_werror_flag"
3169 || test ! -s conftest.err'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try
='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 ac_cv_c_inline
=$ac_kw; break
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.
$ac_ext >&5
3187 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3191 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3192 echo "${ECHO_T}$ac_cv_c_inline" >&6
3195 case $ac_cv_c_inline in
3198 case $ac_cv_c_inline in
3200 *) ac_val
=$ac_cv_c_inline;;
3202 cat >>confdefs.h
<<_ACEOF
3204 #define inline $ac_val
3211 # sizeof(char) is 1 by definition.
3213 echo "$as_me:$LINENO: checking for egrep" >&5
3214 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3215 if test "${ac_cv_prog_egrep+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3219 then ac_cv_prog_egrep
='grep -E'
3220 else ac_cv_prog_egrep
='egrep'
3223 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3224 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3225 EGREP
=$ac_cv_prog_egrep
3228 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3229 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3230 if test "${ac_cv_header_stdc+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 cat >conftest.
$ac_ext <<_ACEOF
3236 cat confdefs.h
>>conftest.
$ac_ext
3237 cat >>conftest.
$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3252 rm -f conftest.
$ac_objext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 (eval $ac_compile) 2>conftest.er1
3256 grep -v '^ *+' conftest.er1
>conftest.err
3258 cat conftest.err
>&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try
='test -z "$ac_c_werror_flag"
3262 || test ! -s conftest.err'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; } &&
3268 { ac_try
='test -s conftest.$ac_objext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 ac_cv_header_stdc
=yes
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.
$ac_ext >&5
3279 ac_cv_header_stdc
=no
3281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3283 if test $ac_cv_header_stdc = yes; then
3284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3285 cat >conftest.
$ac_ext <<_ACEOF
3288 cat confdefs.h
>>conftest.
$ac_ext
3289 cat >>conftest.
$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 $EGREP "memchr" >/dev
/null
2>&1; then
3298 ac_cv_header_stdc
=no
3304 if test $ac_cv_header_stdc = yes; then
3305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3306 cat >conftest.
$ac_ext <<_ACEOF
3309 cat confdefs.h
>>conftest.
$ac_ext
3310 cat >>conftest.
$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3316 $EGREP "free" >/dev
/null
2>&1; then
3319 ac_cv_header_stdc
=no
3325 if test $ac_cv_header_stdc = yes; then
3326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3327 if test "$cross_compiling" = yes; then
3330 cat >conftest.
$ac_ext <<_ACEOF
3333 cat confdefs.h
>>conftest.
$ac_ext
3334 cat >>conftest.
$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3337 #if ((' ' & 0x0FF) == 0x020)
3338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3341 # define ISLOWER(c) \
3342 (('a' <= (c) && (c) <= 'i') \
3343 || ('j' <= (c) && (c) <= 'r') \
3344 || ('s' <= (c) && (c) <= 'z'))
3345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3353 for (i = 0; i < 256; i++)
3354 if (XOR (islower (i), ISLOWER (i))
3355 || toupper (i) != TOUPPER (i))
3360 rm -f conftest
$ac_exeext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3362 (eval $ac_link) 2>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3373 echo "$as_me: program exited with status $ac_status" >&5
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.
$ac_ext >&5
3378 ac_cv_header_stdc
=no
3380 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3384 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3385 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3386 if test $ac_cv_header_stdc = yes; then
3388 cat >>confdefs.h
<<\_ACEOF
3389 #define STDC_HEADERS 1
3394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3404 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3405 inttypes.h stdint.h unistd.h
3407 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3408 echo "$as_me:$LINENO: checking for $ac_header" >&5
3409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 cat >conftest.
$ac_ext <<_ACEOF
3416 cat confdefs.h
>>conftest.
$ac_ext
3417 cat >>conftest.
$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 $ac_includes_default
3421 #include <$ac_header>
3423 rm -f conftest.
$ac_objext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425 (eval $ac_compile) 2>conftest.er1
3427 grep -v '^ *+' conftest.er1
>conftest.err
3429 cat conftest.err
>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try
='test -z "$ac_c_werror_flag"
3433 || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try
='test -s conftest.$ac_objext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3445 eval "$as_ac_Header=yes"
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.
$ac_ext >&5
3450 eval "$as_ac_Header=no"
3452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3457 cat >>confdefs.h
<<_ACEOF
3458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3466 echo "$as_me:$LINENO: checking for void *" >&5
3467 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3468 if test "${ac_cv_type_void_p+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 cat >conftest.
$ac_ext <<_ACEOF
3474 cat confdefs.h
>>conftest.
$ac_ext
3475 cat >>conftest.
$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 $ac_includes_default
3483 if (sizeof (void *))
3489 rm -f conftest.
$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>conftest.er1
3493 grep -v '^ *+' conftest.er1
>conftest.err
3495 cat conftest.err
>&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try
='test -z "$ac_c_werror_flag"
3499 || test ! -s conftest.err'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; } &&
3505 { ac_try
='test -s conftest.$ac_objext'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 ac_cv_type_void_p
=yes
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.
$ac_ext >&5
3516 ac_cv_type_void_p
=no
3518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3520 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3521 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3523 echo "$as_me:$LINENO: checking size of void *" >&5
3524 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3525 if test "${ac_cv_sizeof_void_p+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 if test "$ac_cv_type_void_p" = yes; then
3529 # The cast to unsigned long works around a bug in the HP C Compiler
3530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3532 # This bug is HP SR number 8606223364.
3533 if test "$cross_compiling" = yes; then
3534 # Depending upon the size, compute the lo and hi bounds.
3535 cat >conftest.
$ac_ext <<_ACEOF
3538 cat confdefs.h
>>conftest.
$ac_ext
3539 cat >>conftest.
$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 $ac_includes_default
3545 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3552 rm -f conftest.
$ac_objext
3553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3554 (eval $ac_compile) 2>conftest.er1
3556 grep -v '^ *+' conftest.er1
>conftest.err
3558 cat conftest.err
>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } &&
3561 { ac_try
='test -z "$ac_c_werror_flag"
3562 || test ! -s conftest.err'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; } &&
3568 { ac_try
='test -s conftest.$ac_objext'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3576 cat >conftest.
$ac_ext <<_ACEOF
3579 cat confdefs.h
>>conftest.
$ac_ext
3580 cat >>conftest.
$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 $ac_includes_default
3586 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3593 rm -f conftest.
$ac_objext
3594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3595 (eval $ac_compile) 2>conftest.er1
3597 grep -v '^ *+' conftest.er1
>conftest.err
3599 cat conftest.err
>&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } &&
3602 { ac_try
='test -z "$ac_c_werror_flag"
3603 || test ! -s conftest.err'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; } &&
3609 { ac_try
='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 ac_hi
=$ac_mid; break
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.
$ac_ext >&5
3620 ac_lo
=`expr $ac_mid + 1`
3621 if test $ac_lo -le $ac_mid; then
3625 ac_mid
=`expr 2 '*' $ac_mid + 1`
3627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.
$ac_ext >&5
3633 cat >conftest.
$ac_ext <<_ACEOF
3636 cat confdefs.h
>>conftest.
$ac_ext
3637 cat >>conftest.
$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3639 $ac_includes_default
3643 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3650 rm -f conftest.
$ac_objext
3651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3654 grep -v '^ *+' conftest.er1
>conftest.err
3656 cat conftest.err
>&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try
='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try
='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3674 cat >conftest.
$ac_ext <<_ACEOF
3677 cat confdefs.h
>>conftest.
$ac_ext
3678 cat >>conftest.
$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3680 $ac_includes_default
3684 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3691 rm -f conftest.
$ac_objext
3692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693 (eval $ac_compile) 2>conftest.er1
3695 grep -v '^ *+' conftest.er1
>conftest.err
3697 cat conftest.err
>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } &&
3700 { ac_try
='test -z "$ac_c_werror_flag"
3701 || test ! -s conftest.err'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; } &&
3707 { ac_try
='test -s conftest.$ac_objext'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3713 ac_lo
=$ac_mid; break
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.
$ac_ext >&5
3718 ac_hi
=`expr '(' $ac_mid ')' - 1`
3719 if test $ac_mid -le $ac_hi; then
3723 ac_mid
=`expr 2 '*' $ac_mid`
3725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.
$ac_ext >&5
3733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3736 # Binary search between lo and hi bounds.
3737 while test "x$ac_lo" != "x$ac_hi"; do
3738 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3739 cat >conftest.
$ac_ext <<_ACEOF
3742 cat confdefs.h
>>conftest.
$ac_ext
3743 cat >>conftest.
$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 $ac_includes_default
3749 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3756 rm -f conftest.
$ac_objext
3757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758 (eval $ac_compile) 2>conftest.er1
3760 grep -v '^ *+' conftest.er1
>conftest.err
3762 cat conftest.err
>&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try
='test -z "$ac_c_werror_flag"
3766 || test ! -s conftest.err'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; } &&
3772 { ac_try
='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.
$ac_ext >&5
3783 ac_lo
=`expr '(' $ac_mid ')' + 1`
3785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3788 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3789 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3790 See \`config.log' for more details." >&5
3791 echo "$as_me: error: cannot compute sizeof (void *), 77
3792 See \`config.log' for more details." >&2;}
3793 { (exit 1); exit 1; }; } ;;
3796 if test "$cross_compiling" = yes; then
3797 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3798 See \`config.log' for more details." >&5
3799 echo "$as_me: error: cannot run test program while cross compiling
3800 See \`config.log' for more details." >&2;}
3801 { (exit 1); exit 1; }; }
3803 cat >conftest.
$ac_ext <<_ACEOF
3806 cat confdefs.h
>>conftest.
$ac_ext
3807 cat >>conftest.
$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3809 $ac_includes_default
3810 long longval () { return (long) (sizeof (void *)); }
3811 unsigned long ulongval () { return (long) (sizeof (void *)); }
3818 FILE *f = fopen ("conftest.val", "w");
3821 if (((long) (sizeof (void *))) < 0)
3823 long i = longval ();
3824 if (i != ((long) (sizeof (void *))))
3826 fprintf (f, "%ld\n", i);
3830 unsigned long i = ulongval ();
3831 if (i != ((long) (sizeof (void *))))
3833 fprintf (f, "%lu\n", i);
3835 exit (ferror (f) || fclose (f) != 0);
3841 rm -f conftest
$ac_exeext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3843 (eval $ac_link) 2>&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 ac_cv_sizeof_void_p
=`cat conftest.val`
3854 echo "$as_me: program exited with status $ac_status" >&5
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.
$ac_ext >&5
3859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3860 See \`config.log' for more details." >&5
3861 echo "$as_me: error: cannot compute sizeof (void *), 77
3862 See \`config.log' for more details." >&2;}
3863 { (exit 1); exit 1; }; }
3865 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3870 ac_cv_sizeof_void_p
=0
3873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3874 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3875 cat >>confdefs.h
<<_ACEOF
3876 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3880 echo "$as_me:$LINENO: checking for short" >&5
3881 echo $ECHO_N "checking for short... $ECHO_C" >&6
3882 if test "${ac_cv_type_short+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 cat >conftest.
$ac_ext <<_ACEOF
3888 cat confdefs.h
>>conftest.
$ac_ext
3889 cat >>conftest.
$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3891 $ac_includes_default
3903 rm -f conftest.
$ac_objext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>conftest.er1
3907 grep -v '^ *+' conftest.er1
>conftest.err
3909 cat conftest.err
>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try
='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try
='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 ac_cv_type_short
=yes
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.
$ac_ext >&5
3932 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3934 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3935 echo "${ECHO_T}$ac_cv_type_short" >&6
3937 echo "$as_me:$LINENO: checking size of short" >&5
3938 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3939 if test "${ac_cv_sizeof_short+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 if test "$ac_cv_type_short" = yes; then
3943 # The cast to unsigned long works around a bug in the HP C Compiler
3944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3946 # This bug is HP SR number 8606223364.
3947 if test "$cross_compiling" = yes; then
3948 # Depending upon the size, compute the lo and hi bounds.
3949 cat >conftest.
$ac_ext <<_ACEOF
3952 cat confdefs.h
>>conftest.
$ac_ext
3953 cat >>conftest.
$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 $ac_includes_default
3959 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3966 rm -f conftest.
$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>conftest.er1
3970 grep -v '^ *+' conftest.er1
>conftest.err
3972 cat conftest.err
>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try
='test -z "$ac_c_werror_flag"
3976 || test ! -s conftest.err'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try
='test -s conftest.$ac_objext'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3990 cat >conftest.
$ac_ext <<_ACEOF
3993 cat confdefs.h
>>conftest.
$ac_ext
3994 cat >>conftest.
$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3996 $ac_includes_default
4000 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4007 rm -f conftest.
$ac_objext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>conftest.er1
4011 grep -v '^ *+' conftest.er1
>conftest.err
4013 cat conftest.err
>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try
='test -z "$ac_c_werror_flag"
4017 || test ! -s conftest.err'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; } &&
4023 { ac_try
='test -s conftest.$ac_objext'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; }; then
4029 ac_hi
=$ac_mid; break
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.
$ac_ext >&5
4034 ac_lo
=`expr $ac_mid + 1`
4035 if test $ac_lo -le $ac_mid; then
4039 ac_mid
=`expr 2 '*' $ac_mid + 1`
4041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.
$ac_ext >&5
4047 cat >conftest.
$ac_ext <<_ACEOF
4050 cat confdefs.h
>>conftest.
$ac_ext
4051 cat >>conftest.
$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 $ac_includes_default
4057 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4064 rm -f conftest.
$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4068 grep -v '^ *+' conftest.er1
>conftest.err
4070 cat conftest.err
>&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try
='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try
='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4088 cat >conftest.
$ac_ext <<_ACEOF
4091 cat confdefs.h
>>conftest.
$ac_ext
4092 cat >>conftest.
$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4094 $ac_includes_default
4098 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4105 rm -f conftest.
$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4109 grep -v '^ *+' conftest.er1
>conftest.err
4111 cat conftest.err
>&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try
='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try
='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 ac_lo
=$ac_mid; break
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.
$ac_ext >&5
4132 ac_hi
=`expr '(' $ac_mid ')' - 1`
4133 if test $ac_mid -le $ac_hi; then
4137 ac_mid
=`expr 2 '*' $ac_mid`
4139 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4142 echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.
$ac_ext >&5
4147 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4150 # Binary search between lo and hi bounds.
4151 while test "x$ac_lo" != "x$ac_hi"; do
4152 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4153 cat >conftest.
$ac_ext <<_ACEOF
4156 cat confdefs.h
>>conftest.
$ac_ext
4157 cat >>conftest.
$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 $ac_includes_default
4163 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4170 rm -f conftest.
$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172 (eval $ac_compile) 2>conftest.er1
4174 grep -v '^ *+' conftest.er1
>conftest.err
4176 cat conftest.err
>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try
='test -z "$ac_c_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try
='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.
$ac_ext >&5
4197 ac_lo
=`expr '(' $ac_mid ')' + 1`
4199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4202 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4203 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4204 See \`config.log' for more details." >&5
4205 echo "$as_me: error: cannot compute sizeof (short), 77
4206 See \`config.log' for more details." >&2;}
4207 { (exit 1); exit 1; }; } ;;
4210 if test "$cross_compiling" = yes; then
4211 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4212 See \`config.log' for more details." >&5
4213 echo "$as_me: error: cannot run test program while cross compiling
4214 See \`config.log' for more details." >&2;}
4215 { (exit 1); exit 1; }; }
4217 cat >conftest.
$ac_ext <<_ACEOF
4220 cat confdefs.h
>>conftest.
$ac_ext
4221 cat >>conftest.
$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 $ac_includes_default
4224 long longval () { return (long) (sizeof (short)); }
4225 unsigned long ulongval () { return (long) (sizeof (short)); }
4232 FILE *f = fopen ("conftest.val", "w");
4235 if (((long) (sizeof (short))) < 0)
4237 long i = longval ();
4238 if (i != ((long) (sizeof (short))))
4240 fprintf (f, "%ld\n", i);
4244 unsigned long i = ulongval ();
4245 if (i != ((long) (sizeof (short))))
4247 fprintf (f, "%lu\n", i);
4249 exit (ferror (f) || fclose (f) != 0);
4255 rm -f conftest
$ac_exeext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4257 (eval $ac_link) 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4266 ac_cv_sizeof_short
=`cat conftest.val`
4268 echo "$as_me: program exited with status $ac_status" >&5
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.
$ac_ext >&5
4273 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4274 See \`config.log' for more details." >&5
4275 echo "$as_me: error: cannot compute sizeof (short), 77
4276 See \`config.log' for more details." >&2;}
4277 { (exit 1); exit 1; }; }
4279 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4284 ac_cv_sizeof_short
=0
4287 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4288 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4289 cat >>confdefs.h
<<_ACEOF
4290 #define SIZEOF_SHORT $ac_cv_sizeof_short
4294 echo "$as_me:$LINENO: checking for int" >&5
4295 echo $ECHO_N "checking for int... $ECHO_C" >&6
4296 if test "${ac_cv_type_int+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 cat >conftest.
$ac_ext <<_ACEOF
4302 cat confdefs.h
>>conftest.
$ac_ext
4303 cat >>conftest.
$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 $ac_includes_default
4317 rm -f conftest.
$ac_objext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319 (eval $ac_compile) 2>conftest.er1
4321 grep -v '^ *+' conftest.er1
>conftest.err
4323 cat conftest.err
>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } &&
4326 { ac_try
='test -z "$ac_c_werror_flag"
4327 || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try
='test -s conftest.$ac_objext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.
$ac_ext >&5
4346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4349 echo "${ECHO_T}$ac_cv_type_int" >&6
4351 echo "$as_me:$LINENO: checking size of int" >&5
4352 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4353 if test "${ac_cv_sizeof_int+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 if test "$ac_cv_type_int" = yes; then
4357 # The cast to unsigned long works around a bug in the HP C Compiler
4358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4360 # This bug is HP SR number 8606223364.
4361 if test "$cross_compiling" = yes; then
4362 # Depending upon the size, compute the lo and hi bounds.
4363 cat >conftest.
$ac_ext <<_ACEOF
4366 cat confdefs.h
>>conftest.
$ac_ext
4367 cat >>conftest.
$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 $ac_includes_default
4373 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4380 rm -f conftest.
$ac_objext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382 (eval $ac_compile) 2>conftest.er1
4384 grep -v '^ *+' conftest.er1
>conftest.err
4386 cat conftest.err
>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try
='test -z "$ac_c_werror_flag"
4390 || test ! -s conftest.err'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; } &&
4396 { ac_try
='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4404 cat >conftest.
$ac_ext <<_ACEOF
4407 cat confdefs.h
>>conftest.
$ac_ext
4408 cat >>conftest.
$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4414 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4421 rm -f conftest.
$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4425 grep -v '^ *+' conftest.er1
>conftest.err
4427 cat conftest.err
>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try
='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try
='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_hi
=$ac_mid; break
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.
$ac_ext >&5
4448 ac_lo
=`expr $ac_mid + 1`
4449 if test $ac_lo -le $ac_mid; then
4453 ac_mid
=`expr 2 '*' $ac_mid + 1`
4455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.
$ac_ext >&5
4461 cat >conftest.
$ac_ext <<_ACEOF
4464 cat confdefs.h
>>conftest.
$ac_ext
4465 cat >>conftest.
$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 $ac_includes_default
4471 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4478 rm -f conftest.
$ac_objext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>conftest.er1
4482 grep -v '^ *+' conftest.er1
>conftest.err
4484 cat conftest.err
>&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try
='test -z "$ac_c_werror_flag"
4488 || test ! -s conftest.err'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try
='test -s conftest.$ac_objext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4502 cat >conftest.
$ac_ext <<_ACEOF
4505 cat confdefs.h
>>conftest.
$ac_ext
4506 cat >>conftest.
$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 $ac_includes_default
4512 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4519 rm -f conftest.
$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4523 grep -v '^ *+' conftest.er1
>conftest.err
4525 cat conftest.err
>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try
='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try
='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_lo
=$ac_mid; break
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.
$ac_ext >&5
4546 ac_hi
=`expr '(' $ac_mid ')' - 1`
4547 if test $ac_mid -le $ac_hi; then
4551 ac_mid
=`expr 2 '*' $ac_mid`
4553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.
$ac_ext >&5
4561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4564 # Binary search between lo and hi bounds.
4565 while test "x$ac_lo" != "x$ac_hi"; do
4566 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4567 cat >conftest.
$ac_ext <<_ACEOF
4570 cat confdefs.h
>>conftest.
$ac_ext
4571 cat >>conftest.
$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 $ac_includes_default
4577 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4584 rm -f conftest.
$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>conftest.er1
4588 grep -v '^ *+' conftest.er1
>conftest.err
4590 cat conftest.err
>&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
4593 { ac_try
='test -z "$ac_c_werror_flag"
4594 || test ! -s conftest.err'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; } &&
4600 { ac_try
='test -s conftest.$ac_objext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.
$ac_ext >&5
4611 ac_lo
=`expr '(' $ac_mid ')' + 1`
4613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4616 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4617 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4618 See \`config.log' for more details." >&5
4619 echo "$as_me: error: cannot compute sizeof (int), 77
4620 See \`config.log' for more details." >&2;}
4621 { (exit 1); exit 1; }; } ;;
4624 if test "$cross_compiling" = yes; then
4625 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4626 See \`config.log' for more details." >&5
4627 echo "$as_me: error: cannot run test program while cross compiling
4628 See \`config.log' for more details." >&2;}
4629 { (exit 1); exit 1; }; }
4631 cat >conftest.
$ac_ext <<_ACEOF
4634 cat confdefs.h
>>conftest.
$ac_ext
4635 cat >>conftest.
$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 $ac_includes_default
4638 long longval () { return (long) (sizeof (int)); }
4639 unsigned long ulongval () { return (long) (sizeof (int)); }
4646 FILE *f = fopen ("conftest.val", "w");
4649 if (((long) (sizeof (int))) < 0)
4651 long i = longval ();
4652 if (i != ((long) (sizeof (int))))
4654 fprintf (f, "%ld\n", i);
4658 unsigned long i = ulongval ();
4659 if (i != ((long) (sizeof (int))))
4661 fprintf (f, "%lu\n", i);
4663 exit (ferror (f) || fclose (f) != 0);
4669 rm -f conftest
$ac_exeext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4671 (eval $ac_link) 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4680 ac_cv_sizeof_int
=`cat conftest.val`
4682 echo "$as_me: program exited with status $ac_status" >&5
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.
$ac_ext >&5
4687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4688 See \`config.log' for more details." >&5
4689 echo "$as_me: error: cannot compute sizeof (int), 77
4690 See \`config.log' for more details." >&2;}
4691 { (exit 1); exit 1; }; }
4693 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4701 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4702 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4703 cat >>confdefs.h
<<_ACEOF
4704 #define SIZEOF_INT $ac_cv_sizeof_int
4708 echo "$as_me:$LINENO: checking for long" >&5
4709 echo $ECHO_N "checking for long... $ECHO_C" >&6
4710 if test "${ac_cv_type_long+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 cat >conftest.
$ac_ext <<_ACEOF
4716 cat confdefs.h
>>conftest.
$ac_ext
4717 cat >>conftest.
$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 $ac_includes_default
4731 rm -f conftest.
$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>conftest.er1
4735 grep -v '^ *+' conftest.er1
>conftest.err
4737 cat conftest.err
>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try
='test -z "$ac_c_werror_flag"
4741 || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try
='test -s conftest.$ac_objext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.
$ac_ext >&5
4760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4762 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4763 echo "${ECHO_T}$ac_cv_type_long" >&6
4765 echo "$as_me:$LINENO: checking size of long" >&5
4766 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4767 if test "${ac_cv_sizeof_long+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 if test "$ac_cv_type_long" = yes; then
4771 # The cast to unsigned long works around a bug in the HP C Compiler
4772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4774 # This bug is HP SR number 8606223364.
4775 if test "$cross_compiling" = yes; then
4776 # Depending upon the size, compute the lo and hi bounds.
4777 cat >conftest.
$ac_ext <<_ACEOF
4780 cat confdefs.h
>>conftest.
$ac_ext
4781 cat >>conftest.
$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 $ac_includes_default
4787 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4794 rm -f conftest.
$ac_objext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>conftest.er1
4798 grep -v '^ *+' conftest.er1
>conftest.err
4800 cat conftest.err
>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try
='test -z "$ac_c_werror_flag"
4804 || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try
='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4818 cat >conftest.
$ac_ext <<_ACEOF
4821 cat confdefs.h
>>conftest.
$ac_ext
4822 cat >>conftest.
$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 $ac_includes_default
4828 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4835 rm -f conftest.
$ac_objext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>conftest.er1
4839 grep -v '^ *+' conftest.er1
>conftest.err
4841 cat conftest.err
>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try
='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try
='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 ac_hi
=$ac_mid; break
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.
$ac_ext >&5
4862 ac_lo
=`expr $ac_mid + 1`
4863 if test $ac_lo -le $ac_mid; then
4867 ac_mid
=`expr 2 '*' $ac_mid + 1`
4869 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.
$ac_ext >&5
4875 cat >conftest.
$ac_ext <<_ACEOF
4878 cat confdefs.h
>>conftest.
$ac_ext
4879 cat >>conftest.
$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4881 $ac_includes_default
4885 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4892 rm -f conftest.
$ac_objext
4893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4894 (eval $ac_compile) 2>conftest.er1
4896 grep -v '^ *+' conftest.er1
>conftest.err
4898 cat conftest.err
>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } &&
4901 { ac_try
='test -z "$ac_c_werror_flag"
4902 || test ! -s conftest.err'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; } &&
4908 { ac_try
='test -s conftest.$ac_objext'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4916 cat >conftest.
$ac_ext <<_ACEOF
4919 cat confdefs.h
>>conftest.
$ac_ext
4920 cat >>conftest.
$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 $ac_includes_default
4926 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4933 rm -f conftest.
$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>conftest.er1
4937 grep -v '^ *+' conftest.er1
>conftest.err
4939 cat conftest.err
>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try
='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try
='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_lo
=$ac_mid; break
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.
$ac_ext >&5
4960 ac_hi
=`expr '(' $ac_mid ')' - 1`
4961 if test $ac_mid -le $ac_hi; then
4965 ac_mid
=`expr 2 '*' $ac_mid`
4967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.
$ac_ext >&5
4975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4978 # Binary search between lo and hi bounds.
4979 while test "x$ac_lo" != "x$ac_hi"; do
4980 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4981 cat >conftest.
$ac_ext <<_ACEOF
4984 cat confdefs.h
>>conftest.
$ac_ext
4985 cat >>conftest.
$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 $ac_includes_default
4991 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4998 rm -f conftest.
$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try
='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5025 ac_lo
=`expr '(' $ac_mid ')' + 1`
5027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5030 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5031 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5032 See \`config.log' for more details." >&5
5033 echo "$as_me: error: cannot compute sizeof (long), 77
5034 See \`config.log' for more details." >&2;}
5035 { (exit 1); exit 1; }; } ;;
5038 if test "$cross_compiling" = yes; then
5039 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5040 See \`config.log' for more details." >&5
5041 echo "$as_me: error: cannot run test program while cross compiling
5042 See \`config.log' for more details." >&2;}
5043 { (exit 1); exit 1; }; }
5045 cat >conftest.
$ac_ext <<_ACEOF
5048 cat confdefs.h
>>conftest.
$ac_ext
5049 cat >>conftest.
$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 $ac_includes_default
5052 long longval () { return (long) (sizeof (long)); }
5053 unsigned long ulongval () { return (long) (sizeof (long)); }
5060 FILE *f = fopen ("conftest.val", "w");
5063 if (((long) (sizeof (long))) < 0)
5065 long i = longval ();
5066 if (i != ((long) (sizeof (long))))
5068 fprintf (f, "%ld\n", i);
5072 unsigned long i = ulongval ();
5073 if (i != ((long) (sizeof (long))))
5075 fprintf (f, "%lu\n", i);
5077 exit (ferror (f) || fclose (f) != 0);
5083 rm -f conftest
$ac_exeext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5085 (eval $ac_link) 2>&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_cv_sizeof_long
=`cat conftest.val`
5096 echo "$as_me: program exited with status $ac_status" >&5
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.
$ac_ext >&5
5101 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5102 See \`config.log' for more details." >&5
5103 echo "$as_me: error: cannot compute sizeof (long), 77
5104 See \`config.log' for more details." >&2;}
5105 { (exit 1); exit 1; }; }
5107 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5115 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5116 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5117 cat >>confdefs.h
<<_ACEOF
5118 #define SIZEOF_LONG $ac_cv_sizeof_long
5122 echo "$as_me:$LINENO: checking for long long" >&5
5123 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5124 if test "${ac_cv_type_long_long+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 cat >conftest.
$ac_ext <<_ACEOF
5130 cat confdefs.h
>>conftest.
$ac_ext
5131 cat >>conftest.
$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 $ac_includes_default
5137 if ((long long *) 0)
5139 if (sizeof (long long))
5145 rm -f conftest.
$ac_objext
5146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147 (eval $ac_compile) 2>conftest.er1
5149 grep -v '^ *+' conftest.er1
>conftest.err
5151 cat conftest.err
>&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } &&
5154 { ac_try
='test -z "$ac_c_werror_flag"
5155 || test ! -s conftest.err'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; } &&
5161 { ac_try
='test -s conftest.$ac_objext'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5167 ac_cv_type_long_long
=yes
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.
$ac_ext >&5
5172 ac_cv_type_long_long
=no
5174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5176 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5177 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5178 if test $ac_cv_type_long_long = yes; then
5180 cat >>confdefs.h
<<_ACEOF
5181 #define HAVE_LONG_LONG 1
5184 echo "$as_me:$LINENO: checking for long long" >&5
5185 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5186 if test "${ac_cv_type_long_long+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 cat >conftest.
$ac_ext <<_ACEOF
5192 cat confdefs.h
>>conftest.
$ac_ext
5193 cat >>conftest.
$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 $ac_includes_default
5199 if ((long long *) 0)
5201 if (sizeof (long long))
5207 rm -f conftest.
$ac_objext
5208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5209 (eval $ac_compile) 2>conftest.er1
5211 grep -v '^ *+' conftest.er1
>conftest.err
5213 cat conftest.err
>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try
='test -z "$ac_c_werror_flag"
5217 || test ! -s conftest.err'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; } &&
5223 { ac_try
='test -s conftest.$ac_objext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_cv_type_long_long
=yes
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.
$ac_ext >&5
5234 ac_cv_type_long_long
=no
5236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5239 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5241 echo "$as_me:$LINENO: checking size of long long" >&5
5242 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5243 if test "${ac_cv_sizeof_long_long+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 if test "$ac_cv_type_long_long" = yes; then
5247 # The cast to unsigned long works around a bug in the HP C Compiler
5248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5250 # This bug is HP SR number 8606223364.
5251 if test "$cross_compiling" = yes; then
5252 # Depending upon the size, compute the lo and hi bounds.
5253 cat >conftest.
$ac_ext <<_ACEOF
5256 cat confdefs.h
>>conftest.
$ac_ext
5257 cat >>conftest.
$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 $ac_includes_default
5263 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5270 rm -f conftest.
$ac_objext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272 (eval $ac_compile) 2>conftest.er1
5274 grep -v '^ *+' conftest.er1
>conftest.err
5276 cat conftest.err
>&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try
='test -z "$ac_c_werror_flag"
5280 || test ! -s conftest.err'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; } &&
5286 { ac_try
='test -s conftest.$ac_objext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5294 cat >conftest.
$ac_ext <<_ACEOF
5297 cat confdefs.h
>>conftest.
$ac_ext
5298 cat >>conftest.
$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 $ac_includes_default
5304 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5311 rm -f conftest.
$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>conftest.er1
5315 grep -v '^ *+' conftest.er1
>conftest.err
5317 cat conftest.err
>&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } &&
5320 { ac_try
='test -z "$ac_c_werror_flag"
5321 || test ! -s conftest.err'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; } &&
5327 { ac_try
='test -s conftest.$ac_objext'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; }; then
5333 ac_hi
=$ac_mid; break
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.
$ac_ext >&5
5338 ac_lo
=`expr $ac_mid + 1`
5339 if test $ac_lo -le $ac_mid; then
5343 ac_mid
=`expr 2 '*' $ac_mid + 1`
5345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.
$ac_ext >&5
5351 cat >conftest.
$ac_ext <<_ACEOF
5354 cat confdefs.h
>>conftest.
$ac_ext
5355 cat >>conftest.
$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 $ac_includes_default
5361 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5368 rm -f conftest.
$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>conftest.er1
5372 grep -v '^ *+' conftest.er1
>conftest.err
5374 cat conftest.err
>&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try
='test -z "$ac_c_werror_flag"
5378 || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try
='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5392 cat >conftest.
$ac_ext <<_ACEOF
5395 cat confdefs.h
>>conftest.
$ac_ext
5396 cat >>conftest.
$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5402 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5409 rm -f conftest.
$ac_objext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411 (eval $ac_compile) 2>conftest.er1
5413 grep -v '^ *+' conftest.er1
>conftest.err
5415 cat conftest.err
>&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try
='test -z "$ac_c_werror_flag"
5419 || test ! -s conftest.err'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; } &&
5425 { ac_try
='test -s conftest.$ac_objext'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 ac_lo
=$ac_mid; break
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.
$ac_ext >&5
5436 ac_hi
=`expr '(' $ac_mid ')' - 1`
5437 if test $ac_mid -le $ac_hi; then
5441 ac_mid
=`expr 2 '*' $ac_mid`
5443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.
$ac_ext >&5
5451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5454 # Binary search between lo and hi bounds.
5455 while test "x$ac_lo" != "x$ac_hi"; do
5456 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5457 cat >conftest.
$ac_ext <<_ACEOF
5460 cat confdefs.h
>>conftest.
$ac_ext
5461 cat >>conftest.
$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 $ac_includes_default
5467 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5474 rm -f conftest.
$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>conftest.er1
5478 grep -v '^ *+' conftest.er1
>conftest.err
5480 cat conftest.err
>&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try
='test -z "$ac_c_werror_flag"
5484 || test ! -s conftest.err'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try
='test -s conftest.$ac_objext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.
$ac_ext >&5
5501 ac_lo
=`expr '(' $ac_mid ')' + 1`
5503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5506 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5507 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5508 See \`config.log' for more details." >&5
5509 echo "$as_me: error: cannot compute sizeof (long long), 77
5510 See \`config.log' for more details." >&2;}
5511 { (exit 1); exit 1; }; } ;;
5514 if test "$cross_compiling" = yes; then
5515 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5516 See \`config.log' for more details." >&5
5517 echo "$as_me: error: cannot run test program while cross compiling
5518 See \`config.log' for more details." >&2;}
5519 { (exit 1); exit 1; }; }
5521 cat >conftest.
$ac_ext <<_ACEOF
5524 cat confdefs.h
>>conftest.
$ac_ext
5525 cat >>conftest.
$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 $ac_includes_default
5528 long longval () { return (long) (sizeof (long long)); }
5529 unsigned long ulongval () { return (long) (sizeof (long long)); }
5536 FILE *f = fopen ("conftest.val", "w");
5539 if (((long) (sizeof (long long))) < 0)
5541 long i = longval ();
5542 if (i != ((long) (sizeof (long long))))
5544 fprintf (f, "%ld\n", i);
5548 unsigned long i = ulongval ();
5549 if (i != ((long) (sizeof (long long))))
5551 fprintf (f, "%lu\n", i);
5553 exit (ferror (f) || fclose (f) != 0);
5559 rm -f conftest
$ac_exeext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5570 ac_cv_sizeof_long_long
=`cat conftest.val`
5572 echo "$as_me: program exited with status $ac_status" >&5
5573 echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.
$ac_ext >&5
5577 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5578 See \`config.log' for more details." >&5
5579 echo "$as_me: error: cannot compute sizeof (long long), 77
5580 See \`config.log' for more details." >&2;}
5581 { (exit 1); exit 1; }; }
5583 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5588 ac_cv_sizeof_long_long
=0
5591 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5592 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5593 cat >>confdefs.h
<<_ACEOF
5594 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5600 echo "$as_me:$LINENO: checking for __int64" >&5
5601 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5602 if test "${ac_cv_type___int64+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 cat >conftest.
$ac_ext <<_ACEOF
5608 cat confdefs.h
>>conftest.
$ac_ext
5609 cat >>conftest.
$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 $ac_includes_default
5617 if (sizeof (__int64))
5623 rm -f conftest.
$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>conftest.er1
5627 grep -v '^ *+' conftest.er1
>conftest.err
5629 cat conftest.err
>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try
='test -z "$ac_c_werror_flag"
5633 || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try
='test -s conftest.$ac_objext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 ac_cv_type___int64
=yes
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.
$ac_ext >&5
5650 ac_cv_type___int64
=no
5652 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5654 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5655 echo "${ECHO_T}$ac_cv_type___int64" >&6
5656 if test $ac_cv_type___int64 = yes; then
5658 cat >>confdefs.h
<<_ACEOF
5659 #define HAVE___INT64 1
5662 echo "$as_me:$LINENO: checking for __int64" >&5
5663 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5664 if test "${ac_cv_type___int64+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 cat >conftest.
$ac_ext <<_ACEOF
5670 cat confdefs.h
>>conftest.
$ac_ext
5671 cat >>conftest.
$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 $ac_includes_default
5679 if (sizeof (__int64))
5685 rm -f conftest.
$ac_objext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>conftest.er1
5689 grep -v '^ *+' conftest.er1
>conftest.err
5691 cat conftest.err
>&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try
='test -z "$ac_c_werror_flag"
5695 || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try
='test -s conftest.$ac_objext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_type___int64
=yes
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.
$ac_ext >&5
5712 ac_cv_type___int64
=no
5714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5716 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5717 echo "${ECHO_T}$ac_cv_type___int64" >&6
5719 echo "$as_me:$LINENO: checking size of __int64" >&5
5720 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5721 if test "${ac_cv_sizeof___int64+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 if test "$ac_cv_type___int64" = yes; then
5725 # The cast to unsigned long works around a bug in the HP C Compiler
5726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5728 # This bug is HP SR number 8606223364.
5729 if test "$cross_compiling" = yes; then
5730 # Depending upon the size, compute the lo and hi bounds.
5731 cat >conftest.
$ac_ext <<_ACEOF
5734 cat confdefs.h
>>conftest.
$ac_ext
5735 cat >>conftest.
$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 $ac_includes_default
5741 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5748 rm -f conftest.
$ac_objext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750 (eval $ac_compile) 2>conftest.er1
5752 grep -v '^ *+' conftest.er1
>conftest.err
5754 cat conftest.err
>&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try
='test -z "$ac_c_werror_flag"
5758 || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try
='test -s conftest.$ac_objext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5772 cat >conftest.
$ac_ext <<_ACEOF
5775 cat confdefs.h
>>conftest.
$ac_ext
5776 cat >>conftest.
$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 $ac_includes_default
5782 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5789 rm -f conftest.
$ac_objext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5791 (eval $ac_compile) 2>conftest.er1
5793 grep -v '^ *+' conftest.er1
>conftest.err
5795 cat conftest.err
>&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try
='test -z "$ac_c_werror_flag"
5799 || test ! -s conftest.err'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; } &&
5805 { ac_try
='test -s conftest.$ac_objext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_hi
=$ac_mid; break
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.
$ac_ext >&5
5816 ac_lo
=`expr $ac_mid + 1`
5817 if test $ac_lo -le $ac_mid; then
5821 ac_mid
=`expr 2 '*' $ac_mid + 1`
5823 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.
$ac_ext >&5
5829 cat >conftest.
$ac_ext <<_ACEOF
5832 cat confdefs.h
>>conftest.
$ac_ext
5833 cat >>conftest.
$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 $ac_includes_default
5839 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5846 rm -f conftest.
$ac_objext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848 (eval $ac_compile) 2>conftest.er1
5850 grep -v '^ *+' conftest.er1
>conftest.err
5852 cat conftest.err
>&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try
='test -z "$ac_c_werror_flag"
5856 || test ! -s conftest.err'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try
='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5870 cat >conftest.
$ac_ext <<_ACEOF
5873 cat confdefs.h
>>conftest.
$ac_ext
5874 cat >>conftest.
$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 $ac_includes_default
5880 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5887 rm -f conftest.
$ac_objext
5888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889 (eval $ac_compile) 2>conftest.er1
5891 grep -v '^ *+' conftest.er1
>conftest.err
5893 cat conftest.err
>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try
='test -z "$ac_c_werror_flag"
5897 || test ! -s conftest.err'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; } &&
5903 { ac_try
='test -s conftest.$ac_objext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 ac_lo
=$ac_mid; break
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.
$ac_ext >&5
5914 ac_hi
=`expr '(' $ac_mid ')' - 1`
5915 if test $ac_mid -le $ac_hi; then
5919 ac_mid
=`expr 2 '*' $ac_mid`
5921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.
$ac_ext >&5
5929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5932 # Binary search between lo and hi bounds.
5933 while test "x$ac_lo" != "x$ac_hi"; do
5934 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5935 cat >conftest.
$ac_ext <<_ACEOF
5938 cat confdefs.h
>>conftest.
$ac_ext
5939 cat >>conftest.
$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 $ac_includes_default
5945 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5952 rm -f conftest.
$ac_objext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5954 (eval $ac_compile) 2>conftest.er1
5956 grep -v '^ *+' conftest.er1
>conftest.err
5958 cat conftest.err
>&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } &&
5961 { ac_try
='test -z "$ac_c_werror_flag"
5962 || test ! -s conftest.err'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try
='test -s conftest.$ac_objext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.
$ac_ext >&5
5979 ac_lo
=`expr '(' $ac_mid ')' + 1`
5981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5984 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5985 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5986 See \`config.log' for more details." >&5
5987 echo "$as_me: error: cannot compute sizeof (__int64), 77
5988 See \`config.log' for more details." >&2;}
5989 { (exit 1); exit 1; }; } ;;
5992 if test "$cross_compiling" = yes; then
5993 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5994 See \`config.log' for more details." >&5
5995 echo "$as_me: error: cannot run test program while cross compiling
5996 See \`config.log' for more details." >&2;}
5997 { (exit 1); exit 1; }; }
5999 cat >conftest.
$ac_ext <<_ACEOF
6002 cat confdefs.h
>>conftest.
$ac_ext
6003 cat >>conftest.
$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 $ac_includes_default
6006 long longval () { return (long) (sizeof (__int64)); }
6007 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6014 FILE *f = fopen ("conftest.val", "w");
6017 if (((long) (sizeof (__int64))) < 0)
6019 long i = longval ();
6020 if (i != ((long) (sizeof (__int64))))
6022 fprintf (f, "%ld\n", i);
6026 unsigned long i = ulongval ();
6027 if (i != ((long) (sizeof (__int64))))
6029 fprintf (f, "%lu\n", i);
6031 exit (ferror (f) || fclose (f) != 0);
6037 rm -f conftest
$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 ac_cv_sizeof___int64
=`cat conftest.val`
6050 echo "$as_me: program exited with status $ac_status" >&5
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.
$ac_ext >&5
6055 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6056 See \`config.log' for more details." >&5
6057 echo "$as_me: error: cannot compute sizeof (__int64), 77
6058 See \`config.log' for more details." >&2;}
6059 { (exit 1); exit 1; }; }
6061 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6066 ac_cv_sizeof___int64
=0
6069 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6070 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6071 cat >>confdefs.h
<<_ACEOF
6072 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6079 # ---------------------
6080 # Warnings and checking
6081 # ---------------------
6083 # Check $CC warning features (if it's GCC).
6084 # We want to use -pedantic, but we don't want warnings about
6087 # * overlong strings
6088 # So, we only use -pedantic if we can disable those warnings.
6090 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6091 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6092 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 save_CFLAGS
="$CFLAGS"
6096 CFLAGS
="-Wno-long-long"
6097 cat >conftest.
$ac_ext <<_ACEOF
6100 cat confdefs.h
>>conftest.
$ac_ext
6101 cat >>conftest.
$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6105 rm -f conftest.
$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
6109 grep -v '^ *+' conftest.er1
>conftest.err
6111 cat conftest.err
>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try
='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try
='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_prog_cc_w_no_long_long
=yes
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.
$ac_ext >&5
6132 ac_cv_prog_cc_w_no_long_long
=no
6134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6135 CFLAGS
="$save_CFLAGS"
6138 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6139 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6141 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6142 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6143 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 save_CFLAGS
="$CFLAGS"
6147 CFLAGS
="-Wno-variadic-macros"
6148 cat >conftest.
$ac_ext <<_ACEOF
6151 cat confdefs.h
>>conftest.
$ac_ext
6152 cat >>conftest.
$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6156 rm -f conftest.
$ac_objext
6157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6158 (eval $ac_compile) 2>conftest.er1
6160 grep -v '^ *+' conftest.er1
>conftest.err
6162 cat conftest.err
>&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try
='test -z "$ac_c_werror_flag"
6166 || test ! -s conftest.err'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; } &&
6172 { ac_try
='test -s conftest.$ac_objext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 ac_cv_prog_cc_w_no_variadic_macros
=yes
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.
$ac_ext >&5
6183 ac_cv_prog_cc_w_no_variadic_macros
=no
6185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6186 CFLAGS
="$save_CFLAGS"
6189 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6190 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6192 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6193 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6194 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 save_CFLAGS
="$CFLAGS"
6198 CFLAGS
="-Wno-overlength-strings"
6199 cat >conftest.
$ac_ext <<_ACEOF
6202 cat confdefs.h
>>conftest.
$ac_ext
6203 cat >>conftest.
$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6207 rm -f conftest.
$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>conftest.er1
6211 grep -v '^ *+' conftest.er1
>conftest.err
6213 cat conftest.err
>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try
='test -z "$ac_c_werror_flag"
6217 || test ! -s conftest.err'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try
='test -s conftest.$ac_objext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 ac_cv_prog_cc_w_no_overlength_strings
=yes
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.
$ac_ext >&5
6234 ac_cv_prog_cc_w_no_overlength_strings
=no
6236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6237 CFLAGS
="$save_CFLAGS"
6240 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6241 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6244 if test $ac_cv_prog_cc_w_no_long_long = yes \
6245 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6246 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6247 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6250 # Add -Wold-style-definition if it's accepted
6251 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6252 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6253 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 save_CFLAGS
="$CFLAGS"
6257 CFLAGS
="-Wold-style-definition"
6258 cat >conftest.
$ac_ext <<_ACEOF
6261 cat confdefs.h
>>conftest.
$ac_ext
6262 cat >>conftest.
$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6266 rm -f conftest.
$ac_objext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268 (eval $ac_compile) 2>conftest.er1
6270 grep -v '^ *+' conftest.er1
>conftest.err
6272 cat conftest.err
>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try
='test -z "$ac_c_werror_flag"
6276 || test ! -s conftest.err'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; } &&
6282 { ac_try
='test -s conftest.$ac_objext'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 ac_cv_prog_cc_w_old_style_definition
=yes
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.
$ac_ext >&5
6293 ac_cv_prog_cc_w_old_style_definition
=no
6295 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6296 CFLAGS
="$save_CFLAGS"
6299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6300 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6301 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6302 strict1_warn
="${strict1_warn} -Wold-style-definition"
6305 # Add -Wmissing-format-attribute if it's accepted
6306 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6307 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6308 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 save_CFLAGS
="$CFLAGS"
6312 CFLAGS
="-Wmissing-format-attribute"
6313 cat >conftest.
$ac_ext <<_ACEOF
6316 cat confdefs.h
>>conftest.
$ac_ext
6317 cat >>conftest.
$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6321 rm -f conftest.
$ac_objext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323 (eval $ac_compile) 2>conftest.er1
6325 grep -v '^ *+' conftest.er1
>conftest.err
6327 cat conftest.err
>&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try
='test -z "$ac_c_werror_flag"
6331 || test ! -s conftest.err'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; } &&
6337 { ac_try
='test -s conftest.$ac_objext'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
6343 ac_cv_prog_cc_w_missing_format_attribute
=yes
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.
$ac_ext >&5
6348 ac_cv_prog_cc_w_missing_format_attribute
=no
6350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6351 CFLAGS
="$save_CFLAGS"
6354 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6355 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6356 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6357 strict1_warn
="${strict1_warn} -Wmissing-format-attribute"
6360 # Enable -Werror, period.
6361 # Check whether --enable-werror_always or --disable-werror_always was given.
6362 if test "${enable_werror_always+set}" = set; then
6363 enableval
="$enable_werror_always"
6366 enable_werror_always
=no
6368 if test x
${enable_werror_always} = xyes
; then
6369 strict1_warn
="${strict1_warn} -Werror"
6375 # Get C++ compatibility warning flag, if supported.
6376 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6377 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6378 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 save_CFLAGS
="$CFLAGS"
6382 CFLAGS
="-Wc++-compat"
6383 cat >conftest.
$ac_ext <<_ACEOF
6386 cat confdefs.h
>>conftest.
$ac_ext
6387 cat >>conftest.
$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6391 rm -f conftest.
$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>conftest.er1
6395 grep -v '^ *+' conftest.er1
>conftest.err
6397 cat conftest.err
>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try
='test -z "$ac_c_werror_flag"
6401 || test ! -s conftest.err'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; } &&
6407 { ac_try
='test -s conftest.$ac_objext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 ac_cv_prog_cc_w_cxx_compat
=yes
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.
$ac_ext >&5
6418 ac_cv_prog_cc_w_cxx_compat
=no
6420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6421 CFLAGS
="$save_CFLAGS"
6424 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6425 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6426 if test x
${ac_cv_prog_cc_w_cxx_compat} = xyes
; then
6427 cxx_compat_warn
="-Wc++-compat"
6432 # If the native compiler is GCC, we can enable warnings even in stage1.
6433 # That's useful for people building cross-compilers, or just running a
6436 if test "x$GCC" = "xyes"; then
6437 warn_cflags
='$(GCC_WARN_CFLAGS)'
6441 # Enable -Werror in bootstrap stage2 and later.
6443 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6446 # Check whether --enable-werror or --disable-werror was given.
6447 if test "${enable_werror+set}" = set; then
6448 enableval
="$enable_werror"
6451 if test x
$is_release = x
; then
6452 # Default to "yes" on development branches.
6455 # Default to "no" on release branches.
6459 if test x
$enable_werror = xyes
; then
6464 # Enable expensive internal checks
6465 # Check whether --enable-checking or --disable-checking was given.
6466 if test "${enable_checking+set}" = set; then
6467 enableval
="$enable_checking"
6468 ac_checking_flags
="${enableval}"
6471 # Determine the default checks.
6472 if test x
$is_release = x
; then
6473 ac_checking_flags
=yes
6475 ac_checking_flags
=release
6478 ac_assert_checking
=1
6482 ac_gc_always_collect
=
6484 ac_rtlflag_checking
=
6485 ac_runtime_checking
=1
6487 ac_valgrind_checking
=
6488 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6489 for check
in $ac_checking_flags
6492 # these set all the flags to specific states
6493 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6494 ac_fold_checking
= ; ac_gc_checking
=1 ;
6495 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6496 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6497 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6498 no|none
) ac_assert_checking
= ; ac_checking
= ;
6499 ac_fold_checking
= ; ac_gc_checking
= ;
6500 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6501 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6502 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6503 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6504 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6505 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6506 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6507 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6508 release
) ac_assert_checking
=1 ; ac_checking
= ;
6509 ac_fold_checking
= ; ac_gc_checking
= ;
6510 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6511 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6512 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6513 # these enable particular checks
6514 assert
) ac_assert_checking
=1 ;;
6515 fold) ac_fold_checking
=1 ;;
6516 gc
) ac_gc_checking
=1 ;;
6517 gcac
) ac_gc_always_collect
=1 ;;
6518 misc
) ac_checking
=1 ;;
6519 rtl
) ac_rtl_checking
=1 ;;
6520 rtlflag
) ac_rtlflag_checking
=1 ;;
6521 runtime
) ac_runtime_checking
=1 ;;
6522 tree
) ac_tree_checking
=1 ;;
6523 valgrind
) ac_valgrind_checking
=1 ;;
6524 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6525 echo "$as_me: error: unknown check category $check" >&2;}
6526 { (exit 1); exit 1; }; } ;;
6532 if test x
$ac_checking != x
; then
6534 cat >>confdefs.h
<<\_ACEOF
6535 #define ENABLE_CHECKING 1
6538 nocommon_flag
=-fno-common
6541 if test x
$ac_assert_checking != x
; then
6543 cat >>confdefs.h
<<\_ACEOF
6544 #define ENABLE_ASSERT_CHECKING 1
6549 if test x
$ac_runtime_checking != x
; then
6551 cat >>confdefs.h
<<\_ACEOF
6552 #define ENABLE_RUNTIME_CHECKING 1
6556 if test x
$ac_tree_checking != x
; then
6558 cat >>confdefs.h
<<\_ACEOF
6559 #define ENABLE_TREE_CHECKING 1
6562 TREEBROWSER
=tree-browser.o
6565 if test x
$ac_rtl_checking != x
; then
6567 cat >>confdefs.h
<<\_ACEOF
6568 #define ENABLE_RTL_CHECKING 1
6572 if test x
$ac_rtlflag_checking != x
; then
6574 cat >>confdefs.h
<<\_ACEOF
6575 #define ENABLE_RTL_FLAG_CHECKING 1
6579 if test x
$ac_gc_checking != x
; then
6581 cat >>confdefs.h
<<\_ACEOF
6582 #define ENABLE_GC_CHECKING 1
6586 if test x
$ac_gc_always_collect != x
; then
6588 cat >>confdefs.h
<<\_ACEOF
6589 #define ENABLE_GC_ALWAYS_COLLECT 1
6593 if test x
$ac_fold_checking != x
; then
6595 cat >>confdefs.h
<<\_ACEOF
6596 #define ENABLE_FOLD_CHECKING 1
6600 valgrind_path_defines
=
6603 if test "${ac_cv_header_valgrind_h+set}" = set; then
6604 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6605 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6606 if test "${ac_cv_header_valgrind_h+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6610 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6612 # Is the header compilable?
6613 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6614 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6615 cat >conftest.
$ac_ext <<_ACEOF
6618 cat confdefs.h
>>conftest.
$ac_ext
6619 cat >>conftest.
$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 $ac_includes_default
6622 #include <valgrind.h>
6624 rm -f conftest.
$ac_objext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626 (eval $ac_compile) 2>conftest.er1
6628 grep -v '^ *+' conftest.er1
>conftest.err
6630 cat conftest.err
>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try
='test -z "$ac_c_werror_flag"
6634 || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try
='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_header_compiler
=yes
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.
$ac_ext >&5
6651 ac_header_compiler
=no
6653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6655 echo "${ECHO_T}$ac_header_compiler" >&6
6657 # Is the header present?
6658 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6659 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6660 cat >conftest.
$ac_ext <<_ACEOF
6663 cat confdefs.h
>>conftest.
$ac_ext
6664 cat >>conftest.
$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6666 #include <valgrind.h>
6668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6669 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6671 grep -v '^ *+' conftest.er1
>conftest.err
6673 cat conftest.err
>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } >/dev
/null
; then
6676 if test -s conftest.err
; then
6677 ac_cpp_err
=$ac_c_preproc_warn_flag
6678 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6685 if test -z "$ac_cpp_err"; then
6686 ac_header_preproc
=yes
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.
$ac_ext >&5
6691 ac_header_preproc
=no
6693 rm -f conftest.err conftest.
$ac_ext
6694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6695 echo "${ECHO_T}$ac_header_preproc" >&6
6697 # So? What about this header?
6698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6700 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6701 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6703 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6704 ac_header_preproc
=yes
6707 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6708 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6710 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6711 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6712 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6713 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6714 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6715 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6716 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6717 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6718 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6721 ## ------------------------------------------ ##
6722 ## Report this to the AC_PACKAGE_NAME lists. ##
6723 ## ------------------------------------------ ##
6726 sed "s/^/$as_me: WARNING: /" >&2
6729 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6730 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6731 if test "${ac_cv_header_valgrind_h+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 ac_cv_header_valgrind_h
=$ac_header_preproc
6736 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6737 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6740 if test $ac_cv_header_valgrind_h = yes; then
6748 if test x
$ac_valgrind_checking != x
; then
6749 # It is certainly possible that there's valgrind but no valgrind.h.
6750 # GCC relies on making annotations so we must have both.
6751 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6752 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6753 cat >conftest.
$ac_ext <<_ACEOF
6756 cat confdefs.h
>>conftest.
$ac_ext
6757 cat >>conftest.
$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <valgrind/memcheck.h>
6760 #ifndef VALGRIND_DISCARD
6761 #error VALGRIND_DISCARD not defined
6764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6765 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6767 grep -v '^ *+' conftest.er1
>conftest.err
6769 cat conftest.err
>&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } >/dev
/null
; then
6772 if test -s conftest.err
; then
6773 ac_cpp_err
=$ac_c_preproc_warn_flag
6774 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6781 if test -z "$ac_cpp_err"; then
6782 gcc_cv_header_valgrind_memcheck_h
=yes
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.
$ac_ext >&5
6787 gcc_cv_header_valgrind_memcheck_h
=no
6789 rm -f conftest.err conftest.
$ac_ext
6790 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6791 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6792 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6793 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6794 cat >conftest.
$ac_ext <<_ACEOF
6797 cat confdefs.h
>>conftest.
$ac_ext
6798 cat >>conftest.
$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 #include <memcheck.h>
6801 #ifndef VALGRIND_DISCARD
6802 #error VALGRIND_DISCARD not defined
6805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6806 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6808 grep -v '^ *+' conftest.er1
>conftest.err
6810 cat conftest.err
>&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } >/dev
/null
; then
6813 if test -s conftest.err
; then
6814 ac_cpp_err
=$ac_c_preproc_warn_flag
6815 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6822 if test -z "$ac_cpp_err"; then
6823 gcc_cv_header_memcheck_h
=yes
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.
$ac_ext >&5
6828 gcc_cv_header_memcheck_h
=no
6830 rm -f conftest.err conftest.
$ac_ext
6831 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6832 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6834 # Prepare PATH_SEPARATOR.
6835 # The user is always right.
6836 if test "${PATH_SEPARATOR+set}" != set; then
6837 echo "#! /bin/sh" >conf$$.sh
6838 echo "exit 0" >>conf$$.sh
6840 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6848 # Find out how to test for executable files. Don't use a zero-byte file,
6849 # as systems may use methods other than mode bits to determine executability.
6850 cat >conf$$.
file <<_ASEOF
6854 chmod +x conf$$.
file
6855 if test -x conf$$.
file >/dev
/null
2>&1; then
6856 ac_executable_p
="test -x"
6858 ac_executable_p
="test -f"
6862 # Extract the first word of "valgrind", so it can be a program name with args.
6863 set dummy valgrind
; ac_word
=$2
6864 echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6866 if test "${ac_cv_path_valgrind_path+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 case "$valgrind_path" in
6871 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6874 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6875 for ac_dir
in $PATH; do
6877 test -z "$ac_dir" && ac_dir
=.
6878 for ac_exec_ext
in '' $ac_executable_extensions; do
6879 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6880 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6881 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6891 valgrind_path
="$ac_cv_path_valgrind_path"
6892 if test -n "$valgrind_path"; then
6893 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6894 echo "${ECHO_T}$valgrind_path" >&6
6896 echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6
6900 if test "x$valgrind_path" = "x" \
6901 ||
(test $have_valgrind_h = no \
6902 && test $gcc_cv_header_memcheck_h = no \
6903 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6904 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6905 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6906 { (exit 1); exit 1; }; }
6908 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6909 valgrind_command
="$valgrind_path -q"
6911 cat >>confdefs.h
<<\_ACEOF
6912 #define ENABLE_VALGRIND_CHECKING 1
6915 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6917 cat >>confdefs.h
<<\_ACEOF
6918 #define HAVE_VALGRIND_MEMCHECK_H 1
6922 if test $gcc_cv_header_memcheck_h = yes; then
6924 cat >>confdefs.h
<<\_ACEOF
6925 #define HAVE_MEMCHECK_H 1
6933 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6934 if test "${enable_mapped_location+set}" = set; then
6935 enableval
="$enable_mapped_location"
6938 enable_mapped_location
=no
6941 if test "$enable_mapped_location" = yes ; then
6943 cat >>confdefs.h
<<\_ACEOF
6944 #define USE_MAPPED_LOCATION 1
6949 # Enable code coverage collection
6950 # Check whether --enable-coverage or --disable-coverage was given.
6951 if test "${enable_coverage+set}" = set; then
6952 enableval
="$enable_coverage"
6953 case "${enableval}" in
6955 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6958 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6961 # a.k.a. --disable-coverage
6965 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6966 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6967 { (exit 1); exit 1; }; }
6975 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6976 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6977 enableval
="$enable_gather_detailed_mem_stats"
6980 enable_gather_detailed_mem_stats
=no
6982 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6984 cat >>confdefs.h
<<\_ACEOF
6985 #define GATHER_STATISTICS 1
6990 # -------------------------------
6991 # Miscenalleous configure options
6992 # -------------------------------
6996 # Check whether --with-stabs or --without-stabs was given.
6997 if test "${with_stabs+set}" = set; then
6998 withval
="$with_stabs"
7004 # Determine whether or not multilibs are enabled.
7005 # Check whether --enable-multilib or --disable-multilib was given.
7006 if test "${enable_multilib+set}" = set; then
7007 enableval
="$enable_multilib"
7014 # Enable __cxa_atexit for C++.
7015 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7016 if test "${enable___cxa_atexit+set}" = set; then
7017 enableval
="$enable___cxa_atexit"
7021 # Enable C extension for decimal float if target supports it.
7022 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7023 if test "${enable_decimal_float+set}" = set; then
7024 enableval
="$enable_decimal_float"
7026 if test x
$enablevar = xyes
; then
7028 powerpc
*-*-linux* | i?
86*-*-linux*)
7029 enable_decimal_float
=yes
7032 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7033 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7034 enable_decimal_float
=no
7040 enable_decimal_float
=no
7045 dfp
=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7047 cat >>confdefs.h
<<_ACEOF
7048 #define ENABLE_DECIMAL_FLOAT $dfp
7053 # Pass with no value to take the default
7054 # Pass with a value to specify a thread package
7055 # Check whether --enable-threads or --disable-threads was given.
7056 if test "${enable_threads+set}" = set; then
7057 enableval
="$enable_threads"
7063 # Check whether --enable-tls or --disable-tls was given.
7064 if test "${enable_tls+set}" = set; then
7065 enableval
="$enable_tls"
7069 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7070 Valid choices are 'yes' and 'no'." >&5
7071 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7072 Valid choices are 'yes' and 'no'." >&2;}
7073 { (exit 1); exit 1; }; } ;;
7080 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7081 if test "${enable_objc_gc+set}" = set; then
7082 enableval
="$enable_objc_gc"
7083 if test x
$enable_objc_gc = xno
; then
7093 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7094 if test "${with_dwarf2+set}" = set; then
7095 withval
="$with_dwarf2"
7096 dwarf2
="$with_dwarf2"
7101 # Check whether --enable-shared or --disable-shared was given.
7102 if test "${enable_shared+set}" = set; then
7103 enableval
="$enable_shared"
7105 case $enable_shared in
7109 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7110 for pkg
in $enableval; do
7111 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7125 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7126 if test "${with_build_sysroot+set}" = set; then
7127 withval
="$with_build_sysroot"
7132 # Check whether --with-sysroot or --without-sysroot was given.
7133 if test "${with_sysroot+set}" = set; then
7134 withval
="$with_sysroot"
7136 case ${with_sysroot} in
7137 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7138 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7141 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7142 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7144 if test "x$exec_prefix" = xNONE
; then
7145 if test "x$prefix" = xNONE
; then
7146 test_prefix
=/usr
/local
7151 test_prefix
=$exec_prefix
7153 case ${TARGET_SYSTEM_ROOT} in
7154 "${test_prefix}"|
"${test_prefix}/"*|\
7155 '${exec_prefix}'|
'${exec_prefix}/'*)
7156 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7157 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7164 TARGET_SYSTEM_ROOT_DEFINE
=
7165 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7172 # Build with intermodule optimisations
7173 # Check whether --enable-intermodule or --disable-intermodule was given.
7174 if test "${enable_intermodule+set}" = set; then
7175 enableval
="$enable_intermodule"
7176 case ${enable_intermodule} in
7177 yes) onestep
="-onestep";;
7185 # Sanity check enable_languages in case someone does not run the toplevel
7186 # configure # script.
7187 # Check whether --enable-languages or --disable-languages was given.
7188 if test "${enable_languages+set}" = set; then
7189 enableval
="$enable_languages"
7190 case ,${enable_languages}, in
7192 # go safe -- we cannot be much sure without the toplevel
7194 # analysis of which target libs are present and usable
7198 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7199 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7200 { (exit 1); exit 1; }; }
7205 enable_languages
=c
,${enable_languages}
7212 # Used by documentation targets
7217 # -------------------------
7218 # Checks for other programs
7219 # -------------------------
7221 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7222 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7223 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7224 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 cat >conftest.
make <<\_ACEOF
7229 @
echo 'ac_maketemp="$(MAKE)"'
7231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7232 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7233 if test -n "$ac_maketemp"; then
7234 eval ac_cv_prog_make_
${ac_make}_set
=yes
7236 eval ac_cv_prog_make_
${ac_make}_set
=no
7240 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7241 echo "$as_me:$LINENO: result: yes" >&5
7242 echo "${ECHO_T}yes" >&6
7245 echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6
7247 SET_MAKE
="MAKE=${MAKE-make}"
7251 # Find some useful tools
7252 for ac_prog
in gawk mawk nawk
awk
7254 # Extract the first word of "$ac_prog", so it can be a program name with args.
7255 set dummy
$ac_prog; ac_word
=$2
7256 echo "$as_me:$LINENO: checking for $ac_word" >&5
7257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7258 if test "${ac_cv_prog_AWK+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 if test -n "$AWK"; then
7262 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir
=.
7269 for ac_exec_ext
in '' $ac_executable_extensions; do
7270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271 ac_cv_prog_AWK
="$ac_prog"
7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 if test -n "$AWK"; then
7282 echo "$as_me:$LINENO: result: $AWK" >&5
7283 echo "${ECHO_T}$AWK" >&6
7285 echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6
7289 test -n "$AWK" && break
7292 # We need awk to create options.c and options.h.
7293 # Bail out if it's missing.
7295 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7296 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7297 { (exit 1); exit 1; }; } ;;
7300 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7301 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7302 if test "${gcc_cv_prog_LN_S+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 rm -f conftestdata_t
7306 echo >conftestdata_f
7307 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7309 gcc_cv_prog_LN_S
="ln -s"
7311 if ln conftestdata_f conftestdata_t
2>/dev
/null
7315 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7317 gcc_cv_prog_LN_S
="cp -p"
7323 rm -f conftestdata_f conftestdata_t
7326 LN_S
="$gcc_cv_prog_LN_S"
7327 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7328 echo "$as_me:$LINENO: result: yes" >&5
7329 echo "${ECHO_T}yes" >&6
7331 if test "$gcc_cv_prog_LN_S" = "ln"; then
7332 echo "$as_me:$LINENO: result: no, using ln" >&5
7333 echo "${ECHO_T}no, using ln" >&6
7335 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7336 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7340 echo "$as_me:$LINENO: checking whether ln works" >&5
7341 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7342 if test "${acx_cv_prog_LN+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 rm -f conftestdata_t
7346 echo >conftestdata_f
7347 if ln conftestdata_f conftestdata_t
2>/dev
/null
7353 rm -f conftestdata_f conftestdata_t
7356 if test $acx_cv_prog_LN = no
; then
7358 echo "$as_me:$LINENO: result: no, using $LN" >&5
7359 echo "${ECHO_T}no, using $LN" >&6
7361 LN
="$acx_cv_prog_LN"
7362 echo "$as_me:$LINENO: result: yes" >&5
7363 echo "${ECHO_T}yes" >&6
7366 if test -n "$ac_tool_prefix"; then
7367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7368 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7369 echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7371 if test "${ac_cv_prog_RANLIB+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 if test -n "$RANLIB"; then
7375 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir
=.
7382 for ac_exec_ext
in '' $ac_executable_extensions; do
7383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 RANLIB
=$ac_cv_prog_RANLIB
7394 if test -n "$RANLIB"; then
7395 echo "$as_me:$LINENO: result: $RANLIB" >&5
7396 echo "${ECHO_T}$RANLIB" >&6
7398 echo "$as_me:$LINENO: result: no" >&5
7399 echo "${ECHO_T}no" >&6
7403 if test -z "$ac_cv_prog_RANLIB"; then
7404 ac_ct_RANLIB
=$RANLIB
7405 # Extract the first word of "ranlib", so it can be a program name with args.
7406 set dummy ranlib
; ac_word
=$2
7407 echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7409 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 if test -n "$ac_ct_RANLIB"; then
7413 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7419 test -z "$as_dir" && as_dir
=.
7420 for ac_exec_ext
in '' $ac_executable_extensions; do
7421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7432 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7433 if test -n "$ac_ct_RANLIB"; then
7434 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7435 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7437 echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7441 RANLIB
=$ac_ct_RANLIB
7443 RANLIB
="$ac_cv_prog_RANLIB"
7448 # By default, the Darwin ranlib will not treat common symbols as
7449 # definitions when building the archive table of contents. Other
7450 # ranlibs do that; pass an option to the Darwin ranlib that makes
7451 # it behave similarly.
7459 # Find a good install program. We prefer a C program (faster),
7460 # so one script is as good as another. But avoid the broken or
7461 # incompatible versions:
7462 # SysV /etc/install, /usr/sbin/install
7463 # SunOS /usr/etc/install
7464 # IRIX /sbin/install
7466 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7467 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7468 # ./install, which can be erroneously created by make from ./install.sh.
7469 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7470 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7471 if test -z "$INSTALL"; then
7472 if test "${ac_cv_path_install+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7476 for ac_dir
in $PATH; do
7477 # Account for people who put trailing slashes in PATH elements.
7479 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7481 # OSF1 and SCO ODT 3.0 have their own names for install.
7482 for ac_prog
in ginstall scoinst
install; do
7483 if test -f $ac_dir/$ac_prog; then
7484 if test $ac_prog = install &&
7485 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7486 # AIX install. It has an incompatible calling convention.
7487 # OSF/1 installbsd also uses dspmsg, but is usable.
7490 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7501 if test "${ac_cv_path_install+set}" = set; then
7502 INSTALL
="$ac_cv_path_install"
7504 # As a last resort, use the slow shell script. We don't cache a
7505 # path for INSTALL within a source directory, because that will
7506 # break other packages using the cache if that directory is
7507 # removed, or if the path is relative.
7508 INSTALL
="$ac_install_sh"
7511 echo "$as_me:$LINENO: result: $INSTALL" >&5
7512 echo "${ECHO_T}$INSTALL" >&6
7514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7515 # It thinks the first close brace ends the variable substitution.
7516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7518 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7521 # See if cmp has --ignore-initial.
7522 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7523 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7524 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 gcc_cv_prog_cmp_skip
=slowcompare
7530 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7531 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7534 gcc_cv_prog_cmp_skip
=gnucompare
7537 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7538 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7539 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7542 gcc_cv_prog_cmp_skip
=fastcompare
7549 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7550 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7551 make_compare_target
=$gcc_cv_prog_cmp_skip
7555 # See if we have the mktemp command.
7556 # Extract the first word of "mktemp", so it can be a program name with args.
7557 set dummy mktemp
; ac_word
=$2
7558 echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7560 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 if test -n "$have_mktemp_command"; then
7564 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir
=.
7571 for ac_exec_ext
in '' $ac_executable_extensions; do
7572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_have_mktemp_command
="yes"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7583 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7584 if test -n "$have_mktemp_command"; then
7585 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7586 echo "${ECHO_T}$have_mktemp_command" >&6
7588 echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7593 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7595 # See if makeinfo has been installed and is modern enough
7596 # that we can use it.
7598 ac_executable_extensions
="$build_exeext"
7600 # Extract the first word of "makeinfo", so it can be a program name with args.
7601 set dummy makeinfo
; ac_word
=$2
7602 echo "$as_me:$LINENO: checking for $ac_word" >&5
7603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7604 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 if test -n "$MAKEINFO"; then
7608 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir
=.
7615 for ac_exec_ext
in '' $ac_executable_extensions; do
7616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_prog_MAKEINFO
="makeinfo"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 MAKEINFO
=$ac_cv_prog_MAKEINFO
7627 if test -n "$MAKEINFO"; then
7628 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7629 echo "${ECHO_T}$MAKEINFO" >&6
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7635 if test -n "$MAKEINFO"; then
7636 # Found it, now check the version.
7637 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7638 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7639 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7643 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7644 echo "configure:7644: version of makeinfo is $ac_prog_version" >&5
7645 case $ac_prog_version in
7646 '') gcc_cv_prog_makeinfo_modern
=no
;;
7648 gcc_cv_prog_makeinfo_modern
=yes;;
7649 *) gcc_cv_prog_makeinfo_modern
=no
;;
7653 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7654 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7656 gcc_cv_prog_makeinfo_modern
=no
7659 if test $gcc_cv_prog_makeinfo_modern = no
; then
7660 MAKEINFO
="$MISSING makeinfo"
7661 { echo "$as_me:$LINENO: WARNING:
7662 *** Makeinfo is missing or too old.
7663 *** Info documentation will not be built." >&5
7664 echo "$as_me: WARNING:
7665 *** Makeinfo is missing or too old.
7666 *** Info documentation will not be built." >&2;}
7673 # Is pod2man recent enough to regenerate manpages?
7674 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7675 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7676 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7677 echo "$as_me:$LINENO: result: yes" >&5
7678 echo "${ECHO_T}yes" >&6
7679 GENERATED_MANPAGES
=generated-manpages
7681 echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6
7690 # Extract the first word of "$ac_prog", so it can be a program name with args.
7691 set dummy
$ac_prog; ac_word
=$2
7692 echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7694 if test "${ac_cv_prog_FLEX+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 if test -n "$FLEX"; then
7698 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7704 test -z "$as_dir" && as_dir
=.
7705 for ac_exec_ext
in '' $ac_executable_extensions; do
7706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_FLEX
="$ac_prog"
7708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 FLEX
=$ac_cv_prog_FLEX
7717 if test -n "$FLEX"; then
7718 echo "$as_me:$LINENO: result: $FLEX" >&5
7719 echo "${ECHO_T}$FLEX" >&6
7721 echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6
7725 test -n "$FLEX" && break
7727 test -n "$FLEX" || FLEX
="$MISSING flex"
7731 for ac_prog
in bison
7733 # Extract the first word of "$ac_prog", so it can be a program name with args.
7734 set dummy
$ac_prog; ac_word
=$2
7735 echo "$as_me:$LINENO: checking for $ac_word" >&5
7736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7737 if test "${ac_cv_prog_BISON+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 if test -n "$BISON"; then
7741 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7747 test -z "$as_dir" && as_dir
=.
7748 for ac_exec_ext
in '' $ac_executable_extensions; do
7749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750 ac_cv_prog_BISON
="$ac_prog"
7751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 BISON
=$ac_cv_prog_BISON
7760 if test -n "$BISON"; then
7761 echo "$as_me:$LINENO: result: $BISON" >&5
7762 echo "${ECHO_T}$BISON" >&6
7764 echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6
7768 test -n "$BISON" && break
7770 test -n "$BISON" || BISON
="$MISSING bison"
7773 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7774 # check for build == host before using them.
7777 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7778 && test -d ..
/binutils
; then
7779 NM
='$(objdir)/../binutils/nm-new'
7781 # Extract the first word of "nm", so it can be a program name with args.
7782 set dummy nm
; ac_word
=$2
7783 echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7785 if test "${ac_cv_prog_NM+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 if test -n "$NM"; then
7789 ac_cv_prog_NM
="$NM" # Let the user override the test.
7791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7795 test -z "$as_dir" && as_dir
=.
7796 for ac_exec_ext
in '' $ac_executable_extensions; do
7797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7809 if test -n "$NM"; then
7810 echo "$as_me:$LINENO: result: $NM" >&5
7811 echo "${ECHO_T}$NM" >&6
7813 echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6
7820 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7821 && test -d ..
/binutils
; then
7822 AR
='$(objdir)/../binutils/ar'
7824 # Extract the first word of "ar", so it can be a program name with args.
7825 set dummy
ar; ac_word
=$2
7826 echo "$as_me:$LINENO: checking for $ac_word" >&5
7827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7828 if test "${ac_cv_prog_AR+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 if test -n "$AR"; then
7832 ac_cv_prog_AR
="$AR" # Let the user override the test.
7834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir
=.
7839 for ac_exec_ext
in '' $ac_executable_extensions; do
7840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7852 if test -n "$AR"; then
7853 echo "$as_me:$LINENO: result: $AR" >&5
7854 echo "${ECHO_T}$AR" >&6
7856 echo "$as_me:$LINENO: result: no" >&5
7857 echo "${ECHO_T}no" >&6
7863 # --------------------
7864 # Checks for C headers
7865 # --------------------
7867 echo "$as_me:$LINENO: checking for GNU C library" >&5
7868 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7869 if test "${gcc_cv_glibc+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 cat >conftest.
$ac_ext <<_ACEOF
7875 cat confdefs.h
>>conftest.
$ac_ext
7876 cat >>conftest.
$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 #include <features.h>
7883 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7884 #error Not a GNU C library system
7890 rm -f conftest.
$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>conftest.er1
7894 grep -v '^ *+' conftest.er1
>conftest.err
7896 cat conftest.err
>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try
='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try
='test -s conftest.$ac_objext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.
$ac_ext >&5
7919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7922 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7923 echo "${ECHO_T}$gcc_cv_glibc" >&6
7924 if test $gcc_cv_glibc = yes; then
7926 cat >>confdefs.h
<<\_ACEOF
7927 #define _GNU_SOURCE 1
7932 # Need to reject headers which give warnings, so that the -Werror bootstrap
7933 # works later. *sigh* This needs to come before all header checks.
7935 ac_c_preproc_warn_flag
=yes
7937 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7938 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7939 if test "${ac_cv_header_stdc+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. */
7961 rm -f conftest.
$ac_objext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7963 (eval $ac_compile) 2>conftest.er1
7965 grep -v '^ *+' conftest.er1
>conftest.err
7967 cat conftest.err
>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try
='test -z "$ac_c_werror_flag"
7971 || test ! -s conftest.err'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; } &&
7977 { ac_try
='test -s conftest.$ac_objext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_cv_header_stdc
=yes
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.
$ac_ext >&5
7988 ac_cv_header_stdc
=no
7990 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7992 if test $ac_cv_header_stdc = yes; then
7993 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7994 cat >conftest.
$ac_ext <<_ACEOF
7997 cat confdefs.h
>>conftest.
$ac_ext
7998 cat >>conftest.
$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8004 $EGREP "memchr" >/dev
/null
2>&1; then
8007 ac_cv_header_stdc
=no
8013 if test $ac_cv_header_stdc = yes; then
8014 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8015 cat >conftest.
$ac_ext <<_ACEOF
8018 cat confdefs.h
>>conftest.
$ac_ext
8019 cat >>conftest.
$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8025 $EGREP "free" >/dev
/null
2>&1; then
8028 ac_cv_header_stdc
=no
8034 if test $ac_cv_header_stdc = yes; then
8035 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8036 if test "$cross_compiling" = yes; then
8039 cat >conftest.
$ac_ext <<_ACEOF
8042 cat confdefs.h
>>conftest.
$ac_ext
8043 cat >>conftest.
$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8046 #if ((' ' & 0x0FF) == 0x020)
8047 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8048 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8050 # define ISLOWER(c) \
8051 (('a' <= (c) && (c) <= 'i') \
8052 || ('j' <= (c) && (c) <= 'r') \
8053 || ('s' <= (c) && (c) <= 'z'))
8054 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8057 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8062 for (i = 0; i < 256; i++)
8063 if (XOR (islower (i), ISLOWER (i))
8064 || toupper (i) != TOUPPER (i))
8069 rm -f conftest
$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; }; then
8082 echo "$as_me: program exited with status $ac_status" >&5
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.
$ac_ext >&5
8087 ac_cv_header_stdc
=no
8089 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8094 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8095 if test $ac_cv_header_stdc = yes; then
8097 cat >>confdefs.h
<<\_ACEOF
8098 #define STDC_HEADERS 1
8103 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8104 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8105 if test "${ac_cv_header_time+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 cat >conftest.
$ac_ext <<_ACEOF
8111 cat confdefs.h
>>conftest.
$ac_ext
8112 cat >>conftest.
$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8114 #include <sys/types.h>
8115 #include <sys/time.h>
8121 if ((struct tm *) 0)
8127 rm -f conftest.
$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>conftest.er1
8131 grep -v '^ *+' conftest.er1
>conftest.err
8133 cat conftest.err
>&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try
='test -z "$ac_c_werror_flag"
8137 || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try
='test -s conftest.$ac_objext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_cv_header_time
=yes
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.
$ac_ext >&5
8154 ac_cv_header_time
=no
8156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8158 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8159 echo "${ECHO_T}$ac_cv_header_time" >&6
8160 if test $ac_cv_header_time = yes; then
8162 cat >>confdefs.h
<<\_ACEOF
8163 #define TIME_WITH_SYS_TIME 1
8168 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8169 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8170 if test "${gcc_cv_header_string+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 cat >conftest.
$ac_ext <<_ACEOF
8176 cat confdefs.h
>>conftest.
$ac_ext
8177 cat >>conftest.
$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8180 #include <strings.h>
8189 rm -f conftest.
$ac_objext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8191 (eval $ac_compile) 2>conftest.er1
8193 grep -v '^ *+' conftest.er1
>conftest.err
8195 cat conftest.err
>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try
='test -z "$ac_c_werror_flag"
8199 || test ! -s conftest.err'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try
='test -s conftest.$ac_objext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 gcc_cv_header_string
=yes
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.
$ac_ext >&5
8216 gcc_cv_header_string
=no
8218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8220 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8221 echo "${ECHO_T}$gcc_cv_header_string" >&6
8222 if test $gcc_cv_header_string = yes; then
8224 cat >>confdefs.h
<<\_ACEOF
8225 #define STRING_WITH_STRINGS 1
8230 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8231 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8232 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 cat >conftest.
$ac_ext <<_ACEOF
8238 cat confdefs.h
>>conftest.
$ac_ext
8239 cat >>conftest.
$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 #include <sys/types.h>
8242 #include <sys/wait.h>
8244 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8247 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8255 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8260 rm -f conftest.
$ac_objext
8261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>conftest.er1
8264 grep -v '^ *+' conftest.er1
>conftest.err
8266 cat conftest.err
>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try
='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try
='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 ac_cv_header_sys_wait_h
=yes
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.
$ac_ext >&5
8287 ac_cv_header_sys_wait_h
=no
8289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8291 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8292 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8293 if test $ac_cv_header_sys_wait_h = yes; then
8295 cat >>confdefs.h
<<\_ACEOF
8296 #define HAVE_SYS_WAIT_H 1
8323 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8324 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8325 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8326 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8328 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8329 echo "$as_me:$LINENO: checking for $ac_header" >&5
8330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 cat >conftest.
$ac_ext <<_ACEOF
8337 cat confdefs.h
>>conftest.
$ac_ext
8338 cat >>conftest.
$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8340 #include <$ac_header>
8342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8343 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8345 grep -v '^ *+' conftest.er1
>conftest.err
8347 cat conftest.err
>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } >/dev
/null
; then
8350 if test -s conftest.err
; then
8351 ac_cpp_err
=$ac_c_preproc_warn_flag
8352 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8359 if test -z "$ac_cpp_err"; then
8360 eval "$as_ac_Header=yes"
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.
$ac_ext >&5
8365 eval "$as_ac_Header=no"
8367 rm -f conftest.err conftest.
$ac_ext
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8372 cat >>confdefs.h
<<_ACEOF
8373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8380 # Check for thread headers.
8381 echo "$as_me:$LINENO: checking for thread.h" >&5
8382 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8383 if test "${ac_cv_header_thread_h+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 cat >conftest.
$ac_ext <<_ACEOF
8389 cat confdefs.h
>>conftest.
$ac_ext
8390 cat >>conftest.
$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8395 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8397 grep -v '^ *+' conftest.er1
>conftest.err
8399 cat conftest.err
>&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } >/dev
/null
; then
8402 if test -s conftest.err
; then
8403 ac_cpp_err
=$ac_c_preproc_warn_flag
8404 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8411 if test -z "$ac_cpp_err"; then
8412 ac_cv_header_thread_h
=yes
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.
$ac_ext >&5
8417 ac_cv_header_thread_h
=no
8419 rm -f conftest.err conftest.
$ac_ext
8421 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8422 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8423 if test $ac_cv_header_thread_h = yes; then
8429 echo "$as_me:$LINENO: checking for pthread.h" >&5
8430 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8431 if test "${ac_cv_header_pthread_h+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.
$ac_ext <<_ACEOF
8437 cat confdefs.h
>>conftest.
$ac_ext
8438 cat >>conftest.
$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 #include <pthread.h>
8442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8443 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8445 grep -v '^ *+' conftest.er1
>conftest.err
8447 cat conftest.err
>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } >/dev
/null
; then
8450 if test -s conftest.err
; then
8451 ac_cpp_err
=$ac_c_preproc_warn_flag
8452 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8459 if test -z "$ac_cpp_err"; then
8460 ac_cv_header_pthread_h
=yes
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.
$ac_ext >&5
8465 ac_cv_header_pthread_h
=no
8467 rm -f conftest.err conftest.
$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8470 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8471 if test $ac_cv_header_pthread_h = yes; then
8478 # These tests can't be done till we know if we have limits.h.
8479 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8480 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8481 if test "${gcc_cv_decl_char_bit+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 cat >conftest.
$ac_ext <<_ACEOF
8487 cat confdefs.h
>>conftest.
$ac_ext
8488 cat >>conftest.
$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 #ifdef HAVE_LIMITS_H
8497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8498 $EGREP "found" >/dev
/null
2>&1; then
8499 gcc_cv_decl_char_bit
=yes
8501 gcc_cv_decl_char_bit
=no
8507 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8508 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8509 if test $gcc_cv_decl_char_bit = no
; then
8510 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8511 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8512 if test "${gcc_cv_c_nbby+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 while test $i -lt 65; do
8518 cat >conftest.
$ac_ext <<_ACEOF
8521 cat confdefs.h
>>conftest.
$ac_ext
8522 cat >>conftest.
$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8529 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8530 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8536 rm -f conftest.
$ac_objext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>conftest.er1
8540 grep -v '^ *+' conftest.er1
>conftest.err
8542 cat conftest.err
>&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try
='test -z "$ac_c_werror_flag"
8546 || test ! -s conftest.err'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try
='test -s conftest.$ac_objext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 gcc_cv_c_nbby
=$i; break
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.
$ac_ext >&5
8564 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8567 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8570 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8571 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8572 if test $gcc_cv_c_nbby = failed
; then
8573 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8574 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8575 { (exit 1); exit 1; }; }
8578 cat >>confdefs.h
<<_ACEOF
8579 #define CHAR_BIT $gcc_cv_c_nbby
8584 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8585 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8586 if test "${ac_cv_c_bigendian+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 # See if sys/param.h defines the BYTE_ORDER macro.
8590 cat >conftest.
$ac_ext <<_ACEOF
8593 cat confdefs.h
>>conftest.
$ac_ext
8594 cat >>conftest.
$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8596 #include <sys/types.h>
8597 #include <sys/param.h>
8602 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8610 rm -f conftest.
$ac_objext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8612 (eval $ac_compile) 2>conftest.er1
8614 grep -v '^ *+' conftest.er1
>conftest.err
8616 cat conftest.err
>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try
='test -z "$ac_c_werror_flag"
8620 || test ! -s conftest.err'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try
='test -s conftest.$ac_objext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 # It does; now see whether it defined to BIG_ENDIAN or not.
8633 cat >conftest.
$ac_ext <<_ACEOF
8636 cat confdefs.h
>>conftest.
$ac_ext
8637 cat >>conftest.
$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 #include <sys/types.h>
8640 #include <sys/param.h>
8645 #if BYTE_ORDER != BIG_ENDIAN
8653 rm -f conftest.
$ac_objext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655 (eval $ac_compile) 2>conftest.er1
8657 grep -v '^ *+' conftest.er1
>conftest.err
8659 cat conftest.err
>&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try
='test -z "$ac_c_werror_flag"
8663 || test ! -s conftest.err'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; } &&
8669 { ac_try
='test -s conftest.$ac_objext'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 ac_cv_c_bigendian
=yes
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.
$ac_ext >&5
8680 ac_cv_c_bigendian
=no
8682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.
$ac_ext >&5
8687 # It does not; compile a test program.
8688 if test "$cross_compiling" = yes; then
8689 # try to guess the endianness by grepping values into an object file
8690 ac_cv_c_bigendian
=unknown
8691 cat >conftest.
$ac_ext <<_ACEOF
8694 cat confdefs.h
>>conftest.
$ac_ext
8695 cat >>conftest.
$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8698 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8699 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8700 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8701 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8702 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8706 _ascii (); _ebcdic ();
8711 rm -f conftest.
$ac_objext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713 (eval $ac_compile) 2>conftest.er1
8715 grep -v '^ *+' conftest.er1
>conftest.err
8717 cat conftest.err
>&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try
='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try
='test -s conftest.$ac_objext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8734 ac_cv_c_bigendian
=yes
8736 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8737 if test "$ac_cv_c_bigendian" = unknown
; then
8738 ac_cv_c_bigendian
=no
8740 # finding both strings is unlikely to happen, but who knows?
8741 ac_cv_c_bigendian
=unknown
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.
$ac_ext >&5
8749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8751 cat >conftest.
$ac_ext <<_ACEOF
8754 cat confdefs.h
>>conftest.
$ac_ext
8755 cat >>conftest.
$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8760 /* Are we little or big endian? From Harbison&Steele. */
8764 char c[sizeof (long)];
8767 exit (u.c[sizeof (long) - 1] == 1);
8770 rm -f conftest
$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_cv_c_bigendian
=no
8783 echo "$as_me: program exited with status $ac_status" >&5
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.
$ac_ext >&5
8788 ac_cv_c_bigendian
=yes
8790 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8795 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8796 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8797 case $ac_cv_c_bigendian in
8800 cat >>confdefs.h
<<\_ACEOF
8801 #define WORDS_BIGENDIAN 1
8807 { { echo "$as_me:$LINENO: error: unknown endianness
8808 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8809 echo "$as_me: error: unknown endianness
8810 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8811 { (exit 1); exit 1; }; } ;;
8819 # Stage specific cflags for build.
8823 if test x
$GCC = xyes
8825 stage1_cflags
="-Wa,-J"
8831 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8832 # sources; use -no-cpp-precomp to get to GNU cpp.
8833 # Apple's GCC has bugs in designated initializer handling, so disable
8835 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8840 # These libraries may be used by collect2.
8841 # We may need a special search path to get them linked.
8842 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8843 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8844 if test "${gcc_cv_collect2_libs+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 for libs
in '' -lld -lmld \
8849 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8850 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8853 cat >conftest.
$ac_ext <<_ACEOF
8856 cat confdefs.h
>>conftest.
$ac_ext
8857 cat >>conftest.
$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8860 /* Override any gcc2 internal prototype to avoid an error. */
8864 /* We use char because int might match the return type of a gcc2
8865 builtin and then its argument prototype would still apply. */
8875 rm -f conftest.
$ac_objext conftest
$ac_exeext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877 (eval $ac_link) 2>conftest.er1
8879 grep -v '^ *+' conftest.er1
>conftest.err
8881 cat conftest.err
>&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } &&
8884 { ac_try
='test -z "$ac_c_werror_flag"
8885 || test ! -s conftest.err'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; } &&
8891 { ac_try
='test -s conftest$ac_exeext'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
8897 gcc_cv_collect2_libs
="$libs"; break
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.
$ac_ext >&5
8903 rm -f conftest.err conftest.
$ac_objext \
8904 conftest
$ac_exeext conftest.
$ac_ext
8907 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8909 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8910 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8911 case $gcc_cv_collect2_libs in
8913 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8917 # When building Ada code on Alpha, we need exc_resume which is usually in
8918 # -lexc. So test for it.
8921 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8922 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8923 if test "${ac_cv_search_exc_resume+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 ac_func_search_save_LIBS
=$LIBS
8927 ac_cv_search_exc_resume
=no
8928 cat >conftest.
$ac_ext <<_ACEOF
8931 cat confdefs.h
>>conftest.
$ac_ext
8932 cat >>conftest.
$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8935 /* Override any gcc2 internal prototype to avoid an error. */
8939 /* We use char because int might match the return type of a gcc2
8940 builtin and then its argument prototype would still apply. */
8950 rm -f conftest.
$ac_objext conftest
$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>conftest.er1
8954 grep -v '^ *+' conftest.er1
>conftest.err
8956 cat conftest.err
>&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try
='test -z "$ac_c_werror_flag"
8960 || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try
='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_search_exc_resume
="none required"
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.
$ac_ext >&5
8978 rm -f conftest.err conftest.
$ac_objext \
8979 conftest
$ac_exeext conftest.
$ac_ext
8980 if test "$ac_cv_search_exc_resume" = no
; then
8981 for ac_lib
in exc
; do
8982 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8983 cat >conftest.
$ac_ext <<_ACEOF
8986 cat confdefs.h
>>conftest.
$ac_ext
8987 cat >>conftest.
$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8990 /* Override any gcc2 internal prototype to avoid an error. */
8994 /* We use char because int might match the return type of a gcc2
8995 builtin and then its argument prototype would still apply. */
9005 rm -f conftest.
$ac_objext conftest
$ac_exeext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9007 (eval $ac_link) 2>conftest.er1
9009 grep -v '^ *+' conftest.er1
>conftest.err
9011 cat conftest.err
>&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try
='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try
='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_search_exc_resume
="-l$ac_lib"
9030 echo "$as_me: failed program was:" >&5
9031 sed 's/^/| /' conftest.
$ac_ext >&5
9034 rm -f conftest.err conftest.
$ac_objext \
9035 conftest
$ac_exeext conftest.
$ac_ext
9038 LIBS
=$ac_func_search_save_LIBS
9040 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9041 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9042 if test "$ac_cv_search_exc_resume" != no
; then
9043 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9051 # Some systems put ldexp and frexp in libm instead of libc; assume
9052 # they're both in the same place. jcf-dump needs them.
9055 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9056 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9057 if test "${ac_cv_search_ldexp+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_func_search_save_LIBS
=$LIBS
9061 ac_cv_search_ldexp
=no
9062 cat >conftest.
$ac_ext <<_ACEOF
9065 cat confdefs.h
>>conftest.
$ac_ext
9066 cat >>conftest.
$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9069 /* Override any gcc2 internal prototype to avoid an error. */
9073 /* We use char because int might match the return type of a gcc2
9074 builtin and then its argument prototype would still apply. */
9084 rm -f conftest.
$ac_objext conftest
$ac_exeext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086 (eval $ac_link) 2>conftest.er1
9088 grep -v '^ *+' conftest.er1
>conftest.err
9090 cat conftest.err
>&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try
='test -z "$ac_c_werror_flag"
9094 || test ! -s conftest.err'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; } &&
9100 { ac_try
='test -s conftest$ac_exeext'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9106 ac_cv_search_ldexp
="none required"
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.
$ac_ext >&5
9112 rm -f conftest.err conftest.
$ac_objext \
9113 conftest
$ac_exeext conftest.
$ac_ext
9114 if test "$ac_cv_search_ldexp" = no
; then
9116 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9117 cat >conftest.
$ac_ext <<_ACEOF
9120 cat confdefs.h
>>conftest.
$ac_ext
9121 cat >>conftest.
$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9124 /* Override any gcc2 internal prototype to avoid an error. */
9128 /* We use char because int might match the return type of a gcc2
9129 builtin and then its argument prototype would still apply. */
9139 rm -f conftest.
$ac_objext conftest
$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>conftest.er1
9143 grep -v '^ *+' conftest.er1
>conftest.err
9145 cat conftest.err
>&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try
='test -z "$ac_c_werror_flag"
9149 || test ! -s conftest.err'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; } &&
9155 { ac_try
='test -s conftest$ac_exeext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 ac_cv_search_ldexp
="-l$ac_lib"
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.
$ac_ext >&5
9168 rm -f conftest.err conftest.
$ac_objext \
9169 conftest
$ac_exeext conftest.
$ac_ext
9172 LIBS
=$ac_func_search_save_LIBS
9174 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9175 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9176 if test "$ac_cv_search_ldexp" != no
; then
9177 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9185 # Use <inttypes.h> only if it exists,
9186 # doesn't clash with <sys/types.h>, and declares intmax_t.
9187 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9188 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9189 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 cat >conftest.
$ac_ext <<_ACEOF
9195 cat confdefs.h
>>conftest.
$ac_ext
9196 cat >>conftest.
$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 #include <sys/types.h>
9199 #include <inttypes.h>
9208 rm -f conftest.
$ac_objext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9210 (eval $ac_compile) 2>conftest.er1
9212 grep -v '^ *+' conftest.er1
>conftest.err
9214 cat conftest.err
>&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try
='test -z "$ac_c_werror_flag"
9218 || test ! -s conftest.err'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; } &&
9224 { ac_try
='test -s conftest.$ac_objext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 gcc_cv_header_inttypes_h
=yes
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.
$ac_ext >&5
9235 gcc_cv_header_inttypes_h
=no
9237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9240 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9241 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9242 if test $gcc_cv_header_inttypes_h = yes; then
9244 cat >>confdefs.h
<<\_ACEOF
9245 #define HAVE_INTTYPES_H 1
9287 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9288 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9289 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9290 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
9292 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9293 echo "$as_me:$LINENO: checking for $ac_func" >&5
9294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9295 if eval "test \"\${$as_ac_var+set}\" = set"; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 cat >conftest.
$ac_ext <<_ACEOF
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9306 #define $ac_func innocuous_$ac_func
9308 /* System header to define __stub macros and hopefully few prototypes,
9309 which can conflict with char $ac_func (); below.
9310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9311 <limits.h> exists even on freestanding compilers. */
9314 # include <limits.h>
9316 # include <assert.h>
9321 /* Override any gcc2 internal prototype to avoid an error. */
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9335 char (*f) () = $ac_func;
9344 return f != $ac_func;
9349 rm -f conftest.
$ac_objext conftest
$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>conftest.er1
9353 grep -v '^ *+' conftest.er1
>conftest.err
9355 cat conftest.err
>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try
='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try
='test -s conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 eval "$as_ac_var=yes"
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.
$ac_ext >&5
9376 eval "$as_ac_var=no"
9378 rm -f conftest.err conftest.
$ac_objext \
9379 conftest
$ac_exeext conftest.
$ac_ext
9381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9383 if test `eval echo '${'$as_ac_var'}'` = yes; then
9384 cat >>confdefs.h
<<_ACEOF
9385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9392 if test x
$ac_cv_func_mbstowcs = xyes
; then
9393 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9394 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9395 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 if test "$cross_compiling" = yes; then
9399 gcc_cv_func_mbstowcs_works
=yes
9401 cat >conftest.
$ac_ext <<_ACEOF
9404 cat confdefs.h
>>conftest.
$ac_ext
9405 cat >>conftest.
$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9414 rm -f conftest
$ac_exeext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9416 (eval $ac_link) 2>&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 gcc_cv_func_mbstowcs_works
=yes
9427 echo "$as_me: program exited with status $ac_status" >&5
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.
$ac_ext >&5
9432 gcc_cv_func_mbstowcs_works
=no
9434 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9437 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9438 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9439 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9441 cat >>confdefs.h
<<\_ACEOF
9442 #define HAVE_WORKING_MBSTOWCS 1
9448 echo "$as_me:$LINENO: checking for ssize_t" >&5
9449 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9450 if test "${ac_cv_type_ssize_t+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 cat >conftest.
$ac_ext <<_ACEOF
9456 cat confdefs.h
>>conftest.
$ac_ext
9457 cat >>conftest.
$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9459 $ac_includes_default
9465 if (sizeof (ssize_t))
9471 rm -f conftest.
$ac_objext
9472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9473 (eval $ac_compile) 2>conftest.er1
9475 grep -v '^ *+' conftest.er1
>conftest.err
9477 cat conftest.err
>&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } &&
9480 { ac_try
='test -z "$ac_c_werror_flag"
9481 || test ! -s conftest.err'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; } &&
9487 { ac_try
='test -s conftest.$ac_objext'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9493 ac_cv_type_ssize_t
=yes
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.
$ac_ext >&5
9498 ac_cv_type_ssize_t
=no
9500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9502 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9503 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9504 if test $ac_cv_type_ssize_t = yes; then
9508 cat >>confdefs.h
<<_ACEOF
9515 # Try to determine the array type of the second argument of getgroups
9516 # for the target system (int or gid_t).
9517 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9518 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9519 if test "${ac_cv_type_uid_t+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 cat >conftest.
$ac_ext <<_ACEOF
9525 cat confdefs.h
>>conftest.
$ac_ext
9526 cat >>conftest.
$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 #include <sys/types.h>
9531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9532 $EGREP "uid_t" >/dev
/null
2>&1; then
9533 ac_cv_type_uid_t
=yes
9540 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9541 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9542 if test $ac_cv_type_uid_t = no
; then
9544 cat >>confdefs.h
<<\_ACEOF
9549 cat >>confdefs.h
<<\_ACEOF
9555 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9556 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9557 if test "${ac_cv_type_getgroups+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 if test "$cross_compiling" = yes; then
9561 ac_cv_type_getgroups
=cross
9563 cat >conftest.
$ac_ext <<_ACEOF
9566 cat confdefs.h
>>conftest.
$ac_ext
9567 cat >>conftest.
$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 /* Thanks to Mike Rendell for this test. */
9570 #include <sys/types.h>
9573 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9580 union { gid_t gval; long lval; } val;
9583 for (i = 0; i < NGID; i++)
9584 gidset[i] = val.gval;
9585 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9587 /* Exit non-zero if getgroups seems to require an array of ints. This
9588 happens when gid_t is short but getgroups modifies an array of ints. */
9589 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9592 rm -f conftest
$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_type_getgroups
=gid_t
9605 echo "$as_me: program exited with status $ac_status" >&5
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.
$ac_ext >&5
9610 ac_cv_type_getgroups
=int
9612 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9614 if test $ac_cv_type_getgroups = cross
; then
9615 cat >conftest.
$ac_ext <<_ACEOF
9618 cat confdefs.h
>>conftest.
$ac_ext
9619 cat >>conftest.
$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9625 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9626 ac_cv_type_getgroups
=gid_t
9628 ac_cv_type_getgroups
=int
9634 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9635 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9637 cat >>confdefs.h
<<_ACEOF
9638 #define GETGROUPS_T $ac_cv_type_getgroups
9642 if test "${target}" = "${build}"; then
9643 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9646 # This condition may need some tweaking. It should include all
9647 # targets where the array type of the second argument of getgroups
9648 # is int and the type of gid_t is not equivalent to int.
9649 *-*-sunos* |
*-*-ultrix*)
9650 TARGET_GETGROUPS_T
=int
9653 TARGET_GETGROUPS_T
=gid_t
9660 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9661 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9662 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 cat >conftest.
$ac_ext <<_ACEOF
9668 cat confdefs.h
>>conftest.
$ac_ext
9669 cat >>conftest.
$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 #include <sys/mman.h>
9673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9674 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9676 grep -v '^ *+' conftest.er1
>conftest.err
9678 cat conftest.err
>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } >/dev
/null
; then
9681 if test -s conftest.err
; then
9682 ac_cpp_err
=$ac_c_preproc_warn_flag
9683 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9690 if test -z "$ac_cpp_err"; then
9691 ac_cv_header_sys_mman_h
=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.
$ac_ext >&5
9696 ac_cv_header_sys_mman_h
=no
9698 rm -f conftest.err conftest.
$ac_ext
9700 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9701 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9702 if test $ac_cv_header_sys_mman_h = yes; then
9703 gcc_header_sys_mman_h
=yes
9705 gcc_header_sys_mman_h
=no
9708 echo "$as_me:$LINENO: checking for mmap" >&5
9709 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9710 if test "${ac_cv_func_mmap+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 cat >conftest.
$ac_ext <<_ACEOF
9716 cat confdefs.h
>>conftest.
$ac_ext
9717 cat >>conftest.
$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9719 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9721 #define mmap innocuous_mmap
9723 /* System header to define __stub macros and hopefully few prototypes,
9724 which can conflict with char mmap (); below.
9725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9726 <limits.h> exists even on freestanding compilers. */
9729 # include <limits.h>
9731 # include <assert.h>
9736 /* Override any gcc2 internal prototype to avoid an error. */
9741 /* We use char because int might match the return type of a gcc2
9742 builtin and then its argument prototype would still apply. */
9744 /* The GNU C library defines this for functions which it implements
9745 to always fail with ENOSYS. Some functions are actually named
9746 something starting with __ and the normal name is an alias. */
9747 #if defined (__stub_mmap) || defined (__stub___mmap)
9750 char (*f) () = mmap;
9764 rm -f conftest.
$ac_objext conftest
$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>conftest.er1
9768 grep -v '^ *+' conftest.er1
>conftest.err
9770 cat conftest.err
>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try
='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try
='test -s conftest$ac_exeext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.
$ac_ext >&5
9793 rm -f conftest.err conftest.
$ac_objext \
9794 conftest
$ac_exeext conftest.
$ac_ext
9796 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9797 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9798 if test $ac_cv_func_mmap = yes; then
9804 if test "$gcc_header_sys_mman_h" != yes \
9805 ||
test "$gcc_func_mmap" != yes; then
9806 gcc_cv_func_mmap_file
=no
9807 gcc_cv_func_mmap_dev_zero
=no
9808 gcc_cv_func_mmap_anon
=no
9810 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9811 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9812 if test "${gcc_cv_func_mmap_file+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 # Add a system to this blacklist if
9816 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9817 # memory area containing the same data that you'd get if you applied
9818 # read() to the same fd. The only system known to have a problem here
9819 # is VMS, where text files have record structure.
9822 gcc_cv_func_mmap_file
=no
;;
9824 gcc_cv_func_mmap_file
=yes;;
9827 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9828 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9829 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9830 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9831 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 # Add a system to this blacklist if it has mmap() but /dev/zero
9835 # does not exist, or if mmapping /dev/zero does not give anonymous
9836 # zeroed pages with both the following properties:
9837 # 1. If you map N consecutive pages in with one call, and then
9838 # unmap any subset of those pages, the pages that were not
9839 # explicitly unmapped remain accessible.
9840 # 2. If you map two adjacent blocks of memory and then unmap them
9841 # both at once, they must both go away.
9842 # Systems known to be in this category are Windows (all variants),
9845 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9846 gcc_cv_func_mmap_dev_zero
=no
;;
9848 gcc_cv_func_mmap_dev_zero
=yes;;
9851 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9852 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9854 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9855 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9856 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9857 if test "${gcc_cv_decl_map_anon+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 cat >conftest.
$ac_ext <<_ACEOF
9863 cat confdefs.h
>>conftest.
$ac_ext
9864 cat >>conftest.
$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 #include <sys/types.h>
9867 #include <sys/mman.h>
9870 #ifndef MAP_ANONYMOUS
9871 #define MAP_ANONYMOUS MAP_ANON
9877 int n = MAP_ANONYMOUS;
9882 rm -f conftest.
$ac_objext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884 (eval $ac_compile) 2>conftest.er1
9886 grep -v '^ *+' conftest.er1
>conftest.err
9888 cat conftest.err
>&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
9891 { ac_try
='test -z "$ac_c_werror_flag"
9892 || test ! -s conftest.err'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try
='test -s conftest.$ac_objext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 gcc_cv_decl_map_anon
=yes
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.
$ac_ext >&5
9909 gcc_cv_decl_map_anon
=no
9911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9913 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9914 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9916 if test $gcc_cv_decl_map_anon = no
; then
9917 gcc_cv_func_mmap_anon
=no
9919 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9920 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9921 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9925 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9926 # doesn't give anonymous zeroed pages with the same properties listed
9927 # above for use of /dev/zero.
9928 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9930 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9931 gcc_cv_func_mmap_anon
=no
;;
9933 gcc_cv_func_mmap_anon
=yes;;
9936 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9937 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9941 if test $gcc_cv_func_mmap_file = yes; then
9943 cat >>confdefs.h
<<\_ACEOF
9944 #define HAVE_MMAP_FILE 1
9948 if test $gcc_cv_func_mmap_dev_zero = yes; then
9950 cat >>confdefs.h
<<\_ACEOF
9951 #define HAVE_MMAP_DEV_ZERO 1
9955 if test $gcc_cv_func_mmap_anon = yes; then
9957 cat >>confdefs.h
<<\_ACEOF
9958 #define HAVE_MMAP_ANON 1
9966 # Under VMS, vfork works very differently than on Unix. The standard test
9967 # won't work, and it isn't easily adaptable. It makes more sense to
9969 ac_cv_func_vfork_works
=yes
9972 echo "$as_me:$LINENO: checking for pid_t" >&5
9973 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9974 if test "${ac_cv_type_pid_t+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 cat >conftest.
$ac_ext <<_ACEOF
9980 cat confdefs.h
>>conftest.
$ac_ext
9981 cat >>conftest.
$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 $ac_includes_default
9995 rm -f conftest.
$ac_objext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9997 (eval $ac_compile) 2>conftest.er1
9999 grep -v '^ *+' conftest.er1
>conftest.err
10001 cat conftest.err
>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try
='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try
='test -s conftest.$ac_objext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_type_pid_t
=yes
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.
$ac_ext >&5
10022 ac_cv_type_pid_t
=no
10024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10026 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10027 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10028 if test $ac_cv_type_pid_t = yes; then
10032 cat >>confdefs.h
<<_ACEOF
10040 for ac_header
in unistd.h vfork.h
10042 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10043 echo "$as_me:$LINENO: checking for $ac_header" >&5
10044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 cat >conftest.
$ac_ext <<_ACEOF
10051 cat confdefs.h
>>conftest.
$ac_ext
10052 cat >>conftest.
$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10054 #include <$ac_header>
10056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10057 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10059 grep -v '^ *+' conftest.er1
>conftest.err
10061 cat conftest.err
>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } >/dev
/null
; then
10064 if test -s conftest.err
; then
10065 ac_cpp_err
=$ac_c_preproc_warn_flag
10066 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10073 if test -z "$ac_cpp_err"; then
10074 eval "$as_ac_Header=yes"
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.
$ac_ext >&5
10079 eval "$as_ac_Header=no"
10081 rm -f conftest.err conftest.
$ac_ext
10083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10086 cat >>confdefs.h
<<_ACEOF
10087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10095 for ac_func
in fork vfork
10097 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10098 echo "$as_me:$LINENO: checking for $ac_func" >&5
10099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10100 if eval "test \"\${$as_ac_var+set}\" = set"; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 cat >conftest.
$ac_ext <<_ACEOF
10106 cat confdefs.h
>>conftest.
$ac_ext
10107 cat >>conftest.
$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10111 #define $ac_func innocuous_$ac_func
10113 /* System header to define __stub macros and hopefully few prototypes,
10114 which can conflict with char $ac_func (); below.
10115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10116 <limits.h> exists even on freestanding compilers. */
10119 # include <limits.h>
10121 # include <assert.h>
10126 /* Override any gcc2 internal prototype to avoid an error. */
10131 /* We use char because int might match the return type of a gcc2
10132 builtin and then its argument prototype would still apply. */
10134 /* The GNU C library defines this for functions which it implements
10135 to always fail with ENOSYS. Some functions are actually named
10136 something starting with __ and the normal name is an alias. */
10137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10140 char (*f) () = $ac_func;
10149 return f != $ac_func;
10154 rm -f conftest.
$ac_objext conftest
$ac_exeext
10155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10156 (eval $ac_link) 2>conftest.er1
10158 grep -v '^ *+' conftest.er1
>conftest.err
10160 cat conftest.err
>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try
='test -z "$ac_c_werror_flag"
10164 || test ! -s conftest.err'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; } &&
10170 { ac_try
='test -s conftest$ac_exeext'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 eval "$as_ac_var=yes"
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.
$ac_ext >&5
10181 eval "$as_ac_var=no"
10183 rm -f conftest.err conftest.
$ac_objext \
10184 conftest
$ac_exeext conftest.
$ac_ext
10186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10188 if test `eval echo '${'$as_ac_var'}'` = yes; then
10189 cat >>confdefs.h
<<_ACEOF
10190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10196 if test "x$ac_cv_func_fork" = xyes
; then
10197 echo "$as_me:$LINENO: checking for working fork" >&5
10198 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10199 if test "${ac_cv_func_fork_works+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 if test "$cross_compiling" = yes; then
10203 ac_cv_func_fork_works
=cross
10205 cat >conftest.
$ac_ext <<_ACEOF
10206 /* By Ruediger Kuhlmann. */
10207 #include <sys/types.h>
10209 # include <unistd.h>
10211 /* Some systems only have a dummy stub for fork() */
10219 rm -f conftest
$ac_exeext
10220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10221 (eval $ac_link) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_func_fork_works
=yes
10232 echo "$as_me: program exited with status $ac_status" >&5
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.
$ac_ext >&5
10236 ( exit $ac_status )
10237 ac_cv_func_fork_works
=no
10239 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10242 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10243 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10246 ac_cv_func_fork_works
=$ac_cv_func_fork
10248 if test "x$ac_cv_func_fork_works" = xcross
; then
10250 *-*-amigaos* |
*-*-msdosdjgpp*)
10251 # Override, as these systems have only a dummy fork() stub
10252 ac_cv_func_fork_works
=no
10255 ac_cv_func_fork_works
=yes
10258 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10259 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10261 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10262 if test "x$ac_cv_func_vfork" = xyes
; then
10263 echo "$as_me:$LINENO: checking for working vfork" >&5
10264 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10265 if test "${ac_cv_func_vfork_works+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 if test "$cross_compiling" = yes; then
10269 ac_cv_func_vfork_works
=cross
10271 cat >conftest.
$ac_ext <<_ACEOF
10274 cat confdefs.h
>>conftest.
$ac_ext
10275 cat >>conftest.
$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 /* Thanks to Paul Eggert for this test. */
10279 #include <stdlib.h>
10280 #include <sys/types.h>
10281 #include <sys/stat.h>
10282 #include <sys/wait.h>
10284 # include <unistd.h>
10287 # include <vfork.h>
10289 /* On some sparc systems, changes by the child to local and incoming
10290 argument registers are propagated back to the parent. The compiler
10291 is told about this with #include <vfork.h>, but some compilers
10292 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10293 static variable whose address is put into a register that is
10294 clobbered by the vfork. */
10297 sparc_address_test (int arg)
10299 sparc_address_test (arg) int arg;
10302 static pid_t child;
10320 pid_t parent = getpid ();
10323 sparc_address_test (0);
10328 /* Here is another test for sparc vfork register problems. This
10329 test uses lots of local variables, at least as many local
10330 variables as main has allocated so far including compiler
10331 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10332 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10333 reuse the register of parent for one of the local variables,
10334 since it will think that parent can't possibly be used any more
10335 in this routine. Assigning to the local variable will thus
10336 munge parent in the parent process. */
10338 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10339 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10340 /* Convince the compiler that p..p7 are live; otherwise, it might
10341 use the same hardware register for all 8 local variables. */
10342 if (p != p1 || p != p2 || p != p3 || p != p4
10343 || p != p5 || p != p6 || p != p7)
10346 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10347 from child file descriptors. If the child closes a descriptor
10348 before it execs or exits, this munges the parent's descriptor
10349 as well. Test for this by closing stdout in the child. */
10350 _exit(close(fileno(stdout)) != 0);
10355 while (wait(&status) != child)
10358 /* Was there some problem with vforking? */
10361 /* Did the child fail? (This shouldn't happen.) */
10364 /* Did the vfork/compiler bug occur? */
10365 || parent != getpid()
10367 /* Did the file descriptor bug occur? */
10368 || fstat(fileno(stdout), &st) != 0
10373 rm -f conftest
$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 ac_cv_func_vfork_works
=yes
10386 echo "$as_me: program exited with status $ac_status" >&5
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.
$ac_ext >&5
10390 ( exit $ac_status )
10391 ac_cv_func_vfork_works
=no
10393 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10396 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10397 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10400 if test "x$ac_cv_func_fork_works" = xcross
; then
10401 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10402 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10403 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10406 if test "x$ac_cv_func_vfork_works" = xyes
; then
10408 cat >>confdefs.h
<<\_ACEOF
10409 #define HAVE_WORKING_VFORK 1
10414 cat >>confdefs.h
<<\_ACEOF
10419 if test "x$ac_cv_func_fork_works" = xyes
; then
10421 cat >>confdefs.h
<<\_ACEOF
10422 #define HAVE_WORKING_FORK 1
10429 if test "X$prefix" = "XNONE"; then
10430 acl_final_prefix
="$ac_default_prefix"
10432 acl_final_prefix
="$prefix"
10434 if test "X$exec_prefix" = "XNONE"; then
10435 acl_final_exec_prefix
='${prefix}'
10437 acl_final_exec_prefix
="$exec_prefix"
10439 acl_save_prefix
="$prefix"
10440 prefix
="$acl_final_prefix"
10441 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10442 prefix
="$acl_save_prefix"
10445 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10446 if test "${with_gnu_ld+set}" = set; then
10447 withval
="$with_gnu_ld"
10448 test "$withval" = no || with_gnu_ld
=yes
10452 # Prepare PATH_SEPARATOR.
10453 # The user is always right.
10454 if test "${PATH_SEPARATOR+set}" != set; then
10455 echo "#! /bin/sh" >conf$$.sh
10456 echo "exit 0" >>conf$$.sh
10458 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10466 if test "$GCC" = yes; then
10467 # Check if gcc -print-prog-name=ld gives a path.
10468 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10469 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10472 # gcc leaves a trailing carriage return which upsets mingw
10473 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10475 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10478 # Accept absolute paths.
10479 [\\/]* |
[A-Za-z
]:[\\/]*)
10480 re_direlt
='/[^/][^/]*/\.\./'
10481 # Canonicalize the path of ld
10482 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10483 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10484 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10486 test -z "$LD" && LD
="$ac_prog"
10489 # If it fails, then pretend we aren't using GCC.
10493 # If it is relative, then search for the first ld in PATH.
10494 with_gnu_ld
=unknown
10497 elif test "$with_gnu_ld" = yes; then
10498 echo "$as_me:$LINENO: checking for GNU ld" >&5
10499 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10501 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10502 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10504 if test "${acl_cv_path_LD+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 if test -z "$LD"; then
10508 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10509 for ac_dir
in $PATH; do
10510 test -z "$ac_dir" && ac_dir
=.
10511 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10512 acl_cv_path_LD
="$ac_dir/$ac_prog"
10513 # Check to see if the program is GNU ld. I'd rather use --version,
10514 # but apparently some GNU ld's only accept -v.
10515 # Break only if it was the GNU/non-GNU ld that we prefer.
10516 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10517 test "$with_gnu_ld" != no
&& break
10519 test "$with_gnu_ld" != yes && break
10525 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10529 LD
="$acl_cv_path_LD"
10530 if test -n "$LD"; then
10531 echo "$as_me:$LINENO: result: $LD" >&5
10532 echo "${ECHO_T}$LD" >&6
10534 echo "$as_me:$LINENO: result: no" >&5
10535 echo "${ECHO_T}no" >&6
10537 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10538 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10539 { (exit 1); exit 1; }; }
10540 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10541 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10542 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10546 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10547 acl_cv_prog_gnu_ld
=yes
10549 acl_cv_prog_gnu_ld
=no
10552 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10553 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10554 with_gnu_ld
=$acl_cv_prog_gnu_ld
10558 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10559 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10560 if test "${acl_cv_rpath+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10565 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10567 rm -f .
/conftest.sh
10571 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10572 echo "${ECHO_T}$acl_cv_rpath" >&6
10574 libext
="$acl_cv_libext"
10575 shlibext
="$acl_cv_shlibext"
10576 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10577 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10578 hardcode_direct
="$acl_cv_hardcode_direct"
10579 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10580 # Check whether --enable-rpath or --disable-rpath was given.
10581 if test "${enable_rpath+set}" = set; then
10582 enableval
="$enable_rpath"
10596 acl_save_prefix
="$prefix"
10597 prefix
="$acl_final_prefix"
10598 acl_save_exec_prefix
="$exec_prefix"
10599 exec_prefix
="$acl_final_exec_prefix"
10601 eval additional_includedir
=\"$includedir\"
10602 eval additional_libdir
=\"$libdir\"
10604 exec_prefix
="$acl_save_exec_prefix"
10605 prefix
="$acl_save_prefix"
10608 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10609 if test "${with_libiconv_prefix+set}" = set; then
10610 withval
="$with_libiconv_prefix"
10612 if test "X$withval" = "Xno"; then
10615 if test "X$withval" = "X"; then
10617 acl_save_prefix
="$prefix"
10618 prefix
="$acl_final_prefix"
10619 acl_save_exec_prefix
="$exec_prefix"
10620 exec_prefix
="$acl_final_exec_prefix"
10622 eval additional_includedir
=\"$includedir\"
10623 eval additional_libdir
=\"$libdir\"
10625 exec_prefix
="$acl_save_exec_prefix"
10626 prefix
="$acl_save_prefix"
10629 additional_includedir
="$withval/include"
10630 additional_libdir
="$withval/lib"
10640 names_already_handled
=
10641 names_next_round
='iconv '
10642 while test -n "$names_next_round"; do
10643 names_this_round
="$names_next_round"
10645 for name
in $names_this_round; do
10647 for n
in $names_already_handled; do
10648 if test "$n" = "$name"; then
10649 already_handled
=yes
10653 if test -z "$already_handled"; then
10654 names_already_handled
="$names_already_handled $name"
10655 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10656 eval value
=\"\
$HAVE_LIB$uppername\"
10657 if test -n "$value"; then
10658 if test "$value" = yes; then
10659 eval value
=\"\
$LIB$uppername\"
10660 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10661 eval value
=\"\
$LTLIB$uppername\"
10662 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10671 if test $use_additional = yes; then
10672 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10673 found_dir
="$additional_libdir"
10674 found_so
="$additional_libdir/lib$name.$shlibext"
10675 if test -f "$additional_libdir/lib$name.la"; then
10676 found_la
="$additional_libdir/lib$name.la"
10679 if test -f "$additional_libdir/lib$name.$libext"; then
10680 found_dir
="$additional_libdir"
10681 found_a
="$additional_libdir/lib$name.$libext"
10682 if test -f "$additional_libdir/lib$name.la"; then
10683 found_la
="$additional_libdir/lib$name.la"
10688 if test "X$found_dir" = "X"; then
10689 for x
in $LDFLAGS $LTLIBICONV; do
10691 acl_save_prefix
="$prefix"
10692 prefix
="$acl_final_prefix"
10693 acl_save_exec_prefix
="$exec_prefix"
10694 exec_prefix
="$acl_final_exec_prefix"
10696 exec_prefix
="$acl_save_exec_prefix"
10697 prefix
="$acl_save_prefix"
10701 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10702 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10704 found_so
="$dir/lib$name.$shlibext"
10705 if test -f "$dir/lib$name.la"; then
10706 found_la
="$dir/lib$name.la"
10709 if test -f "$dir/lib$name.$libext"; then
10711 found_a
="$dir/lib$name.$libext"
10712 if test -f "$dir/lib$name.la"; then
10713 found_la
="$dir/lib$name.la"
10719 if test "X$found_dir" != "X"; then
10724 if test "X$found_dir" != "X"; then
10725 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10726 if test "X$found_so" != "X"; then
10727 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10728 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10731 for x
in $ltrpathdirs; do
10732 if test "X$x" = "X$found_dir"; then
10737 if test -z "$haveit"; then
10738 ltrpathdirs
="$ltrpathdirs $found_dir"
10740 if test "$hardcode_direct" = yes; then
10741 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10743 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10744 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10746 for x
in $rpathdirs; do
10747 if test "X$x" = "X$found_dir"; then
10752 if test -z "$haveit"; then
10753 rpathdirs
="$rpathdirs $found_dir"
10757 for x
in $LDFLAGS $LIBICONV; do
10759 acl_save_prefix
="$prefix"
10760 prefix
="$acl_final_prefix"
10761 acl_save_exec_prefix
="$exec_prefix"
10762 exec_prefix
="$acl_final_exec_prefix"
10764 exec_prefix
="$acl_save_exec_prefix"
10765 prefix
="$acl_save_prefix"
10767 if test "X$x" = "X-L$found_dir"; then
10772 if test -z "$haveit"; then
10773 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10775 if test "$hardcode_minus_L" != no
; then
10776 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10778 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10784 if test "X$found_a" != "X"; then
10785 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10787 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10790 additional_includedir
=
10791 case "$found_dir" in
10793 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10794 additional_includedir
="$basedir/include"
10797 if test "X$additional_includedir" != "X"; then
10798 if test "X$additional_includedir" != "X/usr/include"; then
10800 if test "X$additional_includedir" = "X/usr/local/include"; then
10801 if test -n "$GCC"; then
10803 linux
*) haveit
=yes;;
10807 if test -z "$haveit"; then
10808 for x
in $CPPFLAGS $INCICONV; do
10810 acl_save_prefix
="$prefix"
10811 prefix
="$acl_final_prefix"
10812 acl_save_exec_prefix
="$exec_prefix"
10813 exec_prefix
="$acl_final_exec_prefix"
10815 exec_prefix
="$acl_save_exec_prefix"
10816 prefix
="$acl_save_prefix"
10818 if test "X$x" = "X-I$additional_includedir"; then
10823 if test -z "$haveit"; then
10824 if test -d "$additional_includedir"; then
10825 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10831 if test -n "$found_la"; then
10832 save_libdir
="$libdir"
10833 case "$found_la" in
10834 */* |
*\\*) .
"$found_la" ;;
10835 *) .
"./$found_la" ;;
10837 libdir
="$save_libdir"
10838 for dep
in $dependency_libs; do
10841 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10842 if test "X$additional_libdir" != "X/usr/lib"; then
10844 if test "X$additional_libdir" = "X/usr/local/lib"; then
10845 if test -n "$GCC"; then
10847 linux
*) haveit
=yes;;
10851 if test -z "$haveit"; then
10853 for x
in $LDFLAGS $LIBICONV; do
10855 acl_save_prefix
="$prefix"
10856 prefix
="$acl_final_prefix"
10857 acl_save_exec_prefix
="$exec_prefix"
10858 exec_prefix
="$acl_final_exec_prefix"
10860 exec_prefix
="$acl_save_exec_prefix"
10861 prefix
="$acl_save_prefix"
10863 if test "X$x" = "X-L$additional_libdir"; then
10868 if test -z "$haveit"; then
10869 if test -d "$additional_libdir"; then
10870 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10874 for x
in $LDFLAGS $LTLIBICONV; do
10876 acl_save_prefix
="$prefix"
10877 prefix
="$acl_final_prefix"
10878 acl_save_exec_prefix
="$exec_prefix"
10879 exec_prefix
="$acl_final_exec_prefix"
10881 exec_prefix
="$acl_save_exec_prefix"
10882 prefix
="$acl_save_prefix"
10884 if test "X$x" = "X-L$additional_libdir"; then
10889 if test -z "$haveit"; then
10890 if test -d "$additional_libdir"; then
10891 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10898 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10899 if test "$enable_rpath" != no
; then
10901 for x
in $rpathdirs; do
10902 if test "X$x" = "X$dir"; then
10907 if test -z "$haveit"; then
10908 rpathdirs
="$rpathdirs $dir"
10911 for x
in $ltrpathdirs; do
10912 if test "X$x" = "X$dir"; then
10917 if test -z "$haveit"; then
10918 ltrpathdirs
="$ltrpathdirs $dir"
10923 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10926 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10929 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10930 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10936 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10937 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10943 if test "X$rpathdirs" != "X"; then
10944 if test -n "$hardcode_libdir_separator"; then
10946 for found_dir
in $rpathdirs; do
10947 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10949 acl_save_libdir
="$libdir"
10951 eval flag
=\"$hardcode_libdir_flag_spec\"
10952 libdir
="$acl_save_libdir"
10953 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10955 for found_dir
in $rpathdirs; do
10956 acl_save_libdir
="$libdir"
10957 libdir
="$found_dir"
10958 eval flag
=\"$hardcode_libdir_flag_spec\"
10959 libdir
="$acl_save_libdir"
10960 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10964 if test "X$ltrpathdirs" != "X"; then
10965 for found_dir
in $ltrpathdirs; do
10966 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10976 am_save_CPPFLAGS
="$CPPFLAGS"
10978 for element
in $INCICONV; do
10980 for x
in $CPPFLAGS; do
10982 acl_save_prefix
="$prefix"
10983 prefix
="$acl_final_prefix"
10984 acl_save_exec_prefix
="$exec_prefix"
10985 exec_prefix
="$acl_final_exec_prefix"
10987 exec_prefix
="$acl_save_exec_prefix"
10988 prefix
="$acl_save_prefix"
10990 if test "X$x" = "X$element"; then
10995 if test -z "$haveit"; then
10996 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11001 echo "$as_me:$LINENO: checking for iconv" >&5
11002 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11003 if test "${am_cv_func_iconv+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 am_cv_func_iconv
="no, consider installing GNU libiconv"
11009 cat >conftest.
$ac_ext <<_ACEOF
11012 cat confdefs.h
>>conftest.
$ac_ext
11013 cat >>conftest.
$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11015 #include <stdlib.h>
11020 iconv_t cd = iconv_open("","");
11021 iconv(cd,NULL,NULL,NULL,NULL);
11027 rm -f conftest.
$ac_objext conftest
$ac_exeext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>conftest.er1
11031 grep -v '^ *+' conftest.er1
>conftest.err
11033 cat conftest.err
>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try
='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try
='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 am_cv_func_iconv
=yes
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.
$ac_ext >&5
11055 rm -f conftest.err conftest.
$ac_objext \
11056 conftest
$ac_exeext conftest.
$ac_ext
11057 if test "$am_cv_func_iconv" != yes; then
11058 am_save_LIBS
="$LIBS"
11059 LIBS
="$LIBS $LIBICONV"
11060 cat >conftest.
$ac_ext <<_ACEOF
11063 cat confdefs.h
>>conftest.
$ac_ext
11064 cat >>conftest.
$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066 #include <stdlib.h>
11071 iconv_t cd = iconv_open("","");
11072 iconv(cd,NULL,NULL,NULL,NULL);
11078 rm -f conftest.
$ac_objext conftest
$ac_exeext
11079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11080 (eval $ac_link) 2>conftest.er1
11082 grep -v '^ *+' conftest.er1
>conftest.err
11084 cat conftest.err
>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } &&
11087 { ac_try
='test -z "$ac_c_werror_flag"
11088 || test ! -s conftest.err'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try
='test -s conftest$ac_exeext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 am_cv_lib_iconv
=yes
11101 am_cv_func_iconv
=yes
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.
$ac_ext >&5
11107 rm -f conftest.err conftest.
$ac_objext \
11108 conftest
$ac_exeext conftest.
$ac_ext
11109 LIBS
="$am_save_LIBS"
11113 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11114 echo "${ECHO_T}$am_cv_func_iconv" >&6
11115 if test "$am_cv_func_iconv" = yes; then
11117 cat >>confdefs.h
<<\_ACEOF
11118 #define HAVE_ICONV 1
11122 if test "$am_cv_lib_iconv" = yes; then
11123 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11124 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11125 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11126 echo "${ECHO_T}$LIBICONV" >&6
11128 CPPFLAGS
="$am_save_CPPFLAGS"
11135 if test "$am_cv_func_iconv" = yes; then
11136 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11137 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11138 if test "${am_cv_proto_iconv+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 cat >conftest.
$ac_ext <<_ACEOF
11145 cat confdefs.h
>>conftest.
$ac_ext
11146 cat >>conftest.
$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11149 #include <stdlib.h>
11155 #if defined(__STDC__) || defined(__cplusplus)
11156 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11169 rm -f conftest.
$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171 (eval $ac_compile) 2>conftest.er1
11173 grep -v '^ *+' conftest.er1
>conftest.err
11175 cat conftest.err
>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try
='test -z "$ac_c_werror_flag"
11179 || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try
='test -s conftest.$ac_objext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 am_cv_proto_iconv_arg1
=""
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.
$ac_ext >&5
11196 am_cv_proto_iconv_arg1
="const"
11198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11199 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);"
11202 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11203 echo "$as_me:$LINENO: result: ${ac_t:-
11204 }$am_cv_proto_iconv" >&5
11205 echo "${ECHO_T}${ac_t:-
11206 }$am_cv_proto_iconv" >&6
11208 cat >>confdefs.h
<<_ACEOF
11209 #define ICONV_CONST $am_cv_proto_iconv_arg1
11214 # Until we have in-tree GNU iconv:
11219 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11220 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11221 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 cat >conftest.
$ac_ext <<_ACEOF
11227 cat confdefs.h
>>conftest.
$ac_ext
11228 cat >>conftest.
$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11230 #include <locale.h>
11239 rm -f conftest.
$ac_objext conftest
$ac_exeext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241 (eval $ac_link) 2>conftest.er1
11243 grep -v '^ *+' conftest.er1
>conftest.err
11245 cat conftest.err
>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try
='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try
='test -s conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 am_cv_val_LC_MESSAGES
=yes
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.
$ac_ext >&5
11266 am_cv_val_LC_MESSAGES
=no
11268 rm -f conftest.err conftest.
$ac_objext \
11269 conftest
$ac_exeext conftest.
$ac_ext
11271 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11272 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11273 if test $am_cv_val_LC_MESSAGES = yes; then
11275 cat >>confdefs.h
<<\_ACEOF
11276 #define HAVE_LC_MESSAGES 1
11283 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11284 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11285 if test "${am_cv_langinfo_codeset+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 cat >conftest.
$ac_ext <<_ACEOF
11291 cat confdefs.h
>>conftest.
$ac_ext
11292 cat >>conftest.
$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 #include <langinfo.h>
11298 char* cs = nl_langinfo(CODESET);
11303 rm -f conftest.
$ac_objext conftest
$ac_exeext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305 (eval $ac_link) 2>conftest.er1
11307 grep -v '^ *+' conftest.er1
>conftest.err
11309 cat conftest.err
>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try
='test -z "$ac_c_werror_flag"
11313 || test ! -s conftest.err'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try
='test -s conftest$ac_exeext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 am_cv_langinfo_codeset
=yes
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.
$ac_ext >&5
11330 am_cv_langinfo_codeset
=no
11332 rm -f conftest.err conftest.
$ac_objext \
11333 conftest
$ac_exeext conftest.
$ac_ext
11336 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11337 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11338 if test $am_cv_langinfo_codeset = yes; then
11340 cat >>confdefs.h
<<\_ACEOF
11341 #define HAVE_LANGINFO_CODESET 1
11347 # We will need to find libiberty.h and ansidecl.h
11348 saved_CFLAGS
="$CFLAGS"
11349 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11389 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11390 strsignal strstr strverscmp \
11391 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11392 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
11394 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11395 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11396 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11397 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 cat >conftest.
$ac_ext <<_ACEOF
11403 cat confdefs.h
>>conftest.
$ac_ext
11404 cat >>conftest.
$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11407 #define $ac_tr_decl 1
11409 #include "ansidecl.h"
11410 #include "system.h"
11416 char *(*pfn) = (char *(*)) $ac_func ;
11422 rm -f conftest.
$ac_objext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11424 (eval $ac_compile) 2>conftest.er1
11426 grep -v '^ *+' conftest.er1
>conftest.err
11428 cat conftest.err
>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } &&
11431 { ac_try
='test -z "$ac_c_werror_flag"
11432 || test ! -s conftest.err'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try
='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 eval "gcc_cv_have_decl_$ac_func=yes"
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.
$ac_ext >&5
11449 eval "gcc_cv_have_decl_$ac_func=no"
11451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11454 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11455 echo "$as_me:$LINENO: result: yes" >&5
11456 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11457 #define $ac_tr_decl 1
11461 echo "$as_me:$LINENO: result: no" >&5
11462 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11463 #define $ac_tr_decl 0
11474 for ac_func
in getrlimit setrlimit getrusage
11476 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11477 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11478 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11479 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 cat >conftest.
$ac_ext <<_ACEOF
11485 cat confdefs.h
>>conftest.
$ac_ext
11486 cat >>conftest.
$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11489 #define $ac_tr_decl 1
11491 #include "ansidecl.h"
11492 #include "system.h"
11493 #ifdef HAVE_SYS_RESOURCE_H
11494 #include <sys/resource.h>
11502 char *(*pfn) = (char *(*)) $ac_func ;
11508 rm -f conftest.
$ac_objext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510 (eval $ac_compile) 2>conftest.er1
11512 grep -v '^ *+' conftest.er1
>conftest.err
11514 cat conftest.err
>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try
='test -z "$ac_c_werror_flag"
11518 || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try
='test -s conftest.$ac_objext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 eval "gcc_cv_have_decl_$ac_func=yes"
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.
$ac_ext >&5
11535 eval "gcc_cv_have_decl_$ac_func=no"
11537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11540 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11541 echo "$as_me:$LINENO: result: yes" >&5
11542 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11543 #define $ac_tr_decl 1
11547 echo "$as_me:$LINENO: result: no" >&5
11548 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11549 #define $ac_tr_decl 0
11557 cat >conftest.
$ac_ext <<_ACEOF
11560 cat confdefs.h
>>conftest.
$ac_ext
11561 cat >>conftest.
$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11564 #include "ansidecl.h"
11565 #include "system.h"
11566 #ifdef HAVE_SYS_RESOURCE_H
11567 #include <sys/resource.h>
11578 rm -f conftest.
$ac_objext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11580 (eval $ac_compile) 2>conftest.er1
11582 grep -v '^ *+' conftest.er1
>conftest.err
11584 cat conftest.err
>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
11587 { ac_try
='test -z "$ac_c_werror_flag"
11588 || test ! -s conftest.err'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try
='test -s conftest.$ac_objext'
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.
$ac_ext >&5
11606 cat >>confdefs.h
<<\_ACEOF
11607 #define rlim_t long
11611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11613 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11614 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11615 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11616 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11618 for ac_func
in ldgetname
11620 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11621 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11622 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11623 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 cat >conftest.
$ac_ext <<_ACEOF
11629 cat confdefs.h
>>conftest.
$ac_ext
11630 cat >>conftest.
$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 #define $ac_tr_decl 1
11635 #include "ansidecl.h"
11636 #include "system.h"
11637 #ifdef HAVE_LDFCN_H
11648 char *(*pfn) = (char *(*)) $ac_func ;
11654 rm -f conftest.
$ac_objext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11656 (eval $ac_compile) 2>conftest.er1
11658 grep -v '^ *+' conftest.er1
>conftest.err
11660 cat conftest.err
>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try
='test -z "$ac_c_werror_flag"
11664 || test ! -s conftest.err'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; } &&
11670 { ac_try
='test -s conftest.$ac_objext'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 eval "gcc_cv_have_decl_$ac_func=yes"
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.
$ac_ext >&5
11681 eval "gcc_cv_have_decl_$ac_func=no"
11683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11686 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11687 echo "$as_me:$LINENO: result: yes" >&5
11688 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11689 #define $ac_tr_decl 1
11693 echo "$as_me:$LINENO: result: no" >&5
11694 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11695 #define $ac_tr_decl 0
11704 for ac_func
in times
11706 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11707 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11708 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11709 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 cat >conftest.
$ac_ext <<_ACEOF
11715 cat confdefs.h
>>conftest.
$ac_ext
11716 cat >>conftest.
$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11719 #define $ac_tr_decl 1
11721 #include "ansidecl.h"
11722 #include "system.h"
11723 #ifdef HAVE_SYS_TIMES_H
11724 #include <sys/times.h>
11732 char *(*pfn) = (char *(*)) $ac_func ;
11738 rm -f conftest.
$ac_objext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>conftest.er1
11742 grep -v '^ *+' conftest.er1
>conftest.err
11744 cat conftest.err
>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try
='test -z "$ac_c_werror_flag"
11748 || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try
='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 eval "gcc_cv_have_decl_$ac_func=yes"
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.
$ac_ext >&5
11765 eval "gcc_cv_have_decl_$ac_func=no"
11767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11770 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11771 echo "$as_me:$LINENO: result: yes" >&5
11772 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11773 #define $ac_tr_decl 1
11777 echo "$as_me:$LINENO: result: no" >&5
11778 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11779 #define $ac_tr_decl 0
11788 for ac_func
in sigaltstack
11790 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11791 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11792 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11793 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 cat >conftest.
$ac_ext <<_ACEOF
11799 cat confdefs.h
>>conftest.
$ac_ext
11800 cat >>conftest.
$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11803 #define $ac_tr_decl 1
11805 #include "ansidecl.h"
11806 #include "system.h"
11807 #include <signal.h>
11814 char *(*pfn) = (char *(*)) $ac_func ;
11820 rm -f conftest.
$ac_objext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822 (eval $ac_compile) 2>conftest.er1
11824 grep -v '^ *+' conftest.er1
>conftest.err
11826 cat conftest.err
>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try
='test -z "$ac_c_werror_flag"
11830 || test ! -s conftest.err'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; } &&
11836 { ac_try
='test -s conftest.$ac_objext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 eval "gcc_cv_have_decl_$ac_func=yes"
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.
$ac_ext >&5
11847 eval "gcc_cv_have_decl_$ac_func=no"
11849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11852 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11853 echo "$as_me:$LINENO: result: yes" >&5
11854 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11855 #define $ac_tr_decl 1
11859 echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11861 #define $ac_tr_decl 0
11869 # More time-related stuff.
11870 echo "$as_me:$LINENO: checking for struct tms" >&5
11871 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11872 if test "${ac_cv_struct_tms+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 cat >conftest.
$ac_ext <<_ACEOF
11879 cat confdefs.h
>>conftest.
$ac_ext
11880 cat >>conftest.
$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11883 #include "ansidecl.h"
11884 #include "system.h"
11885 #ifdef HAVE_SYS_TIMES_H
11886 #include <sys/times.h>
11897 rm -f conftest.
$ac_objext
11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899 (eval $ac_compile) 2>conftest.er1
11901 grep -v '^ *+' conftest.er1
>conftest.err
11903 cat conftest.err
>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } &&
11906 { ac_try
='test -z "$ac_c_werror_flag"
11907 || test ! -s conftest.err'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; } &&
11913 { ac_try
='test -s conftest.$ac_objext'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11919 ac_cv_struct_tms
=yes
11921 echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.
$ac_ext >&5
11924 ac_cv_struct_tms
=no
11926 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11928 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11929 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11930 if test $ac_cv_struct_tms = yes; then
11932 cat >>confdefs.h
<<\_ACEOF
11933 #define HAVE_STRUCT_TMS 1
11938 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11939 # revisit after autoconf 2.50.
11940 echo "$as_me:$LINENO: checking for clock_t" >&5
11941 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11942 if test "${gcc_cv_type_clock_t+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.
$ac_ext <<_ACEOF
11949 cat confdefs.h
>>conftest.
$ac_ext
11950 cat >>conftest.
$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11953 #include "ansidecl.h"
11954 #include "system.h"
11964 rm -f conftest.
$ac_objext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11968 grep -v '^ *+' conftest.er1
>conftest.err
11970 cat conftest.err
>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try
='test -z "$ac_c_werror_flag"
11974 || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try
='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 gcc_cv_type_clock_t
=yes
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.
$ac_ext >&5
11991 gcc_cv_type_clock_t
=no
11993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11995 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11996 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11997 if test $gcc_cv_type_clock_t = yes; then
11999 cat >>confdefs.h
<<\_ACEOF
12000 #define HAVE_CLOCK_T 1
12005 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12006 CFLAGS
="$saved_CFLAGS"
12008 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12009 if test "${enable_initfini_array+set}" = set; then
12010 enableval
="$enable_initfini_array"
12014 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12015 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12016 if test "${gcc_cv_initfini_array+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 if test "$cross_compiling" = yes; then
12020 gcc_cv_initfini_array
=no
12022 cat >conftest.
$ac_ext <<_ACEOF
12025 cat confdefs.h
>>conftest.
$ac_ext
12026 cat >>conftest.
$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12030 int main (void) { return x; }
12031 int foo (void) { x = 0; }
12032 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12034 rm -f conftest
$ac_exeext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036 (eval $ac_link) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 gcc_cv_initfini_array
=yes
12047 echo "$as_me: program exited with status $ac_status" >&5
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.
$ac_ext >&5
12051 ( exit $ac_status )
12052 gcc_cv_initfini_array
=no
12054 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12057 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12058 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12059 enable_initfini_array
=$gcc_cv_initfini_array
12062 if test $enable_initfini_array = yes; then
12064 cat >>confdefs.h
<<\_ACEOF
12065 #define HAVE_INITFINI_ARRAY 1
12070 # mkdir takes a single argument on some systems.
12071 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12072 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12073 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 cat >conftest.
$ac_ext <<_ACEOF
12079 cat confdefs.h
>>conftest.
$ac_ext
12080 cat >>conftest.
$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12083 #include <sys/types.h>
12084 #ifdef HAVE_SYS_STAT_H
12085 # include <sys/stat.h>
12087 #ifdef HAVE_UNISTD_H
12088 # include <unistd.h>
12090 #ifdef HAVE_DIRECT_H
12091 # include <direct.h>
12101 rm -f conftest.
$ac_objext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103 (eval $ac_compile) 2>conftest.er1
12105 grep -v '^ *+' conftest.er1
>conftest.err
12107 cat conftest.err
>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try
='test -z "$ac_c_werror_flag"
12111 || test ! -s conftest.err'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try
='test -s conftest.$ac_objext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 gcc_cv_mkdir_takes_one_arg
=no
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.
$ac_ext >&5
12128 gcc_cv_mkdir_takes_one_arg
=yes
12130 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12132 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12133 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12134 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12136 cat >>confdefs.h
<<\_ACEOF
12137 #define MKDIR_TAKES_ONE_ARG 1
12149 # With Setjmp/Longjmp based exception handling.
12150 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12151 if test "${enable_sjlj_exceptions+set}" = set; then
12152 enableval
="$enable_sjlj_exceptions"
12153 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12155 cat >>confdefs.h
<<_ACEOF
12156 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12161 # For platforms with the unwind ABI which includes an unwind library,
12162 # libunwind, we can choose to use the system libunwind.
12164 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12165 if test "${with_system_libunwind+set}" = set; then
12166 withval
="$with_system_libunwind"
12170 # --------------------------------------------------------
12171 # Build, host, and target specific configuration fragments
12172 # --------------------------------------------------------
12174 # Collect build-machine-specific information.
12175 .
${srcdir}/config.build
12177 # Collect host-machine-specific information.
12178 .
${srcdir}/config.
host
12182 # Collect target-machine-specific information.
12183 .
${srcdir}/config.gcc
12185 extra_objs
="${host_extra_objs} ${extra_objs}"
12186 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12188 # Default the target-machine variables that were not explicitly set.
12189 if test x
"$tm_file" = x
12190 then tm_file
=$cpu_type/$cpu_type.h
; fi
12192 if test x
"$extra_headers" = x
12193 then extra_headers
=; fi
12195 if test x
$md_file = x
12196 then md_file
=$cpu_type/$cpu_type.md
; fi
12198 if test x
$out_file = x
12199 then out_file
=$cpu_type/$cpu_type.c
; fi
12201 if test x
"$tmake_file" = x
12202 then tmake_file
=$cpu_type/t-
$cpu_type
12205 if test x
"$dwarf2" = xyes
12206 then tm_file
="$tm_file tm-dwarf2.h"
12209 # Say what files are being used for the output code and MD file.
12210 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12211 echo "Using \`$srcdir/config/$md_file' as machine description file."
12213 # If any of the xm_file variables contain nonexistent files, warn
12214 # about them and drop them.
12217 for x
in $build_xm_file; do
12218 if test -f $srcdir/config
/$x
12220 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12221 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12224 build_xm_file
="$bx"
12227 for x
in $host_xm_file; do
12228 if test -f $srcdir/config
/$x
12230 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12231 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12237 for x
in $xm_file; do
12238 if test -f $srcdir/config
/$x
12240 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12241 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12247 for f
in $tm_file; do
12250 if test $count = ax
; then
12251 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12253 echo "Using the following target machine macro files:"
12254 for f
in $tm_file; do
12255 echo " $srcdir/config/$f"
12259 if test x
$need_64bit_hwint = xyes
; then
12261 cat >>confdefs.h
<<\_ACEOF
12262 #define NEED_64BIT_HOST_WIDE_INT 1
12267 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12269 cat >>confdefs.h
<<\_ACEOF
12270 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12276 for f
in $host_xm_file; do
12279 if test $count = a
; then
12281 elif test $count = ax
; then
12282 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12284 echo "Using the following host machine macro files:"
12285 for f
in $host_xm_file; do
12286 echo " $srcdir/config/$f"
12289 echo "Using ${out_host_hook_obj} for host machine hooks."
12291 if test "$host_xm_file" != "$build_xm_file"; then
12293 for f
in $build_xm_file; do
12296 if test $count = a
; then
12298 elif test $count = ax
; then
12299 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12301 echo "Using the following build machine macro files:"
12302 for f
in $build_xm_file; do
12303 echo " $srcdir/config/$f"
12310 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12311 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12312 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 cat >conftest.
$ac_ext <<_ACEOF
12317 #include <sys/signal.h>
12318 #include <ucontext.h>
12319 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12322 rm -f conftest.
$ac_objext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12324 (eval $ac_compile) 2>conftest.er1
12326 grep -v '^ *+' conftest.er1
>conftest.err
12328 cat conftest.err
>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
12331 { ac_try
='test -z "$ac_c_werror_flag"
12332 || test ! -s conftest.err'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try
='test -s conftest.$ac_objext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 gcc_cv_mcontext_underscores
=no
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.
$ac_ext >&5
12349 gcc_cv_mcontext_underscores
=yes
12351 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12353 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12354 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12355 if test $gcc_cv_mcontext_underscores = yes; then
12357 cat >>confdefs.h
<<\_ACEOF
12358 #define HAS_MCONTEXT_T_UNDERSCORES
12369 # Check if a valid thread package
12370 case ${enable_threads} in
12373 target_thread_file
='single'
12377 target_thread_file
='single'
12379 aix | dce | gnat | irix | posix | posix95 | rtems | \
12380 single | solaris | vxworks | win32
)
12381 target_thread_file
=${enable_threads}
12384 echo "${enable_threads} is an unknown thread package" 1>&2
12389 if test x
${thread_file} = x
; then
12390 # No thread file set by target-specific clauses in config.gcc,
12391 # so use file chosen by default logic above
12392 thread_file
=${target_thread_file}
12395 # Make gthr-default.h if we have a thread file.
12397 if test $thread_file != single
; then
12398 rm -f gthr-default.h
12399 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12400 gthread_flags
=-DHAVE_GTHR_DEFAULT
12409 if test x
$enable___cxa_atexit = xyes || \
12410 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12411 if test x
$host = x
$target; then
12412 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12413 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12414 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 cat >conftest.
$ac_ext <<_ACEOF
12420 cat confdefs.h
>>conftest.
$ac_ext
12421 cat >>conftest.
$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12425 #define __cxa_atexit innocuous___cxa_atexit
12427 /* System header to define __stub macros and hopefully few prototypes,
12428 which can conflict with char __cxa_atexit (); below.
12429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12430 <limits.h> exists even on freestanding compilers. */
12433 # include <limits.h>
12435 # include <assert.h>
12438 #undef __cxa_atexit
12440 /* Override any gcc2 internal prototype to avoid an error. */
12445 /* We use char because int might match the return type of a gcc2
12446 builtin and then its argument prototype would still apply. */
12447 char __cxa_atexit ();
12448 /* The GNU C library defines this for functions which it implements
12449 to always fail with ENOSYS. Some functions are actually named
12450 something starting with __ and the normal name is an alias. */
12451 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12454 char (*f) () = __cxa_atexit;
12463 return f != __cxa_atexit;
12468 rm -f conftest.
$ac_objext conftest
$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>conftest.er1
12472 grep -v '^ *+' conftest.er1
>conftest.err
12474 cat conftest.err
>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try
='test -z "$ac_c_werror_flag"
12478 || test ! -s conftest.err'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try
='test -s conftest$ac_exeext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 ac_cv_func___cxa_atexit
=yes
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.
$ac_ext >&5
12495 ac_cv_func___cxa_atexit
=no
12497 rm -f conftest.err conftest.
$ac_objext \
12498 conftest
$ac_exeext conftest.
$ac_ext
12500 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12501 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12502 if test $ac_cv_func___cxa_atexit = yes; then
12505 echo "__cxa_atexit can't be enabled on this target"
12509 # We can't check for __cxa_atexit when building a cross, so assume
12513 if test x
$use_cxa_atexit = xyes
; then
12515 cat >>confdefs.h
<<\_ACEOF
12516 #define DEFAULT_USE_CXA_ATEXIT 2
12522 # Look for a file containing extra machine modes.
12523 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12524 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12527 cat >>confdefs.h
<<_ACEOF
12528 #define EXTRA_MODES_FILE "config/$extra_modes"
12533 # Convert extra_options into a form suitable for Makefile use.
12535 for f
in $extra_options; do
12536 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12540 # auto-host.h is the file containing items generated by autoconf and is
12541 # the first file included by config.h.
12542 # If host=build, it is correct to have bconfig include auto-host.h
12543 # as well. If host!=build, we are in error and need to do more
12544 # work to find out the build config parameters.
12545 if test x
$host = x
$build
12547 build_auto
=auto-host.h
12549 # We create a subdir, then run autoconf in the subdir.
12550 # To prevent recursion we set host and build for the new
12551 # invocation of configure to the build for this invocation
12558 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12559 *) realsrcdir
=..
/${srcdir};;
12561 saved_CFLAGS
="${CFLAGS}"
12562 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12563 ${realsrcdir}/configure \
12564 --enable-languages=${enable_languages-all} \
12565 --target=$target_alias --host=$build_alias --build=$build_alias
12566 CFLAGS
="${saved_CFLAGS}"
12568 # We just finished tests for the build machine, so rename
12569 # the file auto-build.h in the gcc directory.
12570 mv auto-host.h ..
/auto-build.h
12573 build_auto
=auto-build.h
12577 tm_file
="${tm_file} defaults.h"
12578 tm_p_file
="${tm_p_file} tm-preds.h"
12579 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12580 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12581 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12582 # put this back in temporarily.
12583 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12589 # Compile in configure arguments.
12590 if test -f configargs.h
; then
12591 # Being re-configured.
12592 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12593 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12595 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12598 # Double all backslashes and backslash all quotes to turn
12599 # gcc_config_arguments into a C string.
12600 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12601 $gcc_config_arguments
12603 gcc_config_arguments_str
=`cat conftest.out`
12606 cat > configargs.h
<<EOF
12607 /* Generated automatically. */
12608 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12609 static const char thread_model[] = "$thread_file";
12611 static const struct {
12612 const char *name, *value;
12613 } configure_default_options[] = $configure_default_options;
12616 # Internationalization
12617 # If we haven't got the data from the intl directory,
12618 # assume NLS is disabled.
12627 if test -f ..
/intl
/config.intl
; then
12628 . ..
/intl
/config.intl
12630 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12631 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12632 if test x
"$USE_NLS" != xyes
; then
12633 echo "$as_me:$LINENO: result: no" >&5
12634 echo "${ECHO_T}no" >&6
12636 echo "$as_me:$LINENO: result: yes" >&5
12637 echo "${ECHO_T}yes" >&6
12639 cat >>confdefs.h
<<\_ACEOF
12640 #define ENABLE_NLS 1
12644 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12645 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12646 # Look for .po and .gmo files in the source directory.
12649 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12650 # If there aren't any .gmo files the shell will give us the
12651 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12653 case "$cat" in *\
**)
12656 # The quadruple backslash is collapsed to a double backslash
12657 # by the backticks, then collapsed again by the double quotes,
12658 # leaving us with one backslash in the sed expression (right
12659 # before the dot that mustn't act as a wildcard).
12660 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12661 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12662 # The user is allowed to set LINGUAS to a list of languages to
12663 # install catalogs for. If it's empty that means "all of them."
12664 if test "x$LINGUAS" = x
; then
12665 CATALOGS
="$CATALOGS $cat"
12666 XLINGUAS
="$XLINGUAS $lang"
12668 case "$LINGUAS" in *$lang*)
12669 CATALOGS
="$CATALOGS $cat"
12670 XLINGUAS
="$XLINGUAS $lang"
12675 LINGUAS
="$XLINGUAS"
12676 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12677 echo "${ECHO_T}$LINGUAS" >&6
12690 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12691 # -liconv on the link line twice.
12692 case "$LIBINTL" in *$LIBICONV*)
12696 # Check whether --enable-secureplt or --disable-secureplt was given.
12697 if test "${enable_secureplt+set}" = set; then
12698 enableval
="$enable_secureplt"
12702 # Windows32 Registry support for specifying GCC installation paths.
12703 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12704 if test "${enable_win32_registry+set}" = set; then
12705 enableval
="$enable_win32_registry"
12710 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12711 if test "x$enable_win32_registry" != xno
; then
12712 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12713 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12714 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 ac_func_search_save_LIBS
=$LIBS
12718 ac_cv_search_RegOpenKeyExA
=no
12719 cat >conftest.
$ac_ext <<_ACEOF
12722 cat confdefs.h
>>conftest.
$ac_ext
12723 cat >>conftest.
$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12726 /* Override any gcc2 internal prototype to avoid an error. */
12730 /* We use char because int might match the return type of a gcc2
12731 builtin and then its argument prototype would still apply. */
12732 char RegOpenKeyExA ();
12741 rm -f conftest.
$ac_objext conftest
$ac_exeext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12743 (eval $ac_link) 2>conftest.er1
12745 grep -v '^ *+' conftest.er1
>conftest.err
12747 cat conftest.err
>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try
='test -z "$ac_c_werror_flag"
12751 || test ! -s conftest.err'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try
='test -s conftest$ac_exeext'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 ac_cv_search_RegOpenKeyExA
="none required"
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.
$ac_ext >&5
12769 rm -f conftest.err conftest.
$ac_objext \
12770 conftest
$ac_exeext conftest.
$ac_ext
12771 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12772 for ac_lib
in advapi32
; do
12773 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12774 cat >conftest.
$ac_ext <<_ACEOF
12777 cat confdefs.h
>>conftest.
$ac_ext
12778 cat >>conftest.
$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12781 /* Override any gcc2 internal prototype to avoid an error. */
12785 /* We use char because int might match the return type of a gcc2
12786 builtin and then its argument prototype would still apply. */
12787 char RegOpenKeyExA ();
12796 rm -f conftest.
$ac_objext conftest
$ac_exeext
12797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12798 (eval $ac_link) 2>conftest.er1
12800 grep -v '^ *+' conftest.er1
>conftest.err
12802 cat conftest.err
>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try
='test -z "$ac_c_werror_flag"
12806 || test ! -s conftest.err'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; } &&
12812 { ac_try
='test -s conftest$ac_exeext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.
$ac_ext >&5
12825 rm -f conftest.err conftest.
$ac_objext \
12826 conftest
$ac_exeext conftest.
$ac_ext
12829 LIBS
=$ac_func_search_save_LIBS
12831 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12832 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12833 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12834 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12837 enable_win32_registry
=no
12842 if test "x$enable_win32_registry" != xno
; then
12844 cat >>confdefs.h
<<\_ACEOF
12845 #define ENABLE_WIN32_REGISTRY 1
12849 if test "x$enable_win32_registry" != xyes \
12850 && test "x$enable_win32_registry" != x
; then
12852 cat >>confdefs.h
<<_ACEOF
12853 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12861 # Get an absolute path to the GCC top-level source directory
12862 holddir
=`${PWDCMD-pwd}`
12864 topdir
=`${PWDCMD-pwd}`
12867 # Conditionalize the makefile for this host machine.
12869 for f
in ${host_xmake_file}
12871 if test -f ${srcdir}/config
/$f
12873 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12877 # Conditionalize the makefile for this target machine.
12879 for f
in ${tmake_file}
12881 if test -f ${srcdir}/config
/$f
12883 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12886 tmake_file
="${tmake_file_}"
12888 # If the host doesn't support symlinks, modify CC in
12889 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12890 # Otherwise, we can use "CC=$(CC)".
12894 cc_set_by_configure
="\$(CC)"
12895 quoted_cc_set_by_configure
="\$(CC)"
12896 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12897 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12900 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12901 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12902 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12903 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12907 # This is a terrible hack which will go away some day.
12908 host_cc_for_libada
=${CC}
12911 out_object_file
=`basename $out_file .c`.o
12913 tm_file_list
="options.h"
12914 tm_include_list
="options.h"
12915 for f
in $tm_file; do
12918 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12919 tm_include_list
="${tm_include_list} $f"
12922 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12923 tm_include_list
="${tm_include_list} config/$f"
12930 for f
in $tm_p_file; do
12933 tm_p_file_list
="${tm_p_file_list} $f"
12934 tm_p_include_list
="${tm_p_include_list} $f"
12937 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12938 tm_p_include_list
="${tm_p_include_list} config/$f"
12944 for f
in $xm_file; do
12947 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12948 xm_include_list
="${xm_include_list} $f"
12951 xm_file_list
="${xm_file_list} $f"
12952 xm_include_list
="${xm_include_list} $f"
12955 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12956 xm_include_list
="${xm_include_list} config/$f"
12962 host_xm_include_list
=
12963 for f
in $host_xm_file; do
12966 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12967 host_xm_include_list
="${host_xm_include_list} $f"
12970 host_xm_file_list
="${host_xm_file_list} $f"
12971 host_xm_include_list
="${host_xm_include_list} $f"
12974 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12975 host_xm_include_list
="${host_xm_include_list} config/$f"
12980 build_xm_file_list
=
12981 for f
in $build_xm_file; do
12984 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12985 build_xm_include_list
="${build_xm_include_list} $f"
12987 auto-build.h | auto-host.h
)
12988 build_xm_file_list
="${build_xm_file_list} $f"
12989 build_xm_include_list
="${build_xm_include_list} $f"
12992 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12993 build_xm_include_list
="${build_xm_include_list} config/$f"
12998 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12999 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13002 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13004 if test "x$with_build_sysroot" != x
; then
13005 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13007 # This value is used, even on a native system, because
13008 # CROSS_SYSTEM_HEADER_DIR is just
13009 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13010 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13013 if test x
$host != x
$target
13015 CROSS
="-DCROSS_COMPILE"
13017 SYSTEM_HEADER_DIR
=$build_system_header_dir
13018 case "$host","$target" in
13019 # Darwin crosses can use the host system's libraries and headers,
13020 # because of the fat library support. Of course, it must be the
13021 # same version of Darwin on both sides. Allow the user to
13022 # just say --target=foo-darwin without a version number to mean
13023 # "the version on this system".
13024 *-*-darwin*,*-*-darwin*)
13025 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13026 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13027 if test $hostos = $targetos -o $targetos = darwin
; then
13029 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13034 i?
86-*-*,x86_64-
*-* \
13035 | powerpc
*-*-*,powerpc64
*-*-*)
13036 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13038 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13039 SYSTEM_HEADER_DIR
=$build_system_header_dir
13042 # If this is a cross-compiler that does not
13043 # have its own set of headers then define
13046 # If this is using newlib, without having the headers available now,
13047 # then define inhibit_libc in LIBGCC2_CFLAGS.
13048 # This prevents libgcc2 from containing any code which requires libc
13051 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13052 test x
$with_newlib = xyes
; } &&
13053 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13058 # When building gcc with a cross-compiler, we need to adjust things so
13059 # that the generator programs are still built with the native compiler.
13060 # Also, we cannot run fixincludes or fix-header.
13062 # These are the normal (build=host) settings:
13063 CC_FOR_BUILD
='$(CC)'
13064 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13065 STMP_FIXINC
=stmp-fixinc
13067 # Possibly disable fixproto, on a per-target basis.
13068 case ${use_fixproto} in
13073 STMP_FIXPROTO
=stmp-fixproto
13078 # And these apply if build != host, or we are generating coverage data
13079 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13081 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13083 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13084 if test "x$STMP_FIXPROTO" != x
; then
13085 STMP_FIXPROTO
=stmp-install-fixproto
13090 # Expand extra_headers to include complete path.
13091 # This substitutes for lots of t-* files.
13092 extra_headers_list
=
13093 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13094 for file in ${extra_headers} ; do
13095 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13098 # Define collect2 in Makefile.
13099 case $host_can_use_collect2 in
13101 *) collect2
='collect2$(exeext)' ;;
13105 # Add a definition of USE_COLLECT2 if system wants one.
13106 case $use_collect2 in
13107 no
) use_collect2
= ;;
13110 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13111 xm_defines
="${xm_defines} USE_COLLECT2"
13112 case $host_can_use_collect2 in
13114 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13115 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13116 { (exit 1); exit 1; }; }
13122 # ---------------------------
13123 # Assembler & linker features
13124 # ---------------------------
13126 # Identify the assembler which will work hand-in-glove with the newly
13127 # built GCC, so that we can examine its features. This is the assembler
13128 # which will be driven by the driver program.
13130 # If build != host, and we aren't building gas in-tree, we identify a
13131 # build->target assembler and hope that it will have the same features
13132 # as the host->target assembler we'll be using.
13133 gcc_cv_gas_major_version
=
13134 gcc_cv_gas_minor_version
=
13135 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13137 if test "${gcc_cv_as+set}" = set; then
13141 if test -x "$DEFAULT_ASSEMBLER"; then
13142 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13143 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13144 && test -f ..
/gas
/Makefile \
13145 && test x
$build = x
$host; then
13146 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13147 elif test -x as
$build_exeext; then
13148 # Build using assembler in the current directory.
13149 gcc_cv_as
=.
/as
$build_exeext
13150 elif test -x $AS_FOR_TARGET; then
13151 gcc_cv_as
="$AS_FOR_TARGET"
13153 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13154 set dummy
$AS_FOR_TARGET; ac_word
=$2
13155 echo "$as_me:$LINENO: checking for $ac_word" >&5
13156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13157 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13166 for as_dir
in $PATH
13169 test -z "$as_dir" && as_dir
=.
13170 for ac_exec_ext
in '' $ac_executable_extensions; do
13171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13172 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13182 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13184 if test -n "$gcc_cv_as"; then
13185 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13186 echo "${ECHO_T}$gcc_cv_as" >&6
13188 echo "$as_me:$LINENO: result: no" >&5
13189 echo "${ECHO_T}no" >&6
13196 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13199 echo "$as_me:$LINENO: checking what assembler to use" >&5
13200 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13201 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13202 # Single tree build which includes gas. We want to prefer it
13203 # over whatever linker top-level may have detected, since
13204 # we'll use what we're building after installation anyway.
13205 echo "$as_me:$LINENO: result: newly built gas" >&5
13206 echo "${ECHO_T}newly built gas" >&6
13208 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13209 for f
in $gcc_cv_as_bfd_srcdir/configure \
13210 $gcc_cv_as_gas_srcdir/configure \
13211 $gcc_cv_as_gas_srcdir/configure.
in \
13212 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13213 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13214 if test x
$gcc_cv_gas_version != x
; then
13218 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13219 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13220 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13221 case $gcc_cv_gas_patch_version in
13222 "") gcc_cv_gas_patch_version
="0" ;;
13224 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13225 + $gcc_cv_gas_minor_version \) \* 1000 \
13226 + $gcc_cv_gas_patch_version`
13228 in_tree_gas_is_elf
=no
13229 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13230 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13231 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13233 in_tree_gas_is_elf
=yes
13236 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13237 echo "${ECHO_T}$gcc_cv_as" >&6
13241 # Identify the linker which will work hand-in-glove with the newly
13242 # built GCC, so that we can examine its features. This is the linker
13243 # which will be driven by the driver program.
13245 # If build != host, and we aren't building gas in-tree, we identify a
13246 # build->target linker and hope that it will have the same features
13247 # as the host->target linker we'll be using.
13248 gcc_cv_gld_major_version
=
13249 gcc_cv_gld_minor_version
=
13250 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13251 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13253 if test "${gcc_cv_ld+set}" = set; then
13257 if test -x "$DEFAULT_LINKER"; then
13258 gcc_cv_ld
="$DEFAULT_LINKER"
13259 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13260 && test -f ..
/ld
/Makefile \
13261 && test x
$build = x
$host; then
13262 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13263 elif test -x collect-ld
$build_exeext; then
13264 # Build using linker in the current directory.
13265 gcc_cv_ld
=.
/collect-ld
$build_exeext
13266 elif test -x $LD_FOR_TARGET; then
13267 gcc_cv_ld
="$LD_FOR_TARGET"
13269 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13270 set dummy
$LD_FOR_TARGET; ac_word
=$2
13271 echo "$as_me:$LINENO: checking for $ac_word" >&5
13272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13273 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13282 for as_dir
in $PATH
13285 test -z "$as_dir" && as_dir
=.
13286 for ac_exec_ext
in '' $ac_executable_extensions; do
13287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13288 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13298 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13300 if test -n "$gcc_cv_ld"; then
13301 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13302 echo "${ECHO_T}$gcc_cv_ld" >&6
13304 echo "$as_me:$LINENO: result: no" >&5
13305 echo "${ECHO_T}no" >&6
13312 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13315 echo "$as_me:$LINENO: checking what linker to use" >&5
13316 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13317 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13318 # Single tree build which includes ld. We want to prefer it
13319 # over whatever linker top-level may have detected, since
13320 # we'll use what we're building after installation anyway.
13321 echo "$as_me:$LINENO: result: newly built ld" >&5
13322 echo "${ECHO_T}newly built ld" >&6
13324 in_tree_ld_is_elf
=no
13325 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13326 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13327 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13328 in_tree_ld_is_elf
=yes
13330 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
13332 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13333 if test x
$gcc_cv_gld_version != x
; then
13337 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13338 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13340 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13341 echo "${ECHO_T}$gcc_cv_ld" >&6
13345 # Figure out what nm we will be using.
13346 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13347 if test "${gcc_cv_nm+set}" = set; then
13351 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13352 && test -f ..
/binutils
/Makefile \
13353 && test x
$build = x
$host; then
13354 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13355 elif test -x nm
$build_exeext; then
13356 gcc_cv_nm
=.
/nm
$build_exeext
13357 elif test -x $NM_FOR_TARGET; then
13358 gcc_cv_nm
="$NM_FOR_TARGET"
13360 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13361 set dummy
$NM_FOR_TARGET; ac_word
=$2
13362 echo "$as_me:$LINENO: checking for $ac_word" >&5
13363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13364 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13373 for as_dir
in $PATH
13376 test -z "$as_dir" && as_dir
=.
13377 for ac_exec_ext
in '' $ac_executable_extensions; do
13378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13379 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13391 if test -n "$gcc_cv_nm"; then
13392 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13393 echo "${ECHO_T}$gcc_cv_nm" >&6
13395 echo "$as_me:$LINENO: result: no" >&5
13396 echo "${ECHO_T}no" >&6
13403 echo "$as_me:$LINENO: checking what nm to use" >&5
13404 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13405 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13406 # Single tree build which includes binutils.
13407 echo "$as_me:$LINENO: result: newly built nm" >&5
13408 echo "${ECHO_T}newly built nm" >&6
13411 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13412 echo "${ECHO_T}$gcc_cv_nm" >&6
13416 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13419 # Figure out what objdump we will be using.
13420 if test "${gcc_cv_objdump+set}" = set; then
13424 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13425 && test -f ..
/binutils
/Makefile \
13426 && test x
$build = x
$host; then
13427 # Single tree build which includes binutils.
13428 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13429 elif test -x objdump
$build_exeext; then
13430 gcc_cv_objdump
=.
/objdump
$build_exeext
13431 elif test -x $OBJDUMP_FOR_TARGET; then
13432 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13434 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13435 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13436 echo "$as_me:$LINENO: checking for $ac_word" >&5
13437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13438 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 case $gcc_cv_objdump in
13443 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13447 for as_dir
in $PATH
13450 test -z "$as_dir" && as_dir
=.
13451 for ac_exec_ext
in '' $ac_executable_extensions; do
13452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13453 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13463 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13465 if test -n "$gcc_cv_objdump"; then
13466 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13467 echo "${ECHO_T}$gcc_cv_objdump" >&6
13469 echo "$as_me:$LINENO: result: no" >&5
13470 echo "${ECHO_T}no" >&6
13477 echo "$as_me:$LINENO: checking what objdump to use" >&5
13478 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13479 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13480 # Single tree build which includes binutils.
13481 echo "$as_me:$LINENO: result: newly built objdump" >&5
13482 echo "${ECHO_T}newly built objdump" >&6
13483 elif test x
$gcc_cv_objdump = x
; then
13484 echo "$as_me:$LINENO: result: not found" >&5
13485 echo "${ECHO_T}not found" >&6
13487 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13488 echo "${ECHO_T}$gcc_cv_objdump" >&6
13491 # Figure out what assembler alignment features are present.
13492 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13493 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13494 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 gcc_cv_as_balign_and_p2align
=no
13498 if test $in_tree_gas = yes; then
13499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13500 then gcc_cv_as_balign_and_p2align
=yes
13502 elif test x
$gcc_cv_as != x
; then
13504 .p2align 2' > conftest.s
13505 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }
13512 gcc_cv_as_balign_and_p2align
=yes
13514 echo "configure: failed program was" >&5
13517 rm -f conftest.o conftest.s
13520 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13521 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13522 if test $gcc_cv_as_balign_and_p2align = yes; then
13524 cat >>confdefs.h
<<\_ACEOF
13525 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13530 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13531 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13532 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 gcc_cv_as_max_skip_p2align
=no
13536 if test $in_tree_gas = yes; then
13537 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13538 then gcc_cv_as_max_skip_p2align
=yes
13540 elif test x
$gcc_cv_as != x
; then
13541 echo '.p2align 4,,7' > conftest.s
13542 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }
13549 gcc_cv_as_max_skip_p2align
=yes
13551 echo "configure: failed program was" >&5
13554 rm -f conftest.o conftest.s
13557 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13558 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13559 if test $gcc_cv_as_max_skip_p2align = yes; then
13561 cat >>confdefs.h
<<\_ACEOF
13562 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13567 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13568 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13569 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 gcc_cv_as_subsection_m1
=no
13573 if test $in_tree_gas = yes; then
13574 if test $in_tree_gas_is_elf = yes \
13575 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13576 then gcc_cv_as_subsection_m1
=yes
13578 elif test x
$gcc_cv_as != x
; then
13579 echo 'conftest_label1: .word 0
13581 conftest_label2: .word 0
13582 .previous' > conftest.s
13583 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }
13590 if test x
$gcc_cv_nm != x
; then
13591 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13592 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13593 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13595 else gcc_cv_as_subsection_m1
=yes
13597 rm -f conftest.nm1 conftest.nm2
13600 echo "configure: failed program was" >&5
13603 rm -f conftest.o conftest.s
13606 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13607 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13608 if test $gcc_cv_as_subsection_m1 = yes; then
13610 cat >>confdefs.h
<<\_ACEOF
13611 #define HAVE_GAS_SUBSECTION_ORDERING 1
13616 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13617 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13618 if test "${gcc_cv_as_weak+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 if test $in_tree_gas = yes; then
13623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13624 then gcc_cv_as_weak
=yes
13626 elif test x
$gcc_cv_as != x
; then
13627 echo ' .weak foobar' > conftest.s
13628 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }
13637 echo "configure: failed program was" >&5
13640 rm -f conftest.o conftest.s
13643 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13644 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13645 if test $gcc_cv_as_weak = yes; then
13647 cat >>confdefs.h
<<\_ACEOF
13648 #define HAVE_GAS_WEAK 1
13653 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13654 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13655 if test "${gcc_cv_as_weakref+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 gcc_cv_as_weakref
=no
13659 if test $in_tree_gas = yes; then
13660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13661 then gcc_cv_as_weakref
=yes
13663 elif test x
$gcc_cv_as != x
; then
13664 echo ' .weakref foobar, barfnot' > conftest.s
13665 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }
13672 gcc_cv_as_weakref
=yes
13674 echo "configure: failed program was" >&5
13677 rm -f conftest.o conftest.s
13680 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13681 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13682 if test $gcc_cv_as_weakref = yes; then
13684 cat >>confdefs.h
<<\_ACEOF
13685 #define HAVE_GAS_WEAKREF 1
13690 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13691 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13692 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 gcc_cv_as_nsubspa_comdat
=no
13696 if test $in_tree_gas = yes; then
13697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13698 then gcc_cv_as_nsubspa_comdat
=yes
13700 elif test x
$gcc_cv_as != x
; then
13701 echo ' .SPACE $TEXT$
13702 .NSUBSPA $CODE$,COMDAT' > conftest.s
13703 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }
13710 gcc_cv_as_nsubspa_comdat
=yes
13712 echo "configure: failed program was" >&5
13715 rm -f conftest.o conftest.s
13718 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13719 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13720 if test $gcc_cv_as_nsubspa_comdat = yes; then
13722 cat >>confdefs.h
<<\_ACEOF
13723 #define HAVE_GAS_NSUBSPA_COMDAT 1
13728 # .hidden needs to be supported in both the assembler and the linker,
13729 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13730 # This is irritatingly difficult to feature test for; we have to check the
13731 # date string after the version number. If we've got an in-tree
13732 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13734 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13735 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13736 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13737 if test "${gcc_cv_as_hidden+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 gcc_cv_as_hidden
=no
13741 if test $in_tree_gas = yes; then
13742 if test $in_tree_gas_is_elf = yes \
13743 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13744 then gcc_cv_as_hidden
=yes
13746 elif test x
$gcc_cv_as != x
; then
13747 echo ' .hidden foobar
13748 foobar:' > conftest.s
13749 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }
13756 gcc_cv_as_hidden
=yes
13758 echo "configure: failed program was" >&5
13761 rm -f conftest.o conftest.s
13764 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13765 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13768 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13769 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13770 if test "${gcc_cv_ld_hidden+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 if test $in_tree_ld = yes ; then
13774 gcc_cv_ld_hidden
=no
13775 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 \
13776 && test $in_tree_ld_is_elf = yes; then
13777 gcc_cv_ld_hidden
=yes
13780 gcc_cv_ld_hidden
=yes
13781 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13782 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13783 ld_vers
=`echo $ld_ver | sed -n \
13784 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13785 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13786 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13787 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13788 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13789 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13790 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13791 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'`
13792 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13793 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13794 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13795 if test 0"$ld_date" -lt 20020404; then
13796 if test -n "$ld_date"; then
13797 # If there was date string, but was earlier than 2002-04-04, fail
13798 gcc_cv_ld_hidden
=no
13799 elif test -z "$ld_vers"; then
13800 # If there was no date string nor ld version number, something is wrong
13801 gcc_cv_ld_hidden
=no
13803 test -z "$ld_vers_patch" && ld_vers_patch
=0
13804 if test "$ld_vers_major" -lt 2; then
13805 gcc_cv_ld_hidden
=no
13806 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13807 gcc_cv_ld_hidden
="no"
13808 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13809 gcc_cv_ld_hidden
=no
13814 case "${target}" in
13815 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13816 gcc_cv_ld_hidden
=yes
13819 gcc_cv_ld_hidden
=no
13825 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13826 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13827 libgcc_visibility
=no
13830 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13831 libgcc_visibility
=yes
13833 cat >>confdefs.h
<<\_ACEOF
13834 #define HAVE_GAS_HIDDEN 1
13839 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13840 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13841 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13842 if test "${gcc_cv_as_leb128+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 gcc_cv_as_leb128
=no
13846 if test $in_tree_gas = yes; then
13847 if test $in_tree_gas_is_elf = yes \
13848 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13849 then gcc_cv_as_leb128
=yes
13851 elif test x
$gcc_cv_as != x
; then
13858 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }
13865 # GAS versions before 2.11 do not support uleb128,
13866 # despite appearing to.
13867 # ??? There exists an elf-specific test that will crash
13868 # the assembler. Perhaps it's better to figure out whether
13869 # arbitrary sections are supported and try the test.
13870 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13871 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13872 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13873 as_major
=`echo $as_ver | sed 's/\..*//'`
13874 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13875 if test $as_major -eq 2 && test $as_minor -lt 11
13877 else gcc_cv_as_leb128
=yes
13881 echo "configure: failed program was" >&5
13884 rm -f conftest.o conftest.s
13887 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13888 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13889 if test $gcc_cv_as_leb128 = yes; then
13891 cat >>confdefs.h
<<\_ACEOF
13892 #define HAVE_AS_LEB128 1
13897 # GAS versions up to and including 2.11.0 may mis-optimize
13899 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13900 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13901 if test "${gcc_cv_as_eh_frame+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 gcc_cv_as_eh_frame
=no
13905 if test $in_tree_gas = yes; then
13906 if test $in_tree_gas_is_elf = yes \
13907 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13908 then gcc_cv_as_eh_frame
=yes
13910 elif test x
$gcc_cv_as != x
; then
13917 .section .eh_frame,"aw",@progbits
13919 .4byte .LECIE1-.LSCIE1
13933 .4byte .LEFDE1-.LASFDE1
13935 .4byte .LASFDE1-__FRAME_BEGIN__
13942 .LEFDE1:' > conftest.s
13943 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }
13950 cat > conftest.lit
<<EOF
13951 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13952 0010 01000000 12000000 18000000 00000000 ................
13953 0020 08000000 04080000 0044 .........D
13955 cat > conftest.big
<<EOF
13956 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13957 0010 00000001 00000012 00000018 00000000 ................
13958 0020 00000008 04000000 0844 .........D
13960 # If the assembler didn't choke, and we can objdump,
13961 # and we got the correct data, then succeed.
13962 if test x
$gcc_cv_objdump != x \
13963 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13964 |
tail -3 > conftest.got \
13965 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13966 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13968 gcc_cv_as_eh_frame
=yes
13969 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 gcc_cv_as_eh_frame
=buggy
13977 # Uh oh, what do we do now?
13978 gcc_cv_as_eh_frame
=no
13981 echo "configure: failed program was" >&5
13984 rm -f conftest.o conftest.s
13987 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13988 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13991 if test $gcc_cv_as_eh_frame = buggy
; then
13993 cat >>confdefs.h
<<\_ACEOF
13994 #define USE_AS_TRADITIONAL_FORMAT 1
13999 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14000 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14001 if test "${gcc_cv_as_shf_merge+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 gcc_cv_as_shf_merge
=no
14005 if test $in_tree_gas = yes; then
14006 if test $in_tree_gas_is_elf = yes \
14007 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14008 then gcc_cv_as_shf_merge
=yes
14010 elif test x
$gcc_cv_as != x
; then
14011 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14012 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }
14019 gcc_cv_as_shf_merge
=yes
14021 echo "configure: failed program was" >&5
14024 rm -f conftest.o conftest.s
14027 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14028 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14030 if test $gcc_cv_as_shf_merge = no
; then
14031 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14032 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14033 if test "${gcc_cv_as_shf_merge+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 gcc_cv_as_shf_merge
=no
14037 if test $in_tree_gas = yes; then
14038 if test $in_tree_gas_is_elf = yes \
14039 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14040 then gcc_cv_as_shf_merge
=yes
14042 elif test x
$gcc_cv_as != x
; then
14043 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14044 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }
14051 gcc_cv_as_shf_merge
=yes
14053 echo "configure: failed program was" >&5
14056 rm -f conftest.o conftest.s
14059 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14060 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14064 cat >>confdefs.h
<<_ACEOF
14065 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14069 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14070 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14071 if test "${gcc_cv_as_comdat_group+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 gcc_cv_as_comdat_group
=no
14075 if test $in_tree_gas = yes; then
14076 if test $in_tree_gas_is_elf = yes \
14077 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14078 then gcc_cv_as_comdat_group
=yes
14080 elif test x
$gcc_cv_as != x
; then
14081 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14082 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }
14089 gcc_cv_as_comdat_group
=yes
14091 echo "configure: failed program was" >&5
14094 rm -f conftest.o conftest.s
14097 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14098 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14100 if test $gcc_cv_as_comdat_group = yes; then
14101 gcc_cv_as_comdat_group_percent
=no
14103 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14104 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14105 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 gcc_cv_as_comdat_group_percent
=no
14109 if test $in_tree_gas = yes; then
14110 if test $in_tree_gas_is_elf = yes \
14111 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14112 then gcc_cv_as_comdat_group_percent
=yes
14114 elif test x
$gcc_cv_as != x
; then
14115 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14116 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }
14123 gcc_cv_as_comdat_group_percent
=yes
14125 echo "configure: failed program was" >&5
14128 rm -f conftest.o conftest.s
14131 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14132 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14135 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14137 if test 0"$ld_date" -lt 20050308; then
14138 if test -n "$ld_date"; then
14139 # If there was date string, but was earlier than 2005-03-08, fail
14141 elif test "$ld_vers_major" -lt 2; then
14143 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14148 # assume linkers other than GNU ld don't support COMDAT group
14151 if test $comdat_group = no
; then
14152 gcc_cv_as_comdat_group
=no
14153 gcc_cv_as_comdat_group_percent
=no
14156 cat >>confdefs.h
<<_ACEOF
14157 #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`
14161 # Thread-local storage - the check is heavily parametrized.
14169 .section ".tdata","awT",@progbits
14172 ldq $27,__tls_get_addr($29) !literal!1
14173 lda $16,foo($29) !tlsgd!1
14174 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14175 ldq $27,__tls_get_addr($29) !literal!2
14176 lda $16,foo($29) !tlsldm!2
14177 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14178 ldq $1,foo($29) !gotdtprel
14179 ldah $2,foo($29) !dtprelhi
14180 lda $3,foo($2) !dtprello
14181 lda $4,foo($29) !dtprel
14182 ldq $1,foo($29) !gottprel
14183 ldah $2,foo($29) !tprelhi
14184 lda $3,foo($2) !tprello
14185 lda $4,foo($29) !tprel'
14188 tls_as_opt
=--fatal-warnings
14192 .section ".tdata","awT",@progbits
14195 call #gettlsoff(x)'
14204 .section ".tdata","awT",@progbits
14208 addil LT%foo-$tls_gdidx$,gp
14209 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14212 addil LT%foo-$tls_ldidx$,gp
14214 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14215 addil LR%foo-$tls_dtpoff$,%ret0
14216 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14218 addil LT%foo-$tls_ieoff$,gp
14219 ldw RT%foo-$tls_ieoff$(%r1),%t2
14222 addil LR%foo-$tls_leoff$,%t1
14223 ldo RR%foo-$tls_leoff$(%r1),%t2'
14226 tls_as_opt
=--fatal-warnings
14230 .section ".tdata","awT",%progbits
14233 .word foo(gottpoff)
14243 .section ".tdata","awT",@progbits
14247 leal foo@TLSGD(,%ebx,1), %eax
14248 leal foo@TLSLDM(%ebx), %eax
14249 leal foo@DTPOFF(%eax), %edx
14250 movl foo@GOTTPOFF(%ebx), %eax
14251 subl foo@GOTTPOFF(%ebx), %eax
14252 addl foo@GOTNTPOFF(%ebx), %eax
14253 movl foo@INDNTPOFF, %eax
14254 movl $foo@TPOFF, %eax
14255 subl $foo@TPOFF, %eax
14256 leal foo@NTPOFF(%ecx), %eax'
14259 tls_as_opt
=--fatal-warnings
14263 .section ".tdata","awT",@progbits
14267 leaq foo@TLSGD(%rip), %rdi
14268 leaq foo@TLSLD(%rip), %rdi
14269 leaq foo@DTPOFF(%rax), %rdx
14270 movq foo@GOTTPOFF(%rip), %rax
14271 movq $foo@TPOFF, %rax'
14274 tls_as_opt
=--fatal-warnings
14278 .section ".tdata","awT",@progbits
14281 addl r16 = @ltoff(@dtpmod(foo#)), gp
14282 addl r17 = @ltoff(@dtprel(foo#)), gp
14283 addl r18 = @ltoff(@tprel(foo#)), gp
14284 addl r19 = @dtprel(foo#), gp
14285 adds r21 = @dtprel(foo#), r13
14286 movl r23 = @dtprel(foo#)
14287 addl r20 = @tprel(foo#), gp
14288 adds r22 = @tprel(foo#), r13
14289 movl r24 = @tprel(foo#)'
14292 tls_as_opt
=--fatal-warnings
14296 .section .tdata,"awT",@progbits
14300 addiu $4, $28, %tlsgd(x)
14301 addiu $4, $28, %tlsldm(x)
14302 lui $4, %dtprel_hi(x)
14303 addiu $4, $4, %dtprel_lo(x)
14304 lw $4, %gottprel(x)($28)
14305 lui $4, %tprel_hi(x)
14306 addiu $4, $4, %tprel_lo(x)'
14309 tls_as_opt
='-32 --fatal-warnings'
14313 .section ".tdata","awT",@progbits
14321 addi 3,31,ld0@got@tlsgd
14323 addi 3,31,x1@got@tlsld
14326 addis 9,3,x2@dtprel@ha
14327 addi 9,9,x2@dtprel@l
14328 lwz 9,x3@got@tprel(31)
14331 addis 9,2,x2@tprel@ha
14332 addi 9,9,x2@tprel@l'
14335 tls_as_opt
="-a32 --fatal-warnings"
14339 .section ".tdata","awT",@progbits
14347 addi 3,2,ld0@got@tlsgd
14353 addi 3,2,x1@got@tlsld
14359 addis 9,3,x2@dtprel@ha
14360 addi 9,9,x2@dtprel@l
14363 ld 9,x3@got@dtprel(2)
14369 tls_as_opt
="-a64 --fatal-warnings"
14373 .section ".tdata","awT",@progbits
14380 .long foo@GOTNTPOFF
14381 .long foo@INDNTPOFF
14382 l %r1,foo@GOTNTPOFF(%r12)
14383 l %r1,0(%r1):tls_load:foo
14384 bas %r14,0(%r1,%r13):tls_gdcall:foo
14385 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14388 tls_as_opt
="-m31 --fatal-warnings"
14392 .section ".tdata","awT",@progbits
14399 .quad foo@GOTNTPOFF
14400 lg %r1,foo@GOTNTPOFF(%r12)
14401 larl %r1,foo@INDNTPOFF
14402 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14403 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14406 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14408 sh-
*-* | sh
[34]-*-*)
14410 .section ".tdata","awT",@progbits
14420 tls_as_opt
=--fatal-warnings
14424 sparc
*-sun-solaris2.
[56789]*)
14425 # TLS was introduced in the Solaris 9 4/04 release but
14426 # we do not enable it by default on Solaris 9 either.
14427 if test "x$enable_tls" = xyes
; then
14433 sparc
*-sun-solaris2.
*)
14440 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14442 .section ".tdata",#alloc,#write,#tls
14445 sethi %tgd_hi22(foo), %o0
14446 add %o0, %tgd_lo10(foo), %o1
14447 add %l7, %o1, %o0, %tgd_add(foo)
14448 call __tls_get_addr, %tgd_call(foo)
14449 sethi %tldm_hi22(foo), %l1
14450 add %l1, %tldm_lo10(foo), %l2
14451 add %l7, %l2, %o0, %tldm_add(foo)
14452 call __tls_get_addr, %tldm_call(foo)
14453 sethi %tldo_hix22(foo), %l3
14454 xor %l3, %tldo_lox10(foo), %l4
14455 add %o0, %l4, %l5, %tldo_add(foo)
14456 sethi %tie_hi22(foo), %o3
14457 add %o3, %tie_lo10(foo), %o3
14458 ld [%l7 + %o3], %o2, %tie_ld(foo)
14459 add %g7, %o2, %o4, %tie_add(foo)
14460 sethi %tle_hix22(foo), %l1
14461 xor %l1, %tle_lox10(foo), %o5
14462 ld [%g7 + %o5], %o1'
14467 .section ".tdata","awT",@progbits
14470 sethi %tgd_hi22(foo), %o0
14471 add %o0, %tgd_lo10(foo), %o1
14472 add %l7, %o1, %o0, %tgd_add(foo)
14473 call __tls_get_addr, %tgd_call(foo)
14474 sethi %tldm_hi22(foo), %l1
14475 add %l1, %tldm_lo10(foo), %l2
14476 add %l7, %l2, %o0, %tldm_add(foo)
14477 call __tls_get_addr, %tldm_call(foo)
14478 sethi %tldo_hix22(foo), %l3
14479 xor %l3, %tldo_lox10(foo), %l4
14480 add %o0, %l4, %l5, %tldo_add(foo)
14481 sethi %tie_hi22(foo), %o3
14482 add %o3, %tie_lo10(foo), %o3
14483 ld [%l7 + %o3], %o2, %tie_ld(foo)
14484 add %g7, %o2, %o4, %tie_add(foo)
14485 sethi %tle_hix22(foo), %l1
14486 xor %l1, %tle_lox10(foo), %o5
14487 ld [%g7 + %o5], %o1'
14490 tls_as_opt
="-32 --fatal-warnings"
14495 if test "x$enable_tls" = xno
; then
14496 : # TLS explicitly disabled.
14497 elif test "x$enable_tls" = xyes
; then
14498 set_have_as_tls
=yes # TLS explicitly enabled.
14499 elif test -z "$tls_first_major"; then
14500 : # If we don't have a check, assume no support.
14502 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14503 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14504 if test "${gcc_cv_as_tls+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 if test $in_tree_gas = yes; then
14509 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14510 then gcc_cv_as_tls
=yes
14512 elif test x
$gcc_cv_as != x
; then
14513 echo "$conftest_s" > conftest.s
14514 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }
14523 echo "configure: failed program was" >&5
14526 rm -f conftest.o conftest.s
14529 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14530 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14531 if test $gcc_cv_as_tls = yes; then
14532 set_have_as_tls
=yes
14535 if test $set_have_as_tls = yes ; then
14537 cat >>confdefs.h
<<\_ACEOF
14538 #define HAVE_AS_TLS 1
14543 # Target-specific assembler checks.
14545 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14546 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14547 gcc_cv_ld_static_dynamic
=no
14548 if test $in_tree_ld = yes ; then
14549 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14550 gcc_cv_ld_static_dynamic
=yes
14552 elif test x
$gcc_cv_ld != x
; then
14553 # Check if linker supports -Bstatic/-Bdynamic option
14554 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14555 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14556 gcc_cv_ld_static_dynamic
=yes
14559 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14561 cat >>confdefs.h
<<\_ACEOF
14562 #define HAVE_LD_STATIC_DYNAMIC 1
14566 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14567 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14569 if test x
"$demangler_in_ld" = xyes
; then
14570 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14571 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14572 gcc_cv_ld_demangle
=no
14573 if test $in_tree_ld = yes; then
14574 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 \
14575 gcc_cv_ld_demangle
=yes
14577 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14578 # Check if the GNU linker supports --demangle option
14579 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14580 gcc_cv_ld_demangle
=yes
14583 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14585 cat >>confdefs.h
<<\_ACEOF
14586 #define HAVE_LD_DEMANGLE 1
14590 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14591 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14595 # All TARGET_ABI_OSF targets.
14596 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14597 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14598 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14599 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 gcc_cv_as_alpha_explicit_relocs
=no
14603 if test $in_tree_gas = yes; then
14604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14605 then gcc_cv_as_alpha_explicit_relocs
=yes
14607 elif test x
$gcc_cv_as != x
; then
14608 echo ' .set nomacro
14610 extbl $3, $2, $3 !lituse_bytoff!1
14611 ldq $2, a($29) !literal!1
14612 ldq $4, b($29) !literal!2
14613 ldq_u $3, 0($2) !lituse_base!1
14614 ldq $27, f($29) !literal!5
14615 jsr $26, ($27), f !lituse_jsr!5
14616 ldah $29, 0($26) !gpdisp!3
14617 lda $0, c($29) !gprel
14618 ldah $1, d($29) !gprelhigh
14619 lda $1, d($1) !gprellow
14620 lda $29, 0($29) !gpdisp!3' > conftest.s
14621 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }
14628 gcc_cv_as_alpha_explicit_relocs
=yes
14630 echo "configure: failed program was" >&5
14633 rm -f conftest.o conftest.s
14636 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14637 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14638 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14640 cat >>confdefs.h
<<\_ACEOF
14641 #define HAVE_AS_EXPLICIT_RELOCS 1
14645 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14646 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14647 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 gcc_cv_as_alpha_jsrdirect_relocs
=no
14651 if test $in_tree_gas = yes; then
14652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14653 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14655 elif test x
$gcc_cv_as != x
; then
14656 echo ' .set nomacro
14658 ldq $27, a($29) !literal!1
14659 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14660 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }
14667 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14669 echo "configure: failed program was" >&5
14672 rm -f conftest.o conftest.s
14675 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14676 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14677 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14679 cat >>confdefs.h
<<\_ACEOF
14680 #define HAVE_AS_JSRDIRECT_RELOCS 1
14687 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14688 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14689 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 gcc_cv_as_cris_no_mul_bug
=no
14693 if test $in_tree_gas = yes; then
14694 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14695 then gcc_cv_as_cris_no_mul_bug
=yes
14697 elif test x
$gcc_cv_as != x
; then
14698 echo '.text' > conftest.s
14699 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }
14706 gcc_cv_as_cris_no_mul_bug
=yes
14708 echo "configure: failed program was" >&5
14711 rm -f conftest.o conftest.s
14714 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14715 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14716 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14718 cat >>confdefs.h
<<\_ACEOF
14719 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14726 echo "$as_me:$LINENO: checking assembler for .register" >&5
14727 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14728 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 gcc_cv_as_sparc_register_op
=no
14732 if test x
$gcc_cv_as != x
; then
14733 echo '.register %g2, #scratch' > conftest.s
14734 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; }
14741 gcc_cv_as_sparc_register_op
=yes
14743 echo "configure: failed program was" >&5
14746 rm -f conftest.o conftest.s
14749 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14750 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14751 if test $gcc_cv_as_sparc_register_op = yes; then
14753 cat >>confdefs.h
<<\_ACEOF
14754 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14759 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14760 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14761 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 gcc_cv_as_sparc_relax
=no
14765 if test x
$gcc_cv_as != x
; then
14766 echo '.text' > conftest.s
14767 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }
14774 gcc_cv_as_sparc_relax
=yes
14776 echo "configure: failed program was" >&5
14779 rm -f conftest.o conftest.s
14782 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14783 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14784 if test $gcc_cv_as_sparc_relax = yes; then
14786 cat >>confdefs.h
<<\_ACEOF
14787 #define HAVE_AS_RELAX_OPTION 1
14792 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14793 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14794 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 gcc_cv_as_sparc_ua_pcrel
=no
14798 if test x
$gcc_cv_as != x
; then
14805 .uaword %r_disp32(foo)' > conftest.s
14806 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }
14813 if test x
$gcc_cv_ld != x \
14814 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14815 gcc_cv_as_sparc_ua_pcrel
=yes
14819 echo "configure: failed program was" >&5
14822 rm -f conftest.o conftest.s
14825 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14826 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14827 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14829 cat >>confdefs.h
<<\_ACEOF
14830 #define HAVE_AS_SPARC_UA_PCREL 1
14834 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14835 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14836 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14839 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14840 if test x
$gcc_cv_as != x
; then
14844 .uaword %r_disp32(foo)
14845 .byte 0x32, 0x33, 0x34
14849 .skip 4' > conftest.s
14850 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }
14857 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14858 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14859 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14860 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14861 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14862 |
grep 'DISP32' > /dev
/null
2>&1; then
14865 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14870 echo "configure: failed program was" >&5
14873 rm -f conftest.o conftest.s
14876 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14877 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14878 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14880 cat >>confdefs.h
<<\_ACEOF
14881 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14886 fi # unaligned pcrel relocs
14888 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14889 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14890 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14893 gcc_cv_as_sparc_offsetable_lo10
=no
14894 if test x
$gcc_cv_as != x
; then
14896 or %g1, %lo(ab) + 12, %g1
14897 or %g1, %lo(ab + 12), %g1' > conftest.s
14898 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }
14905 if test x
$gcc_cv_objdump != x \
14906 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14907 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14908 gcc_cv_as_sparc_offsetable_lo10
=yes
14911 echo "configure: failed program was" >&5
14914 rm -f conftest.o conftest.s
14917 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14918 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14919 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14921 cat >>confdefs.h
<<\_ACEOF
14922 #define HAVE_AS_OFFSETABLE_LO10 1
14928 i
[34567]86-*-* | x86_64-
*-*)
14930 cygwin
* | pe | mingw32
*)
14931 # Used for DWARF 2 in PE
14932 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14933 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14934 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 gcc_cv_as_ix86_pe_secrel32
=no
14938 if test $in_tree_gas = yes; then
14939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14940 then gcc_cv_as_ix86_pe_secrel32
=yes
14942 elif test x
$gcc_cv_as != x
; then
14946 .secrel32 foo' > conftest.s
14947 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }
14954 if test x
$gcc_cv_ld != x \
14955 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14956 gcc_cv_as_ix86_pe_secrel32
=yes
14960 echo "configure: failed program was" >&5
14963 rm -f conftest.o conftest.s
14966 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14967 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14968 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14970 cat >>confdefs.h
<<\_ACEOF
14971 #define HAVE_GAS_PE_SECREL32_RELOC 1
14978 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14979 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14980 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 gcc_cv_as_ix86_filds_fists
=no
14984 if test $in_tree_gas = yes; then
14985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14986 then gcc_cv_as_ix86_filds_fists
=yes
14988 elif test x
$gcc_cv_as != x
; then
14989 echo 'filds mem; fists mem' > conftest.s
14990 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }
14997 gcc_cv_as_ix86_filds_fists
=yes
14999 echo "configure: failed program was" >&5
15002 rm -f conftest.o conftest.s
15005 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15006 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15007 if test $gcc_cv_as_ix86_filds_fists = yes; then
15009 cat >>confdefs.h
<<\_ACEOF
15010 #define HAVE_GAS_FILDS_FISTS 1
15015 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15016 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15017 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 gcc_cv_as_ix86_cmov_sun_syntax
=no
15021 if test x
$gcc_cv_as != x
; then
15022 echo 'cmovl.l %edx, %eax' > conftest.s
15023 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; }
15030 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15032 echo "configure: failed program was" >&5
15035 rm -f conftest.o conftest.s
15038 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15039 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15040 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15042 cat >>confdefs.h
<<\_ACEOF
15043 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15048 # This one is used unconditionally by i386.[ch]; it is to be defined
15049 # to 1 if the feature is present, 0 otherwise.
15050 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15051 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15052 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 gcc_cv_as_ix86_gotoff_in_data
=no
15056 if test $in_tree_gas = yes; then
15057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15058 then gcc_cv_as_ix86_gotoff_in_data
=yes
15060 elif test x
$gcc_cv_as != x
; then
15065 .long .L0@GOTOFF' > conftest.s
15066 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }
15073 gcc_cv_as_ix86_gotoff_in_data
=yes
15075 echo "configure: failed program was" >&5
15078 rm -f conftest.o conftest.s
15081 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15082 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15085 cat >>confdefs.h
<<_ACEOF
15086 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15092 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15093 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15094 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15097 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15098 if test $in_tree_gas = yes; then
15099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15100 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15102 elif test x
$gcc_cv_as != x
; then
15104 addl r15 = @ltoffx(x#), gp
15106 ld8.mov r16 = [r15], x#' > conftest.s
15107 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }
15114 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15116 echo "configure: failed program was" >&5
15119 rm -f conftest.o conftest.s
15122 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15123 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15124 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15126 cat >>confdefs.h
<<\_ACEOF
15127 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15136 *-*-aix*) conftest_s
=' .machine "pwr5"
15140 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15141 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15142 if test "${gcc_cv_as_machine_directive+set}" = set; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 gcc_cv_as_machine_directive
=no
15146 if test x
$gcc_cv_as != x
; then
15147 echo ' .machine ppc7400' > conftest.s
15148 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }
15155 gcc_cv_as_machine_directive
=yes
15157 echo "configure: failed program was" >&5
15160 rm -f conftest.o conftest.s
15163 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15164 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15166 if test x
$gcc_cv_as_machine_directive != xyes
; then
15167 echo "*** This target requires an assembler supporting \".machine\"" >&2
15168 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15169 test x
$build = x
$target && exit 1
15173 *) conftest_s
=' .machine power4
15178 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15179 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15180 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 gcc_cv_as_powerpc_mfcrf
=no
15184 if test $in_tree_gas = yes; then
15185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15186 then gcc_cv_as_powerpc_mfcrf
=yes
15188 elif test x
$gcc_cv_as != x
; then
15189 echo "$conftest_s" > conftest.s
15190 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }
15197 gcc_cv_as_powerpc_mfcrf
=yes
15199 echo "configure: failed program was" >&5
15202 rm -f conftest.o conftest.s
15205 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15206 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15207 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15209 cat >>confdefs.h
<<\_ACEOF
15210 #define HAVE_AS_MFCRF 1
15216 *-*-aix*) conftest_s
=' .machine "pwr5"
15219 *) conftest_s
=' .machine power5
15224 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15225 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15226 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 gcc_cv_as_powerpc_popcntb
=no
15230 if test $in_tree_gas = yes; then
15231 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15232 then gcc_cv_as_powerpc_popcntb
=yes
15234 elif test x
$gcc_cv_as != x
; then
15235 echo "$conftest_s" > conftest.s
15236 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }
15243 gcc_cv_as_powerpc_popcntb
=yes
15245 echo "configure: failed program was" >&5
15248 rm -f conftest.o conftest.s
15251 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15252 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15253 if test $gcc_cv_as_powerpc_popcntb = yes; then
15255 cat >>confdefs.h
<<\_ACEOF
15256 #define HAVE_AS_POPCNTB 1
15262 *-*-aix*) conftest_s
=' .machine "pwr5x"
15265 *) conftest_s
=' .machine power5
15270 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15271 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15272 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 gcc_cv_as_powerpc_fprnd
=no
15276 if test $in_tree_gas = yes; then
15277 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15278 then gcc_cv_as_powerpc_fprnd
=yes
15280 elif test x
$gcc_cv_as != x
; then
15281 echo "$conftest_s" > conftest.s
15282 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }
15289 gcc_cv_as_powerpc_fprnd
=yes
15291 echo "configure: failed program was" >&5
15294 rm -f conftest.o conftest.s
15297 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15298 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15299 if test $gcc_cv_as_powerpc_fprnd = yes; then
15301 cat >>confdefs.h
<<\_ACEOF
15302 #define HAVE_AS_FPRND 1
15308 *-*-aix*) conftest_s
=' .csect .text[PR]
15310 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15314 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15315 *) conftest_s
=' .text
15317 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15320 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15321 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15322 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 gcc_cv_as_powerpc_rel16
=no
15326 if test $in_tree_gas = yes; then
15327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15328 then gcc_cv_as_powerpc_rel16
=yes
15330 elif test x
$gcc_cv_as != x
; then
15331 echo "$conftest_s" > conftest.s
15332 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }
15339 gcc_cv_as_powerpc_rel16
=yes
15341 echo "configure: failed program was" >&5
15344 rm -f conftest.o conftest.s
15347 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15348 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15349 if test $gcc_cv_as_powerpc_rel16 = yes; then
15351 cat >>confdefs.h
<<\_ACEOF
15352 #define HAVE_AS_REL16 1
15359 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15360 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15361 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15364 gcc_cv_as_mips_explicit_relocs
=no
15365 if test $in_tree_gas = yes; then
15366 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15367 then gcc_cv_as_mips_explicit_relocs
=yes
15369 elif test x
$gcc_cv_as != x
; then
15370 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15371 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }
15378 gcc_cv_as_mips_explicit_relocs
=yes
15380 echo "configure: failed program was" >&5
15383 rm -f conftest.o conftest.s
15386 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15387 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15388 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15389 if test x
$target_cpu_default = x
15390 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15391 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15397 # Mips and HP-UX need the GNU assembler.
15398 # Linux on IA64 might be able to use the Intel assembler.
15401 mips
*-*-* |
*-*-hpux* )
15402 if test x
$gas_flag = xyes \
15403 ||
test x
"$host" != x
"$build" \
15404 ||
test ! -x "$gcc_cv_as" \
15405 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15408 echo "*** This configuration requires the GNU assembler" >&2
15414 # ??? Not all targets support dwarf2 debug_line, even within a version
15415 # of gas. Moreover, we need to emit a valid instruction to trigger any
15416 # info to the output file. So, as supported targets are added to gas 2.11,
15417 # add some instruction here to (also) show we expect this might work.
15418 # ??? Once 2.11 is released, probably need to add first known working
15419 # version to the per-target configury.
15421 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15422 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15423 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-*)
15426 ia64
*-*-* | s390
*-*-*)
15433 if test x
"$insn" != x
; then
15435 .file 1 \"conftest.s\"
15438 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15439 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15440 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15443 gcc_cv_as_dwarf2_debug_line
=no
15444 if test $in_tree_gas = yes; then
15445 if test $in_tree_gas_is_elf = yes \
15446 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15447 then gcc_cv_as_dwarf2_debug_line
=yes
15449 elif test x
$gcc_cv_as != x
; then
15450 echo "$conftest_s" > conftest.s
15451 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }
15458 if test x
$gcc_cv_objdump != x \
15459 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15460 |
grep debug_line
> /dev
/null
2>&1; then
15461 gcc_cv_as_dwarf2_debug_line
=yes
15464 echo "configure: failed program was" >&5
15467 rm -f conftest.o conftest.s
15470 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15471 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15474 # The .debug_line file table must be in the exact order that
15475 # we specified the files, since these indices are also used
15476 # by DW_AT_decl_file. Approximate this test by testing if
15477 # the assembler bitches if the same index is assigned twice.
15478 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15479 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15480 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15483 gcc_cv_as_dwarf2_file_buggy
=no
15484 if test x
$gcc_cv_as != x
; then
15485 echo ' .file 1 "foo.s"
15486 .file 1 "bar.s"' > conftest.s
15487 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }
15494 gcc_cv_as_dwarf2_file_buggy
=yes
15496 echo "configure: failed program was" >&5
15499 rm -f conftest.o conftest.s
15502 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15503 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15506 if test $gcc_cv_as_dwarf2_debug_line = yes \
15507 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15509 cat >>confdefs.h
<<\_ACEOF
15510 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15515 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15516 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15517 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15520 gcc_cv_as_gdwarf2_flag
=no
15521 if test $in_tree_gas = yes; then
15522 if test $in_tree_gas_is_elf = yes \
15523 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15524 then gcc_cv_as_gdwarf2_flag
=yes
15526 elif test x
$gcc_cv_as != x
; then
15527 echo "$insn" > conftest.s
15528 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }
15535 gcc_cv_as_gdwarf2_flag
=yes
15537 echo "configure: failed program was" >&5
15540 rm -f conftest.o conftest.s
15543 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15544 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15545 if test $gcc_cv_as_gdwarf2_flag = yes; then
15547 cat >>confdefs.h
<<\_ACEOF
15548 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15553 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15554 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15555 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 gcc_cv_as_gstabs_flag
=no
15559 if test $in_tree_gas = yes; then
15560 if test $in_tree_gas_is_elf = yes \
15561 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15562 then gcc_cv_as_gstabs_flag
=yes
15564 elif test x
$gcc_cv_as != x
; then
15565 echo "$insn" > conftest.s
15566 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }
15573 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15574 # and warns about it, but still exits successfully. So check for
15576 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }
15583 else gcc_cv_as_gstabs_flag
=yes
15586 echo "configure: failed program was" >&5
15589 rm -f conftest.o conftest.s
15592 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15593 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15594 if test $gcc_cv_as_gstabs_flag = yes; then
15596 cat >>confdefs.h
<<\_ACEOF
15597 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15603 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15604 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15605 gcc_cv_ld_ro_rw_mix
=unknown
15606 if test $in_tree_ld = yes ; then
15607 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 \
15608 && test $in_tree_ld_is_elf = yes; then
15609 gcc_cv_ld_ro_rw_mix
=read-write
15611 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15612 echo '.section myfoosect, "a"' > conftest1.s
15613 echo '.section myfoosect, "aw"' > conftest2.s
15614 echo '.byte 1' >> conftest2.s
15615 echo '.section myfoosect, "a"' > conftest3.s
15616 echo '.byte 0' >> conftest3.s
15617 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15618 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15619 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15620 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15621 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15622 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15623 | sed -e '/myfoosect/!d' -e N`
15624 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15625 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15626 gcc_cv_ld_ro_rw_mix
=read-only
15628 gcc_cv_ld_ro_rw_mix
=read-write
15632 rm -f conftest.
* conftest
[123].
*
15634 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15636 cat >>confdefs.h
<<\_ACEOF
15637 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15641 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15642 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15644 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15645 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15646 gcc_cv_ld_eh_frame_hdr
=no
15647 if test $in_tree_ld = yes ; then
15648 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 \
15649 && test $in_tree_ld_is_elf = yes; then
15650 gcc_cv_ld_eh_frame_hdr
=yes
15652 elif test x
$gcc_cv_ld != x
; then
15653 # Check if linker supports --eh-frame-hdr option
15654 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15655 gcc_cv_ld_eh_frame_hdr
=yes
15659 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15661 cat >>confdefs.h
<<\_ACEOF
15662 #define HAVE_LD_EH_FRAME_HDR 1
15666 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15667 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15669 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15670 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15672 if test $in_tree_ld = yes ; then
15673 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 \
15674 && test $in_tree_ld_is_elf = yes; then
15677 elif test x
$gcc_cv_ld != x
; then
15678 # Check if linker supports -pie option
15679 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15683 if test x
"$gcc_cv_ld_pie" = xyes
; then
15685 cat >>confdefs.h
<<\_ACEOF
15686 #define HAVE_LD_PIE 1
15690 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15691 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15697 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15698 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15699 if test "${gcc_cv_ld_as_needed+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 gcc_cv_ld_as_needed
=no
15703 if test $in_tree_ld = yes ; then
15704 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 \
15705 && test $in_tree_ld_is_elf = yes; then
15706 gcc_cv_ld_as_needed
=yes
15708 elif test x
$gcc_cv_ld != x
; then
15709 # Check if linker supports --as-needed and --no-as-needed options
15710 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15711 gcc_cv_ld_as_needed
=yes
15716 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15717 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15718 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15720 cat >>confdefs.h
<<\_ACEOF
15721 #define HAVE_LD_AS_NEEDED 1
15726 case "$target:$tm_file" in
15727 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
15728 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15729 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15730 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 gcc_cv_ld_no_dot_syms
=no
15734 if test $in_tree_ld = yes ; then
15735 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
15736 gcc_cv_ld_no_dot_syms
=yes
15738 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15739 cat > conftest1.s
<<EOF
15743 cat > conftest2.s
<<EOF
15744 .section ".opd","aw"
15747 .type foo,@function
15749 .quad .LEfoo,.TOC.@tocbase,0
15755 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15756 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15757 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15758 gcc_cv_ld_no_dot_syms
=yes
15760 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15764 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15765 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15766 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15768 cat >>confdefs.h
<<\_ACEOF
15769 #define HAVE_LD_NO_DOT_SYMS 1
15776 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15777 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15778 if test "${gcc_cv_ld_sysroot+set}" = set; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 gcc_cv_ld_sysroot
=no
15782 if test $in_tree_ld = yes ; then
15783 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
15784 gcc_cv_ld_sysroot
=yes
15786 elif test x
$gcc_cv_ld != x
; then
15787 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
15788 gcc_cv_ld_sysroot
=yes
15792 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15793 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15794 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
15796 cat >>confdefs.h
<<\_ACEOF
15797 #define HAVE_LD_SYSROOT 1
15802 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15803 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15805 cat >>confdefs.h
<<_ACEOF
15806 #define PREFIX_INCLUDE_DIR "$prefix/include"
15811 # Test for stack protector support in target C library.
15814 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15815 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15816 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 gcc_cv_libc_provides_ssp
=no
15820 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15821 if test "x$with_sysroot" = x
; then
15822 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15823 elif test "x$with_sysroot" = xyes
; then
15824 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15826 glibc_header_dir
="${with_sysroot}/usr/include"
15829 glibc_header_dir
=/usr
/include
15831 # glibc 2.4 and later provides __stack_chk_fail and
15832 # either __stack_chk_guard, or TLS access to stack guard canary.
15833 if test -f $glibc_header_dir/features.h \
15834 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15835 $glibc_header_dir/features.h
> /dev
/null
; then
15836 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15837 $glibc_header_dir/features.h
> /dev
/null
; then
15838 gcc_cv_libc_provides_ssp
=yes
15839 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15840 $glibc_header_dir/features.h
> /dev
/null \
15841 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15842 $glibc_header_dir/features.h
> /dev
/null
; then
15843 gcc_cv_libc_provides_ssp
=yes
15847 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15848 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15849 *) gcc_cv_libc_provides_ssp
=no
;;
15851 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
15853 cat >>confdefs.h
<<\_ACEOF
15854 #define TARGET_LIBC_PROVIDES_SSP 1
15859 # Check if TFmode long double should be used by default or not.
15860 # Some glibc targets used DFmode long double, but with glibc 2.4
15861 # and later they can use TFmode.
15863 powerpc
*-*-*gnu
* | \
15864 sparc
*-*-linux* | \
15868 # Check whether --with-long-double-128 or --without-long-double-128 was given.
15869 if test "${with_long_double_128+set}" = set; then
15870 withval
="$with_long_double_128"
15871 gcc_cv_target_ldbl128
="$with_long_double_128"
15873 gcc_cv_target_ldbl128
=no
15874 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15875 if test "x$with_sysroot" = x
; then
15876 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15877 elif test "x$with_sysroot" = xyes
; then
15878 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15880 glibc_header_dir
="${with_sysroot}/usr/include"
15883 glibc_header_dir
=/usr
/include
15885 grep '^ *#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
15886 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
15887 && gcc_cv_target_ldbl128
=yes
15891 if test x
$gcc_cv_target_ldbl128 = xyes
; then
15893 cat >>confdefs.h
<<\_ACEOF
15894 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
15899 # Find out what GC implementation we want, or may, use.
15901 # Check whether --with-gc or --without-gc was given.
15902 if test "${with_gc+set}" = set; then
15911 cat >>confdefs.h
<<\_ACEOF
15917 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15918 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15919 { (exit 1); exit 1; }; }
15926 echo "Using $GGC for garbage collection."
15928 # Use the system's zlib library.
15930 zlibinc
="-I\$(srcdir)/../zlib"
15932 # Check whether --with-system-zlib or --without-system-zlib was given.
15933 if test "${with_system_zlib+set}" = set; then
15934 withval
="$with_system_zlib"
15943 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15944 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15945 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15946 if test "${enable_maintainer_mode+set}" = set; then
15947 enableval
="$enable_maintainer_mode"
15948 maintainer_mode
=$enableval
15953 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15954 echo "${ECHO_T}$maintainer_mode" >&6
15956 if test "$maintainer_mode" = "yes"; then
15966 # Make empty files to contain the specs and options for each language.
15967 # Then add #include lines to for a compiler that has specs and/or options.
15973 # These (without "all_") are set in each config-lang.in.
15974 # `language' must be a single word so is spelled singularly.
15976 all_boot_languages
=
15979 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15980 # List of language makefile fragments.
15981 all_lang_makefrags
=
15982 # List of language subdirectory makefiles. Deprecated.
15983 all_lang_makefiles
=
15984 # Files for gengtype
15985 all_gtfiles
="$target_gtfiles"
15986 # Files for gengtype with language
15987 all_gtfiles_files_langs
=
15988 all_gtfiles_files_files
=
15990 # These are the languages that are set in --enable-languages,
15991 # and are available in the GCC tree.
15992 all_selected_languages
=
15994 # Add the language fragments.
15995 # Languages are added via two mechanisms. Some information must be
15996 # recorded in makefile variables, these are defined in config-lang.in.
15997 # We accumulate them and plug them into the main Makefile.
15998 # The other mechanism is a set of hooks for each of the main targets
15999 # like `clean', `install', etc.
16001 language_hooks
="Make-hooks"
16003 for lang
in ${srcdir}/*/config-lang.
in
16005 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16007 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16008 if test "x$lang_alias" = x
16010 echo "$lang doesn't set \$language." 1>&2
16013 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16014 subdirs
="$subdirs $subdir"
16015 case ",$enable_languages," in
16017 all_selected_languages
="$all_selected_languages $lang_alias"
16018 if test -f $srcdir/$subdir/lang-specs.h
; then
16019 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16031 .
${srcdir}/$subdir/config-lang.
in
16032 if test "x$language" = x
16034 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16039 case ",$enable_languages," in
16040 *,$lang_alias,*) ;;
16042 for i
in $subdir_requires; do
16043 test -d "$i" && continue
16051 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16052 if test -f $srcdir/$subdir/lang.opt
; then
16053 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16055 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16056 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16058 if test -f ${srcdir}/$subdir/Makefile.
in
16059 then all_lang_makefiles
="$subdir/Makefile"
16061 all_languages
="$all_languages $language"
16062 if test "x$boot_language" = xyes
16064 all_boot_languages
="$all_boot_languages $language"
16066 all_compilers
="$all_compilers $compilers"
16067 all_stagestuff
="$all_stagestuff $stagestuff"
16068 all_outputs
="$all_outputs $outputs"
16069 all_gtfiles
="$all_gtfiles $gtfiles"
16072 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16073 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16077 # Pick up gtfiles for c
16080 .
${srcdir}/c-config-lang.
in
16081 all_gtfiles
="$all_gtfiles $gtfiles"
16084 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16085 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16089 for language
in $all_selected_languages
16091 check_languages
="$check_languages check-$language"
16094 # We link each language in with a set of hooks, reached indirectly via
16095 # lang.${target}. Only do so for selected languages.
16099 target_list
="all.cross start.encap rest.encap tags \
16100 install-common install-man install-info dvi html \
16101 uninstall info man srcextra srcman srcinfo \
16102 mostlyclean clean distclean maintainer-clean \
16103 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16105 for t
in $target_list
16108 for lang
in $all_selected_languages
16112 echo "lang.$t: $x" >> Make-hooks
16121 echo "dir ." > .gdbinit
16122 echo "dir ${srcdir}" >> .gdbinit
16123 if test x
$gdb_needs_out_file_path = xyes
16125 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16127 if test "x$subdirs" != x
; then
16130 echo "dir ${srcdir}/$s" >> .gdbinit
16133 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16135 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16136 # absolute path for gcc_tooldir based on inserting the number of up-directory
16137 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16138 # $(libsubdir)/@(unlibsubdir) based path.
16139 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16140 # make and thus we'd get different behavior depending on where we built the
16142 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
16143 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16145 # An explanation of the sed strings:
16146 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16147 # -e 's|/$||' match a trailing forward slash and eliminates it
16148 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16149 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16151 # (*) Note this pattern overwrites the first character of the string
16152 # with a forward slash if one is not already present. This is not a
16153 # problem because the exact names of the sub-directories concerned is
16154 # unimportant, just the number of them matters.
16156 # The practical upshot of these patterns is like this:
16158 # prefix exec_prefix result
16159 # ------ ----------- ------
16160 # /foo /foo/bar ../
16161 # /foo/ /foo/bar ../
16162 # /foo /foo/bar/ ../
16163 # /foo/ /foo/bar/ ../
16164 # /foo /foo/bar/ugg ../../
16167 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16172 # Find a directory in which to install a shared libgcc.
16174 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16175 if test "${enable_version_specific_runtime_libs+set}" = set; then
16176 enableval
="$enable_version_specific_runtime_libs"
16181 # Check whether --with-slibdir or --without-slibdir was given.
16182 if test "${with_slibdir+set}" = set; then
16183 withval
="$with_slibdir"
16184 slibdir
="$with_slibdir"
16186 if test "${enable_version_specific_runtime_libs+set}" = set; then
16187 slibdir
='$(libsubdir)'
16188 elif test "$host" != "$target"; then
16189 slibdir
='$(build_tooldir)/lib'
16191 slibdir
='$(libdir)'
16196 objdir
=`${PWDCMD-pwd}`
16200 # Check whether --with-datarootdir or --without-datarootdir was given.
16201 if test "${with_datarootdir+set}" = set; then
16202 withval
="$with_datarootdir"
16203 datarootdir
="\${prefix}/$with_datarootdir"
16205 datarootdir
='$(prefix)/share'
16210 # Check whether --with-docdir or --without-docdir was given.
16211 if test "${with_docdir+set}" = set; then
16212 withval
="$with_docdir"
16213 docdir
="\${prefix}/$with_docdir"
16215 docdir
='$(datarootdir)'
16220 # Check whether --with-htmldir or --without-htmldir was given.
16221 if test "${with_htmldir+set}" = set; then
16222 withval
="$with_htmldir"
16223 htmldir
="\${prefix}/$with_htmldir"
16225 htmldir
='$(docdir)'
16229 # Substitute configuration variables
16294 if test x
${build} = x
${host} ; then
16295 if test x
${host} = x
${target} ; then
16296 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16298 echo "Links are now set up to build a cross-compiler" 1>&2
16299 echo " from ${host} to ${target}." 1>&2
16302 if test x
${host} = x
${target} ; then
16303 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16304 echo " for ${target}." 1>&2
16306 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16307 echo " from ${host} to ${target}." 1>&2
16314 # Configure the subdirectories
16315 # AC_CONFIG_SUBDIRS($subdirs)
16317 # Create the Makefile
16318 # and configure language subdirectories
16319 ac_config_files
="$ac_config_files $all_outputs"
16322 ac_config_commands
="$ac_config_commands default"
16324 cat >confcache
<<\_ACEOF
16325 # This file is a shell script that caches the results of configure
16326 # tests run on this system so they can be shared between configure
16327 # scripts and configure runs, see configure's option --config-cache.
16328 # It is not useful on other systems. If it contains results you don't
16329 # want to keep, you may remove or edit it.
16331 # config.status only pays attention to the cache file if you give it
16332 # the --recheck option to rerun configure.
16334 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16336 # following values.
16340 # The following way of writing the cache mishandles newlines in values,
16341 # but we know of no workaround that is simple, portable, and efficient.
16342 # So, don't put newlines in cache variables' values.
16343 # Ultrix sh set writes to stderr and can't be redirected directly,
16344 # and sets the high bit in the cache file unless we assign to the vars.
16347 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16349 # `set' does not quote correctly, so add quotes (double-quote
16350 # substitution turns \\\\ into \\, and sed turns \\ into \).
16353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16356 # `set' quotes correctly as required by POSIX, so do not add quotes.
16358 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16367 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16369 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16370 if test -w $cache_file; then
16371 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16372 cat confcache
>$cache_file
16374 echo "not updating unwritable cache $cache_file"
16379 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16380 # Let make expand exec_prefix.
16381 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16383 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16384 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16385 # trailing colons and then remove the whole line if VPATH becomes empty
16386 # (actually we leave an empty line to preserve line numbers).
16387 if test "x$srcdir" = x.
; then
16388 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16389 s/:*\$(srcdir):*/:/;
16390 s/:*\${srcdir}:*/:/;
16392 s/^\([^=]*=[ ]*\):*/\1/;
16398 DEFS
=-DHAVE_CONFIG_H
16402 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16403 # 1. Remove the extension, and $U if already installed.
16404 ac_i
=`echo "$ac_i" |
16405 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16407 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16408 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16410 LIBOBJS
=$ac_libobjs
16412 LTLIBOBJS
=$ac_ltlibobjs
16416 : ${CONFIG_STATUS=./config.status}
16417 ac_clean_files_save
=$ac_clean_files
16418 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16419 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16420 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16421 cat >$CONFIG_STATUS <<_ACEOF
16423 # Generated by $as_me.
16424 # Run this file to recreate the current configuration.
16425 # Compiler output produced by configure, useful for debugging
16426 # configure, is in config.log if it exists.
16429 ac_cs_recheck=false
16431 SHELL=\${CONFIG_SHELL-$SHELL}
16434 cat >>$CONFIG_STATUS <<\_ACEOF
16435 ## --------------------- ##
16436 ## M4sh Initialization. ##
16437 ## --------------------- ##
16439 # Be Bourne compatible
16440 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16443 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16444 # is contrary to our usage. Disable this feature.
16445 alias -g '${1+"$@"}'='"$@"'
16446 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16449 DUALCASE
=1; export DUALCASE
# for MKS sh
16451 # Support unset when possible.
16452 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16459 # Work around bugs in pre-3.0 UWIN ksh.
16460 $as_unset ENV MAIL MAILPATH
16467 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16468 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16469 LC_TELEPHONE LC_TIME
16471 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16472 eval $as_var=C
; export $as_var
16478 # Required to use basename.
16479 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16485 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16486 as_basename
=basename
16492 # Name of the executable.
16493 as_me
=`$as_basename "$0" ||
16494 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16495 X"$0" : 'X\(//\)$' \| \
16496 X"$0" : 'X\(/\)$' \| \
16497 . : '\(.\)' 2>/dev/null ||
16499 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16500 /^X\/\(\/\/\)$/{ s//\1/; q; }
16501 /^X\/\(\/\).*/{ s//\1/; q; }
16505 # PATH needs CR, and LINENO needs CR and PATH.
16506 # Avoid depending upon Character Ranges.
16507 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16508 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16509 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16510 as_cr_digits
='0123456789'
16511 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16513 # The user is always right.
16514 if test "${PATH_SEPARATOR+set}" != set; then
16515 echo "#! /bin/sh" >conf$$.sh
16516 echo "exit 0" >>conf$$.sh
16518 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16527 as_lineno_1
=$LINENO
16528 as_lineno_2
=$LINENO
16529 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16530 test "x$as_lineno_1" != "x$as_lineno_2" &&
16531 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16532 # Find who we are. Look in the path if we contain no path at all
16535 *[\\/]* ) as_myself
=$0 ;;
16536 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16537 for as_dir
in $PATH
16540 test -z "$as_dir" && as_dir
=.
16541 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16546 # We did not find ourselves, most probably we were run as `sh COMMAND'
16547 # in which case we are not to be found in the path.
16548 if test "x$as_myself" = x
; then
16551 if test ! -f "$as_myself"; then
16552 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16553 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16554 { (exit 1); exit 1; }; }
16556 case $CONFIG_SHELL in
16558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16559 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16562 test -z "$as_dir" && as_dir
=.
16563 for as_base
in sh bash ksh sh5
; do
16566 if ("$as_dir/$as_base" -c '
16567 as_lineno_1=$LINENO
16568 as_lineno_2=$LINENO
16569 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16570 test "x$as_lineno_1" != "x$as_lineno_2" &&
16571 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16572 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16573 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16574 CONFIG_SHELL
=$as_dir/$as_base
16575 export CONFIG_SHELL
16576 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16584 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16585 # uniformly replaced by the line number. The first 'sed' inserts a
16586 # line-number line before each line; the second 'sed' does the real
16587 # work. The second script uses 'N' to pair each line-number line
16588 # with the numbered line, and appends trailing '-' during
16589 # substitution so that $LINENO is not a special case at line end.
16590 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16591 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16592 sed '=' <$as_myself |
16597 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16600 s,^['$as_cr_digits']*\n,,
16601 ' >$as_me.lineno
&&
16602 chmod +x
$as_me.lineno ||
16603 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16604 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16605 { (exit 1); exit 1; }; }
16607 # Don't try to exec as it changes $[0], causing all sort of problems
16608 # (the dirname of $[0] is not the place where we might find the
16609 # original and so on. Autoconf is especially sensible to this).
16611 # Exit status is that of the last command.
16616 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16617 *c
*,-n*) ECHO_N
= ECHO_C
='
16619 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16620 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16623 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16629 rm -f conf$$ conf$$.exe conf$$.
file
16631 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16632 # We could just check for DJGPP; but this test a) works b) is more generic
16633 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16634 if test -f conf$$.exe
; then
16635 # Don't use ln at all; we don't have any links
16640 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16645 rm -f conf$$ conf$$.exe conf$$.
file
16647 if mkdir
-p .
2>/dev
/null
; then
16650 test -d .
/-p && rmdir .
/-p
16654 as_executable_p
="test -f"
16656 # Sed expression to map a string onto a valid CPP name.
16657 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16659 # Sed expression to map a string onto a valid variable name.
16660 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16664 # We need space, tab and new line, in precisely that order.
16674 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16675 # report actual input values of CONFIG_FILES etc. instead of their
16676 # values after options handling. Logging --version etc. is OK.
16680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16681 ## Running $as_me. ##
16686 This file was extended by $as_me, which was
16687 generated by GNU Autoconf 2.59. Invocation command line was
16689 CONFIG_FILES = $CONFIG_FILES
16690 CONFIG_HEADERS = $CONFIG_HEADERS
16691 CONFIG_LINKS = $CONFIG_LINKS
16692 CONFIG_COMMANDS = $CONFIG_COMMANDS
16696 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16700 # Files that config.status was made for.
16701 if test -n "$ac_config_files"; then
16702 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16705 if test -n "$ac_config_headers"; then
16706 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16709 if test -n "$ac_config_links"; then
16710 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16713 if test -n "$ac_config_commands"; then
16714 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16717 cat >>$CONFIG_STATUS <<\_ACEOF
16720 \`$as_me' instantiates files from templates according to the
16721 current configuration.
16723 Usage: $0 [OPTIONS] [FILE]...
16725 -h, --help print this help, then exit
16726 -V, --version print version number, then exit
16727 -q, --quiet do not print progress messages
16728 -d, --debug don't remove temporary files
16729 --recheck update $as_me by reconfiguring in the same conditions
16730 --file=FILE[:TEMPLATE]
16731 instantiate the configuration file FILE
16732 --header=FILE[:TEMPLATE]
16733 instantiate the configuration header FILE
16735 Configuration files:
16738 Configuration headers:
16741 Configuration commands:
16744 Report bugs to <bug-autoconf@gnu.org>."
16747 cat >>$CONFIG_STATUS <<_ACEOF
16750 configured by $0, generated by GNU Autoconf 2.59,
16751 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16753 Copyright (C) 2003 Free Software Foundation, Inc.
16754 This config.status script is free software; the Free Software Foundation
16755 gives unlimited permission to copy, distribute and modify it."
16759 cat >>$CONFIG_STATUS <<\_ACEOF
16760 # If no file are specified by the user, then we need to provide default
16761 # value. By we need to know if files were specified by the user.
16767 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16768 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16776 *) # This is not an option, so the user has probably given explicit
16779 ac_need_defaults
=false
;;
16783 # Handling of the options.
16785 cat >>$CONFIG_STATUS <<\_ACEOF
16786 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16788 --version |
--vers* |
-V )
16789 echo "$ac_cs_version"; exit 0 ;;
16791 # Conflict between --help and --header
16792 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16793 Try \`$0 --help' for more information." >&5
16794 echo "$as_me: error: ambiguous option: $1
16795 Try \`$0 --help' for more information." >&2;}
16796 { (exit 1); exit 1; }; };;
16797 --help |
--hel |
-h )
16798 echo "$ac_cs_usage"; exit 0 ;;
16799 --debug |
--d* |
-d )
16801 --file |
--fil |
--fi |
--f )
16803 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16804 ac_need_defaults
=false
;;
16805 --header |
--heade |
--head |
--hea )
16807 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16808 ac_need_defaults
=false
;;
16809 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16810 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16813 # This is an error.
16814 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16815 Try \`$0 --help' for more information." >&5
16816 echo "$as_me: error: unrecognized option: $1
16817 Try \`$0 --help' for more information." >&2;}
16818 { (exit 1); exit 1; }; } ;;
16820 *) ac_config_targets
="$ac_config_targets $1" ;;
16826 ac_configure_extra_args
=
16828 if $ac_cs_silent; then
16830 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16834 cat >>$CONFIG_STATUS <<_ACEOF
16835 if \$ac_cs_recheck; then
16836 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16837 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16842 cat >>$CONFIG_STATUS <<_ACEOF
16844 # INIT-COMMANDS section.
16853 cat >>$CONFIG_STATUS <<\_ACEOF
16854 for ac_config_target
in $ac_config_targets
16856 case "$ac_config_target" in
16857 # Handling of arguments.
16858 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
16859 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16860 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
16861 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16862 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16863 { (exit 1); exit 1; }; };;
16867 # If the user did not use the arguments to specify the items to instantiate,
16868 # then the envvar interface is used. Set only those that are not.
16869 # We use the long form for the default assignment because of an extremely
16870 # bizarre bug on SunOS 4.1.3.
16871 if $ac_need_defaults; then
16872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16873 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16874 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16877 # Have a temporary directory for convenience. Make it in the build tree
16878 # simply because there is no reason to put it here, and in addition,
16879 # creating and moving files from /tmp can sometimes cause problems.
16880 # Create a temporary directory, and hook for its removal unless debugging.
16883 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16884 trap '{ (exit 1); exit 1; }' 1 2 13 15
16887 # Create a (secure) tmp directory for tmp files.
16890 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16891 test -n "$tmp" && test -d "$tmp"
16894 tmp
=.
/confstat$$
-$RANDOM
16895 (umask 077 && mkdir
$tmp)
16898 echo "$me: cannot create a temporary directory in ." >&2
16899 { (exit 1); exit 1; }
16904 cat >>$CONFIG_STATUS <<_ACEOF
16907 # CONFIG_FILES section.
16910 # No need to generate the scripts if there are no CONFIG_FILES.
16911 # This happens for instance when ./config.status config.h
16912 if test -n "\$CONFIG_FILES"; then
16913 # Protect against being on the right side of a sed subst in config.status.
16914 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16915 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16916 s,@SHELL@,$SHELL,;t t
16917 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16918 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16919 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16920 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16921 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16922 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16923 s,@exec_prefix@,$exec_prefix,;t t
16924 s,@prefix@,$prefix,;t t
16925 s,@program_transform_name@,$program_transform_name,;t t
16926 s,@bindir@,$bindir,;t t
16927 s,@sbindir@,$sbindir,;t t
16928 s,@libexecdir@,$libexecdir,;t t
16929 s,@datadir@,$datadir,;t t
16930 s,@sysconfdir@,$sysconfdir,;t t
16931 s,@sharedstatedir@,$sharedstatedir,;t t
16932 s,@localstatedir@,$localstatedir,;t t
16933 s,@libdir@,$libdir,;t t
16934 s,@includedir@,$includedir,;t t
16935 s,@oldincludedir@,$oldincludedir,;t t
16936 s,@infodir@,$infodir,;t t
16937 s,@mandir@,$mandir,;t t
16938 s,@build_alias@,$build_alias,;t t
16939 s,@host_alias@,$host_alias,;t t
16940 s,@target_alias@,$target_alias,;t t
16941 s,@DEFS@,$DEFS,;t t
16942 s,@ECHO_C@,$ECHO_C,;t t
16943 s,@ECHO_N@,$ECHO_N,;t t
16944 s,@ECHO_T@,$ECHO_T,;t t
16945 s,@LIBS@,$LIBS,;t t
16946 s,@build@,$build,;t t
16947 s,@build_cpu@,$build_cpu,;t t
16948 s,@build_vendor@,$build_vendor,;t t
16949 s,@build_os@,$build_os,;t t
16950 s,@host@,$host,;t t
16951 s,@host_cpu@,$host_cpu,;t t
16952 s,@host_vendor@,$host_vendor,;t t
16953 s,@host_os@,$host_os,;t t
16954 s,@target@,$target,;t t
16955 s,@target_cpu@,$target_cpu,;t t
16956 s,@target_vendor@,$target_vendor,;t t
16957 s,@target_os@,$target_os,;t t
16958 s,@target_noncanonical@,$target_noncanonical,;t t
16959 s,@build_libsubdir@,$build_libsubdir,;t t
16960 s,@build_subdir@,$build_subdir,;t t
16961 s,@host_subdir@,$host_subdir,;t t
16962 s,@target_subdir@,$target_subdir,;t t
16963 s,@GENINSRC@,$GENINSRC,;t t
16965 s,@CFLAGS@,$CFLAGS,;t t
16966 s,@LDFLAGS@,$LDFLAGS,;t t
16967 s,@CPPFLAGS@,$CPPFLAGS,;t t
16968 s,@ac_ct_CC@,$ac_ct_CC,;t t
16969 s,@EXEEXT@,$EXEEXT,;t t
16970 s,@OBJEXT@,$OBJEXT,;t t
16971 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16972 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16974 s,@EGREP@,$EGREP,;t t
16975 s,@strict1_warn@,$strict1_warn,;t t
16976 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16977 s,@warn_cflags@,$warn_cflags,;t t
16978 s,@WERROR@,$WERROR,;t t
16979 s,@nocommon_flag@,$nocommon_flag,;t t
16980 s,@TREEBROWSER@,$TREEBROWSER,;t t
16981 s,@valgrind_path@,$valgrind_path,;t t
16982 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16983 s,@valgrind_command@,$valgrind_command,;t t
16984 s,@coverage_flags@,$coverage_flags,;t t
16985 s,@enable_multilib@,$enable_multilib,;t t
16986 s,@enable_decimal_float@,$enable_decimal_float,;t t
16987 s,@enable_shared@,$enable_shared,;t t
16988 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16989 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16990 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16991 s,@onestep@,$onestep,;t t
16992 s,@datarootdir@,$datarootdir,;t t
16993 s,@docdir@,$docdir,;t t
16994 s,@htmldir@,$htmldir,;t t
16995 s,@SET_MAKE@,$SET_MAKE,;t t
16997 s,@LN_S@,$LN_S,;t t
16999 s,@RANLIB@,$RANLIB,;t t
17000 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17001 s,@ranlib_flags@,$ranlib_flags,;t t
17002 s,@INSTALL@,$INSTALL,;t t
17003 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17004 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17005 s,@make_compare_target@,$make_compare_target,;t t
17006 s,@have_mktemp_command@,$have_mktemp_command,;t t
17007 s,@MAKEINFO@,$MAKEINFO,;t t
17008 s,@BUILD_INFO@,$BUILD_INFO,;t t
17009 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17010 s,@FLEX@,$FLEX,;t t
17011 s,@BISON@,$BISON,;t t
17014 s,@stage1_cflags@,$stage1_cflags,;t t
17015 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17016 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17017 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17018 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17019 s,@LIBICONV@,$LIBICONV,;t t
17020 s,@LTLIBICONV@,$LTLIBICONV,;t t
17021 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17022 s,@manext@,$manext,;t t
17023 s,@objext@,$objext,;t t
17024 s,@gthread_flags@,$gthread_flags,;t t
17025 s,@extra_modes_file@,$extra_modes_file,;t t
17026 s,@extra_opt_files@,$extra_opt_files,;t t
17027 s,@USE_NLS@,$USE_NLS,;t t
17028 s,@LIBINTL@,$LIBINTL,;t t
17029 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17030 s,@INCINTL@,$INCINTL,;t t
17031 s,@XGETTEXT@,$XGETTEXT,;t t
17032 s,@GMSGFMT@,$GMSGFMT,;t t
17033 s,@POSUB@,$POSUB,;t t
17034 s,@CATALOGS@,$CATALOGS,;t t
17035 s,@DATADIRNAME@,$DATADIRNAME,;t t
17036 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17037 s,@GENCAT@,$GENCAT,;t t
17038 s,@CATOBJEXT@,$CATOBJEXT,;t t
17039 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17040 s,@CROSS@,$CROSS,;t t
17042 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17043 s,@inhibit_libc@,$inhibit_libc,;t t
17044 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17045 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17046 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17047 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17048 s,@collect2@,$collect2,;t t
17049 s,@gcc_cv_as@,$gcc_cv_as,;t t
17050 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17051 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17052 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17053 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17054 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17055 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17056 s,@libgcc_visibility@,$libgcc_visibility,;t t
17058 s,@zlibdir@,$zlibdir,;t t
17059 s,@zlibinc@,$zlibinc,;t t
17060 s,@MAINT@,$MAINT,;t t
17061 s,@gcc_tooldir@,$gcc_tooldir,;t t
17062 s,@dollar@,$dollar,;t t
17063 s,@slibdir@,$slibdir,;t t
17064 s,@objdir@,$objdir,;t t
17065 s,@subdirs@,$subdirs,;t t
17066 s,@srcdir@,$srcdir,;t t
17067 s,@all_boot_languages@,$all_boot_languages,;t t
17068 s,@all_compilers@,$all_compilers,;t t
17069 s,@all_gtfiles@,$all_gtfiles,;t t
17070 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17071 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17072 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17073 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17074 s,@all_languages@,$all_languages,;t t
17075 s,@all_selected_languages@,$all_selected_languages,;t t
17076 s,@all_stagestuff@,$all_stagestuff,;t t
17077 s,@build_exeext@,$build_exeext,;t t
17078 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17079 s,@build_xm_file_list@,$build_xm_file_list,;t t
17080 s,@build_xm_include_list@,$build_xm_include_list,;t t
17081 s,@build_xm_defines@,$build_xm_defines,;t t
17082 s,@check_languages@,$check_languages,;t t
17083 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17084 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17085 s,@cpp_install_dir@,$cpp_install_dir,;t t
17086 s,@xmake_file@,$xmake_file,;t t
17087 s,@tmake_file@,$tmake_file,;t t
17088 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17089 s,@extra_headers_list@,$extra_headers_list,;t t
17090 s,@extra_objs@,$extra_objs,;t t
17091 s,@extra_parts@,$extra_parts,;t t
17092 s,@extra_passes@,$extra_passes,;t t
17093 s,@extra_programs@,$extra_programs,;t t
17094 s,@float_h_file@,$float_h_file,;t t
17095 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17096 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17097 s,@host_exeext@,$host_exeext,;t t
17098 s,@host_xm_file_list@,$host_xm_file_list,;t t
17099 s,@host_xm_include_list@,$host_xm_include_list,;t t
17100 s,@host_xm_defines@,$host_xm_defines,;t t
17101 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17102 s,@install@,$install,;t t
17103 s,@lang_opt_files@,$lang_opt_files,;t t
17104 s,@lang_specs_files@,$lang_specs_files,;t t
17105 s,@lang_tree_files@,$lang_tree_files,;t t
17106 s,@local_prefix@,$local_prefix,;t t
17107 s,@md_file@,$md_file,;t t
17108 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17109 s,@out_file@,$out_file,;t t
17110 s,@out_object_file@,$out_object_file,;t t
17111 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17112 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17113 s,@thread_file@,$thread_file,;t t
17114 s,@tm_file_list@,$tm_file_list,;t t
17115 s,@tm_include_list@,$tm_include_list,;t t
17116 s,@tm_defines@,$tm_defines,;t t
17117 s,@tm_p_file_list@,$tm_p_file_list,;t t
17118 s,@tm_p_include_list@,$tm_p_include_list,;t t
17119 s,@xm_file_list@,$xm_file_list,;t t
17120 s,@xm_include_list@,$xm_include_list,;t t
17121 s,@xm_defines@,$xm_defines,;t t
17122 s,@c_target_objs@,$c_target_objs,;t t
17123 s,@cxx_target_objs@,$cxx_target_objs,;t t
17124 s,@target_cpu_default@,$target_cpu_default,;t t
17125 s,@GMPLIBS@,$GMPLIBS,;t t
17126 s,@GMPINC@,$GMPINC,;t t
17127 s,@LIBOBJS@,$LIBOBJS,;t t
17128 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17129 /@language_hooks@/r $language_hooks
17130 s,@language_hooks@,,;t t
17135 cat >>$CONFIG_STATUS <<\_ACEOF
17136 # Split the substitutions into bite-sized pieces for seds with
17137 # small command number limits, like on Digital OSF/1 and HP-UX.
17138 ac_max_sed_lines
=48
17139 ac_sed_frag
=1 # Number of current file.
17140 ac_beg
=1 # First line for current file.
17141 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17144 while $ac_more_lines; do
17145 if test $ac_beg -gt 1; then
17146 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17148 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17150 if test ! -s $tmp/subs.frag
; then
17151 ac_more_lines
=false
17153 # The purpose of the label and of the branching condition is to
17154 # speed up the sed processing (if there are no `@' at all, there
17155 # is no need to browse any of the substitutions).
17156 # These are the two extra sed commands mentioned above.
17158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17159 if test -z "$ac_sed_cmds"; then
17160 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17162 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17164 ac_sed_frag
=`expr $ac_sed_frag + 1`
17166 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17169 if test -z "$ac_sed_cmds"; then
17172 fi # test -n "$CONFIG_FILES"
17175 cat >>$CONFIG_STATUS <<\_ACEOF
17176 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17179 - |
*:- |
*:-:* ) # input from stdin
17181 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17182 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17183 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17184 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17185 * ) ac_file_in
=$ac_file.
in ;;
17188 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17189 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17191 X"$ac_file" : 'X\(//\)[^/]' \| \
17192 X"$ac_file" : 'X\(//\)$' \| \
17193 X"$ac_file" : 'X\(/\)' \| \
17194 . : '\(.\)' 2>/dev/null ||
17196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17198 /^X\(\/\/\)$/{ s//\1/; q; }
17199 /^X\(\/\).*/{ s//\1/; q; }
17201 { if $as_mkdir_p; then
17206 while test ! -d "$as_dir"; do
17207 as_dirs
="$as_dir $as_dirs"
17208 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17210 X"$as_dir" : 'X\(//\)[^/]' \| \
17211 X"$as_dir" : 'X\(//\)$' \| \
17212 X"$as_dir" : 'X\(/\)' \| \
17213 . : '\(.\)' 2>/dev/null ||
17215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17217 /^X\(\/\/\)$/{ s//\1/; q; }
17218 /^X\(\/\).*/{ s//\1/; q; }
17221 test ! -n "$as_dirs" || mkdir
$as_dirs
17222 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17223 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17224 { (exit 1); exit 1; }; }; }
17228 if test "$ac_dir" != .
; then
17229 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17230 # A "../" for each directory in $ac_dir_suffix.
17231 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17233 ac_dir_suffix
= ac_top_builddir
=
17237 .
) # No --srcdir option. We are building in place.
17239 if test -z "$ac_top_builddir"; then
17242 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17244 [\\/]* | ?
:[\\/]* ) # Absolute path.
17245 ac_srcdir
=$srcdir$ac_dir_suffix;
17246 ac_top_srcdir
=$srcdir ;;
17247 *) # Relative path.
17248 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17249 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17252 # Do not use `cd foo && pwd` to compute absolute paths, because
17253 # the directories may not exist.
17255 .
) ac_abs_builddir
="$ac_dir";;
17258 .
) ac_abs_builddir
=`pwd`;;
17259 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17260 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17263 case $ac_abs_builddir in
17264 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17266 case ${ac_top_builddir}.
in
17267 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17268 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17269 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17272 case $ac_abs_builddir in
17273 .
) ac_abs_srcdir
=$ac_srcdir;;
17276 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17277 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17278 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17281 case $ac_abs_builddir in
17282 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17284 case $ac_top_srcdir in
17285 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17286 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17287 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17293 if test x
"$ac_file" != x-
; then
17294 { echo "$as_me:$LINENO: creating $ac_file" >&5
17295 echo "$as_me: creating $ac_file" >&6;}
17298 # Let's still pretend it is `configure' which instantiates (i.e., don't
17299 # use $as_me), people would be surprised to read:
17300 # /* config.h. Generated by config.status. */
17301 if test x
"$ac_file" = x-
; then
17304 configure_input
="$ac_file. "
17306 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17307 sed 's,.*/,,'` by configure."
17309 # First look for the input files in the build tree, otherwise in the
17311 ac_file_inputs
=`IFS=:
17312 for f in $ac_file_in; do
17314 -) echo $tmp/stdin ;;
17316 # Absolute (can't be DOS-style, as IFS=:)
17317 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17318 echo "$as_me: error: cannot find input file: $f" >&2;}
17319 { (exit 1); exit 1; }; }
17322 if test -f "$f"; then
17325 elif test -f "$srcdir/$f"; then
17330 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17331 echo "$as_me: error: cannot find input file: $f" >&2;}
17332 { (exit 1); exit 1; }; }
17335 done` ||
{ (exit 1); exit 1; }
17337 cat >>$CONFIG_STATUS <<_ACEOF
17341 cat >>$CONFIG_STATUS <<\_ACEOF
17343 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17344 s
,@configure_input@
,$configure_input,;t t
17345 s
,@srcdir@
,$ac_srcdir,;t t
17346 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17347 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17348 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17349 s
,@builddir@
,$ac_builddir,;t t
17350 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17351 s
,@top_builddir@
,$ac_top_builddir,;t t
17352 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17353 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17355 if test x"$ac_file" != x-; then
17356 mv $tmp/out $ac_file
17364 cat >>$CONFIG_STATUS <<\_ACEOF
17367 # CONFIG_HEADER section.
17370 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17371 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17373 # ac_d sets the value in "#define NAME VALUE" lines.
17374 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17375 ac_dB
='[ ].*$,\1#\2'
17378 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17379 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17380 ac_uB
='$,\1#\2define\3'
17384 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17387 - |
*:- |
*:-:* ) # input from stdin
17389 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17390 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17391 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17392 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17393 * ) ac_file_in
=$ac_file.
in ;;
17396 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17397 echo "$as_me: creating $ac_file" >&6;}
17399 # First look for the input files in the build tree, otherwise in the
17401 ac_file_inputs
=`IFS=:
17402 for f in $ac_file_in; do
17404 -) echo $tmp/stdin ;;
17406 # Absolute (can't be DOS-style, as IFS=:)
17407 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17408 echo "$as_me: error: cannot find input file: $f" >&2;}
17409 { (exit 1); exit 1; }; }
17410 # Do quote $f, to prevent DOS paths from being IFS'd.
17413 if test -f "$f"; then
17416 elif test -f "$srcdir/$f"; then
17421 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17422 echo "$as_me: error: cannot find input file: $f" >&2;}
17423 { (exit 1); exit 1; }; }
17426 done` ||
{ (exit 1); exit 1; }
17427 # Remove the trailing spaces.
17428 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17432 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17433 # `conftest.undefs', that substitutes the proper values into
17434 # config.h.in to produce config.h. The first handles `#define'
17435 # templates, and the second `#undef' templates.
17436 # And first: Protect against being on the right side of a sed subst in
17437 # config.status. Protect against being in an unquoted here document
17438 # in config.status.
17439 rm -f conftest.defines conftest.undefs
17440 # Using a here document instead of a string reduces the quoting nightmare.
17441 # Putting comments in sed scripts is not portable.
17443 # `end' is used to avoid that the second main sed command (meant for
17444 # 0-ary CPP macros) applies to n-ary macro definitions.
17445 # See the Autoconf documentation for `clear'.
17446 cat >confdef2sed.
sed <<\_ACEOF
17451 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17453 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17456 # If some macros were called several times there might be several times
17457 # the same #defines, which is useless. Nevertheless, we may not want to
17458 # sort them, since we want the *last* AC-DEFINE to be honored.
17459 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17460 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17461 rm -f confdef2sed.sed
17463 # This sed command replaces #undef with comments. This is necessary, for
17464 # example, in the case of _POSIX_SOURCE, which is predefined and required
17465 # on some systems where configure will not decide to define it.
17466 cat >>conftest.undefs <<\_ACEOF
17467 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17470 # Break up conftest.defines because some shells have a limit on the size
17471 # of here documents, and old seds have small limits too (100 cmds).
17472 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17473 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17474 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17475 echo ' :' >>$CONFIG_STATUS
17476 rm -f conftest.tail
17477 while grep . conftest.defines >/dev/null
17479 # Write a limited-size here document to $tmp/defines.sed.
17480 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17481 # Speed up: don't consider the non `#define' lines.
17482 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17483 # Work around the forget-to-reset-the-flag bug.
17484 echo 't clr' >>$CONFIG_STATUS
17485 echo ': clr' >>$CONFIG_STATUS
17486 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17488 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17490 mv $tmp/out $tmp/in
17492 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17493 rm -f conftest.defines
17494 mv conftest.
tail conftest.defines
17496 rm -f conftest.defines
17497 echo ' fi # grep' >>$CONFIG_STATUS
17498 echo >>$CONFIG_STATUS
17500 # Break up conftest.undefs because some shells have a limit on the size
17501 # of here documents, and old seds have small limits too (100 cmds).
17502 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17503 rm -f conftest.
tail
17504 while grep . conftest.undefs
>/dev
/null
17506 # Write a limited-size here document to $tmp/undefs.sed.
17507 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17508 # Speed up: don't consider the non
`#undef'
17509 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17510 # Work around the forget-to-reset-the-flag bug.
17511 echo 't clr' >>$CONFIG_STATUS
17512 echo ': clr' >>$CONFIG_STATUS
17513 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17515 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17517 mv $tmp/out $tmp/in
17519 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17520 rm -f conftest.undefs
17521 mv conftest.tail conftest.undefs
17523 rm -f conftest.undefs
17525 cat >>$CONFIG_STATUS <<\_ACEOF
17526 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17527 # use $as_me), people would be surprised to read:
17528 # /* config.h. Generated by config.status. */
17529 if test x
"$ac_file" = x-
; then
17530 echo "/* Generated by configure. */" >$tmp/config.h
17532 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17534 cat $tmp/in >>$tmp/config.h
17536 if test x
"$ac_file" != x-
; then
17537 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17538 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17539 echo "$as_me: $ac_file is unchanged" >&6;}
17541 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17543 X"$ac_file" : 'X\(//\)[^/]' \| \
17544 X"$ac_file" : 'X\(//\)$' \| \
17545 X"$ac_file" : 'X\(/\)' \| \
17546 . : '\(.\)' 2>/dev/null ||
17548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17550 /^X\(\/\/\)$/{ s//\1/; q; }
17551 /^X\(\/\).*/{ s//\1/; q; }
17553 { if $as_mkdir_p; then
17558 while test ! -d "$as_dir"; do
17559 as_dirs
="$as_dir $as_dirs"
17560 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17562 X"$as_dir" : 'X\(//\)[^/]' \| \
17563 X"$as_dir" : 'X\(//\)$' \| \
17564 X"$as_dir" : 'X\(/\)' \| \
17565 . : '\(.\)' 2>/dev/null ||
17567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17569 /^X\(\/\/\)$/{ s//\1/; q; }
17570 /^X\(\/\).*/{ s//\1/; q; }
17573 test ! -n "$as_dirs" || mkdir
$as_dirs
17574 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17576 { (exit 1); exit 1; }; }; }
17579 mv $tmp/config.h
$ac_file
17583 rm -f $tmp/config.h
17587 cat >>$CONFIG_STATUS <<\_ACEOF
17590 # CONFIG_COMMANDS section.
17592 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17593 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17594 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17595 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17596 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17597 X"$ac_dest" : 'X\(//\)[^/]' \| \
17598 X"$ac_dest" : 'X\(//\)$' \| \
17599 X"$ac_dest" : 'X\(/\)' \| \
17600 . : '\(.\)' 2>/dev/null ||
17602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17604 /^X\(\/\/\)$/{ s//\1/; q; }
17605 /^X\(\/\).*/{ s//\1/; q; }
17607 { if $as_mkdir_p; then
17612 while test ! -d "$as_dir"; do
17613 as_dirs
="$as_dir $as_dirs"
17614 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17616 X"$as_dir" : 'X\(//\)[^/]' \| \
17617 X"$as_dir" : 'X\(//\)$' \| \
17618 X"$as_dir" : 'X\(/\)' \| \
17619 . : '\(.\)' 2>/dev/null ||
17621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17623 /^X\(\/\/\)$/{ s//\1/; q; }
17624 /^X\(\/\).*/{ s//\1/; q; }
17627 test ! -n "$as_dirs" || mkdir
$as_dirs
17628 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17629 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17630 { (exit 1); exit 1; }; }; }
17634 if test "$ac_dir" != .
; then
17635 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17636 # A "../" for each directory in $ac_dir_suffix.
17637 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17639 ac_dir_suffix
= ac_top_builddir
=
17643 .
) # No --srcdir option. We are building in place.
17645 if test -z "$ac_top_builddir"; then
17648 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17650 [\\/]* | ?
:[\\/]* ) # Absolute path.
17651 ac_srcdir
=$srcdir$ac_dir_suffix;
17652 ac_top_srcdir
=$srcdir ;;
17653 *) # Relative path.
17654 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17655 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17658 # Do not use `cd foo && pwd` to compute absolute paths, because
17659 # the directories may not exist.
17661 .
) ac_abs_builddir
="$ac_dir";;
17664 .
) ac_abs_builddir
=`pwd`;;
17665 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17666 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17669 case $ac_abs_builddir in
17670 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17672 case ${ac_top_builddir}.
in
17673 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17674 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17675 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17678 case $ac_abs_builddir in
17679 .
) ac_abs_srcdir
=$ac_srcdir;;
17682 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17683 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17684 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17687 case $ac_abs_builddir in
17688 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17690 case $ac_top_srcdir in
17691 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17692 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17693 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17698 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17699 echo "$as_me: executing $ac_dest commands" >&6;}
17702 case ${CONFIG_HEADERS} in
17703 *auto-host.h
:config.
in*)
17706 # Make sure all the subdirs exist.
17707 for d
in $subdirs doc build
17709 test -d $d || mkdir
$d
17711 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17712 # bootstrapping and the installation procedure can still use
17713 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17714 # FLAGS_TO_PASS has been modified to solve the problem there.
17715 # This is virtually a duplicate of what happens in configure.lang; we do
17716 # an extra check to make sure this only happens if ln -s can be used.
17719 for d
in ${subdirs} ; do
17720 STARTDIR
=`${PWDCMD-pwd}`
17722 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17725 $LN_S ..
/$t $t 2>/dev
/null
17736 cat >>$CONFIG_STATUS <<\_ACEOF
17738 { (exit 0); exit 0; }
17740 chmod +x
$CONFIG_STATUS
17741 ac_clean_files
=$ac_clean_files_save
17744 # configure is writing to config.log, and then calls config.status.
17745 # config.status does its own redirection, appending to config.log.
17746 # Unfortunately, on DOS this fails, as config.log is still kept open
17747 # by configure, so config.status won't be able to write to it; its
17748 # output is simply discarded. So we exec the FD to /dev/null,
17749 # effectively closing config.log, so it can be properly (re)opened and
17750 # appended to by config.status. When coming back to configure, we
17751 # need to make the FD available again.
17752 if test "$no_create" != yes; then
17754 ac_config_status_args
=
17755 test "$silent" = yes &&
17756 ac_config_status_args
="$ac_config_status_args --quiet"
17758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17761 # would make configure fail if this is the last instruction.
17762 $ac_cs_success ||
{ (exit 1); exit 1; }