2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: yes,no
,all
,none
,release.
871 Flags are
: assert
,fold,gc
,gcac
,misc
,
872 rtlflag
,rtl
,runtime
,tree
,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler
's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don
't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --disable-rpath do not hardcode runtime library paths
891 --enable-initfini-array use .init_array/.fini_array sections
892 --enable-sjlj-exceptions
893 arrange to use setjmp/longjmp exception handling
894 --enable-secureplt enable -msecure-plt by default for PowerPC
895 --disable-win32-registry
896 disable lookup of installation paths in the
897 Registry on Windows hosts
898 --enable-win32-registry enable registry lookup (default)
899 --enable-win32-registry=KEY
900 use KEY instead of GCC version as the last portion
902 --enable-maintainer-mode
903 enable make rules and dependencies not useful
904 (and sometimes confusing) to the casual installer
905 --enable-version-specific-runtime-libs
906 specify that runtime libraries should be
907 installed in a compiler-specific directory
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-local-prefix=DIR specifies directory to put local include
913 --with-gxx-include-dir=DIR
914 specifies directory to put g++ header files
915 --with-cpp-install-dir=DIR
916 install the user visible C preprocessor in DIR
917 (relative to PREFIX) as well as PREFIX/bin
918 --with-gnu-ld arrange to work with GNU ld.
919 --with-ld arrange to use the specified ld (full pathname)
920 --with-demangler-in-ld try to use demangler in GNU ld.
921 --with-gnu-as arrange to work with GNU as
922 --with-as arrange to use the specified as (full pathname)
923 --with-stabs arrange to use stabs instead of host debug format
924 --with-dwarf2 force the default debug format to be DWARF 2
925 --with-build-sysroot=sysroot
926 use sysroot as the system root during the build
927 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
928 --with-gnu-ld assume the C compiler uses GNU ld default=no
929 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
930 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
931 --with-system-libunwind use installed libunwind
932 --with-gc={page
,zone
} choose the garbage collection mechanism to use
934 --with-system-zlib use installed libz
935 --with-slibdir=DIR shared libraries
in DIR LIBDIR
937 Some influential environment variables
:
938 CC C compiler
command
939 CFLAGS C compiler flags
940 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
941 nonstandard directory
<lib dir
>
942 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
943 headers
in a nonstandard directory
<include dir
>
945 GMPLIBS How to link GMP
946 GMPINC How to
find GMP include files
948 Use these variables to override the choices made by
`configure' or to help
949 it to find libraries and programs with nonstandard names/locations.
954 if test "$ac_init_help" = "recursive"; then
955 # If there are subdirs, report their specific --help.
957 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
958 test -d $ac_dir || continue
961 if test "$ac_dir" != .; then
962 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
963 # A "../" for each directory in $ac_dir_suffix.
964 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
966 ac_dir_suffix= ac_top_builddir=
970 .) # No --srcdir option. We are building in place.
972 if test -z "$ac_top_builddir"; then
975 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
977 [\\/]* | ?:[\\/]* ) # Absolute path.
978 ac_srcdir=$srcdir$ac_dir_suffix;
979 ac_top_srcdir=$srcdir ;;
981 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
982 ac_top_srcdir=$ac_top_builddir$srcdir ;;
985 # Do not use `cd foo
&& pwd` to compute absolute paths, because
986 # the directories may not exist.
988 .) ac_abs_builddir="$ac_dir";;
991 .) ac_abs_builddir=`pwd`;;
992 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
993 *) ac_abs_builddir=`pwd`/"$ac_dir";;
996 case $ac_abs_builddir in
997 .) ac_abs_top_builddir=${ac_top_builddir}.;;
999 case ${ac_top_builddir}. in
1000 .) ac_abs_top_builddir=$ac_abs_builddir;;
1001 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1002 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1005 case $ac_abs_builddir in
1006 .) ac_abs_srcdir=$ac_srcdir;;
1009 .) ac_abs_srcdir=$ac_abs_builddir;;
1010 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1011 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1014 case $ac_abs_builddir in
1015 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 case $ac_top_srcdir in
1018 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1019 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1020 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1025 # Check for guested configure; otherwise get Cygnus style configure.
1026 if test -f $ac_srcdir/configure.gnu; then
1028 $SHELL $ac_srcdir/configure.gnu --help=recursive
1029 elif test -f $ac_srcdir/configure; then
1031 $SHELL $ac_srcdir/configure --help=recursive
1032 elif test -f $ac_srcdir/configure.ac ||
1033 test -f $ac_srcdir/configure.in; then
1035 $ac_configure --help
1037 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1043 test -n "$ac_init_help" && exit 0
1044 if $ac_init_version; then
1047 Copyright (C) 2003 Free Software Foundation, Inc.
1048 This configure script is free software; the Free Software Foundation
1049 gives unlimited permission to copy, distribute and modify it.
1055 This file contains any messages produced by compilers while
1056 running configure, to aid debugging if configure makes a mistake.
1058 It was created by $as_me, which was
1059 generated by GNU Autoconf 2.59. Invocation command line was
1070 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1071 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1072 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1073 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1074 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1076 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1077 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1079 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1080 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1081 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1082 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1083 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1084 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1085 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1093 test -z "$as_dir" && as_dir=.
1094 echo "PATH: $as_dir"
1109 # Keep a trace of the command line.
1110 # Strip out --no-create and --no-recursion so they do not pile up.
1111 # Strip out --silent because we don't want to record it for future runs.
1112 # Also quote any args containing shell meta-characters.
1113 # Make two passes to allow for proper duplicate-argument suppression.
1118 ac_must_keep_next=false
1124 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1128 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1129 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1132 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1134 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1135 if test $ac_must_keep_next = true; then
1136 ac_must_keep_next=false # Got value, back to normal.
1139 *=* | --config-cache | -C | -disable-* | --disable-* \
1140 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1141 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1142 | -with-* | --with-* | -without-* | --without-* | --x)
1143 case "$ac_configure_args0 " in
1144 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1147 -* ) ac_must_keep_next=true ;;
1150 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1151 # Get rid of the leading space.
1157 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1158 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1160 # When interrupted or exit'd, cleanup temporary files, and complete
1161 # config.log. We remove comments because anyway the quotes in there
1162 # would cause problems or look ugly.
1163 # WARNING: Be sure not to use single quotes in there, as some shells,
1164 # such as our DU 5.0 friend, will then `close
' the trap.
1165 trap 'exit_status
=$?
1166 # Save into config.log some information that might help in debugging.
1171 ## ---------------- ##
1172 ## Cache variables. ##
1173 ## ---------------- ##
1176 # The following way of writing the cache mishandles newlines in values,
1179 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1182 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1187 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1194 ## ----------------- ##
1195 ## Output variables. ##
1196 ## ----------------- ##
1199 for ac_var
in $ac_subst_vars
1201 eval ac_val
=$
`echo $ac_var`
1202 echo "$ac_var='"'"'$ac_val'"'"'"
1206 if test -n "$ac_subst_files"; then
1213 for ac_var
in $ac_subst_files
1215 eval ac_val
=$
`echo $ac_var`
1216 echo "$ac_var='"'"'$ac_val'"'"'"
1221 if test -s confdefs.h
; then
1228 sed "/^$/d" confdefs.h |
sort
1231 test "$ac_signal" != 0 &&
1232 echo "$as_me: caught signal $ac_signal"
1233 echo "$as_me: exit $exit_status"
1235 rm -f core
*.core
&&
1236 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1239 for ac_signal in 1 2 13 15; do
1240 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1245 rm -rf conftest* confdefs.h
1246 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1249 # Predefined preprocessor variables.
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_NAME "$PACKAGE_NAME"
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_STRING "$PACKAGE_STRING"
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1276 # Let the site file select an alternate cache file if it wants to.
1277 # Prefer explicitly selected file to automatically selected ones.
1278 if test -z "$CONFIG_SITE"; then
1279 if test "x$prefix" != xNONE; then
1280 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1282 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1285 for ac_site_file in $CONFIG_SITE; do
1286 if test -r "$ac_site_file"; then
1287 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1288 echo "$as_me: loading site script $ac_site_file" >&6;}
1289 sed 's
/^
/|
/' "$ac_site_file" >&5
1294 if test -r "$cache_file"; then
1295 # Some versions of bash will fail to source /dev/null (special
1296 # files actually), so we avoid doing that.
1297 if test -f "$cache_file"; then
1298 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1299 echo "$as_me: loading cache $cache_file" >&6;}
1301 [\\/]* | ?:[\\/]* ) . $cache_file;;
1302 *) . ./$cache_file;;
1306 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1307 echo "$as_me: creating cache $cache_file" >&6;}
1311 # Check that the precious variables saved in the cache have kept the same
1313 ac_cache_corrupted=false
1314 for ac_var in `(set) 2>&1 |
1315 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1316 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1317 eval ac_new_set=\$ac_env_${ac_var}_set
1318 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1319 eval ac_new_val="\$ac_env_${ac_var}_value"
1320 case $ac_old_set,$ac_new_set in
1322 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1324 ac_cache_corrupted=: ;;
1326 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1327 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1328 ac_cache_corrupted=: ;;
1331 if test "x$ac_old_val" != "x$ac_new_val"; then
1332 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1333 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1334 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1335 echo "$as_me: former value: $ac_old_val" >&2;}
1336 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1337 echo "$as_me: current value: $ac_new_val" >&2;}
1338 ac_cache_corrupted=:
1341 # Pass precious variables to config.status.
1342 if test "$ac_new_set" = set; then
1344 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1345 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1346 *) ac_arg=$ac_var=$ac_new_val ;;
1348 case " $ac_configure_args " in
1349 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1350 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1354 if $ac_cache_corrupted; then
1355 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1356 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1357 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1358 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1359 { (exit 1); exit 1; }; }
1363 ac_cpp='$CPP $CPPFLAGS'
1364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1365 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1387 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1390 gcc_version=`cat $srcdir/BASE-VER`
1392 # Determine the host, build, and target systems
1394 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1395 if test -f $ac_dir/install-sh; then
1397 ac_install_sh="$ac_aux_dir/install-sh -c"
1399 elif test -f $ac_dir/install.sh; then
1401 ac_install_sh="$ac_aux_dir/install.sh -c"
1403 elif test -f $ac_dir/shtool; then
1405 ac_install_sh="$ac_aux_dir/shtool install -c"
1409 if test -z "$ac_aux_dir"; then
1410 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1411 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1412 { (exit 1); exit 1; }; }
1414 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1415 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1416 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1418 # Make sure we can run config.sub.
1419 $ac_config_sub sun4 >/dev/null 2>&1 ||
1420 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1421 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1422 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: checking build system type" >&5
1425 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1426 if test "${ac_cv_build+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 ac_cv_build_alias=$build_alias
1430 test -z "$ac_cv_build_alias" &&
1431 ac_cv_build_alias=`$ac_config_guess`
1432 test -z "$ac_cv_build_alias" &&
1433 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1434 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1435 { (exit 1); exit 1; }; }
1436 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1443 echo "${ECHO_T}$ac_cv_build" >&6
1445 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1446 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1447 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1450 echo "$as_me:$LINENO: checking host system type" >&5
1451 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1452 if test "${ac_cv_host+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 ac_cv_host_alias=$host_alias
1456 test -z "$ac_cv_host_alias" &&
1457 ac_cv_host_alias=$ac_cv_build_alias
1458 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1465 echo "${ECHO_T}$ac_cv_host" >&6
1467 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1468 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1469 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1472 echo "$as_me:$LINENO: checking target system type" >&5
1473 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1474 if test "${ac_cv_target+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 ac_cv_target_alias=$target_alias
1478 test "x$ac_cv_target_alias" = "x" &&
1479 ac_cv_target_alias=$ac_cv_host_alias
1480 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1486 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1487 echo "${ECHO_T}$ac_cv_target" >&6
1488 target=$ac_cv_target
1489 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1490 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1491 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1494 # The aliases save the names the user supplied, while $host etc.
1495 # will get canonicalized.
1496 test -n "$target_alias" &&
1497 test "$program_prefix$program_suffix$program_transform_name" = \
1499 program_prefix=${target_alias}-
1501 # Determine the noncanonical target name, for directory use.
1502 case ${build_alias} in
1503 "") build_noncanonical=${build} ;;
1504 *) build_noncanonical=${build_alias} ;;
1507 case ${host_alias} in
1508 "") host_noncanonical=${build_noncanonical} ;;
1509 *) host_noncanonical=${host_alias} ;;
1512 case ${target_alias} in
1513 "") target_noncanonical=${host_noncanonical} ;;
1514 *) target_noncanonical=${target_alias} ;;
1520 # Determine the target- and build-specific subdirectories
1521 # Prefix 'build-
' so this never conflicts with target_subdir.
1522 build_subdir="build-${build_noncanonical}"
1523 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1524 if ( test $srcdir = . && test -d gcc ) \
1525 || test -d $srcdir/../host-${host_noncanonical}; then
1526 host_subdir="host-${host_noncanonical}"
1531 target_subdir=${target_noncanonical}
1534 # Set program_transform_name
1535 test "$program_prefix" != NONE &&
1536 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1537 # Use a double $ so make ignores it.
1538 test "$program_suffix" != NONE &&
1539 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1540 # Double any \ or $. echo might interpret backslashes.
1541 # By default was `s,x,x', remove it
if useless.
1542 cat <<\_ACEOF
>conftest.
sed
1543 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1545 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1549 # Check for bogus environment variables.
1550 # Test if LIBRARY_PATH contains the notation for the current directory
1551 # since this would lead to problems installing/building glibc.
1552 # LIBRARY_PATH contains the current directory if one of the following
1554 # - one of the terminals (":" and ";") is the first or last sign
1555 # - two terminals occur directly after each other
1556 # - the path contains an element with a dot in it
1557 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1558 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1559 case ${LIBRARY_PATH} in
1560 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1561 library_path_setting
="contains current directory"
1564 library_path_setting
="ok"
1567 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1568 echo "${ECHO_T}$library_path_setting" >&6
1569 if test "$library_path_setting" != "ok"; then
1570 { { echo "$as_me:$LINENO: error:
1571 *** LIBRARY_PATH shouldn't contain the current directory when
1572 *** building gcc. Please change the environment variable
1573 *** and run configure again." >&5
1574 echo "$as_me: error:
1575 *** LIBRARY_PATH shouldn't contain the current directory when
1576 *** building gcc. Please change the environment variable
1577 *** and run configure again." >&2;}
1578 { (exit 1); exit 1; }; }
1581 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1582 # since this would lead to problems installing/building glibc.
1583 # GCC_EXEC_PREFIX contains the current directory if one of the following
1585 # - one of the terminals (":" and ";") is the first or last sign
1586 # - two terminals occur directly after each other
1587 # - the path contains an element with a dot in it
1588 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1589 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1590 case ${GCC_EXEC_PREFIX} in
1591 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1592 gcc_exec_prefix_setting
="contains current directory"
1595 gcc_exec_prefix_setting
="ok"
1598 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1599 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1600 if test "$gcc_exec_prefix_setting" != "ok"; then
1601 { { echo "$as_me:$LINENO: error:
1602 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1603 *** building gcc. Please change the environment variable
1604 *** and run configure again." >&5
1605 echo "$as_me: error:
1606 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1607 *** building gcc. Please change the environment variable
1608 *** and run configure again." >&2;}
1609 { (exit 1); exit 1; }; }
1616 # Specify the local prefix
1619 # Check whether --with-local-prefix or --without-local-prefix was given.
1620 if test "${with_local_prefix+set}" = set; then
1621 withval
="$with_local_prefix"
1622 case "${withval}" in
1623 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1624 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1625 { (exit 1); exit 1; }; } ;;
1627 *) local_prefix
=$with_local_prefix ;;
1631 # Default local prefix if it is empty
1632 if test x
$local_prefix = x
; then
1633 local_prefix
=/usr
/local
1636 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1637 # passed in by the toplevel make and thus we'd get different behavior
1638 # depending on where we built the sources.
1639 gcc_gxx_include_dir
=
1640 # Specify the g++ header file directory
1642 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1643 if test "${with_gxx_include_dir+set}" = set; then
1644 withval
="$with_gxx_include_dir"
1645 case "${withval}" in
1646 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1647 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1648 { (exit 1); exit 1; }; } ;;
1650 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1654 if test x
${gcc_gxx_include_dir} = x
; then
1655 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1656 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1658 libstdcxx_incdir
='c++/$(version)'
1659 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1664 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1665 if test "${with_cpp_install_dir+set}" = set; then
1666 withval
="$with_cpp_install_dir"
1667 if test x
$withval = xyes
; then
1668 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1669 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1670 { (exit 1); exit 1; }; }
1671 elif test x
$withval != xno
; then
1672 cpp_install_dir
=$withval
1676 # We would like to our source tree to be readonly. However when releases or
1677 # pre-releases are generated, the flex/bison generated files as well as the
1678 # various formats of manuals need to be included along with the rest of the
1679 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1682 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1683 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1684 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1685 if test "${enable_generated_files_in_srcdir+set}" = set; then
1686 enableval
="$enable_generated_files_in_srcdir"
1687 generated_files_in_srcdir
=$enableval
1689 generated_files_in_srcdir
=no
1692 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1693 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1695 if test "$generated_files_in_srcdir" = "yes"; then
1702 # -------------------
1703 # Find default linker
1704 # -------------------
1708 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1709 if test "${with_gnu_ld+set}" = set; then
1710 withval
="$with_gnu_ld"
1711 gnu_ld_flag
="$with_gnu_ld"
1716 # With pre-defined ld
1718 # Check whether --with-ld or --without-ld was given.
1719 if test "${with_ld+set}" = set; then
1721 DEFAULT_LINKER
="$with_ld"
1723 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1724 if test ! -x "$DEFAULT_LINKER"; then
1725 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1726 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1727 { (exit 1); exit 1; }; }
1728 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1732 cat >>confdefs.h
<<_ACEOF
1733 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1738 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1739 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1740 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1741 if test x
"$gnu_ld_flag" = x
"no"; then
1742 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1743 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1745 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1746 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1749 echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1753 # With demangler in GNU ld
1755 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1756 if test "${with_demangler_in_ld+set}" = set; then
1757 withval
="$with_demangler_in_ld"
1758 demangler_in_ld
="$with_demangler_in_ld"
1763 # ----------------------
1764 # Find default assembler
1765 # ----------------------
1769 # Check whether --with-gnu-as or --without-gnu-as was given.
1770 if test "${with_gnu_as+set}" = set; then
1771 withval
="$with_gnu_as"
1772 gas_flag
="$with_gnu_as"
1778 # Check whether --with-as or --without-as was given.
1779 if test "${with_as+set}" = set; then
1781 DEFAULT_ASSEMBLER
="$with_as"
1783 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1784 if test ! -x "$DEFAULT_ASSEMBLER"; then
1785 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1786 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1787 { (exit 1); exit 1; }; }
1788 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1792 cat >>confdefs.h
<<_ACEOF
1793 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1798 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1799 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1800 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1801 if test x
"$gas_flag" = x
"no"; then
1802 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1803 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1805 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1806 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1817 # If a non-executable a.out is present (e.g. created by GNU as above even if
1818 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1819 # file, even when creating an executable, so an execution test fails.
1820 # Remove possible default executable files to avoid this.
1822 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1823 # Autoconf includes it.
1824 rm -f a.out a.exe b.out
1826 # Find the native compiler
1828 ac_cpp
='$CPP $CPPFLAGS'
1829 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1832 if test -n "$ac_tool_prefix"; then
1833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1834 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC
="$CC" # Let the user override the test.
1843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1847 test -z "$as_dir" && as_dir
=.
1848 for ac_exec_ext
in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 if test -n "$CC"; then
1861 echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1869 if test -z "$ac_cv_prog_CC"; then
1871 # Extract the first word of "gcc", so it can be a program name with args.
1872 set dummy gcc
; ac_word
=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$ac_ct_CC"; then
1879 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir
=.
1886 for ac_exec_ext
in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_ac_ct_CC
="gcc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1898 if test -n "$ac_ct_CC"; then
1899 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1900 echo "${ECHO_T}$ac_ct_CC" >&6
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1911 if test -z "$CC"; then
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1914 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC
="$CC" # Let the user override the test.
1923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir
=.
1928 for ac_exec_ext
in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 if test -n "$CC"; then
1941 echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1949 if test -z "$ac_cv_prog_CC"; then
1951 # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc
; ac_word
=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 if test -n "$ac_ct_CC"; then
1959 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir
=.
1966 for ac_exec_ext
in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 ac_cv_prog_ac_ct_CC
="cc"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6
1982 echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1992 if test -z "$CC"; then
1993 # Extract the first word of "cc", so it can be a program name with args.
1994 set dummy cc
; ac_word
=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_CC+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 if test -n "$CC"; then
2001 ac_cv_prog_CC
="$CC" # Let the user override the test.
2004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir
=.
2009 for ac_exec_ext
in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2012 ac_prog_rejected
=yes
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 if test $ac_prog_rejected = yes; then
2023 # We found a bogon in the path, so make sure we never use it.
2024 set dummy
$ac_cv_prog_CC
2026 if test $# != 0; then
2027 # We chose a different compiler from the bogus one.
2028 # However, it has the same basename, so the bogon will be chosen
2029 # first if we set CC to just the basename; use the full file name.
2031 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2037 if test -n "$CC"; then
2038 echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2046 if test -z "$CC"; then
2047 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2051 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC
="$CC" # Let the user override the test.
2060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir
=.
2065 for ac_exec_ext
in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 if test -n "$CC"; then
2078 echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2085 test -n "$CC" && break
2088 if test -z "$CC"; then
2092 # Extract the first word of "$ac_prog", so it can be a program name with args.
2093 set dummy
$ac_prog; ac_word
=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 if test -n "$ac_ct_CC"; then
2100 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir
=.
2107 for ac_exec_ext
in '' $ac_executable_extensions; do
2108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109 ac_cv_prog_ac_ct_CC
="$ac_prog"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2119 if test -n "$ac_ct_CC"; then
2120 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121 echo "${ECHO_T}$ac_ct_CC" >&6
2123 echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2127 test -n "$ac_ct_CC" && break
2136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: no acceptable C compiler found in \$PATH
2139 See \`config.log' for more details." >&2;}
2140 { (exit 1); exit 1; }; }
2142 # Provide some information about the compiler.
2143 echo "$as_me:$LINENO:" \
2144 "checking for C compiler version" >&5
2145 ac_compiler
=`set X $ac_compile; echo $2`
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2147 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2152 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }
2156 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2157 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }
2162 cat >conftest.
$ac_ext <<_ACEOF
2165 cat confdefs.h
>>conftest.
$ac_ext
2166 cat >>conftest.
$ac_ext <<_ACEOF
2167 /* end confdefs.h. */
2177 ac_clean_files_save
=$ac_clean_files
2178 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2179 # Try to create an executable without -o first, disregard a.out.
2180 # It will help us diagnose broken compilers, and finding out an intuition
2182 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2183 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2184 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2185 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2186 (eval $ac_link_default) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; then
2190 # Find the output, starting from the most likely. This scheme is
2191 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2194 # Be careful to initialize this variable, since it used to be cached.
2195 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2197 # b.out is created by i960 compilers.
2198 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2200 test -f "$ac_file" ||
continue
2202 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2205 # This is the source file.
2208 # We found the default executable, but exeext='' is most
2212 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2213 # FIXME: I believe we export ac_cv_exeext for Libtool,
2214 # but it would be cool to find out if it's true. Does anybody
2215 # maintain Libtool? --akim.
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.
$ac_ext >&5
2226 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: C compiler cannot create executables
2229 See \`config.log' for more details." >&2;}
2230 { (exit 77); exit 77; }; }
2233 ac_exeext
=$ac_cv_exeext
2234 echo "$as_me:$LINENO: result: $ac_file" >&5
2235 echo "${ECHO_T}$ac_file" >&6
2237 # Check the compiler produces executables we can run. If not, either
2238 # the compiler is broken, or we cross compile.
2239 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2240 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2241 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2242 # If not cross compiling, check that we can run a simple program.
2243 if test "$cross_compiling" != yes; then
2244 if { ac_try
='./$ac_file'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2252 if test "$cross_compiling" = maybe
; then
2255 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2265 echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6
2268 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2269 ac_clean_files
=$ac_clean_files_save
2270 # Check the compiler produces executables we can run. If not, either
2271 # the compiler is broken, or we cross compile.
2272 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2274 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2275 echo "${ECHO_T}$cross_compiling" >&6
2277 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2280 (eval $ac_link) 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; then
2284 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2285 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2286 # work properly (i.e., refer to `conftest.exe'), while it won't with
2288 for ac_file
in conftest.exe conftest conftest.
*; do
2289 test -f "$ac_file" ||
continue
2291 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2292 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2299 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2302 See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2306 rm -f conftest
$ac_cv_exeext
2307 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2308 echo "${ECHO_T}$ac_cv_exeext" >&6
2310 rm -f conftest.
$ac_ext
2311 EXEEXT
=$ac_cv_exeext
2313 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2314 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2315 if test "${ac_cv_objext+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 cat >conftest.
$ac_ext <<_ACEOF
2321 cat confdefs.h
>>conftest.
$ac_ext
2322 cat >>conftest.
$ac_ext <<_ACEOF
2323 /* end confdefs.h. */
2333 rm -f conftest.o conftest.obj
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; then
2339 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2341 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2342 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.
$ac_ext >&5
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2357 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2359 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6
2361 OBJEXT
=$ac_cv_objext
2363 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.
$ac_ext <<_ACEOF
2371 cat confdefs.h
>>conftest.
$ac_ext
2372 cat >>conftest.
$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2386 rm -f conftest.
$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2390 grep -v '^ *+' conftest.er1
>conftest.err
2392 cat conftest.err
>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try
='test -z "$ac_c_werror_flag"
2396 || test ! -s conftest.err'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try
='test -s conftest.$ac_objext'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.
$ac_ext >&5
2415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2416 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2419 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2420 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2421 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2422 ac_test_CFLAGS
=${CFLAGS+set}
2423 ac_save_CFLAGS
=$CFLAGS
2425 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2427 if test "${ac_cv_prog_cc_g+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 cat >conftest.
$ac_ext <<_ACEOF
2433 cat confdefs.h
>>conftest.
$ac_ext
2434 cat >>conftest.
$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2445 rm -f conftest.
$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1
>conftest.err
2451 cat conftest.err
>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try
='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try
='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.
$ac_ext >&5
2474 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2476 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2477 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2478 if test "$ac_test_CFLAGS" = set; then
2479 CFLAGS
=$ac_save_CFLAGS
2480 elif test $ac_cv_prog_cc_g = yes; then
2481 if test "$GCC" = yes; then
2487 if test "$GCC" = yes; then
2493 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2494 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2495 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 ac_cv_prog_cc_stdc
=no
2500 cat >conftest.
$ac_ext <<_ACEOF
2503 cat confdefs.h
>>conftest.
$ac_ext
2504 cat >>conftest.
$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2508 #include <sys/types.h>
2509 #include <sys/stat.h>
2510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2511 struct buf { int x; };
2512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2513 static char *e (p, i)
2519 static char *f (char * (*g) (char **, int), char **p, ...)
2524 s = g (p, va_arg (v,int));
2529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2530 function prototypes and stuff, but not '\xHH' hex character constants.
2531 These don't provoke an error unfortunately, instead are silently treated
2532 as 'x'. The following induces an error, until -std1 is added to get
2533 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2534 array size at least. It's necessary to write '\x00'==0 to get something
2535 that's true only with -std1. */
2536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2538 int test (int i, double x);
2539 struct s1 {int (*f) (int a);};
2540 struct s2 {int (*f) (double a);};
2541 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2547 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2552 # Don't try gcc -ansi; that turns off useful extensions and
2553 # breaks some systems' header files.
2554 # AIX -qlanglvl=ansi
2555 # Ultrix and OSF/1 -std1
2556 # HP-UX 10.20 and later -Ae
2557 # HP-UX older versions -Aa -D_HPUX_SOURCE
2558 # SVR4 -Xc -D__EXTENSIONS__
2559 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2561 CC
="$ac_save_CC $ac_arg"
2562 rm -f conftest.
$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2566 grep -v '^ *+' conftest.er1
>conftest.err
2568 cat conftest.err
>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try
='test -z "$ac_c_werror_flag"
2572 || test ! -s conftest.err'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try
='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 ac_cv_prog_cc_stdc
=$ac_arg
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.
$ac_ext >&5
2591 rm -f conftest.err conftest.
$ac_objext
2593 rm -f conftest.
$ac_ext conftest.
$ac_objext
2598 case "x$ac_cv_prog_cc_stdc" in
2600 echo "$as_me:$LINENO: result: none needed" >&5
2601 echo "${ECHO_T}none needed" >&6 ;;
2603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2605 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2608 # Some people use a C++ compiler to compile C. Since we use `exit',
2609 # in C++ we need to declare it. In case someone uses the same compiler
2610 # for both compiling C and C++ we need to have the C++ compiler decide
2611 # the declaration of exit, since it's the most demanding environment.
2612 cat >conftest.
$ac_ext <<_ACEOF
2617 rm -f conftest.
$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2621 grep -v '^ *+' conftest.er1
>conftest.err
2623 cat conftest.err
>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try
='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try
='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 for ac_declaration
in \
2641 'extern "C" void std::exit (int) throw (); using std::exit;' \
2642 'extern "C" void std::exit (int); using std::exit;' \
2643 'extern "C" void exit (int) throw ();' \
2644 'extern "C" void exit (int);' \
2647 cat >conftest.
$ac_ext <<_ACEOF
2650 cat confdefs.h
>>conftest.
$ac_ext
2651 cat >>conftest.
$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2663 rm -f conftest.
$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>conftest.er1
2667 grep -v '^ *+' conftest.er1
>conftest.err
2669 cat conftest.err
>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try
='test -z "$ac_c_werror_flag"
2673 || test ! -s conftest.err'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; } &&
2679 { ac_try
='test -s conftest.$ac_objext'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.
$ac_ext >&5
2692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2693 cat >conftest.
$ac_ext <<_ACEOF
2696 cat confdefs.h
>>conftest.
$ac_ext
2697 cat >>conftest.
$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2708 rm -f conftest.
$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>conftest.er1
2712 grep -v '^ *+' conftest.er1
>conftest.err
2714 cat conftest.err
>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try
='test -z "$ac_c_werror_flag"
2718 || test ! -s conftest.err'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try
='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.
$ac_ext >&5
2736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2739 if test -n "$ac_declaration"; then
2740 echo '#ifdef __cplusplus' >>confdefs.h
2741 echo $ac_declaration >>confdefs.h
2742 echo '#endif' >>confdefs.h
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.
$ac_ext >&5
2750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2752 ac_cpp
='$CPP $CPPFLAGS'
2753 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2757 if test "x$CC" != xcc
; then
2758 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2759 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2761 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2762 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2764 set dummy
$CC; ac_cc
=`echo $2 |
2765 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2766 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 cat >conftest.
$ac_ext <<_ACEOF
2772 cat confdefs.h
>>conftest.
$ac_ext
2773 cat >>conftest.
$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2784 # Make sure it works both with $CC and with simple cc.
2785 # We do the test twice because some compilers refuse to overwrite an
2786 # existing .o file with -o, though they will create one.
2787 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2788 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); };
2799 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2800 if test "x$CC" != xcc
; then
2801 # Test first that cc exists at all.
2802 if { ac_try
='cc -c conftest.$ac_ext >&5'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2809 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); };
2823 # cc exists but doesn't like -o.
2824 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2829 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2834 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2835 echo "$as_me:$LINENO: result: yes" >&5
2836 echo "${ECHO_T}yes" >&6
2838 echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6
2841 cat >>confdefs.h
<<\_ACEOF
2842 #define NO_MINUS_C_MINUS_O 1
2847 # expand $ac_aux_dir to an absolute path
2848 am_aux_dir
=`cd $ac_aux_dir && pwd`
2850 # FIXME: we rely on the cache variable name because
2851 # there is no other way.
2853 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2854 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2855 # Losing compiler, so override with the script.
2856 # FIXME: It is wrong to rewrite CC.
2857 # But if we don't then we get into trouble of one sort or another.
2858 # A longer-term fix would be to have automake use am__CC in this case,
2859 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2860 CC
="$am_aux_dir/compile $CC"
2863 # autoconf is lame and doesn't give us any substitution variable for this.
2864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2865 NO_MINUS_C_MINUS_O
=yes
2867 OUTPUT_OPTION
='-o $@'
2872 # -------------------------
2873 # Check C compiler features
2874 # -------------------------
2877 ac_cpp
='$CPP $CPPFLAGS'
2878 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2887 if test -z "$CPP"; then
2888 if test "${ac_cv_prog_CPP+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 # Double quotes because CPP needs to be expanded
2892 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895 for ac_c_preproc_warn_flag
in '' yes
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat >conftest.
$ac_ext <<_ACEOF
2906 cat confdefs.h
>>conftest.
$ac_ext
2907 cat >>conftest.
$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2910 # include <limits.h>
2912 # include <assert.h>
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1
>conftest.err
2921 cat conftest.err
>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } >/dev
/null
; then
2924 if test -s conftest.err
; then
2925 ac_cpp_err
=$ac_c_preproc_warn_flag
2926 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2933 if test -z "$ac_cpp_err"; then
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.
$ac_ext >&5
2939 # Broken: fails on valid input.
2942 rm -f conftest.err conftest.
$ac_ext
2944 # OK, works on sane cases. Now check whether non-existent headers
2945 # can be detected and how.
2946 cat >conftest.
$ac_ext <<_ACEOF
2949 cat confdefs.h
>>conftest.
$ac_ext
2950 cat >>conftest.
$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <ac_nonexistent.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1
>conftest.err
2959 cat conftest.err
>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev
/null
; then
2962 if test -s conftest.err
; then
2963 ac_cpp_err
=$ac_c_preproc_warn_flag
2964 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2971 if test -z "$ac_cpp_err"; then
2972 # Broken: success on invalid input.
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.
$ac_ext >&5
2978 # Passes both tests.
2982 rm -f conftest.err conftest.
$ac_ext
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.
$ac_ext
2987 if $ac_preproc_ok; then
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3002 for ac_c_preproc_warn_flag
in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.
$ac_ext <<_ACEOF
3013 cat confdefs.h
>>conftest.
$ac_ext
3014 cat >>conftest.
$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3017 # include <limits.h>
3019 # include <assert.h>
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1
>conftest.err
3028 cat conftest.err
>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev
/null
; then
3031 if test -s conftest.err
; then
3032 ac_cpp_err
=$ac_c_preproc_warn_flag
3033 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3040 if test -z "$ac_cpp_err"; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.
$ac_ext >&5
3046 # Broken: fails on valid input.
3049 rm -f conftest.err conftest.
$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3064 grep -v '^ *+' conftest.er1
>conftest.err
3066 cat conftest.err
>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev
/null
; then
3069 if test -s conftest.err
; then
3070 ac_cpp_err
=$ac_c_preproc_warn_flag
3071 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.
$ac_ext >&5
3085 # Passes both tests.
3089 rm -f conftest.err conftest.
$ac_ext
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.
$ac_ext
3094 if $ac_preproc_ok; then
3097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3105 ac_cpp
='$CPP $CPPFLAGS'
3106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3111 echo "$as_me:$LINENO: checking for inline" >&5
3112 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3113 if test "${ac_cv_c_inline+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 for ac_kw
in inline __inline__ __inline
; do
3118 cat >conftest.
$ac_ext <<_ACEOF
3121 cat confdefs.h
>>conftest.
$ac_ext
3122 cat >>conftest.
$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3126 static $ac_kw foo_t static_foo () {return 0; }
3127 $ac_kw foo_t foo () {return 0; }
3131 rm -f conftest.
$ac_objext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>conftest.er1
3135 grep -v '^ *+' conftest.er1
>conftest.err
3137 cat conftest.err
>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try
='test -z "$ac_c_werror_flag"
3141 || test ! -s conftest.err'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try
='test -s conftest.$ac_objext'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 ac_cv_c_inline
=$ac_kw; break
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.
$ac_ext >&5
3159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3163 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3164 echo "${ECHO_T}$ac_cv_c_inline" >&6
3167 case $ac_cv_c_inline in
3170 case $ac_cv_c_inline in
3172 *) ac_val
=$ac_cv_c_inline;;
3174 cat >>confdefs.h
<<_ACEOF
3176 #define inline $ac_val
3183 # sizeof(char) is 1 by definition.
3185 echo "$as_me:$LINENO: checking for egrep" >&5
3186 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3187 if test "${ac_cv_prog_egrep+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3191 then ac_cv_prog_egrep
='grep -E'
3192 else ac_cv_prog_egrep
='egrep'
3195 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3196 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3197 EGREP
=$ac_cv_prog_egrep
3200 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3202 if test "${ac_cv_header_stdc+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 cat >conftest.
$ac_ext <<_ACEOF
3208 cat confdefs.h
>>conftest.
$ac_ext
3209 cat >>conftest.
$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3224 rm -f conftest.
$ac_objext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>conftest.er1
3228 grep -v '^ *+' conftest.er1
>conftest.err
3230 cat conftest.err
>&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try
='test -z "$ac_c_werror_flag"
3234 || test ! -s conftest.err'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; } &&
3240 { ac_try
='test -s conftest.$ac_objext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_cv_header_stdc
=yes
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.
$ac_ext >&5
3251 ac_cv_header_stdc
=no
3253 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3255 if test $ac_cv_header_stdc = yes; then
3256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3257 cat >conftest.
$ac_ext <<_ACEOF
3260 cat confdefs.h
>>conftest.
$ac_ext
3261 cat >>conftest.
$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3267 $EGREP "memchr" >/dev
/null
2>&1; then
3270 ac_cv_header_stdc
=no
3276 if test $ac_cv_header_stdc = yes; then
3277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3278 cat >conftest.
$ac_ext <<_ACEOF
3281 cat confdefs.h
>>conftest.
$ac_ext
3282 cat >>conftest.
$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3288 $EGREP "free" >/dev
/null
2>&1; then
3291 ac_cv_header_stdc
=no
3297 if test $ac_cv_header_stdc = yes; then
3298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3299 if test "$cross_compiling" = yes; then
3302 cat >conftest.
$ac_ext <<_ACEOF
3305 cat confdefs.h
>>conftest.
$ac_ext
3306 cat >>conftest.
$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3309 #if ((' ' & 0x0FF) == 0x020)
3310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3313 # define ISLOWER(c) \
3314 (('a' <= (c) && (c) <= 'i') \
3315 || ('j' <= (c) && (c) <= 'r') \
3316 || ('s' <= (c) && (c) <= 'z'))
3317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3325 for (i = 0; i < 256; i++)
3326 if (XOR (islower (i), ISLOWER (i))
3327 || toupper (i) != TOUPPER (i))
3332 rm -f conftest
$ac_exeext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3334 (eval $ac_link) 2>&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3345 echo "$as_me: program exited with status $ac_status" >&5
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.
$ac_ext >&5
3350 ac_cv_header_stdc
=no
3352 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3356 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3357 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3358 if test $ac_cv_header_stdc = yes; then
3360 cat >>confdefs.h
<<\_ACEOF
3361 #define STDC_HEADERS 1
3366 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3376 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3377 inttypes.h stdint.h unistd.h
3379 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3380 echo "$as_me:$LINENO: checking for $ac_header" >&5
3381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 cat >conftest.
$ac_ext <<_ACEOF
3388 cat confdefs.h
>>conftest.
$ac_ext
3389 cat >>conftest.
$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 $ac_includes_default
3393 #include <$ac_header>
3395 rm -f conftest.
$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1
>conftest.err
3401 cat conftest.err
>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try
='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try
='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 eval "$as_ac_Header=yes"
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.
$ac_ext >&5
3422 eval "$as_ac_Header=no"
3424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3429 cat >>confdefs.h
<<_ACEOF
3430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3438 echo "$as_me:$LINENO: checking for void *" >&5
3439 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3440 if test "${ac_cv_type_void_p+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 cat >conftest.
$ac_ext <<_ACEOF
3446 cat confdefs.h
>>conftest.
$ac_ext
3447 cat >>conftest.
$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3449 $ac_includes_default
3455 if (sizeof (void *))
3461 rm -f conftest.
$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>conftest.er1
3465 grep -v '^ *+' conftest.er1
>conftest.err
3467 cat conftest.err
>&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try
='test -z "$ac_c_werror_flag"
3471 || test ! -s conftest.err'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try
='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 ac_cv_type_void_p
=yes
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.
$ac_ext >&5
3488 ac_cv_type_void_p
=no
3490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3492 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3493 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3495 echo "$as_me:$LINENO: checking size of void *" >&5
3496 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3497 if test "${ac_cv_sizeof_void_p+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 if test "$ac_cv_type_void_p" = yes; then
3501 # The cast to unsigned long works around a bug in the HP C Compiler
3502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3504 # This bug is HP SR number 8606223364.
3505 if test "$cross_compiling" = yes; then
3506 # Depending upon the size, compute the lo and hi bounds.
3507 cat >conftest.
$ac_ext <<_ACEOF
3510 cat confdefs.h
>>conftest.
$ac_ext
3511 cat >>conftest.
$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 $ac_includes_default
3517 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3524 rm -f conftest.
$ac_objext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3526 (eval $ac_compile) 2>conftest.er1
3528 grep -v '^ *+' conftest.er1
>conftest.err
3530 cat conftest.err
>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try
='test -z "$ac_c_werror_flag"
3534 || test ! -s conftest.err'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; } &&
3540 { ac_try
='test -s conftest.$ac_objext'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3548 cat >conftest.
$ac_ext <<_ACEOF
3551 cat confdefs.h
>>conftest.
$ac_ext
3552 cat >>conftest.
$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 $ac_includes_default
3558 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3565 rm -f conftest.
$ac_objext
3566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567 (eval $ac_compile) 2>conftest.er1
3569 grep -v '^ *+' conftest.er1
>conftest.err
3571 cat conftest.err
>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try
='test -z "$ac_c_werror_flag"
3575 || test ! -s conftest.err'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; } &&
3581 { ac_try
='test -s conftest.$ac_objext'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; }; then
3587 ac_hi
=$ac_mid; break
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.
$ac_ext >&5
3592 ac_lo
=`expr $ac_mid + 1`
3593 if test $ac_lo -le $ac_mid; then
3597 ac_mid
=`expr 2 '*' $ac_mid + 1`
3599 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.
$ac_ext >&5
3605 cat >conftest.
$ac_ext <<_ACEOF
3608 cat confdefs.h
>>conftest.
$ac_ext
3609 cat >>conftest.
$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 $ac_includes_default
3615 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3622 rm -f conftest.
$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3626 grep -v '^ *+' conftest.er1
>conftest.err
3628 cat conftest.err
>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try
='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try
='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3646 cat >conftest.
$ac_ext <<_ACEOF
3649 cat confdefs.h
>>conftest.
$ac_ext
3650 cat >>conftest.
$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652 $ac_includes_default
3656 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3663 rm -f conftest.
$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>conftest.er1
3667 grep -v '^ *+' conftest.er1
>conftest.err
3669 cat conftest.err
>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try
='test -z "$ac_c_werror_flag"
3673 || test ! -s conftest.err'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try
='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_lo
=$ac_mid; break
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.
$ac_ext >&5
3690 ac_hi
=`expr '(' $ac_mid ')' - 1`
3691 if test $ac_mid -le $ac_hi; then
3695 ac_mid
=`expr 2 '*' $ac_mid`
3697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.
$ac_ext >&5
3705 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3708 # Binary search between lo and hi bounds.
3709 while test "x$ac_lo" != "x$ac_hi"; do
3710 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3711 cat >conftest.
$ac_ext <<_ACEOF
3714 cat confdefs.h
>>conftest.
$ac_ext
3715 cat >>conftest.
$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3717 $ac_includes_default
3721 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3728 rm -f conftest.
$ac_objext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730 (eval $ac_compile) 2>conftest.er1
3732 grep -v '^ *+' conftest.er1
>conftest.err
3734 cat conftest.err
>&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } &&
3737 { ac_try
='test -z "$ac_c_werror_flag"
3738 || test ! -s conftest.err'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; } &&
3744 { ac_try
='test -s conftest.$ac_objext'
3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.
$ac_ext >&5
3755 ac_lo
=`expr '(' $ac_mid ')' + 1`
3757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3760 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3761 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3762 See \`config.log' for more details." >&5
3763 echo "$as_me: error: cannot compute sizeof (void *), 77
3764 See \`config.log' for more details." >&2;}
3765 { (exit 1); exit 1; }; } ;;
3768 if test "$cross_compiling" = yes; then
3769 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3770 See \`config.log' for more details." >&5
3771 echo "$as_me: error: cannot run test program while cross compiling
3772 See \`config.log' for more details." >&2;}
3773 { (exit 1); exit 1; }; }
3775 cat >conftest.
$ac_ext <<_ACEOF
3778 cat confdefs.h
>>conftest.
$ac_ext
3779 cat >>conftest.
$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3782 long longval () { return (long) (sizeof (void *)); }
3783 unsigned long ulongval () { return (long) (sizeof (void *)); }
3790 FILE *f = fopen ("conftest.val", "w");
3793 if (((long) (sizeof (void *))) < 0)
3795 long i = longval ();
3796 if (i != ((long) (sizeof (void *))))
3798 fprintf (f, "%ld\n", i);
3802 unsigned long i = ulongval ();
3803 if (i != ((long) (sizeof (void *))))
3805 fprintf (f, "%lu\n", i);
3807 exit (ferror (f) || fclose (f) != 0);
3813 rm -f conftest
$ac_exeext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815 (eval $ac_link) 2>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 ac_cv_sizeof_void_p
=`cat conftest.val`
3826 echo "$as_me: program exited with status $ac_status" >&5
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.
$ac_ext >&5
3831 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3832 See \`config.log' for more details." >&5
3833 echo "$as_me: error: cannot compute sizeof (void *), 77
3834 See \`config.log' for more details." >&2;}
3835 { (exit 1); exit 1; }; }
3837 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3842 ac_cv_sizeof_void_p
=0
3845 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3846 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3847 cat >>confdefs.h
<<_ACEOF
3848 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3852 echo "$as_me:$LINENO: checking for short" >&5
3853 echo $ECHO_N "checking for short... $ECHO_C" >&6
3854 if test "${ac_cv_type_short+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.
$ac_ext <<_ACEOF
3860 cat confdefs.h
>>conftest.
$ac_ext
3861 cat >>conftest.
$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 $ac_includes_default
3875 rm -f conftest.
$ac_objext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3879 grep -v '^ *+' conftest.er1
>conftest.err
3881 cat conftest.err
>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try
='test -z "$ac_c_werror_flag"
3885 || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try
='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_cv_type_short
=yes
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.
$ac_ext >&5
3904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3906 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3907 echo "${ECHO_T}$ac_cv_type_short" >&6
3909 echo "$as_me:$LINENO: checking size of short" >&5
3910 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3911 if test "${ac_cv_sizeof_short+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 if test "$ac_cv_type_short" = yes; then
3915 # The cast to unsigned long works around a bug in the HP C Compiler
3916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3918 # This bug is HP SR number 8606223364.
3919 if test "$cross_compiling" = yes; then
3920 # Depending upon the size, compute the lo and hi bounds.
3921 cat >conftest.
$ac_ext <<_ACEOF
3924 cat confdefs.h
>>conftest.
$ac_ext
3925 cat >>conftest.
$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 $ac_includes_default
3931 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3938 rm -f conftest.
$ac_objext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3940 (eval $ac_compile) 2>conftest.er1
3942 grep -v '^ *+' conftest.er1
>conftest.err
3944 cat conftest.err
>&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } &&
3947 { ac_try
='test -z "$ac_c_werror_flag"
3948 || test ! -s conftest.err'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; } &&
3954 { ac_try
='test -s conftest.$ac_objext'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3962 cat >conftest.
$ac_ext <<_ACEOF
3965 cat confdefs.h
>>conftest.
$ac_ext
3966 cat >>conftest.
$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968 $ac_includes_default
3972 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3979 rm -f conftest.
$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>conftest.er1
3983 grep -v '^ *+' conftest.er1
>conftest.err
3985 cat conftest.err
>&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try
='test -z "$ac_c_werror_flag"
3989 || test ! -s conftest.err'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; } &&
3995 { ac_try
='test -s conftest.$ac_objext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_hi
=$ac_mid; break
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.
$ac_ext >&5
4006 ac_lo
=`expr $ac_mid + 1`
4007 if test $ac_lo -le $ac_mid; then
4011 ac_mid
=`expr 2 '*' $ac_mid + 1`
4013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.
$ac_ext >&5
4019 cat >conftest.
$ac_ext <<_ACEOF
4022 cat confdefs.h
>>conftest.
$ac_ext
4023 cat >>conftest.
$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4029 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4036 rm -f conftest.
$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4040 grep -v '^ *+' conftest.er1
>conftest.err
4042 cat conftest.err
>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try
='test -z "$ac_c_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try
='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4060 cat >conftest.
$ac_ext <<_ACEOF
4063 cat confdefs.h
>>conftest.
$ac_ext
4064 cat >>conftest.
$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 $ac_includes_default
4070 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4077 rm -f conftest.
$ac_objext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4079 (eval $ac_compile) 2>conftest.er1
4081 grep -v '^ *+' conftest.er1
>conftest.err
4083 cat conftest.err
>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try
='test -z "$ac_c_werror_flag"
4087 || test ! -s conftest.err'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try
='test -s conftest.$ac_objext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_lo
=$ac_mid; break
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.
$ac_ext >&5
4104 ac_hi
=`expr '(' $ac_mid ')' - 1`
4105 if test $ac_mid -le $ac_hi; then
4109 ac_mid
=`expr 2 '*' $ac_mid`
4111 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.
$ac_ext >&5
4119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4122 # Binary search between lo and hi bounds.
4123 while test "x$ac_lo" != "x$ac_hi"; do
4124 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4125 cat >conftest.
$ac_ext <<_ACEOF
4128 cat confdefs.h
>>conftest.
$ac_ext
4129 cat >>conftest.
$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 $ac_includes_default
4135 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4142 rm -f conftest.
$ac_objext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144 (eval $ac_compile) 2>conftest.er1
4146 grep -v '^ *+' conftest.er1
>conftest.err
4148 cat conftest.err
>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try
='test -z "$ac_c_werror_flag"
4152 || test ! -s conftest.err'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try
='test -s conftest.$ac_objext'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.
$ac_ext >&5
4169 ac_lo
=`expr '(' $ac_mid ')' + 1`
4171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4174 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4175 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4176 See \`config.log' for more details." >&5
4177 echo "$as_me: error: cannot compute sizeof (short), 77
4178 See \`config.log' for more details." >&2;}
4179 { (exit 1); exit 1; }; } ;;
4182 if test "$cross_compiling" = yes; then
4183 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4184 See \`config.log' for more details." >&5
4185 echo "$as_me: error: cannot run test program while cross compiling
4186 See \`config.log' for more details." >&2;}
4187 { (exit 1); exit 1; }; }
4189 cat >conftest.
$ac_ext <<_ACEOF
4192 cat confdefs.h
>>conftest.
$ac_ext
4193 cat >>conftest.
$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4195 $ac_includes_default
4196 long longval () { return (long) (sizeof (short)); }
4197 unsigned long ulongval () { return (long) (sizeof (short)); }
4204 FILE *f = fopen ("conftest.val", "w");
4207 if (((long) (sizeof (short))) < 0)
4209 long i = longval ();
4210 if (i != ((long) (sizeof (short))))
4212 fprintf (f, "%ld\n", i);
4216 unsigned long i = ulongval ();
4217 if (i != ((long) (sizeof (short))))
4219 fprintf (f, "%lu\n", i);
4221 exit (ferror (f) || fclose (f) != 0);
4227 rm -f conftest
$ac_exeext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4229 (eval $ac_link) 2>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 ac_cv_sizeof_short
=`cat conftest.val`
4240 echo "$as_me: program exited with status $ac_status" >&5
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.
$ac_ext >&5
4245 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4246 See \`config.log' for more details." >&5
4247 echo "$as_me: error: cannot compute sizeof (short), 77
4248 See \`config.log' for more details." >&2;}
4249 { (exit 1); exit 1; }; }
4251 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4256 ac_cv_sizeof_short
=0
4259 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4260 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4261 cat >>confdefs.h
<<_ACEOF
4262 #define SIZEOF_SHORT $ac_cv_sizeof_short
4266 echo "$as_me:$LINENO: checking for int" >&5
4267 echo $ECHO_N "checking for int... $ECHO_C" >&6
4268 if test "${ac_cv_type_int+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 cat >conftest.
$ac_ext <<_ACEOF
4274 cat confdefs.h
>>conftest.
$ac_ext
4275 cat >>conftest.
$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 $ac_includes_default
4289 rm -f conftest.
$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4293 grep -v '^ *+' conftest.er1
>conftest.err
4295 cat conftest.err
>&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try
='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try
='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.
$ac_ext >&5
4318 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4320 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4321 echo "${ECHO_T}$ac_cv_type_int" >&6
4323 echo "$as_me:$LINENO: checking size of int" >&5
4324 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4325 if test "${ac_cv_sizeof_int+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 if test "$ac_cv_type_int" = yes; then
4329 # The cast to unsigned long works around a bug in the HP C Compiler
4330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4332 # This bug is HP SR number 8606223364.
4333 if test "$cross_compiling" = yes; then
4334 # Depending upon the size, compute the lo and hi bounds.
4335 cat >conftest.
$ac_ext <<_ACEOF
4338 cat confdefs.h
>>conftest.
$ac_ext
4339 cat >>conftest.
$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 $ac_includes_default
4345 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4352 rm -f conftest.
$ac_objext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354 (eval $ac_compile) 2>conftest.er1
4356 grep -v '^ *+' conftest.er1
>conftest.err
4358 cat conftest.err
>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try
='test -z "$ac_c_werror_flag"
4362 || test ! -s conftest.err'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try
='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4376 cat >conftest.
$ac_ext <<_ACEOF
4379 cat confdefs.h
>>conftest.
$ac_ext
4380 cat >>conftest.
$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 $ac_includes_default
4386 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4393 rm -f conftest.
$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4397 grep -v '^ *+' conftest.er1
>conftest.err
4399 cat conftest.err
>&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try
='test -z "$ac_c_werror_flag"
4403 || test ! -s conftest.err'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; } &&
4409 { ac_try
='test -s conftest.$ac_objext'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4415 ac_hi
=$ac_mid; break
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.
$ac_ext >&5
4420 ac_lo
=`expr $ac_mid + 1`
4421 if test $ac_lo -le $ac_mid; then
4425 ac_mid
=`expr 2 '*' $ac_mid + 1`
4427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.
$ac_ext >&5
4433 cat >conftest.
$ac_ext <<_ACEOF
4436 cat confdefs.h
>>conftest.
$ac_ext
4437 cat >>conftest.
$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4443 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4450 rm -f conftest.
$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1
>conftest.err
4456 cat conftest.err
>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try
='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try
='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4474 cat >conftest.
$ac_ext <<_ACEOF
4477 cat confdefs.h
>>conftest.
$ac_ext
4478 cat >>conftest.
$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 $ac_includes_default
4484 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4491 rm -f conftest.
$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>conftest.er1
4495 grep -v '^ *+' conftest.er1
>conftest.err
4497 cat conftest.err
>&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } &&
4500 { ac_try
='test -z "$ac_c_werror_flag"
4501 || test ! -s conftest.err'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; } &&
4507 { ac_try
='test -s conftest.$ac_objext'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 ac_lo
=$ac_mid; break
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.
$ac_ext >&5
4518 ac_hi
=`expr '(' $ac_mid ')' - 1`
4519 if test $ac_mid -le $ac_hi; then
4523 ac_mid
=`expr 2 '*' $ac_mid`
4525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.
$ac_ext >&5
4533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4536 # Binary search between lo and hi bounds.
4537 while test "x$ac_lo" != "x$ac_hi"; do
4538 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4539 cat >conftest.
$ac_ext <<_ACEOF
4542 cat confdefs.h
>>conftest.
$ac_ext
4543 cat >>conftest.
$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 $ac_includes_default
4549 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4556 rm -f conftest.
$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>conftest.er1
4560 grep -v '^ *+' conftest.er1
>conftest.err
4562 cat conftest.err
>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try
='test -z "$ac_c_werror_flag"
4566 || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try
='test -s conftest.$ac_objext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.
$ac_ext >&5
4583 ac_lo
=`expr '(' $ac_mid ')' + 1`
4585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4588 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4589 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4590 See \`config.log' for more details." >&5
4591 echo "$as_me: error: cannot compute sizeof (int), 77
4592 See \`config.log' for more details." >&2;}
4593 { (exit 1); exit 1; }; } ;;
4596 if test "$cross_compiling" = yes; then
4597 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4598 See \`config.log' for more details." >&5
4599 echo "$as_me: error: cannot run test program while cross compiling
4600 See \`config.log' for more details." >&2;}
4601 { (exit 1); exit 1; }; }
4603 cat >conftest.
$ac_ext <<_ACEOF
4606 cat confdefs.h
>>conftest.
$ac_ext
4607 cat >>conftest.
$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 $ac_includes_default
4610 long longval () { return (long) (sizeof (int)); }
4611 unsigned long ulongval () { return (long) (sizeof (int)); }
4618 FILE *f = fopen ("conftest.val", "w");
4621 if (((long) (sizeof (int))) < 0)
4623 long i = longval ();
4624 if (i != ((long) (sizeof (int))))
4626 fprintf (f, "%ld\n", i);
4630 unsigned long i = ulongval ();
4631 if (i != ((long) (sizeof (int))))
4633 fprintf (f, "%lu\n", i);
4635 exit (ferror (f) || fclose (f) != 0);
4641 rm -f conftest
$ac_exeext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4643 (eval $ac_link) 2>&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4652 ac_cv_sizeof_int
=`cat conftest.val`
4654 echo "$as_me: program exited with status $ac_status" >&5
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.
$ac_ext >&5
4659 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4660 See \`config.log' for more details." >&5
4661 echo "$as_me: error: cannot compute sizeof (int), 77
4662 See \`config.log' for more details." >&2;}
4663 { (exit 1); exit 1; }; }
4665 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4673 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4674 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4675 cat >>confdefs.h
<<_ACEOF
4676 #define SIZEOF_INT $ac_cv_sizeof_int
4680 echo "$as_me:$LINENO: checking for long" >&5
4681 echo $ECHO_N "checking for long... $ECHO_C" >&6
4682 if test "${ac_cv_type_long+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 cat >conftest.
$ac_ext <<_ACEOF
4688 cat confdefs.h
>>conftest.
$ac_ext
4689 cat >>conftest.
$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 $ac_includes_default
4703 rm -f conftest.
$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4707 grep -v '^ *+' conftest.er1
>conftest.err
4709 cat conftest.err
>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try
='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try
='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.
$ac_ext >&5
4732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4734 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4735 echo "${ECHO_T}$ac_cv_type_long" >&6
4737 echo "$as_me:$LINENO: checking size of long" >&5
4738 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4739 if test "${ac_cv_sizeof_long+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 if test "$ac_cv_type_long" = yes; then
4743 # The cast to unsigned long works around a bug in the HP C Compiler
4744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4746 # This bug is HP SR number 8606223364.
4747 if test "$cross_compiling" = yes; then
4748 # Depending upon the size, compute the lo and hi bounds.
4749 cat >conftest.
$ac_ext <<_ACEOF
4752 cat confdefs.h
>>conftest.
$ac_ext
4753 cat >>conftest.
$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 $ac_includes_default
4759 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4766 rm -f conftest.
$ac_objext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>conftest.er1
4770 grep -v '^ *+' conftest.er1
>conftest.err
4772 cat conftest.err
>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } &&
4775 { ac_try
='test -z "$ac_c_werror_flag"
4776 || test ! -s conftest.err'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; } &&
4782 { ac_try
='test -s conftest.$ac_objext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4790 cat >conftest.
$ac_ext <<_ACEOF
4793 cat confdefs.h
>>conftest.
$ac_ext
4794 cat >>conftest.
$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 $ac_includes_default
4800 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4807 rm -f conftest.
$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4811 grep -v '^ *+' conftest.er1
>conftest.err
4813 cat conftest.err
>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try
='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try
='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_hi
=$ac_mid; break
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.
$ac_ext >&5
4834 ac_lo
=`expr $ac_mid + 1`
4835 if test $ac_lo -le $ac_mid; then
4839 ac_mid
=`expr 2 '*' $ac_mid + 1`
4841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.
$ac_ext >&5
4847 cat >conftest.
$ac_ext <<_ACEOF
4850 cat confdefs.h
>>conftest.
$ac_ext
4851 cat >>conftest.
$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4857 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4864 rm -f conftest.
$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>conftest.er1
4868 grep -v '^ *+' conftest.er1
>conftest.err
4870 cat conftest.err
>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try
='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4888 cat >conftest.
$ac_ext <<_ACEOF
4891 cat confdefs.h
>>conftest.
$ac_ext
4892 cat >>conftest.
$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 $ac_includes_default
4898 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4905 rm -f conftest.
$ac_objext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907 (eval $ac_compile) 2>conftest.er1
4909 grep -v '^ *+' conftest.er1
>conftest.err
4911 cat conftest.err
>&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try
='test -z "$ac_c_werror_flag"
4915 || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try
='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_lo
=$ac_mid; break
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.
$ac_ext >&5
4932 ac_hi
=`expr '(' $ac_mid ')' - 1`
4933 if test $ac_mid -le $ac_hi; then
4937 ac_mid
=`expr 2 '*' $ac_mid`
4939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.
$ac_ext >&5
4947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4950 # Binary search between lo and hi bounds.
4951 while test "x$ac_lo" != "x$ac_hi"; do
4952 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4953 cat >conftest.
$ac_ext <<_ACEOF
4956 cat confdefs.h
>>conftest.
$ac_ext
4957 cat >>conftest.
$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 $ac_includes_default
4963 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4970 rm -f conftest.
$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>conftest.er1
4974 grep -v '^ *+' conftest.er1
>conftest.err
4976 cat conftest.err
>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try
='test -z "$ac_c_werror_flag"
4980 || test ! -s conftest.err'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try
='test -s conftest.$ac_objext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.
$ac_ext >&5
4997 ac_lo
=`expr '(' $ac_mid ')' + 1`
4999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5002 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5003 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5004 See \`config.log' for more details." >&5
5005 echo "$as_me: error: cannot compute sizeof (long), 77
5006 See \`config.log' for more details." >&2;}
5007 { (exit 1); exit 1; }; } ;;
5010 if test "$cross_compiling" = yes; then
5011 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5012 See \`config.log' for more details." >&5
5013 echo "$as_me: error: cannot run test program while cross compiling
5014 See \`config.log' for more details." >&2;}
5015 { (exit 1); exit 1; }; }
5017 cat >conftest.
$ac_ext <<_ACEOF
5020 cat confdefs.h
>>conftest.
$ac_ext
5021 cat >>conftest.
$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 $ac_includes_default
5024 long longval () { return (long) (sizeof (long)); }
5025 unsigned long ulongval () { return (long) (sizeof (long)); }
5032 FILE *f = fopen ("conftest.val", "w");
5035 if (((long) (sizeof (long))) < 0)
5037 long i = longval ();
5038 if (i != ((long) (sizeof (long))))
5040 fprintf (f, "%ld\n", i);
5044 unsigned long i = ulongval ();
5045 if (i != ((long) (sizeof (long))))
5047 fprintf (f, "%lu\n", i);
5049 exit (ferror (f) || fclose (f) != 0);
5055 rm -f conftest
$ac_exeext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5057 (eval $ac_link) 2>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5066 ac_cv_sizeof_long
=`cat conftest.val`
5068 echo "$as_me: program exited with status $ac_status" >&5
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.
$ac_ext >&5
5073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5074 See \`config.log' for more details." >&5
5075 echo "$as_me: error: cannot compute sizeof (long), 77
5076 See \`config.log' for more details." >&2;}
5077 { (exit 1); exit 1; }; }
5079 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5087 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5088 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5089 cat >>confdefs.h
<<_ACEOF
5090 #define SIZEOF_LONG $ac_cv_sizeof_long
5094 echo "$as_me:$LINENO: checking for long long" >&5
5095 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5096 if test "${ac_cv_type_long_long+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 cat >conftest.
$ac_ext <<_ACEOF
5102 cat confdefs.h
>>conftest.
$ac_ext
5103 cat >>conftest.
$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5109 if ((long long *) 0)
5111 if (sizeof (long long))
5117 rm -f conftest.
$ac_objext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5119 (eval $ac_compile) 2>conftest.er1
5121 grep -v '^ *+' conftest.er1
>conftest.err
5123 cat conftest.err
>&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } &&
5126 { ac_try
='test -z "$ac_c_werror_flag"
5127 || test ! -s conftest.err'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; } &&
5133 { ac_try
='test -s conftest.$ac_objext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 ac_cv_type_long_long
=yes
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.
$ac_ext >&5
5144 ac_cv_type_long_long
=no
5146 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5148 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5149 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5150 if test $ac_cv_type_long_long = yes; then
5152 cat >>confdefs.h
<<_ACEOF
5153 #define HAVE_LONG_LONG 1
5156 echo "$as_me:$LINENO: checking for long long" >&5
5157 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5158 if test "${ac_cv_type_long_long+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 cat >conftest.
$ac_ext <<_ACEOF
5164 cat confdefs.h
>>conftest.
$ac_ext
5165 cat >>conftest.
$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5167 $ac_includes_default
5171 if ((long long *) 0)
5173 if (sizeof (long long))
5179 rm -f conftest.
$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5183 grep -v '^ *+' conftest.er1
>conftest.err
5185 cat conftest.err
>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try
='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try
='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_type_long_long
=yes
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.
$ac_ext >&5
5206 ac_cv_type_long_long
=no
5208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5210 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5211 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5213 echo "$as_me:$LINENO: checking size of long long" >&5
5214 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5215 if test "${ac_cv_sizeof_long_long+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 if test "$ac_cv_type_long_long" = yes; then
5219 # The cast to unsigned long works around a bug in the HP C Compiler
5220 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5221 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5222 # This bug is HP SR number 8606223364.
5223 if test "$cross_compiling" = yes; then
5224 # Depending upon the size, compute the lo and hi bounds.
5225 cat >conftest.
$ac_ext <<_ACEOF
5228 cat confdefs.h
>>conftest.
$ac_ext
5229 cat >>conftest.
$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_includes_default
5235 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5242 rm -f conftest.
$ac_objext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244 (eval $ac_compile) 2>conftest.er1
5246 grep -v '^ *+' conftest.er1
>conftest.err
5248 cat conftest.err
>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try
='test -z "$ac_c_werror_flag"
5252 || test ! -s conftest.err'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; } &&
5258 { ac_try
='test -s conftest.$ac_objext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5266 cat >conftest.
$ac_ext <<_ACEOF
5269 cat confdefs.h
>>conftest.
$ac_ext
5270 cat >>conftest.
$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 $ac_includes_default
5276 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5283 rm -f conftest.
$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>conftest.er1
5287 grep -v '^ *+' conftest.er1
>conftest.err
5289 cat conftest.err
>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try
='test -z "$ac_c_werror_flag"
5293 || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try
='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_hi
=$ac_mid; break
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.
$ac_ext >&5
5310 ac_lo
=`expr $ac_mid + 1`
5311 if test $ac_lo -le $ac_mid; then
5315 ac_mid
=`expr 2 '*' $ac_mid + 1`
5317 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.
$ac_ext >&5
5323 cat >conftest.
$ac_ext <<_ACEOF
5326 cat confdefs.h
>>conftest.
$ac_ext
5327 cat >>conftest.
$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5333 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5340 rm -f conftest.
$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5344 grep -v '^ *+' conftest.er1
>conftest.err
5346 cat conftest.err
>&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try
='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try
='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5364 cat >conftest.
$ac_ext <<_ACEOF
5367 cat confdefs.h
>>conftest.
$ac_ext
5368 cat >>conftest.
$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 $ac_includes_default
5374 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5381 rm -f conftest.
$ac_objext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5383 (eval $ac_compile) 2>conftest.er1
5385 grep -v '^ *+' conftest.er1
>conftest.err
5387 cat conftest.err
>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try
='test -z "$ac_c_werror_flag"
5391 || test ! -s conftest.err'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; } &&
5397 { ac_try
='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_lo
=$ac_mid; break
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.
$ac_ext >&5
5408 ac_hi
=`expr '(' $ac_mid ')' - 1`
5409 if test $ac_mid -le $ac_hi; then
5413 ac_mid
=`expr 2 '*' $ac_mid`
5415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.
$ac_ext >&5
5423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5425 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5426 # Binary search between lo and hi bounds.
5427 while test "x$ac_lo" != "x$ac_hi"; do
5428 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5429 cat >conftest.
$ac_ext <<_ACEOF
5432 cat confdefs.h
>>conftest.
$ac_ext
5433 cat >>conftest.
$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 $ac_includes_default
5439 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5446 rm -f conftest.
$ac_objext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5448 (eval $ac_compile) 2>conftest.er1
5450 grep -v '^ *+' conftest.er1
>conftest.err
5452 cat conftest.err
>&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } &&
5455 { ac_try
='test -z "$ac_c_werror_flag"
5456 || test ! -s conftest.err'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; } &&
5462 { ac_try
='test -s conftest.$ac_objext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.
$ac_ext >&5
5473 ac_lo
=`expr '(' $ac_mid ')' + 1`
5475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5478 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5479 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5480 See \`config.log' for more details." >&5
5481 echo "$as_me: error: cannot compute sizeof (long long), 77
5482 See \`config.log' for more details." >&2;}
5483 { (exit 1); exit 1; }; } ;;
5486 if test "$cross_compiling" = yes; then
5487 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5488 See \`config.log' for more details." >&5
5489 echo "$as_me: error: cannot run test program while cross compiling
5490 See \`config.log' for more details." >&2;}
5491 { (exit 1); exit 1; }; }
5493 cat >conftest.
$ac_ext <<_ACEOF
5496 cat confdefs.h
>>conftest.
$ac_ext
5497 cat >>conftest.
$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 $ac_includes_default
5500 long longval () { return (long) (sizeof (long long)); }
5501 unsigned long ulongval () { return (long) (sizeof (long long)); }
5508 FILE *f = fopen ("conftest.val", "w");
5511 if (((long) (sizeof (long long))) < 0)
5513 long i = longval ();
5514 if (i != ((long) (sizeof (long long))))
5516 fprintf (f, "%ld\n", i);
5520 unsigned long i = ulongval ();
5521 if (i != ((long) (sizeof (long long))))
5523 fprintf (f, "%lu\n", i);
5525 exit (ferror (f) || fclose (f) != 0);
5531 rm -f conftest
$ac_exeext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5533 (eval $ac_link) 2>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
5542 ac_cv_sizeof_long_long
=`cat conftest.val`
5544 echo "$as_me: program exited with status $ac_status" >&5
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.
$ac_ext >&5
5549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: cannot compute sizeof (long long), 77
5552 See \`config.log' for more details." >&2;}
5553 { (exit 1); exit 1; }; }
5555 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5560 ac_cv_sizeof_long_long
=0
5563 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5564 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5565 cat >>confdefs.h
<<_ACEOF
5566 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5572 echo "$as_me:$LINENO: checking for __int64" >&5
5573 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5574 if test "${ac_cv_type___int64+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 cat >conftest.
$ac_ext <<_ACEOF
5580 cat confdefs.h
>>conftest.
$ac_ext
5581 cat >>conftest.
$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5589 if (sizeof (__int64))
5595 rm -f conftest.
$ac_objext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5597 (eval $ac_compile) 2>conftest.er1
5599 grep -v '^ *+' conftest.er1
>conftest.err
5601 cat conftest.err
>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } &&
5604 { ac_try
='test -z "$ac_c_werror_flag"
5605 || test ! -s conftest.err'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; } &&
5611 { ac_try
='test -s conftest.$ac_objext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_type___int64
=yes
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.
$ac_ext >&5
5622 ac_cv_type___int64
=no
5624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5626 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5627 echo "${ECHO_T}$ac_cv_type___int64" >&6
5628 if test $ac_cv_type___int64 = yes; then
5630 cat >>confdefs.h
<<_ACEOF
5631 #define HAVE___INT64 1
5634 echo "$as_me:$LINENO: checking for __int64" >&5
5635 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5636 if test "${ac_cv_type___int64+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 cat >conftest.
$ac_ext <<_ACEOF
5642 cat confdefs.h
>>conftest.
$ac_ext
5643 cat >>conftest.
$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 $ac_includes_default
5651 if (sizeof (__int64))
5657 rm -f conftest.
$ac_objext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5659 (eval $ac_compile) 2>conftest.er1
5661 grep -v '^ *+' conftest.er1
>conftest.err
5663 cat conftest.err
>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
5666 { ac_try
='test -z "$ac_c_werror_flag"
5667 || test ! -s conftest.err'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try
='test -s conftest.$ac_objext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 ac_cv_type___int64
=yes
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.
$ac_ext >&5
5684 ac_cv_type___int64
=no
5686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5689 echo "${ECHO_T}$ac_cv_type___int64" >&6
5691 echo "$as_me:$LINENO: checking size of __int64" >&5
5692 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5693 if test "${ac_cv_sizeof___int64+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 if test "$ac_cv_type___int64" = yes; then
5697 # The cast to unsigned long works around a bug in the HP C Compiler
5698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5700 # This bug is HP SR number 8606223364.
5701 if test "$cross_compiling" = yes; then
5702 # Depending upon the size, compute the lo and hi bounds.
5703 cat >conftest.
$ac_ext <<_ACEOF
5706 cat confdefs.h
>>conftest.
$ac_ext
5707 cat >>conftest.
$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 $ac_includes_default
5713 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5720 rm -f conftest.
$ac_objext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>conftest.er1
5724 grep -v '^ *+' conftest.er1
>conftest.err
5726 cat conftest.err
>&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } &&
5729 { ac_try
='test -z "$ac_c_werror_flag"
5730 || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try
='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5744 cat >conftest.
$ac_ext <<_ACEOF
5747 cat confdefs.h
>>conftest.
$ac_ext
5748 cat >>conftest.
$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 $ac_includes_default
5754 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5761 rm -f conftest.
$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>conftest.er1
5765 grep -v '^ *+' conftest.er1
>conftest.err
5767 cat conftest.err
>&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try
='test -z "$ac_c_werror_flag"
5771 || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try
='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 ac_hi
=$ac_mid; break
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.
$ac_ext >&5
5788 ac_lo
=`expr $ac_mid + 1`
5789 if test $ac_lo -le $ac_mid; then
5793 ac_mid
=`expr 2 '*' $ac_mid + 1`
5795 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.
$ac_ext >&5
5801 cat >conftest.
$ac_ext <<_ACEOF
5804 cat confdefs.h
>>conftest.
$ac_ext
5805 cat >>conftest.
$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 $ac_includes_default
5811 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5818 rm -f conftest.
$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1
>conftest.err
5824 cat conftest.err
>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try
='test -z "$ac_c_werror_flag"
5828 || test ! -s conftest.err'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try
='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5842 cat >conftest.
$ac_ext <<_ACEOF
5845 cat confdefs.h
>>conftest.
$ac_ext
5846 cat >>conftest.
$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 $ac_includes_default
5852 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5859 rm -f conftest.
$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1
>conftest.err
5865 cat conftest.err
>&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try
='test -z "$ac_c_werror_flag"
5869 || test ! -s conftest.err'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try
='test -s conftest.$ac_objext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 ac_lo
=$ac_mid; break
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.
$ac_ext >&5
5886 ac_hi
=`expr '(' $ac_mid ')' - 1`
5887 if test $ac_mid -le $ac_hi; then
5891 ac_mid
=`expr 2 '*' $ac_mid`
5893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.
$ac_ext >&5
5901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5904 # Binary search between lo and hi bounds.
5905 while test "x$ac_lo" != "x$ac_hi"; do
5906 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5907 cat >conftest.
$ac_ext <<_ACEOF
5910 cat confdefs.h
>>conftest.
$ac_ext
5911 cat >>conftest.
$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 $ac_includes_default
5917 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5924 rm -f conftest.
$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>conftest.er1
5928 grep -v '^ *+' conftest.er1
>conftest.err
5930 cat conftest.err
>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try
='test -z "$ac_c_werror_flag"
5934 || test ! -s conftest.err'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; } &&
5940 { ac_try
='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.
$ac_ext >&5
5951 ac_lo
=`expr '(' $ac_mid ')' + 1`
5953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5956 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5957 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5958 See \`config.log' for more details." >&5
5959 echo "$as_me: error: cannot compute sizeof (__int64), 77
5960 See \`config.log' for more details." >&2;}
5961 { (exit 1); exit 1; }; } ;;
5964 if test "$cross_compiling" = yes; then
5965 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5966 See \`config.log' for more details." >&5
5967 echo "$as_me: error: cannot run test program while cross compiling
5968 See \`config.log' for more details." >&2;}
5969 { (exit 1); exit 1; }; }
5971 cat >conftest.
$ac_ext <<_ACEOF
5974 cat confdefs.h
>>conftest.
$ac_ext
5975 cat >>conftest.
$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 $ac_includes_default
5978 long longval () { return (long) (sizeof (__int64)); }
5979 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5986 FILE *f = fopen ("conftest.val", "w");
5989 if (((long) (sizeof (__int64))) < 0)
5991 long i = longval ();
5992 if (i != ((long) (sizeof (__int64))))
5994 fprintf (f, "%ld\n", i);
5998 unsigned long i = ulongval ();
5999 if (i != ((long) (sizeof (__int64))))
6001 fprintf (f, "%lu\n", i);
6003 exit (ferror (f) || fclose (f) != 0);
6009 rm -f conftest
$ac_exeext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6011 (eval $ac_link) 2>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 ac_cv_sizeof___int64
=`cat conftest.val`
6022 echo "$as_me: program exited with status $ac_status" >&5
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.
$ac_ext >&5
6027 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6028 See \`config.log' for more details." >&5
6029 echo "$as_me: error: cannot compute sizeof (__int64), 77
6030 See \`config.log' for more details." >&2;}
6031 { (exit 1); exit 1; }; }
6033 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6038 ac_cv_sizeof___int64
=0
6041 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6042 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6043 cat >>confdefs.h
<<_ACEOF
6044 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6051 # ---------------------
6052 # Warnings and checking
6053 # ---------------------
6055 # Check $CC warning features (if it's GCC).
6056 # We want to use -pedantic, but we don't want warnings about
6059 # So, we only use -pedantic if we can disable those warnings.
6061 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6062 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6063 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 save_CFLAGS
="$CFLAGS"
6067 CFLAGS
="-Wno-long-long"
6068 cat >conftest.
$ac_ext <<_ACEOF
6071 cat confdefs.h
>>conftest.
$ac_ext
6072 cat >>conftest.
$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6076 rm -f conftest.
$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1
>conftest.err
6082 cat conftest.err
>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try
='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try
='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_cv_prog_cc_w_no_long_long
=yes
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.
$ac_ext >&5
6103 ac_cv_prog_cc_w_no_long_long
=no
6105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6106 CFLAGS
="$save_CFLAGS"
6109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6110 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6112 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6113 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6114 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 save_CFLAGS
="$CFLAGS"
6118 CFLAGS
="-Wno-variadic-macros"
6119 cat >conftest.
$ac_ext <<_ACEOF
6122 cat confdefs.h
>>conftest.
$ac_ext
6123 cat >>conftest.
$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6127 rm -f conftest.
$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
6131 grep -v '^ *+' conftest.er1
>conftest.err
6133 cat conftest.err
>&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try
='test -z "$ac_c_werror_flag"
6137 || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try
='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_cv_prog_cc_w_no_variadic_macros
=yes
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.
$ac_ext >&5
6154 ac_cv_prog_cc_w_no_variadic_macros
=no
6156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6157 CFLAGS
="$save_CFLAGS"
6160 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6161 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6164 if test $ac_cv_prog_cc_w_no_long_long = yes \
6165 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6166 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6169 # Add -Wold-style-definition if it's accepted
6170 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6171 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6172 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 save_CFLAGS
="$CFLAGS"
6176 CFLAGS
="-Wold-style-definition"
6177 cat >conftest.
$ac_ext <<_ACEOF
6180 cat confdefs.h
>>conftest.
$ac_ext
6181 cat >>conftest.
$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6185 rm -f conftest.
$ac_objext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6187 (eval $ac_compile) 2>conftest.er1
6189 grep -v '^ *+' conftest.er1
>conftest.err
6191 cat conftest.err
>&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } &&
6194 { ac_try
='test -z "$ac_c_werror_flag"
6195 || test ! -s conftest.err'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; } &&
6201 { ac_try
='test -s conftest.$ac_objext'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
6207 ac_cv_prog_cc_w_old_style_definition
=yes
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.
$ac_ext >&5
6212 ac_cv_prog_cc_w_old_style_definition
=no
6214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6215 CFLAGS
="$save_CFLAGS"
6218 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6219 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6220 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6221 strict1_warn
="${strict1_warn} -Wold-style-definition"
6224 # Add -Wmissing-format-attribute if it's accepted
6225 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6226 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6227 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 save_CFLAGS
="$CFLAGS"
6231 CFLAGS
="-Wmissing-format-attribute"
6232 cat >conftest.
$ac_ext <<_ACEOF
6235 cat confdefs.h
>>conftest.
$ac_ext
6236 cat >>conftest.
$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6240 rm -f conftest.
$ac_objext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6242 (eval $ac_compile) 2>conftest.er1
6244 grep -v '^ *+' conftest.er1
>conftest.err
6246 cat conftest.err
>&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try
='test -z "$ac_c_werror_flag"
6250 || test ! -s conftest.err'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; } &&
6256 { ac_try
='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 ac_cv_prog_cc_w_missing_format_attribute
=yes
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.
$ac_ext >&5
6267 ac_cv_prog_cc_w_missing_format_attribute
=no
6269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6270 CFLAGS
="$save_CFLAGS"
6273 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6274 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6275 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6276 strict1_warn
="${strict1_warn} -Wmissing-format-attribute"
6279 # Enable -Werror, period.
6280 # Check whether --enable-werror_always or --disable-werror_always was given.
6281 if test "${enable_werror_always+set}" = set; then
6282 enableval
="$enable_werror_always"
6285 enable_werror_always
=no
6287 if test x
${enable_werror_always} = xyes
; then
6288 strict1_warn
="${strict1_warn} -Werror"
6294 # If the native compiler is GCC, we can enable warnings even in stage1.
6295 # That's useful for people building cross-compilers, or just running a
6298 if test "x$GCC" = "xyes"; then
6299 warn_cflags
='$(GCC_WARN_CFLAGS)'
6303 # Enable -Werror in bootstrap stage2 and later.
6305 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6308 # Check whether --enable-werror or --disable-werror was given.
6309 if test "${enable_werror+set}" = set; then
6310 enableval
="$enable_werror"
6313 if test x
$is_release = x
; then
6314 # Default to "yes" on development branches.
6317 # Default to "no" on release branches.
6321 if test x
$enable_werror = xyes
; then
6326 # Enable expensive internal checks
6327 # Check whether --enable-checking or --disable-checking was given.
6328 if test "${enable_checking+set}" = set; then
6329 enableval
="$enable_checking"
6330 ac_checking_flags
="${enableval}"
6333 # Determine the default checks.
6334 if test x
$is_release = x
; then
6335 ac_checking_flags
=yes
6337 ac_checking_flags
=release
6340 ac_assert_checking
=1
6344 ac_gc_always_collect
=
6346 ac_rtlflag_checking
=
6347 ac_runtime_checking
=1
6349 ac_valgrind_checking
=
6350 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6351 for check
in $ac_checking_flags
6354 # these set all the flags to specific states
6355 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6356 ac_fold_checking
= ; ac_gc_checking
=1 ;
6357 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6358 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6359 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6360 no|none
) ac_assert_checking
= ; ac_checking
= ;
6361 ac_fold_checking
= ; ac_gc_checking
= ;
6362 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6363 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6364 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6365 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6366 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6367 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6368 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6369 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6370 release
) ac_assert_checking
=1 ; ac_checking
= ;
6371 ac_fold_checking
= ; ac_gc_checking
= ;
6372 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6373 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6374 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6375 # these enable particular checks
6376 assert
) ac_assert_checking
=1 ;;
6377 fold) ac_fold_checking
=1 ;;
6378 gc
) ac_gc_checking
=1 ;;
6379 gcac
) ac_gc_always_collect
=1 ;;
6380 misc
) ac_checking
=1 ;;
6381 rtl
) ac_rtl_checking
=1 ;;
6382 rtlflag
) ac_rtlflag_checking
=1 ;;
6383 runtime
) ac_runtime_checking
=1 ;;
6384 tree
) ac_tree_checking
=1 ;;
6385 valgrind
) ac_valgrind_checking
=1 ;;
6386 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6387 echo "$as_me: error: unknown check category $check" >&2;}
6388 { (exit 1); exit 1; }; } ;;
6394 if test x
$ac_checking != x
; then
6396 cat >>confdefs.h
<<\_ACEOF
6397 #define ENABLE_CHECKING 1
6400 nocommon_flag
=-fno-common
6403 if test x
$ac_assert_checking != x
; then
6405 cat >>confdefs.h
<<\_ACEOF
6406 #define ENABLE_ASSERT_CHECKING 1
6411 if test x
$ac_runtime_checking != x
; then
6413 cat >>confdefs.h
<<\_ACEOF
6414 #define ENABLE_RUNTIME_CHECKING 1
6418 if test x
$ac_tree_checking != x
; then
6420 cat >>confdefs.h
<<\_ACEOF
6421 #define ENABLE_TREE_CHECKING 1
6424 TREEBROWSER
=tree-browser.o
6427 if test x
$ac_rtl_checking != x
; then
6429 cat >>confdefs.h
<<\_ACEOF
6430 #define ENABLE_RTL_CHECKING 1
6434 if test x
$ac_rtlflag_checking != x
; then
6436 cat >>confdefs.h
<<\_ACEOF
6437 #define ENABLE_RTL_FLAG_CHECKING 1
6441 if test x
$ac_gc_checking != x
; then
6443 cat >>confdefs.h
<<\_ACEOF
6444 #define ENABLE_GC_CHECKING 1
6448 if test x
$ac_gc_always_collect != x
; then
6450 cat >>confdefs.h
<<\_ACEOF
6451 #define ENABLE_GC_ALWAYS_COLLECT 1
6455 if test x
$ac_fold_checking != x
; then
6457 cat >>confdefs.h
<<\_ACEOF
6458 #define ENABLE_FOLD_CHECKING 1
6462 valgrind_path_defines
=
6465 if test "${ac_cv_header_valgrind_h+set}" = set; then
6466 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6467 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6468 if test "${ac_cv_header_valgrind_h+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6472 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6474 # Is the header compilable?
6475 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6476 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6477 cat >conftest.
$ac_ext <<_ACEOF
6480 cat confdefs.h
>>conftest.
$ac_ext
6481 cat >>conftest.
$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 $ac_includes_default
6484 #include <valgrind.h>
6486 rm -f conftest.
$ac_objext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488 (eval $ac_compile) 2>conftest.er1
6490 grep -v '^ *+' conftest.er1
>conftest.err
6492 cat conftest.err
>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try
='test -z "$ac_c_werror_flag"
6496 || test ! -s conftest.err'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try
='test -s conftest.$ac_objext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 ac_header_compiler
=yes
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.
$ac_ext >&5
6513 ac_header_compiler
=no
6515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6517 echo "${ECHO_T}$ac_header_compiler" >&6
6519 # Is the header present?
6520 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6521 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6522 cat >conftest.
$ac_ext <<_ACEOF
6525 cat confdefs.h
>>conftest.
$ac_ext
6526 cat >>conftest.
$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <valgrind.h>
6530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6531 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6533 grep -v '^ *+' conftest.er1
>conftest.err
6535 cat conftest.err
>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } >/dev
/null
; then
6538 if test -s conftest.err
; then
6539 ac_cpp_err
=$ac_c_preproc_warn_flag
6540 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6547 if test -z "$ac_cpp_err"; then
6548 ac_header_preproc
=yes
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.
$ac_ext >&5
6553 ac_header_preproc
=no
6555 rm -f conftest.err conftest.
$ac_ext
6556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6557 echo "${ECHO_T}$ac_header_preproc" >&6
6559 # So? What about this header?
6560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6562 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6563 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6565 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6566 ac_header_preproc
=yes
6569 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6570 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6571 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6572 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6573 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6574 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6575 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6576 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6578 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6580 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6583 ## ------------------------------------------ ##
6584 ## Report this to the AC_PACKAGE_NAME lists. ##
6585 ## ------------------------------------------ ##
6588 sed "s/^/$as_me: WARNING: /" >&2
6591 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6592 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6593 if test "${ac_cv_header_valgrind_h+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 ac_cv_header_valgrind_h
=$ac_header_preproc
6598 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6599 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6602 if test $ac_cv_header_valgrind_h = yes; then
6610 if test x
$ac_valgrind_checking != x
; then
6611 # It is certainly possible that there's valgrind but no valgrind.h.
6612 # GCC relies on making annotations so we must have both.
6613 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6614 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $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 #include <valgrind/memcheck.h>
6622 #ifndef VALGRIND_DISCARD
6623 #error VALGRIND_DISCARD not defined
6626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6627 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6629 grep -v '^ *+' conftest.er1
>conftest.err
6631 cat conftest.err
>&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } >/dev
/null
; then
6634 if test -s conftest.err
; then
6635 ac_cpp_err
=$ac_c_preproc_warn_flag
6636 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6643 if test -z "$ac_cpp_err"; then
6644 gcc_cv_header_valgrind_memcheck_h
=yes
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.
$ac_ext >&5
6649 gcc_cv_header_valgrind_memcheck_h
=no
6651 rm -f conftest.err conftest.
$ac_ext
6652 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6653 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6654 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6655 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6656 cat >conftest.
$ac_ext <<_ACEOF
6659 cat confdefs.h
>>conftest.
$ac_ext
6660 cat >>conftest.
$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <memcheck.h>
6663 #ifndef VALGRIND_DISCARD
6664 #error VALGRIND_DISCARD not defined
6667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6668 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6670 grep -v '^ *+' conftest.er1
>conftest.err
6672 cat conftest.err
>&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } >/dev
/null
; then
6675 if test -s conftest.err
; then
6676 ac_cpp_err
=$ac_c_preproc_warn_flag
6677 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6684 if test -z "$ac_cpp_err"; then
6685 gcc_cv_header_memcheck_h
=yes
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.
$ac_ext >&5
6690 gcc_cv_header_memcheck_h
=no
6692 rm -f conftest.err conftest.
$ac_ext
6693 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6694 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6696 # Prepare PATH_SEPARATOR.
6697 # The user is always right.
6698 if test "${PATH_SEPARATOR+set}" != set; then
6699 echo "#! /bin/sh" >conf$$.sh
6700 echo "exit 0" >>conf$$.sh
6702 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6710 # Find out how to test for executable files. Don't use a zero-byte file,
6711 # as systems may use methods other than mode bits to determine executability.
6712 cat >conf$$.
file <<_ASEOF
6716 chmod +x conf$$.
file
6717 if test -x conf$$.
file >/dev
/null
2>&1; then
6718 ac_executable_p
="test -x"
6720 ac_executable_p
="test -f"
6724 # Extract the first word of "valgrind", so it can be a program name with args.
6725 set dummy valgrind
; ac_word
=$2
6726 echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6728 if test "${ac_cv_path_valgrind_path+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 case "$valgrind_path" in
6733 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6736 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6737 for ac_dir
in $PATH; do
6739 test -z "$ac_dir" && ac_dir
=.
6740 for ac_exec_ext
in '' $ac_executable_extensions; do
6741 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6742 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6743 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6753 valgrind_path
="$ac_cv_path_valgrind_path"
6754 if test -n "$valgrind_path"; then
6755 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6756 echo "${ECHO_T}$valgrind_path" >&6
6758 echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6762 if test "x$valgrind_path" = "x" \
6763 ||
(test $have_valgrind_h = no \
6764 && test $gcc_cv_header_memcheck_h = no \
6765 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6766 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6767 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6768 { (exit 1); exit 1; }; }
6770 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6771 valgrind_command
="$valgrind_path -q"
6773 cat >>confdefs.h
<<\_ACEOF
6774 #define ENABLE_VALGRIND_CHECKING 1
6777 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6779 cat >>confdefs.h
<<\_ACEOF
6780 #define HAVE_VALGRIND_MEMCHECK_H 1
6784 if test $gcc_cv_header_memcheck_h = yes; then
6786 cat >>confdefs.h
<<\_ACEOF
6787 #define HAVE_MEMCHECK_H 1
6795 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6796 if test "${enable_mapped_location+set}" = set; then
6797 enableval
="$enable_mapped_location"
6800 enable_mapped_location
=no
6803 if test "$enable_mapped_location" = yes ; then
6805 cat >>confdefs.h
<<\_ACEOF
6806 #define USE_MAPPED_LOCATION 1
6811 # Enable code coverage collection
6812 # Check whether --enable-coverage or --disable-coverage was given.
6813 if test "${enable_coverage+set}" = set; then
6814 enableval
="$enable_coverage"
6815 case "${enableval}" in
6817 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6820 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6823 # a.k.a. --disable-coverage
6827 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6828 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6829 { (exit 1); exit 1; }; }
6837 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6838 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6839 enableval
="$enable_gather_detailed_mem_stats"
6842 enable_gather_detailed_mem_stats
=no
6844 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6846 cat >>confdefs.h
<<\_ACEOF
6847 #define GATHER_STATISTICS 1
6852 # -------------------------------
6853 # Miscenalleous configure options
6854 # -------------------------------
6858 # Check whether --with-stabs or --without-stabs was given.
6859 if test "${with_stabs+set}" = set; then
6860 withval
="$with_stabs"
6866 # Determine whether or not multilibs are enabled.
6867 # Check whether --enable-multilib or --disable-multilib was given.
6868 if test "${enable_multilib+set}" = set; then
6869 enableval
="$enable_multilib"
6876 # Enable __cxa_atexit for C++.
6877 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6878 if test "${enable___cxa_atexit+set}" = set; then
6879 enableval
="$enable___cxa_atexit"
6884 # Pass with no value to take the default
6885 # Pass with a value to specify a thread package
6886 # Check whether --enable-threads or --disable-threads was given.
6887 if test "${enable_threads+set}" = set; then
6888 enableval
="$enable_threads"
6894 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6895 if test "${enable_objc_gc+set}" = set; then
6896 enableval
="$enable_objc_gc"
6897 if test x
$enable_objc_gc = xno
; then
6907 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6908 if test "${with_dwarf2+set}" = set; then
6909 withval
="$with_dwarf2"
6910 dwarf2
="$with_dwarf2"
6915 # Check whether --enable-shared or --disable-shared was given.
6916 if test "${enable_shared+set}" = set; then
6917 enableval
="$enable_shared"
6919 case $enable_shared in
6923 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6924 for pkg
in $enableval; do
6925 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6939 # Check whether --with-build-sysroot or --without-build-sysroot was given.
6940 if test "${with_build_sysroot+set}" = set; then
6941 withval
="$with_build_sysroot"
6946 # Check whether --with-sysroot or --without-sysroot was given.
6947 if test "${with_sysroot+set}" = set; then
6948 withval
="$with_sysroot"
6950 case ${with_sysroot} in
6951 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6952 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6955 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6956 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6957 if test "x$with_build_sysroot" != x
; then
6958 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
6960 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
6963 if test "x$exec_prefix" = xNONE
; then
6964 if test "x$prefix" = xNONE
; then
6965 test_prefix
=/usr
/local
6970 test_prefix
=$exec_prefix
6972 case ${TARGET_SYSTEM_ROOT} in
6973 "${test_prefix}"|
"${test_prefix}/"*|\
6974 '${exec_prefix}'|
'${exec_prefix}/'*)
6975 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6976 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6983 TARGET_SYSTEM_ROOT_DEFINE
=
6984 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6991 # Build with intermodule optimisations
6992 # Check whether --enable-intermodule or --disable-intermodule was given.
6993 if test "${enable_intermodule+set}" = set; then
6994 enableval
="$enable_intermodule"
6995 case ${enable_intermodule} in
6996 yes) onestep
="-onestep";;
7004 # Sanity check enable_languages in case someone does not run the toplevel
7005 # configure # script.
7006 # Check whether --enable-languages or --disable-languages was given.
7007 if test "${enable_languages+set}" = set; then
7008 enableval
="$enable_languages"
7009 case ,${enable_languages}, in
7011 # go safe -- we cannot be much sure without the toplevel
7013 # analysis of which target libs are present and usable
7017 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7018 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7019 { (exit 1); exit 1; }; }
7024 enable_languages
=c
,${enable_languages}
7032 for lang
in ${srcdir}/*/config-lang.
in
7035 # The odd quoting in the next line works around
7036 # an apparent bug in bash 1.12 on linux.
7037 ${srcdir}/[*]/config-lang.
in) ;;
7039 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7040 if test "x$lang_alias" = x
7042 echo "$lang doesn't set \$language." 1>&2
7045 case ",$enable_languages," in
7047 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7054 # -------------------------
7055 # Checks for other programs
7056 # -------------------------
7058 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7059 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7060 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7061 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 cat >conftest.
make <<\_ACEOF
7066 @
echo 'ac_maketemp="$(MAKE)"'
7068 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7069 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7070 if test -n "$ac_maketemp"; then
7071 eval ac_cv_prog_make_
${ac_make}_set
=yes
7073 eval ac_cv_prog_make_
${ac_make}_set
=no
7077 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7078 echo "$as_me:$LINENO: result: yes" >&5
7079 echo "${ECHO_T}yes" >&6
7082 echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6
7084 SET_MAKE
="MAKE=${MAKE-make}"
7088 # Find some useful tools
7089 for ac_prog
in gawk mawk nawk
awk
7091 # Extract the first word of "$ac_prog", so it can be a program name with args.
7092 set dummy
$ac_prog; ac_word
=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_AWK+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 if test -n "$AWK"; then
7099 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir
=.
7106 for ac_exec_ext
in '' $ac_executable_extensions; do
7107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_AWK
="$ac_prog"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 if test -n "$AWK"; then
7119 echo "$as_me:$LINENO: result: $AWK" >&5
7120 echo "${ECHO_T}$AWK" >&6
7122 echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7126 test -n "$AWK" && break
7129 # We need awk to create options.c and options.h.
7130 # Bail out if it's missing.
7132 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7133 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7134 { (exit 1); exit 1; }; } ;;
7137 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7138 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7139 if test "${gcc_cv_prog_LN_S+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 rm -f conftestdata_t
7143 echo >conftestdata_f
7144 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7146 gcc_cv_prog_LN_S
="ln -s"
7148 if ln conftestdata_f conftestdata_t
2>/dev
/null
7152 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7154 gcc_cv_prog_LN_S
="cp -p"
7160 rm -f conftestdata_f conftestdata_t
7163 LN_S
="$gcc_cv_prog_LN_S"
7164 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7165 echo "$as_me:$LINENO: result: yes" >&5
7166 echo "${ECHO_T}yes" >&6
7168 if test "$gcc_cv_prog_LN_S" = "ln"; then
7169 echo "$as_me:$LINENO: result: no, using ln" >&5
7170 echo "${ECHO_T}no, using ln" >&6
7172 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7173 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7177 echo "$as_me:$LINENO: checking whether ln works" >&5
7178 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7179 if test "${acx_cv_prog_LN+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 rm -f conftestdata_t
7183 echo >conftestdata_f
7184 if ln conftestdata_f conftestdata_t
2>/dev
/null
7190 rm -f conftestdata_f conftestdata_t
7193 if test $acx_cv_prog_LN = no
; then
7195 echo "$as_me:$LINENO: result: no, using $LN" >&5
7196 echo "${ECHO_T}no, using $LN" >&6
7198 LN
="$acx_cv_prog_LN"
7199 echo "$as_me:$LINENO: result: yes" >&5
7200 echo "${ECHO_T}yes" >&6
7203 if test -n "$ac_tool_prefix"; then
7204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7205 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7206 echo "$as_me:$LINENO: checking for $ac_word" >&5
7207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7208 if test "${ac_cv_prog_RANLIB+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 if test -n "$RANLIB"; then
7212 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir
=.
7219 for ac_exec_ext
in '' $ac_executable_extensions; do
7220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 RANLIB
=$ac_cv_prog_RANLIB
7231 if test -n "$RANLIB"; then
7232 echo "$as_me:$LINENO: result: $RANLIB" >&5
7233 echo "${ECHO_T}$RANLIB" >&6
7235 echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6
7240 if test -z "$ac_cv_prog_RANLIB"; then
7241 ac_ct_RANLIB
=$RANLIB
7242 # Extract the first word of "ranlib", so it can be a program name with args.
7243 set dummy ranlib
; ac_word
=$2
7244 echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7246 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 if test -n "$ac_ct_RANLIB"; then
7250 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir
=.
7257 for ac_exec_ext
in '' $ac_executable_extensions; do
7258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7269 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7270 if test -n "$ac_ct_RANLIB"; then
7271 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7272 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7274 echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6
7278 RANLIB
=$ac_ct_RANLIB
7280 RANLIB
="$ac_cv_prog_RANLIB"
7285 # By default, the Darwin ranlib will not treat common symbols as
7286 # definitions when building the archive table of contents. Other
7287 # ranlibs do that; pass an option to the Darwin ranlib that makes
7288 # it behave similarly.
7296 # Find a good install program. We prefer a C program (faster),
7297 # so one script is as good as another. But avoid the broken or
7298 # incompatible versions:
7299 # SysV /etc/install, /usr/sbin/install
7300 # SunOS /usr/etc/install
7301 # IRIX /sbin/install
7303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7305 # ./install, which can be erroneously created by make from ./install.sh.
7306 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7307 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7308 if test -z "$INSTALL"; then
7309 if test "${ac_cv_path_install+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7313 for ac_dir
in $PATH; do
7314 # Account for people who put trailing slashes in PATH elements.
7316 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7318 # OSF1 and SCO ODT 3.0 have their own names for install.
7319 for ac_prog
in ginstall scoinst
install; do
7320 if test -f $ac_dir/$ac_prog; then
7321 if test $ac_prog = install &&
7322 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7323 # AIX install. It has an incompatible calling convention.
7324 # OSF/1 installbsd also uses dspmsg, but is usable.
7327 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7338 if test "${ac_cv_path_install+set}" = set; then
7339 INSTALL
="$ac_cv_path_install"
7341 # As a last resort, use the slow shell script. We don't cache a
7342 # path for INSTALL within a source directory, because that will
7343 # break other packages using the cache if that directory is
7344 # removed, or if the path is relative.
7345 INSTALL
="$ac_install_sh"
7348 echo "$as_me:$LINENO: result: $INSTALL" >&5
7349 echo "${ECHO_T}$INSTALL" >&6
7351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7352 # It thinks the first close brace ends the variable substitution.
7353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7355 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7358 # See if cmp has --ignore-initial.
7359 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7360 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7361 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 gcc_cv_prog_cmp_skip
=slowcompare
7367 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7368 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7371 gcc_cv_prog_cmp_skip
=gnucompare
7374 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7375 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7376 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7379 gcc_cv_prog_cmp_skip
=fastcompare
7386 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7387 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7388 make_compare_target
=$gcc_cv_prog_cmp_skip
7392 # See if we have the mktemp command.
7393 # Extract the first word of "mktemp", so it can be a program name with args.
7394 set dummy mktemp
; ac_word
=$2
7395 echo "$as_me:$LINENO: checking for $ac_word" >&5
7396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7397 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 if test -n "$have_mktemp_command"; then
7401 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir
=.
7408 for ac_exec_ext
in '' $ac_executable_extensions; do
7409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_have_mktemp_command
="yes"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7420 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7421 if test -n "$have_mktemp_command"; then
7422 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7423 echo "${ECHO_T}$have_mktemp_command" >&6
7425 echo "$as_me:$LINENO: result: no" >&5
7426 echo "${ECHO_T}no" >&6
7430 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7432 # See if makeinfo has been installed and is modern enough
7433 # that we can use it.
7435 ac_executable_extensions
="$build_exeext"
7437 # Extract the first word of "makeinfo", so it can be a program name with args.
7438 set dummy makeinfo
; ac_word
=$2
7439 echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7441 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 if test -n "$MAKEINFO"; then
7445 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir
=.
7452 for ac_exec_ext
in '' $ac_executable_extensions; do
7453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_MAKEINFO
="makeinfo"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 MAKEINFO
=$ac_cv_prog_MAKEINFO
7464 if test -n "$MAKEINFO"; then
7465 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7466 echo "${ECHO_T}$MAKEINFO" >&6
7468 echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6
7472 if test -n "$MAKEINFO"; then
7473 # Found it, now check the version.
7474 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7475 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7476 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7480 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7481 echo "configure:7481: version of makeinfo is $ac_prog_version" >&5
7482 case $ac_prog_version in
7483 '') gcc_cv_prog_makeinfo_modern
=no
;;
7485 gcc_cv_prog_makeinfo_modern
=yes;;
7486 *) gcc_cv_prog_makeinfo_modern
=no
;;
7490 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7491 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7493 gcc_cv_prog_makeinfo_modern
=no
7496 if test $gcc_cv_prog_makeinfo_modern = no
; then
7497 MAKEINFO
="$MISSING makeinfo"
7498 { echo "$as_me:$LINENO: WARNING:
7499 *** Makeinfo is missing or too old.
7500 *** Info documentation will not be built." >&5
7501 echo "$as_me: WARNING:
7502 *** Makeinfo is missing or too old.
7503 *** Info documentation will not be built." >&2;}
7510 # Is pod2man recent enough to regenerate manpages?
7511 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7512 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7513 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7514 echo "$as_me:$LINENO: result: yes" >&5
7515 echo "${ECHO_T}yes" >&6
7516 GENERATED_MANPAGES
=generated-manpages
7518 echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6
7527 # Extract the first word of "$ac_prog", so it can be a program name with args.
7528 set dummy
$ac_prog; ac_word
=$2
7529 echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7531 if test "${ac_cv_prog_FLEX+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 if test -n "$FLEX"; then
7535 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7541 test -z "$as_dir" && as_dir
=.
7542 for ac_exec_ext
in '' $ac_executable_extensions; do
7543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_FLEX
="$ac_prog"
7545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 FLEX
=$ac_cv_prog_FLEX
7554 if test -n "$FLEX"; then
7555 echo "$as_me:$LINENO: result: $FLEX" >&5
7556 echo "${ECHO_T}$FLEX" >&6
7558 echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6
7562 test -n "$FLEX" && break
7564 test -n "$FLEX" || FLEX
="$MISSING flex"
7568 for ac_prog
in bison
7570 # Extract the first word of "$ac_prog", so it can be a program name with args.
7571 set dummy
$ac_prog; ac_word
=$2
7572 echo "$as_me:$LINENO: checking for $ac_word" >&5
7573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7574 if test "${ac_cv_prog_BISON+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 if test -n "$BISON"; then
7578 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir
=.
7585 for ac_exec_ext
in '' $ac_executable_extensions; do
7586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_BISON
="$ac_prog"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 BISON
=$ac_cv_prog_BISON
7597 if test -n "$BISON"; then
7598 echo "$as_me:$LINENO: result: $BISON" >&5
7599 echo "${ECHO_T}$BISON" >&6
7601 echo "$as_me:$LINENO: result: no" >&5
7602 echo "${ECHO_T}no" >&6
7605 test -n "$BISON" && break
7607 test -n "$BISON" || BISON
="$MISSING bison"
7610 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7611 # check for build == host before using them.
7614 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7615 && test -d ..
/binutils
; then
7616 NM
='$(objdir)/../binutils/nm-new'
7618 # Extract the first word of "nm", so it can be a program name with args.
7619 set dummy nm
; ac_word
=$2
7620 echo "$as_me:$LINENO: checking for $ac_word" >&5
7621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7622 if test "${ac_cv_prog_NM+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 if test -n "$NM"; then
7626 ac_cv_prog_NM
="$NM" # Let the user override the test.
7628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7632 test -z "$as_dir" && as_dir
=.
7633 for ac_exec_ext
in '' $ac_executable_extensions; do
7634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7646 if test -n "$NM"; then
7647 echo "$as_me:$LINENO: result: $NM" >&5
7648 echo "${ECHO_T}$NM" >&6
7650 echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6
7657 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7658 && test -d ..
/binutils
; then
7659 AR
='$(objdir)/../binutils/ar'
7661 # Extract the first word of "ar", so it can be a program name with args.
7662 set dummy
ar; ac_word
=$2
7663 echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7665 if test "${ac_cv_prog_AR+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 if test -n "$AR"; then
7669 ac_cv_prog_AR
="$AR" # Let the user override the test.
7671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir
=.
7676 for ac_exec_ext
in '' $ac_executable_extensions; do
7677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7689 if test -n "$AR"; then
7690 echo "$as_me:$LINENO: result: $AR" >&5
7691 echo "${ECHO_T}$AR" >&6
7693 echo "$as_me:$LINENO: result: no" >&5
7694 echo "${ECHO_T}no" >&6
7700 # --------------------
7701 # Checks for C headers
7702 # --------------------
7704 echo "$as_me:$LINENO: checking for GNU C library" >&5
7705 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7706 if test "${gcc_cv_glibc+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 cat >conftest.
$ac_ext <<_ACEOF
7712 cat confdefs.h
>>conftest.
$ac_ext
7713 cat >>conftest.
$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 #include <features.h>
7720 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7721 #error Not a GNU C library system
7727 rm -f conftest.
$ac_objext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7729 (eval $ac_compile) 2>conftest.er1
7731 grep -v '^ *+' conftest.er1
>conftest.err
7733 cat conftest.err
>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try
='test -z "$ac_c_werror_flag"
7737 || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try
='test -s conftest.$ac_objext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.
$ac_ext >&5
7756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7759 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7760 echo "${ECHO_T}$gcc_cv_glibc" >&6
7761 if test $gcc_cv_glibc = yes; then
7763 cat >>confdefs.h
<<\_ACEOF
7764 #define _GNU_SOURCE 1
7769 # Need to reject headers which give warnings, so that the -Werror bootstrap
7770 # works later. *sigh* This needs to come before all header checks.
7772 ac_c_preproc_warn_flag
=yes
7774 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7775 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7776 if test "${ac_cv_header_stdc+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 cat >conftest.
$ac_ext <<_ACEOF
7782 cat confdefs.h
>>conftest.
$ac_ext
7783 cat >>conftest.
$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7798 rm -f conftest.
$ac_objext
7799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7800 (eval $ac_compile) 2>conftest.er1
7802 grep -v '^ *+' conftest.er1
>conftest.err
7804 cat conftest.err
>&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } &&
7807 { ac_try
='test -z "$ac_c_werror_flag"
7808 || test ! -s conftest.err'
7809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); }; } &&
7814 { ac_try
='test -s conftest.$ac_objext'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; }; then
7820 ac_cv_header_stdc
=yes
7822 echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.
$ac_ext >&5
7825 ac_cv_header_stdc
=no
7827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7829 if test $ac_cv_header_stdc = yes; then
7830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7831 cat >conftest.
$ac_ext <<_ACEOF
7834 cat confdefs.h
>>conftest.
$ac_ext
7835 cat >>conftest.
$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7841 $EGREP "memchr" >/dev
/null
2>&1; then
7844 ac_cv_header_stdc
=no
7850 if test $ac_cv_header_stdc = yes; then
7851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7852 cat >conftest.
$ac_ext <<_ACEOF
7855 cat confdefs.h
>>conftest.
$ac_ext
7856 cat >>conftest.
$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7862 $EGREP "free" >/dev
/null
2>&1; then
7865 ac_cv_header_stdc
=no
7871 if test $ac_cv_header_stdc = yes; then
7872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7873 if test "$cross_compiling" = yes; then
7876 cat >conftest.
$ac_ext <<_ACEOF
7879 cat confdefs.h
>>conftest.
$ac_ext
7880 cat >>conftest.
$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7883 #if ((' ' & 0x0FF) == 0x020)
7884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7887 # define ISLOWER(c) \
7888 (('a' <= (c) && (c) <= 'i') \
7889 || ('j' <= (c) && (c) <= 'r') \
7890 || ('s' <= (c) && (c) <= 'z'))
7891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7899 for (i = 0; i < 256; i++)
7900 if (XOR (islower (i), ISLOWER (i))
7901 || toupper (i) != TOUPPER (i))
7906 rm -f conftest
$ac_exeext
7907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7908 (eval $ac_link) 2>&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7919 echo "$as_me: program exited with status $ac_status" >&5
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.
$ac_ext >&5
7924 ac_cv_header_stdc
=no
7926 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7930 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7931 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7932 if test $ac_cv_header_stdc = yes; then
7934 cat >>confdefs.h
<<\_ACEOF
7935 #define STDC_HEADERS 1
7940 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7941 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7942 if test "${ac_cv_header_time+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 cat >conftest.
$ac_ext <<_ACEOF
7948 cat confdefs.h
>>conftest.
$ac_ext
7949 cat >>conftest.
$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951 #include <sys/types.h>
7952 #include <sys/time.h>
7958 if ((struct tm *) 0)
7964 rm -f conftest.
$ac_objext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7966 (eval $ac_compile) 2>conftest.er1
7968 grep -v '^ *+' conftest.er1
>conftest.err
7970 cat conftest.err
>&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
7973 { ac_try
='test -z "$ac_c_werror_flag"
7974 || test ! -s conftest.err'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; } &&
7980 { ac_try
='test -s conftest.$ac_objext'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7986 ac_cv_header_time
=yes
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.
$ac_ext >&5
7991 ac_cv_header_time
=no
7993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7996 echo "${ECHO_T}$ac_cv_header_time" >&6
7997 if test $ac_cv_header_time = yes; then
7999 cat >>confdefs.h
<<\_ACEOF
8000 #define TIME_WITH_SYS_TIME 1
8005 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8006 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8007 if test "${gcc_cv_header_string+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 cat >conftest.
$ac_ext <<_ACEOF
8013 cat confdefs.h
>>conftest.
$ac_ext
8014 cat >>conftest.
$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8017 #include <strings.h>
8026 rm -f conftest.
$ac_objext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8028 (eval $ac_compile) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1
>conftest.err
8032 cat conftest.err
>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try
='test -z "$ac_c_werror_flag"
8036 || test ! -s conftest.err'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try
='test -s conftest.$ac_objext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 gcc_cv_header_string
=yes
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.
$ac_ext >&5
8053 gcc_cv_header_string
=no
8055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8057 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8058 echo "${ECHO_T}$gcc_cv_header_string" >&6
8059 if test $gcc_cv_header_string = yes; then
8061 cat >>confdefs.h
<<\_ACEOF
8062 #define STRING_WITH_STRINGS 1
8067 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8068 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8069 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 cat >conftest.
$ac_ext <<_ACEOF
8075 cat confdefs.h
>>conftest.
$ac_ext
8076 cat >>conftest.
$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 #include <sys/types.h>
8079 #include <sys/wait.h>
8081 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8084 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8092 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8097 rm -f conftest.
$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>conftest.er1
8101 grep -v '^ *+' conftest.er1
>conftest.err
8103 cat conftest.err
>&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try
='test -z "$ac_c_werror_flag"
8107 || test ! -s conftest.err'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try
='test -s conftest.$ac_objext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 ac_cv_header_sys_wait_h
=yes
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.
$ac_ext >&5
8124 ac_cv_header_sys_wait_h
=no
8126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8128 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8129 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8130 if test $ac_cv_header_sys_wait_h = yes; then
8132 cat >>confdefs.h
<<\_ACEOF
8133 #define HAVE_SYS_WAIT_H 1
8160 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8161 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8162 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8163 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8165 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8166 echo "$as_me:$LINENO: checking for $ac_header" >&5
8167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 cat >conftest.
$ac_ext <<_ACEOF
8174 cat confdefs.h
>>conftest.
$ac_ext
8175 cat >>conftest.
$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 #include <$ac_header>
8179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8180 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8182 grep -v '^ *+' conftest.er1
>conftest.err
8184 cat conftest.err
>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } >/dev
/null
; then
8187 if test -s conftest.err
; then
8188 ac_cpp_err
=$ac_c_preproc_warn_flag
8189 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8196 if test -z "$ac_cpp_err"; then
8197 eval "$as_ac_Header=yes"
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.
$ac_ext >&5
8202 eval "$as_ac_Header=no"
8204 rm -f conftest.err conftest.
$ac_ext
8206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209 cat >>confdefs.h
<<_ACEOF
8210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8217 # Check for thread headers.
8218 echo "$as_me:$LINENO: checking for thread.h" >&5
8219 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8220 if test "${ac_cv_header_thread_h+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 cat >conftest.
$ac_ext <<_ACEOF
8226 cat confdefs.h
>>conftest.
$ac_ext
8227 cat >>conftest.
$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8232 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8234 grep -v '^ *+' conftest.er1
>conftest.err
8236 cat conftest.err
>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } >/dev
/null
; then
8239 if test -s conftest.err
; then
8240 ac_cpp_err
=$ac_c_preproc_warn_flag
8241 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8248 if test -z "$ac_cpp_err"; then
8249 ac_cv_header_thread_h
=yes
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.
$ac_ext >&5
8254 ac_cv_header_thread_h
=no
8256 rm -f conftest.err conftest.
$ac_ext
8258 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8259 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8260 if test $ac_cv_header_thread_h = yes; then
8266 echo "$as_me:$LINENO: checking for pthread.h" >&5
8267 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8268 if test "${ac_cv_header_pthread_h+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 cat >conftest.
$ac_ext <<_ACEOF
8274 cat confdefs.h
>>conftest.
$ac_ext
8275 cat >>conftest.
$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 #include <pthread.h>
8279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8280 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8282 grep -v '^ *+' conftest.er1
>conftest.err
8284 cat conftest.err
>&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } >/dev
/null
; then
8287 if test -s conftest.err
; then
8288 ac_cpp_err
=$ac_c_preproc_warn_flag
8289 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8296 if test -z "$ac_cpp_err"; then
8297 ac_cv_header_pthread_h
=yes
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.
$ac_ext >&5
8302 ac_cv_header_pthread_h
=no
8304 rm -f conftest.err conftest.
$ac_ext
8306 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8307 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8308 if test $ac_cv_header_pthread_h = yes; then
8315 # These tests can't be done till we know if we have limits.h.
8316 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8317 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8318 if test "${gcc_cv_decl_char_bit+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 cat >conftest.
$ac_ext <<_ACEOF
8324 cat confdefs.h
>>conftest.
$ac_ext
8325 cat >>conftest.
$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 #ifdef HAVE_LIMITS_H
8334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8335 $EGREP "found" >/dev
/null
2>&1; then
8336 gcc_cv_decl_char_bit
=yes
8338 gcc_cv_decl_char_bit
=no
8344 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8345 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8346 if test $gcc_cv_decl_char_bit = no
; then
8347 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8348 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8349 if test "${gcc_cv_c_nbby+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 while test $i -lt 65; do
8355 cat >conftest.
$ac_ext <<_ACEOF
8358 cat confdefs.h
>>conftest.
$ac_ext
8359 cat >>conftest.
$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8366 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8367 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8373 rm -f conftest.
$ac_objext
8374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8375 (eval $ac_compile) 2>conftest.er1
8377 grep -v '^ *+' conftest.er1
>conftest.err
8379 cat conftest.err
>&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try
='test -z "$ac_c_werror_flag"
8383 || test ! -s conftest.err'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try
='test -s conftest.$ac_objext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 gcc_cv_c_nbby
=$i; break
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.
$ac_ext >&5
8401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8404 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8407 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8408 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8409 if test $gcc_cv_c_nbby = failed
; then
8410 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8411 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8412 { (exit 1); exit 1; }; }
8415 cat >>confdefs.h
<<_ACEOF
8416 #define CHAR_BIT $gcc_cv_c_nbby
8421 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8422 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8423 if test "${ac_cv_c_bigendian+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 # See if sys/param.h defines the BYTE_ORDER macro.
8427 cat >conftest.
$ac_ext <<_ACEOF
8430 cat confdefs.h
>>conftest.
$ac_ext
8431 cat >>conftest.
$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 #include <sys/types.h>
8434 #include <sys/param.h>
8439 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8447 rm -f conftest.
$ac_objext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449 (eval $ac_compile) 2>conftest.er1
8451 grep -v '^ *+' conftest.er1
>conftest.err
8453 cat conftest.err
>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try
='test -z "$ac_c_werror_flag"
8457 || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try
='test -s conftest.$ac_objext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 # It does; now see whether it defined to BIG_ENDIAN or not.
8470 cat >conftest.
$ac_ext <<_ACEOF
8473 cat confdefs.h
>>conftest.
$ac_ext
8474 cat >>conftest.
$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 #include <sys/types.h>
8477 #include <sys/param.h>
8482 #if BYTE_ORDER != BIG_ENDIAN
8490 rm -f conftest.
$ac_objext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8492 (eval $ac_compile) 2>conftest.er1
8494 grep -v '^ *+' conftest.er1
>conftest.err
8496 cat conftest.err
>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try
='test -z "$ac_c_werror_flag"
8500 || test ! -s conftest.err'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try
='test -s conftest.$ac_objext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_c_bigendian
=yes
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.
$ac_ext >&5
8517 ac_cv_c_bigendian
=no
8519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.
$ac_ext >&5
8524 # It does not; compile a test program.
8525 if test "$cross_compiling" = yes; then
8526 # try to guess the endianness by grepping values into an object file
8527 ac_cv_c_bigendian
=unknown
8528 cat >conftest.
$ac_ext <<_ACEOF
8531 cat confdefs.h
>>conftest.
$ac_ext
8532 cat >>conftest.
$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8535 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8536 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8537 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8538 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8539 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8543 _ascii (); _ebcdic ();
8548 rm -f conftest.
$ac_objext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550 (eval $ac_compile) 2>conftest.er1
8552 grep -v '^ *+' conftest.er1
>conftest.err
8554 cat conftest.err
>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try
='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try
='test -s conftest.$ac_objext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8571 ac_cv_c_bigendian
=yes
8573 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8574 if test "$ac_cv_c_bigendian" = unknown
; then
8575 ac_cv_c_bigendian
=no
8577 # finding both strings is unlikely to happen, but who knows?
8578 ac_cv_c_bigendian
=unknown
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8588 cat >conftest.
$ac_ext <<_ACEOF
8591 cat confdefs.h
>>conftest.
$ac_ext
8592 cat >>conftest.
$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8597 /* Are we little or big endian? From Harbison&Steele. */
8601 char c[sizeof (long)];
8604 exit (u.c[sizeof (long) - 1] == 1);
8607 rm -f conftest
$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_c_bigendian
=no
8620 echo "$as_me: program exited with status $ac_status" >&5
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.
$ac_ext >&5
8625 ac_cv_c_bigendian
=yes
8627 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8632 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8633 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8634 case $ac_cv_c_bigendian in
8637 cat >>confdefs.h
<<\_ACEOF
8638 #define WORDS_BIGENDIAN 1
8644 { { echo "$as_me:$LINENO: error: unknown endianness
8645 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8646 echo "$as_me: error: unknown endianness
8647 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8648 { (exit 1); exit 1; }; } ;;
8656 # Stage specific cflags for build.
8660 if test x
$GCC = xyes
8662 stage1_cflags
="-Wa,-J"
8668 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8669 # sources; use -no-cpp-precomp to get to GNU cpp.
8670 # Apple's GCC has bugs in designated initializer handling, so disable
8672 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8677 # These libraries may be used by collect2.
8678 # We may need a special search path to get them linked.
8679 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8680 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8681 if test "${gcc_cv_collect2_libs+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 for libs
in '' -lld -lmld \
8686 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8687 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8690 cat >conftest.
$ac_ext <<_ACEOF
8693 cat confdefs.h
>>conftest.
$ac_ext
8694 cat >>conftest.
$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8697 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8712 rm -f conftest.
$ac_objext conftest
$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8716 grep -v '^ *+' conftest.er1
>conftest.err
8718 cat conftest.err
>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try
='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try
='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 gcc_cv_collect2_libs
="$libs"; break
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.
$ac_ext >&5
8740 rm -f conftest.err conftest.
$ac_objext \
8741 conftest
$ac_exeext conftest.
$ac_ext
8744 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8746 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8747 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8748 case $gcc_cv_collect2_libs in
8750 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8754 # When building Ada code on Alpha, we need exc_resume which is usually in
8755 # -lexc. So test for it.
8758 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8759 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8760 if test "${ac_cv_search_exc_resume+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 ac_func_search_save_LIBS
=$LIBS
8764 ac_cv_search_exc_resume
=no
8765 cat >conftest.
$ac_ext <<_ACEOF
8768 cat confdefs.h
>>conftest.
$ac_ext
8769 cat >>conftest.
$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8772 /* Override any gcc2 internal prototype to avoid an error. */
8776 /* We use char because int might match the return type of a gcc2
8777 builtin and then its argument prototype would still apply. */
8787 rm -f conftest.
$ac_objext conftest
$ac_exeext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789 (eval $ac_link) 2>conftest.er1
8791 grep -v '^ *+' conftest.er1
>conftest.err
8793 cat conftest.err
>&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try
='test -z "$ac_c_werror_flag"
8797 || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try
='test -s conftest$ac_exeext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_cv_search_exc_resume
="none required"
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.
$ac_ext >&5
8815 rm -f conftest.err conftest.
$ac_objext \
8816 conftest
$ac_exeext conftest.
$ac_ext
8817 if test "$ac_cv_search_exc_resume" = no
; then
8818 for ac_lib
in exc
; do
8819 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8820 cat >conftest.
$ac_ext <<_ACEOF
8823 cat confdefs.h
>>conftest.
$ac_ext
8824 cat >>conftest.
$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8827 /* Override any gcc2 internal prototype to avoid an error. */
8831 /* We use char because int might match the return type of a gcc2
8832 builtin and then its argument prototype would still apply. */
8842 rm -f conftest.
$ac_objext conftest
$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>conftest.er1
8846 grep -v '^ *+' conftest.er1
>conftest.err
8848 cat conftest.err
>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try
='test -z "$ac_c_werror_flag"
8852 || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try
='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_cv_search_exc_resume
="-l$ac_lib"
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.
$ac_ext >&5
8871 rm -f conftest.err conftest.
$ac_objext \
8872 conftest
$ac_exeext conftest.
$ac_ext
8875 LIBS
=$ac_func_search_save_LIBS
8877 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8878 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8879 if test "$ac_cv_search_exc_resume" != no
; then
8880 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8888 # Some systems put ldexp and frexp in libm instead of libc; assume
8889 # they're both in the same place. jcf-dump needs them.
8892 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8893 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8894 if test "${ac_cv_search_ldexp+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 ac_func_search_save_LIBS
=$LIBS
8898 ac_cv_search_ldexp
=no
8899 cat >conftest.
$ac_ext <<_ACEOF
8902 cat confdefs.h
>>conftest.
$ac_ext
8903 cat >>conftest.
$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8906 /* Override any gcc2 internal prototype to avoid an error. */
8910 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */
8921 rm -f conftest.
$ac_objext conftest
$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923 (eval $ac_link) 2>conftest.er1
8925 grep -v '^ *+' conftest.er1
>conftest.err
8927 cat conftest.err
>&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try
='test -z "$ac_c_werror_flag"
8931 || test ! -s conftest.err'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; } &&
8937 { ac_try
='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_search_ldexp
="none required"
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.
$ac_ext >&5
8949 rm -f conftest.err conftest.
$ac_objext \
8950 conftest
$ac_exeext conftest.
$ac_ext
8951 if test "$ac_cv_search_ldexp" = no
; then
8953 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8954 cat >conftest.
$ac_ext <<_ACEOF
8957 cat confdefs.h
>>conftest.
$ac_ext
8958 cat >>conftest.
$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8961 /* Override any gcc2 internal prototype to avoid an error. */
8965 /* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8976 rm -f conftest.
$ac_objext conftest
$ac_exeext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978 (eval $ac_link) 2>conftest.er1
8980 grep -v '^ *+' conftest.er1
>conftest.err
8982 cat conftest.err
>&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try
='test -z "$ac_c_werror_flag"
8986 || test ! -s conftest.err'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try
='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_cv_search_ldexp
="-l$ac_lib"
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.
$ac_ext >&5
9005 rm -f conftest.err conftest.
$ac_objext \
9006 conftest
$ac_exeext conftest.
$ac_ext
9009 LIBS
=$ac_func_search_save_LIBS
9011 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9012 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9013 if test "$ac_cv_search_ldexp" != no
; then
9014 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9022 # Use <inttypes.h> only if it exists,
9023 # doesn't clash with <sys/types.h>, and declares intmax_t.
9024 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9025 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9026 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 cat >conftest.
$ac_ext <<_ACEOF
9032 cat confdefs.h
>>conftest.
$ac_ext
9033 cat >>conftest.
$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 #include <sys/types.h>
9036 #include <inttypes.h>
9045 rm -f conftest.
$ac_objext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047 (eval $ac_compile) 2>conftest.er1
9049 grep -v '^ *+' conftest.er1
>conftest.err
9051 cat conftest.err
>&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try
='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try
='test -s conftest.$ac_objext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 gcc_cv_header_inttypes_h
=yes
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.
$ac_ext >&5
9072 gcc_cv_header_inttypes_h
=no
9074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9077 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9078 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9079 if test $gcc_cv_header_inttypes_h = yes; then
9081 cat >>confdefs.h
<<\_ACEOF
9082 #define HAVE_INTTYPES_H 1
9125 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
9126 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9127 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9128 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
9130 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9131 echo "$as_me:$LINENO: checking for $ac_func" >&5
9132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9133 if eval "test \"\${$as_ac_var+set}\" = set"; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 cat >conftest.
$ac_ext <<_ACEOF
9139 cat confdefs.h
>>conftest.
$ac_ext
9140 cat >>conftest.
$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9144 #define $ac_func innocuous_$ac_func
9146 /* System header to define __stub macros and hopefully few prototypes,
9147 which can conflict with char $ac_func (); below.
9148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9149 <limits.h> exists even on freestanding compilers. */
9152 # include <limits.h>
9154 # include <assert.h>
9159 /* Override any gcc2 internal prototype to avoid an error. */
9164 /* We use char because int might match the return type of a gcc2
9165 builtin and then its argument prototype would still apply. */
9167 /* The GNU C library defines this for functions which it implements
9168 to always fail with ENOSYS. Some functions are actually named
9169 something starting with __ and the normal name is an alias. */
9170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9173 char (*f) () = $ac_func;
9182 return f != $ac_func;
9187 rm -f conftest.
$ac_objext conftest
$ac_exeext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189 (eval $ac_link) 2>conftest.er1
9191 grep -v '^ *+' conftest.er1
>conftest.err
9193 cat conftest.err
>&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try
='test -z "$ac_c_werror_flag"
9197 || test ! -s conftest.err'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try
='test -s conftest$ac_exeext'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 eval "$as_ac_var=yes"
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.
$ac_ext >&5
9214 eval "$as_ac_var=no"
9216 rm -f conftest.err conftest.
$ac_objext \
9217 conftest
$ac_exeext conftest.
$ac_ext
9219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9221 if test `eval echo '${'$as_ac_var'}'` = yes; then
9222 cat >>confdefs.h
<<_ACEOF
9223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9230 if test x
$ac_cv_func_mbstowcs = xyes
; then
9231 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9232 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9233 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 if test "$cross_compiling" = yes; then
9237 gcc_cv_func_mbstowcs_works
=yes
9239 cat >conftest.
$ac_ext <<_ACEOF
9242 cat confdefs.h
>>conftest.
$ac_ext
9243 cat >>conftest.
$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9252 rm -f conftest
$ac_exeext
9253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9254 (eval $ac_link) 2>&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; }; then
9263 gcc_cv_func_mbstowcs_works
=yes
9265 echo "$as_me: program exited with status $ac_status" >&5
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.
$ac_ext >&5
9270 gcc_cv_func_mbstowcs_works
=no
9272 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9275 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9276 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9277 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9279 cat >>confdefs.h
<<\_ACEOF
9280 #define HAVE_WORKING_MBSTOWCS 1
9286 echo "$as_me:$LINENO: checking for ssize_t" >&5
9287 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9288 if test "${ac_cv_type_ssize_t+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 cat >conftest.
$ac_ext <<_ACEOF
9294 cat confdefs.h
>>conftest.
$ac_ext
9295 cat >>conftest.
$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 $ac_includes_default
9303 if (sizeof (ssize_t))
9309 rm -f conftest.
$ac_objext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311 (eval $ac_compile) 2>conftest.er1
9313 grep -v '^ *+' conftest.er1
>conftest.err
9315 cat conftest.err
>&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try
='test -z "$ac_c_werror_flag"
9319 || test ! -s conftest.err'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try
='test -s conftest.$ac_objext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 ac_cv_type_ssize_t
=yes
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.
$ac_ext >&5
9336 ac_cv_type_ssize_t
=no
9338 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9340 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9341 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9342 if test $ac_cv_type_ssize_t = yes; then
9346 cat >>confdefs.h
<<_ACEOF
9353 # Try to determine the array type of the second argument of getgroups
9354 # for the target system (int or gid_t).
9355 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9356 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9357 if test "${ac_cv_type_uid_t+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 cat >conftest.
$ac_ext <<_ACEOF
9363 cat confdefs.h
>>conftest.
$ac_ext
9364 cat >>conftest.
$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 #include <sys/types.h>
9369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9370 $EGREP "uid_t" >/dev
/null
2>&1; then
9371 ac_cv_type_uid_t
=yes
9378 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9379 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9380 if test $ac_cv_type_uid_t = no
; then
9382 cat >>confdefs.h
<<\_ACEOF
9387 cat >>confdefs.h
<<\_ACEOF
9393 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9394 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9395 if test "${ac_cv_type_getgroups+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 if test "$cross_compiling" = yes; then
9399 ac_cv_type_getgroups
=cross
9401 cat >conftest.
$ac_ext <<_ACEOF
9404 cat confdefs.h
>>conftest.
$ac_ext
9405 cat >>conftest.
$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 /* Thanks to Mike Rendell for this test. */
9408 #include <sys/types.h>
9411 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9418 union { gid_t gval; long lval; } val;
9421 for (i = 0; i < NGID; i++)
9422 gidset[i] = val.gval;
9423 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9425 /* Exit non-zero if getgroups seems to require an array of ints. This
9426 happens when gid_t is short but getgroups modifies an array of ints. */
9427 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9430 rm -f conftest
$ac_exeext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9432 (eval $ac_link) 2>&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_cv_type_getgroups
=gid_t
9443 echo "$as_me: program exited with status $ac_status" >&5
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.
$ac_ext >&5
9448 ac_cv_type_getgroups
=int
9450 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9452 if test $ac_cv_type_getgroups = cross
; then
9453 cat >conftest.
$ac_ext <<_ACEOF
9456 cat confdefs.h
>>conftest.
$ac_ext
9457 cat >>conftest.
$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9463 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9464 ac_cv_type_getgroups
=gid_t
9466 ac_cv_type_getgroups
=int
9472 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9473 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9475 cat >>confdefs.h
<<_ACEOF
9476 #define GETGROUPS_T $ac_cv_type_getgroups
9480 if test "${target}" = "${build}"; then
9481 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9484 # This condition may need some tweaking. It should include all
9485 # targets where the array type of the second argument of getgroups
9486 # is int and the type of gid_t is not equivalent to int.
9487 *-*-sunos* |
*-*-ultrix*)
9488 TARGET_GETGROUPS_T
=int
9491 TARGET_GETGROUPS_T
=gid_t
9497 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9498 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9499 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 if test "$cross_compiling" = yes; then
9503 gcc_cv_func_printf_ptr
=no
9505 cat >conftest.
$ac_ext <<_ACEOF
9508 cat confdefs.h
>>conftest.
$ac_ext
9509 cat >>conftest.
$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9516 char *p = buf, *q = NULL;
9517 sprintf(buf, "%p", p);
9518 sscanf(buf, "%p", &q);
9522 rm -f conftest
$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 gcc_cv_func_printf_ptr
=yes
9535 echo "$as_me: program exited with status $ac_status" >&5
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.
$ac_ext >&5
9540 gcc_cv_func_printf_ptr
=no
9542 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9544 rm -f core core.
* *.core
9546 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9547 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9548 if test $gcc_cv_func_printf_ptr = yes ; then
9550 cat >>confdefs.h
<<\_ACEOF
9551 #define HAVE_PRINTF_PTR 1
9557 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9558 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9559 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 cat >conftest.
$ac_ext <<_ACEOF
9565 cat confdefs.h
>>conftest.
$ac_ext
9566 cat >>conftest.
$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 #include <sys/mman.h>
9570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9571 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9573 grep -v '^ *+' conftest.er1
>conftest.err
9575 cat conftest.err
>&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } >/dev
/null
; then
9578 if test -s conftest.err
; then
9579 ac_cpp_err
=$ac_c_preproc_warn_flag
9580 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9587 if test -z "$ac_cpp_err"; then
9588 ac_cv_header_sys_mman_h
=yes
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.
$ac_ext >&5
9593 ac_cv_header_sys_mman_h
=no
9595 rm -f conftest.err conftest.
$ac_ext
9597 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9598 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9599 if test $ac_cv_header_sys_mman_h = yes; then
9600 gcc_header_sys_mman_h
=yes
9602 gcc_header_sys_mman_h
=no
9605 echo "$as_me:$LINENO: checking for mmap" >&5
9606 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9607 if test "${ac_cv_func_mmap+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 cat >conftest.
$ac_ext <<_ACEOF
9613 cat confdefs.h
>>conftest.
$ac_ext
9614 cat >>conftest.
$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9618 #define mmap innocuous_mmap
9620 /* System header to define __stub macros and hopefully few prototypes,
9621 which can conflict with char mmap (); below.
9622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9623 <limits.h> exists even on freestanding compilers. */
9626 # include <limits.h>
9628 # include <assert.h>
9633 /* Override any gcc2 internal prototype to avoid an error. */
9638 /* We use char because int might match the return type of a gcc2
9639 builtin and then its argument prototype would still apply. */
9641 /* The GNU C library defines this for functions which it implements
9642 to always fail with ENOSYS. Some functions are actually named
9643 something starting with __ and the normal name is an alias. */
9644 #if defined (__stub_mmap) || defined (__stub___mmap)
9647 char (*f) () = mmap;
9661 rm -f conftest.
$ac_objext conftest
$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>conftest.er1
9665 grep -v '^ *+' conftest.er1
>conftest.err
9667 cat conftest.err
>&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try
='test -z "$ac_c_werror_flag"
9671 || test ! -s conftest.err'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try
='test -s conftest$ac_exeext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.
$ac_ext >&5
9690 rm -f conftest.err conftest.
$ac_objext \
9691 conftest
$ac_exeext conftest.
$ac_ext
9693 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9694 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9695 if test $ac_cv_func_mmap = yes; then
9701 if test "$gcc_header_sys_mman_h" != yes \
9702 ||
test "$gcc_func_mmap" != yes; then
9703 gcc_cv_func_mmap_file
=no
9704 gcc_cv_func_mmap_dev_zero
=no
9705 gcc_cv_func_mmap_anon
=no
9707 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9708 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9709 if test "${gcc_cv_func_mmap_file+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 # Add a system to this blacklist if
9713 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9714 # memory area containing the same data that you'd get if you applied
9715 # read() to the same fd. The only system known to have a problem here
9716 # is VMS, where text files have record structure.
9719 gcc_cv_func_mmap_file
=no
;;
9721 gcc_cv_func_mmap_file
=yes;;
9724 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9725 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9726 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9727 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9728 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 # Add a system to this blacklist if it has mmap() but /dev/zero
9732 # does not exist, or if mmapping /dev/zero does not give anonymous
9733 # zeroed pages with both the following properties:
9734 # 1. If you map N consecutive pages in with one call, and then
9735 # unmap any subset of those pages, the pages that were not
9736 # explicitly unmapped remain accessible.
9737 # 2. If you map two adjacent blocks of memory and then unmap them
9738 # both at once, they must both go away.
9739 # Systems known to be in this category are Windows (all variants),
9742 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9743 gcc_cv_func_mmap_dev_zero
=no
;;
9745 gcc_cv_func_mmap_dev_zero
=yes;;
9748 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9749 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9751 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9752 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9753 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9754 if test "${gcc_cv_decl_map_anon+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 cat >conftest.
$ac_ext <<_ACEOF
9760 cat confdefs.h
>>conftest.
$ac_ext
9761 cat >>conftest.
$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 #include <sys/types.h>
9764 #include <sys/mman.h>
9767 #ifndef MAP_ANONYMOUS
9768 #define MAP_ANONYMOUS MAP_ANON
9774 int n = MAP_ANONYMOUS;
9779 rm -f conftest.
$ac_objext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781 (eval $ac_compile) 2>conftest.er1
9783 grep -v '^ *+' conftest.er1
>conftest.err
9785 cat conftest.err
>&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try
='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try
='test -s conftest.$ac_objext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 gcc_cv_decl_map_anon
=yes
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.
$ac_ext >&5
9806 gcc_cv_decl_map_anon
=no
9808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9810 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9811 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9813 if test $gcc_cv_decl_map_anon = no
; then
9814 gcc_cv_func_mmap_anon
=no
9816 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9817 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9818 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9822 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9823 # doesn't give anonymous zeroed pages with the same properties listed
9824 # above for use of /dev/zero.
9825 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9827 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9828 gcc_cv_func_mmap_anon
=no
;;
9830 gcc_cv_func_mmap_anon
=yes;;
9833 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9834 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9838 if test $gcc_cv_func_mmap_file = yes; then
9840 cat >>confdefs.h
<<\_ACEOF
9841 #define HAVE_MMAP_FILE 1
9845 if test $gcc_cv_func_mmap_dev_zero = yes; then
9847 cat >>confdefs.h
<<\_ACEOF
9848 #define HAVE_MMAP_DEV_ZERO 1
9852 if test $gcc_cv_func_mmap_anon = yes; then
9854 cat >>confdefs.h
<<\_ACEOF
9855 #define HAVE_MMAP_ANON 1
9863 # Under VMS, vfork works very differently than on Unix. The standard test
9864 # won't work, and it isn't easily adaptable. It makes more sense to
9866 ac_cv_func_vfork_works
=yes
9869 echo "$as_me:$LINENO: checking for pid_t" >&5
9870 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9871 if test "${ac_cv_type_pid_t+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 cat >conftest.
$ac_ext <<_ACEOF
9877 cat confdefs.h
>>conftest.
$ac_ext
9878 cat >>conftest.
$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 $ac_includes_default
9892 rm -f conftest.
$ac_objext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9894 (eval $ac_compile) 2>conftest.er1
9896 grep -v '^ *+' conftest.er1
>conftest.err
9898 cat conftest.err
>&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try
='test -z "$ac_c_werror_flag"
9902 || test ! -s conftest.err'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; } &&
9908 { ac_try
='test -s conftest.$ac_objext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_cv_type_pid_t
=yes
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.
$ac_ext >&5
9921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9924 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9925 if test $ac_cv_type_pid_t = yes; then
9929 cat >>confdefs.h
<<_ACEOF
9937 for ac_header
in unistd.h vfork.h
9939 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9940 echo "$as_me:$LINENO: checking for $ac_header" >&5
9941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 cat >conftest.
$ac_ext <<_ACEOF
9948 cat confdefs.h
>>conftest.
$ac_ext
9949 cat >>conftest.
$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 #include <$ac_header>
9953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9954 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9956 grep -v '^ *+' conftest.er1
>conftest.err
9958 cat conftest.err
>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } >/dev
/null
; then
9961 if test -s conftest.err
; then
9962 ac_cpp_err
=$ac_c_preproc_warn_flag
9963 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9970 if test -z "$ac_cpp_err"; then
9971 eval "$as_ac_Header=yes"
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.
$ac_ext >&5
9976 eval "$as_ac_Header=no"
9978 rm -f conftest.err conftest.
$ac_ext
9980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9983 cat >>confdefs.h
<<_ACEOF
9984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9992 for ac_func
in fork vfork
9994 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9995 echo "$as_me:$LINENO: checking for $ac_func" >&5
9996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9997 if eval "test \"\${$as_ac_var+set}\" = set"; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 cat >conftest.
$ac_ext <<_ACEOF
10003 cat confdefs.h
>>conftest.
$ac_ext
10004 cat >>conftest.
$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10008 #define $ac_func innocuous_$ac_func
10010 /* System header to define __stub macros and hopefully few prototypes,
10011 which can conflict with char $ac_func (); below.
10012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10013 <limits.h> exists even on freestanding compilers. */
10016 # include <limits.h>
10018 # include <assert.h>
10023 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10031 /* The GNU C library defines this for functions which it implements
10032 to always fail with ENOSYS. Some functions are actually named
10033 something starting with __ and the normal name is an alias. */
10034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10037 char (*f) () = $ac_func;
10046 return f != $ac_func;
10051 rm -f conftest.
$ac_objext conftest
$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>conftest.er1
10055 grep -v '^ *+' conftest.er1
>conftest.err
10057 cat conftest.err
>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try
='test -z "$ac_c_werror_flag"
10061 || test ! -s conftest.err'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try
='test -s conftest$ac_exeext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 eval "$as_ac_var=yes"
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.
$ac_ext >&5
10078 eval "$as_ac_var=no"
10080 rm -f conftest.err conftest.
$ac_objext \
10081 conftest
$ac_exeext conftest.
$ac_ext
10083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10085 if test `eval echo '${'$as_ac_var'}'` = yes; then
10086 cat >>confdefs.h
<<_ACEOF
10087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10093 if test "x$ac_cv_func_fork" = xyes
; then
10094 echo "$as_me:$LINENO: checking for working fork" >&5
10095 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10096 if test "${ac_cv_func_fork_works+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 if test "$cross_compiling" = yes; then
10100 ac_cv_func_fork_works
=cross
10102 cat >conftest.
$ac_ext <<_ACEOF
10103 /* By Ruediger Kuhlmann. */
10104 #include <sys/types.h>
10106 # include <unistd.h>
10108 /* Some systems only have a dummy stub for fork() */
10116 rm -f conftest
$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118 (eval $ac_link) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_func_fork_works
=yes
10129 echo "$as_me: program exited with status $ac_status" >&5
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.
$ac_ext >&5
10133 ( exit $ac_status )
10134 ac_cv_func_fork_works
=no
10136 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10140 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10143 ac_cv_func_fork_works
=$ac_cv_func_fork
10145 if test "x$ac_cv_func_fork_works" = xcross
; then
10147 *-*-amigaos* |
*-*-msdosdjgpp*)
10148 # Override, as these systems have only a dummy fork() stub
10149 ac_cv_func_fork_works
=no
10152 ac_cv_func_fork_works
=yes
10155 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10156 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10158 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10159 if test "x$ac_cv_func_vfork" = xyes
; then
10160 echo "$as_me:$LINENO: checking for working vfork" >&5
10161 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10162 if test "${ac_cv_func_vfork_works+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 if test "$cross_compiling" = yes; then
10166 ac_cv_func_vfork_works
=cross
10168 cat >conftest.
$ac_ext <<_ACEOF
10171 cat confdefs.h
>>conftest.
$ac_ext
10172 cat >>conftest.
$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 /* Thanks to Paul Eggert for this test. */
10176 #include <stdlib.h>
10177 #include <sys/types.h>
10178 #include <sys/stat.h>
10179 #include <sys/wait.h>
10181 # include <unistd.h>
10184 # include <vfork.h>
10186 /* On some sparc systems, changes by the child to local and incoming
10187 argument registers are propagated back to the parent. The compiler
10188 is told about this with #include <vfork.h>, but some compilers
10189 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10190 static variable whose address is put into a register that is
10191 clobbered by the vfork. */
10194 sparc_address_test (int arg)
10196 sparc_address_test (arg) int arg;
10199 static pid_t child;
10217 pid_t parent = getpid ();
10220 sparc_address_test (0);
10225 /* Here is another test for sparc vfork register problems. This
10226 test uses lots of local variables, at least as many local
10227 variables as main has allocated so far including compiler
10228 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10229 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10230 reuse the register of parent for one of the local variables,
10231 since it will think that parent can't possibly be used any more
10232 in this routine. Assigning to the local variable will thus
10233 munge parent in the parent process. */
10235 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10236 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10237 /* Convince the compiler that p..p7 are live; otherwise, it might
10238 use the same hardware register for all 8 local variables. */
10239 if (p != p1 || p != p2 || p != p3 || p != p4
10240 || p != p5 || p != p6 || p != p7)
10243 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10244 from child file descriptors. If the child closes a descriptor
10245 before it execs or exits, this munges the parent's descriptor
10246 as well. Test for this by closing stdout in the child. */
10247 _exit(close(fileno(stdout)) != 0);
10252 while (wait(&status) != child)
10255 /* Was there some problem with vforking? */
10258 /* Did the child fail? (This shouldn't happen.) */
10261 /* Did the vfork/compiler bug occur? */
10262 || parent != getpid()
10264 /* Did the file descriptor bug occur? */
10265 || fstat(fileno(stdout), &st) != 0
10270 rm -f conftest
$ac_exeext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 ac_cv_func_vfork_works
=yes
10283 echo "$as_me: program exited with status $ac_status" >&5
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.
$ac_ext >&5
10287 ( exit $ac_status )
10288 ac_cv_func_vfork_works
=no
10290 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10293 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10294 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10297 if test "x$ac_cv_func_fork_works" = xcross
; then
10298 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10299 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10300 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10303 if test "x$ac_cv_func_vfork_works" = xyes
; then
10305 cat >>confdefs.h
<<\_ACEOF
10306 #define HAVE_WORKING_VFORK 1
10311 cat >>confdefs.h
<<\_ACEOF
10316 if test "x$ac_cv_func_fork_works" = xyes
; then
10318 cat >>confdefs.h
<<\_ACEOF
10319 #define HAVE_WORKING_FORK 1
10326 if test "X$prefix" = "XNONE"; then
10327 acl_final_prefix
="$ac_default_prefix"
10329 acl_final_prefix
="$prefix"
10331 if test "X$exec_prefix" = "XNONE"; then
10332 acl_final_exec_prefix
='${prefix}'
10334 acl_final_exec_prefix
="$exec_prefix"
10336 acl_save_prefix
="$prefix"
10337 prefix
="$acl_final_prefix"
10338 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10339 prefix
="$acl_save_prefix"
10342 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10343 if test "${with_gnu_ld+set}" = set; then
10344 withval
="$with_gnu_ld"
10345 test "$withval" = no || with_gnu_ld
=yes
10349 # Prepare PATH_SEPARATOR.
10350 # The user is always right.
10351 if test "${PATH_SEPARATOR+set}" != set; then
10352 echo "#! /bin/sh" >conf$$.sh
10353 echo "exit 0" >>conf$$.sh
10355 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10363 if test "$GCC" = yes; then
10364 # Check if gcc -print-prog-name=ld gives a path.
10365 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10366 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10369 # gcc leaves a trailing carriage return which upsets mingw
10370 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10372 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10375 # Accept absolute paths.
10376 [\\/]* |
[A-Za-z
]:[\\/]*)
10377 re_direlt
='/[^/][^/]*/\.\./'
10378 # Canonicalize the path of ld
10379 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10380 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10381 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10383 test -z "$LD" && LD
="$ac_prog"
10386 # If it fails, then pretend we aren't using GCC.
10390 # If it is relative, then search for the first ld in PATH.
10391 with_gnu_ld
=unknown
10394 elif test "$with_gnu_ld" = yes; then
10395 echo "$as_me:$LINENO: checking for GNU ld" >&5
10396 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10398 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10399 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10401 if test "${acl_cv_path_LD+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 if test -z "$LD"; then
10405 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10406 for ac_dir
in $PATH; do
10407 test -z "$ac_dir" && ac_dir
=.
10408 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10409 acl_cv_path_LD
="$ac_dir/$ac_prog"
10410 # Check to see if the program is GNU ld. I'd rather use --version,
10411 # but apparently some GNU ld's only accept -v.
10412 # Break only if it was the GNU/non-GNU ld that we prefer.
10413 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10414 test "$with_gnu_ld" != no
&& break
10416 test "$with_gnu_ld" != yes && break
10422 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10426 LD
="$acl_cv_path_LD"
10427 if test -n "$LD"; then
10428 echo "$as_me:$LINENO: result: $LD" >&5
10429 echo "${ECHO_T}$LD" >&6
10431 echo "$as_me:$LINENO: result: no" >&5
10432 echo "${ECHO_T}no" >&6
10434 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10435 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10436 { (exit 1); exit 1; }; }
10437 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10438 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10439 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10443 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10444 acl_cv_prog_gnu_ld
=yes
10446 acl_cv_prog_gnu_ld
=no
10449 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10450 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10451 with_gnu_ld
=$acl_cv_prog_gnu_ld
10455 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10456 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10457 if test "${acl_cv_rpath+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10462 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10464 rm -f .
/conftest.sh
10468 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10469 echo "${ECHO_T}$acl_cv_rpath" >&6
10471 libext
="$acl_cv_libext"
10472 shlibext
="$acl_cv_shlibext"
10473 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10474 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10475 hardcode_direct
="$acl_cv_hardcode_direct"
10476 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10477 # Check whether --enable-rpath or --disable-rpath was given.
10478 if test "${enable_rpath+set}" = set; then
10479 enableval
="$enable_rpath"
10493 acl_save_prefix
="$prefix"
10494 prefix
="$acl_final_prefix"
10495 acl_save_exec_prefix
="$exec_prefix"
10496 exec_prefix
="$acl_final_exec_prefix"
10498 eval additional_includedir
=\"$includedir\"
10499 eval additional_libdir
=\"$libdir\"
10501 exec_prefix
="$acl_save_exec_prefix"
10502 prefix
="$acl_save_prefix"
10505 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10506 if test "${with_libiconv_prefix+set}" = set; then
10507 withval
="$with_libiconv_prefix"
10509 if test "X$withval" = "Xno"; then
10512 if test "X$withval" = "X"; then
10514 acl_save_prefix
="$prefix"
10515 prefix
="$acl_final_prefix"
10516 acl_save_exec_prefix
="$exec_prefix"
10517 exec_prefix
="$acl_final_exec_prefix"
10519 eval additional_includedir
=\"$includedir\"
10520 eval additional_libdir
=\"$libdir\"
10522 exec_prefix
="$acl_save_exec_prefix"
10523 prefix
="$acl_save_prefix"
10526 additional_includedir
="$withval/include"
10527 additional_libdir
="$withval/lib"
10537 names_already_handled
=
10538 names_next_round
='iconv '
10539 while test -n "$names_next_round"; do
10540 names_this_round
="$names_next_round"
10542 for name
in $names_this_round; do
10544 for n
in $names_already_handled; do
10545 if test "$n" = "$name"; then
10546 already_handled
=yes
10550 if test -z "$already_handled"; then
10551 names_already_handled
="$names_already_handled $name"
10552 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10553 eval value
=\"\
$HAVE_LIB$uppername\"
10554 if test -n "$value"; then
10555 if test "$value" = yes; then
10556 eval value
=\"\
$LIB$uppername\"
10557 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10558 eval value
=\"\
$LTLIB$uppername\"
10559 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10568 if test $use_additional = yes; then
10569 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10570 found_dir
="$additional_libdir"
10571 found_so
="$additional_libdir/lib$name.$shlibext"
10572 if test -f "$additional_libdir/lib$name.la"; then
10573 found_la
="$additional_libdir/lib$name.la"
10576 if test -f "$additional_libdir/lib$name.$libext"; then
10577 found_dir
="$additional_libdir"
10578 found_a
="$additional_libdir/lib$name.$libext"
10579 if test -f "$additional_libdir/lib$name.la"; then
10580 found_la
="$additional_libdir/lib$name.la"
10585 if test "X$found_dir" = "X"; then
10586 for x
in $LDFLAGS $LTLIBICONV; do
10588 acl_save_prefix
="$prefix"
10589 prefix
="$acl_final_prefix"
10590 acl_save_exec_prefix
="$exec_prefix"
10591 exec_prefix
="$acl_final_exec_prefix"
10593 exec_prefix
="$acl_save_exec_prefix"
10594 prefix
="$acl_save_prefix"
10598 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10599 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10601 found_so
="$dir/lib$name.$shlibext"
10602 if test -f "$dir/lib$name.la"; then
10603 found_la
="$dir/lib$name.la"
10606 if test -f "$dir/lib$name.$libext"; then
10608 found_a
="$dir/lib$name.$libext"
10609 if test -f "$dir/lib$name.la"; then
10610 found_la
="$dir/lib$name.la"
10616 if test "X$found_dir" != "X"; then
10621 if test "X$found_dir" != "X"; then
10622 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10623 if test "X$found_so" != "X"; then
10624 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10625 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10628 for x
in $ltrpathdirs; do
10629 if test "X$x" = "X$found_dir"; then
10634 if test -z "$haveit"; then
10635 ltrpathdirs
="$ltrpathdirs $found_dir"
10637 if test "$hardcode_direct" = yes; then
10638 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10640 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10641 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10643 for x
in $rpathdirs; do
10644 if test "X$x" = "X$found_dir"; then
10649 if test -z "$haveit"; then
10650 rpathdirs
="$rpathdirs $found_dir"
10654 for x
in $LDFLAGS $LIBICONV; do
10656 acl_save_prefix
="$prefix"
10657 prefix
="$acl_final_prefix"
10658 acl_save_exec_prefix
="$exec_prefix"
10659 exec_prefix
="$acl_final_exec_prefix"
10661 exec_prefix
="$acl_save_exec_prefix"
10662 prefix
="$acl_save_prefix"
10664 if test "X$x" = "X-L$found_dir"; then
10669 if test -z "$haveit"; then
10670 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10672 if test "$hardcode_minus_L" != no
; then
10673 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10675 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10681 if test "X$found_a" != "X"; then
10682 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10684 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10687 additional_includedir
=
10688 case "$found_dir" in
10690 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10691 additional_includedir
="$basedir/include"
10694 if test "X$additional_includedir" != "X"; then
10695 if test "X$additional_includedir" != "X/usr/include"; then
10697 if test "X$additional_includedir" = "X/usr/local/include"; then
10698 if test -n "$GCC"; then
10700 linux
*) haveit
=yes;;
10704 if test -z "$haveit"; then
10705 for x
in $CPPFLAGS $INCICONV; do
10707 acl_save_prefix
="$prefix"
10708 prefix
="$acl_final_prefix"
10709 acl_save_exec_prefix
="$exec_prefix"
10710 exec_prefix
="$acl_final_exec_prefix"
10712 exec_prefix
="$acl_save_exec_prefix"
10713 prefix
="$acl_save_prefix"
10715 if test "X$x" = "X-I$additional_includedir"; then
10720 if test -z "$haveit"; then
10721 if test -d "$additional_includedir"; then
10722 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10728 if test -n "$found_la"; then
10729 save_libdir
="$libdir"
10730 case "$found_la" in
10731 */* |
*\\*) .
"$found_la" ;;
10732 *) .
"./$found_la" ;;
10734 libdir
="$save_libdir"
10735 for dep
in $dependency_libs; do
10738 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10739 if test "X$additional_libdir" != "X/usr/lib"; then
10741 if test "X$additional_libdir" = "X/usr/local/lib"; then
10742 if test -n "$GCC"; then
10744 linux
*) haveit
=yes;;
10748 if test -z "$haveit"; then
10750 for x
in $LDFLAGS $LIBICONV; do
10752 acl_save_prefix
="$prefix"
10753 prefix
="$acl_final_prefix"
10754 acl_save_exec_prefix
="$exec_prefix"
10755 exec_prefix
="$acl_final_exec_prefix"
10757 exec_prefix
="$acl_save_exec_prefix"
10758 prefix
="$acl_save_prefix"
10760 if test "X$x" = "X-L$additional_libdir"; then
10765 if test -z "$haveit"; then
10766 if test -d "$additional_libdir"; then
10767 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10771 for x
in $LDFLAGS $LTLIBICONV; do
10773 acl_save_prefix
="$prefix"
10774 prefix
="$acl_final_prefix"
10775 acl_save_exec_prefix
="$exec_prefix"
10776 exec_prefix
="$acl_final_exec_prefix"
10778 exec_prefix
="$acl_save_exec_prefix"
10779 prefix
="$acl_save_prefix"
10781 if test "X$x" = "X-L$additional_libdir"; then
10786 if test -z "$haveit"; then
10787 if test -d "$additional_libdir"; then
10788 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10795 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10796 if test "$enable_rpath" != no
; then
10798 for x
in $rpathdirs; do
10799 if test "X$x" = "X$dir"; then
10804 if test -z "$haveit"; then
10805 rpathdirs
="$rpathdirs $dir"
10808 for x
in $ltrpathdirs; do
10809 if test "X$x" = "X$dir"; then
10814 if test -z "$haveit"; then
10815 ltrpathdirs
="$ltrpathdirs $dir"
10820 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10823 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10826 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10827 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10833 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10834 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10840 if test "X$rpathdirs" != "X"; then
10841 if test -n "$hardcode_libdir_separator"; then
10843 for found_dir
in $rpathdirs; do
10844 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10846 acl_save_libdir
="$libdir"
10848 eval flag
=\"$hardcode_libdir_flag_spec\"
10849 libdir
="$acl_save_libdir"
10850 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10852 for found_dir
in $rpathdirs; do
10853 acl_save_libdir
="$libdir"
10854 libdir
="$found_dir"
10855 eval flag
=\"$hardcode_libdir_flag_spec\"
10856 libdir
="$acl_save_libdir"
10857 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10861 if test "X$ltrpathdirs" != "X"; then
10862 for found_dir
in $ltrpathdirs; do
10863 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10873 am_save_CPPFLAGS
="$CPPFLAGS"
10875 for element
in $INCICONV; do
10877 for x
in $CPPFLAGS; do
10879 acl_save_prefix
="$prefix"
10880 prefix
="$acl_final_prefix"
10881 acl_save_exec_prefix
="$exec_prefix"
10882 exec_prefix
="$acl_final_exec_prefix"
10884 exec_prefix
="$acl_save_exec_prefix"
10885 prefix
="$acl_save_prefix"
10887 if test "X$x" = "X$element"; then
10892 if test -z "$haveit"; then
10893 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10898 echo "$as_me:$LINENO: checking for iconv" >&5
10899 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10900 if test "${am_cv_func_iconv+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 am_cv_func_iconv
="no, consider installing GNU libiconv"
10906 cat >conftest.
$ac_ext <<_ACEOF
10909 cat confdefs.h
>>conftest.
$ac_ext
10910 cat >>conftest.
$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 #include <stdlib.h>
10917 iconv_t cd = iconv_open("","");
10918 iconv(cd,NULL,NULL,NULL,NULL);
10924 rm -f conftest.
$ac_objext conftest
$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>conftest.er1
10928 grep -v '^ *+' conftest.er1
>conftest.err
10930 cat conftest.err
>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try
='test -z "$ac_c_werror_flag"
10934 || test ! -s conftest.err'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try
='test -s conftest$ac_exeext'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 am_cv_func_iconv
=yes
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.
$ac_ext >&5
10952 rm -f conftest.err conftest.
$ac_objext \
10953 conftest
$ac_exeext conftest.
$ac_ext
10954 if test "$am_cv_func_iconv" != yes; then
10955 am_save_LIBS
="$LIBS"
10956 LIBS
="$LIBS $LIBICONV"
10957 cat >conftest.
$ac_ext <<_ACEOF
10960 cat confdefs.h
>>conftest.
$ac_ext
10961 cat >>conftest.
$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10963 #include <stdlib.h>
10968 iconv_t cd = iconv_open("","");
10969 iconv(cd,NULL,NULL,NULL,NULL);
10975 rm -f conftest.
$ac_objext conftest
$ac_exeext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977 (eval $ac_link) 2>conftest.er1
10979 grep -v '^ *+' conftest.er1
>conftest.err
10981 cat conftest.err
>&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try
='test -z "$ac_c_werror_flag"
10985 || test ! -s conftest.err'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try
='test -s conftest$ac_exeext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 am_cv_lib_iconv
=yes
10998 am_cv_func_iconv
=yes
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.
$ac_ext >&5
11004 rm -f conftest.err conftest.
$ac_objext \
11005 conftest
$ac_exeext conftest.
$ac_ext
11006 LIBS
="$am_save_LIBS"
11010 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11011 echo "${ECHO_T}$am_cv_func_iconv" >&6
11012 if test "$am_cv_func_iconv" = yes; then
11014 cat >>confdefs.h
<<\_ACEOF
11015 #define HAVE_ICONV 1
11019 if test "$am_cv_lib_iconv" = yes; then
11020 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11021 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11022 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11023 echo "${ECHO_T}$LIBICONV" >&6
11025 CPPFLAGS
="$am_save_CPPFLAGS"
11032 if test "$am_cv_func_iconv" = yes; then
11033 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11034 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11035 if test "${am_cv_proto_iconv+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 cat >conftest.
$ac_ext <<_ACEOF
11042 cat confdefs.h
>>conftest.
$ac_ext
11043 cat >>conftest.
$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11046 #include <stdlib.h>
11052 #if defined(__STDC__) || defined(__cplusplus)
11053 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11066 rm -f conftest.
$ac_objext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11068 (eval $ac_compile) 2>conftest.er1
11070 grep -v '^ *+' conftest.er1
>conftest.err
11072 cat conftest.err
>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try
='test -z "$ac_c_werror_flag"
11076 || test ! -s conftest.err'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; } &&
11082 { ac_try
='test -s conftest.$ac_objext'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
11088 am_cv_proto_iconv_arg1
=""
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.
$ac_ext >&5
11093 am_cv_proto_iconv_arg1
="const"
11095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11096 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);"
11099 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11100 echo "$as_me:$LINENO: result: ${ac_t:-
11101 }$am_cv_proto_iconv" >&5
11102 echo "${ECHO_T}${ac_t:-
11103 }$am_cv_proto_iconv" >&6
11105 cat >>confdefs.h
<<_ACEOF
11106 #define ICONV_CONST $am_cv_proto_iconv_arg1
11111 # Until we have in-tree GNU iconv:
11116 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11117 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11118 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 cat >conftest.
$ac_ext <<_ACEOF
11124 cat confdefs.h
>>conftest.
$ac_ext
11125 cat >>conftest.
$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 #include <locale.h>
11136 rm -f conftest.
$ac_objext conftest
$ac_exeext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138 (eval $ac_link) 2>conftest.er1
11140 grep -v '^ *+' conftest.er1
>conftest.err
11142 cat conftest.err
>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try
='test -z "$ac_c_werror_flag"
11146 || test ! -s conftest.err'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; } &&
11152 { ac_try
='test -s conftest$ac_exeext'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 am_cv_val_LC_MESSAGES
=yes
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.
$ac_ext >&5
11163 am_cv_val_LC_MESSAGES
=no
11165 rm -f conftest.err conftest.
$ac_objext \
11166 conftest
$ac_exeext conftest.
$ac_ext
11168 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11169 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11170 if test $am_cv_val_LC_MESSAGES = yes; then
11172 cat >>confdefs.h
<<\_ACEOF
11173 #define HAVE_LC_MESSAGES 1
11180 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11181 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11182 if test "${am_cv_langinfo_codeset+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 cat >conftest.
$ac_ext <<_ACEOF
11188 cat confdefs.h
>>conftest.
$ac_ext
11189 cat >>conftest.
$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 #include <langinfo.h>
11195 char* cs = nl_langinfo(CODESET);
11200 rm -f conftest.
$ac_objext conftest
$ac_exeext
11201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11202 (eval $ac_link) 2>conftest.er1
11204 grep -v '^ *+' conftest.er1
>conftest.err
11206 cat conftest.err
>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try
='test -z "$ac_c_werror_flag"
11210 || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try
='test -s conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 am_cv_langinfo_codeset
=yes
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.
$ac_ext >&5
11227 am_cv_langinfo_codeset
=no
11229 rm -f conftest.err conftest.
$ac_objext \
11230 conftest
$ac_exeext conftest.
$ac_ext
11233 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11234 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11235 if test $am_cv_langinfo_codeset = yes; then
11237 cat >>confdefs.h
<<\_ACEOF
11238 #define HAVE_LANGINFO_CODESET 1
11244 # We will need to find libiberty.h and ansidecl.h
11245 saved_CFLAGS
="$CFLAGS"
11246 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11286 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11287 strsignal strstr strverscmp \
11288 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11289 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
11291 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11292 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11293 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11294 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 cat >conftest.
$ac_ext <<_ACEOF
11300 cat confdefs.h
>>conftest.
$ac_ext
11301 cat >>conftest.
$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11304 #define $ac_tr_decl 1
11306 #include "ansidecl.h"
11307 #include "system.h"
11313 char *(*pfn) = (char *(*)) $ac_func ;
11319 rm -f conftest.
$ac_objext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11321 (eval $ac_compile) 2>conftest.er1
11323 grep -v '^ *+' conftest.er1
>conftest.err
11325 cat conftest.err
>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try
='test -z "$ac_c_werror_flag"
11329 || test ! -s conftest.err'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try
='test -s conftest.$ac_objext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 eval "gcc_cv_have_decl_$ac_func=yes"
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.
$ac_ext >&5
11346 eval "gcc_cv_have_decl_$ac_func=no"
11348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11351 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11352 echo "$as_me:$LINENO: result: yes" >&5
11353 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11354 #define $ac_tr_decl 1
11358 echo "$as_me:$LINENO: result: no" >&5
11359 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11360 #define $ac_tr_decl 0
11371 for ac_func
in getrlimit setrlimit getrusage
11373 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11374 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11375 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11376 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 cat >conftest.
$ac_ext <<_ACEOF
11382 cat confdefs.h
>>conftest.
$ac_ext
11383 cat >>conftest.
$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11386 #define $ac_tr_decl 1
11388 #include "ansidecl.h"
11389 #include "system.h"
11390 #ifdef HAVE_SYS_RESOURCE_H
11391 #include <sys/resource.h>
11399 char *(*pfn) = (char *(*)) $ac_func ;
11405 rm -f conftest.
$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>conftest.er1
11409 grep -v '^ *+' conftest.er1
>conftest.err
11411 cat conftest.err
>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try
='test -z "$ac_c_werror_flag"
11415 || test ! -s conftest.err'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; } &&
11421 { ac_try
='test -s conftest.$ac_objext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 eval "gcc_cv_have_decl_$ac_func=yes"
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.
$ac_ext >&5
11432 eval "gcc_cv_have_decl_$ac_func=no"
11434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11437 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11438 echo "$as_me:$LINENO: result: yes" >&5
11439 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11440 #define $ac_tr_decl 1
11444 echo "$as_me:$LINENO: result: no" >&5
11445 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11446 #define $ac_tr_decl 0
11454 cat >conftest.
$ac_ext <<_ACEOF
11457 cat confdefs.h
>>conftest.
$ac_ext
11458 cat >>conftest.
$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11461 #include "ansidecl.h"
11462 #include "system.h"
11463 #ifdef HAVE_SYS_RESOURCE_H
11464 #include <sys/resource.h>
11475 rm -f conftest.
$ac_objext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11477 (eval $ac_compile) 2>conftest.er1
11479 grep -v '^ *+' conftest.er1
>conftest.err
11481 cat conftest.err
>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try
='test -z "$ac_c_werror_flag"
11485 || test ! -s conftest.err'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try
='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.
$ac_ext >&5
11503 cat >>confdefs.h
<<\_ACEOF
11504 #define rlim_t long
11508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11510 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11511 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11512 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11513 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11515 for ac_func
in ldgetname
11517 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11518 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11519 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11520 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 cat >conftest.
$ac_ext <<_ACEOF
11526 cat confdefs.h
>>conftest.
$ac_ext
11527 cat >>conftest.
$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11530 #define $ac_tr_decl 1
11532 #include "ansidecl.h"
11533 #include "system.h"
11534 #ifdef HAVE_LDFCN_H
11545 char *(*pfn) = (char *(*)) $ac_func ;
11551 rm -f conftest.
$ac_objext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553 (eval $ac_compile) 2>conftest.er1
11555 grep -v '^ *+' conftest.er1
>conftest.err
11557 cat conftest.err
>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try
='test -z "$ac_c_werror_flag"
11561 || test ! -s conftest.err'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try
='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 eval "gcc_cv_have_decl_$ac_func=yes"
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.
$ac_ext >&5
11578 eval "gcc_cv_have_decl_$ac_func=no"
11580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11583 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11584 echo "$as_me:$LINENO: result: yes" >&5
11585 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11586 #define $ac_tr_decl 1
11590 echo "$as_me:$LINENO: result: no" >&5
11591 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11592 #define $ac_tr_decl 0
11601 for ac_func
in times
11603 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11604 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11605 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11606 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 cat >conftest.
$ac_ext <<_ACEOF
11612 cat confdefs.h
>>conftest.
$ac_ext
11613 cat >>conftest.
$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11616 #define $ac_tr_decl 1
11618 #include "ansidecl.h"
11619 #include "system.h"
11620 #ifdef HAVE_SYS_TIMES_H
11621 #include <sys/times.h>
11629 char *(*pfn) = (char *(*)) $ac_func ;
11635 rm -f conftest.
$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637 (eval $ac_compile) 2>conftest.er1
11639 grep -v '^ *+' conftest.er1
>conftest.err
11641 cat conftest.err
>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try
='test -z "$ac_c_werror_flag"
11645 || test ! -s conftest.err'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; } &&
11651 { ac_try
='test -s conftest.$ac_objext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 eval "gcc_cv_have_decl_$ac_func=yes"
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.
$ac_ext >&5
11662 eval "gcc_cv_have_decl_$ac_func=no"
11664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11667 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11668 echo "$as_me:$LINENO: result: yes" >&5
11669 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11670 #define $ac_tr_decl 1
11674 echo "$as_me:$LINENO: result: no" >&5
11675 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11676 #define $ac_tr_decl 0
11684 # More time-related stuff.
11685 echo "$as_me:$LINENO: checking for struct tms" >&5
11686 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11687 if test "${ac_cv_struct_tms+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 cat >conftest.
$ac_ext <<_ACEOF
11694 cat confdefs.h
>>conftest.
$ac_ext
11695 cat >>conftest.
$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11698 #include "ansidecl.h"
11699 #include "system.h"
11700 #ifdef HAVE_SYS_TIMES_H
11701 #include <sys/times.h>
11712 rm -f conftest.
$ac_objext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11714 (eval $ac_compile) 2>conftest.er1
11716 grep -v '^ *+' conftest.er1
>conftest.err
11718 cat conftest.err
>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } &&
11721 { ac_try
='test -z "$ac_c_werror_flag"
11722 || test ! -s conftest.err'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try
='test -s conftest.$ac_objext'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; }; then
11734 ac_cv_struct_tms
=yes
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.
$ac_ext >&5
11739 ac_cv_struct_tms
=no
11741 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11743 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11744 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11745 if test $ac_cv_struct_tms = yes; then
11747 cat >>confdefs.h
<<\_ACEOF
11748 #define HAVE_STRUCT_TMS 1
11753 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11754 # revisit after autoconf 2.50.
11755 echo "$as_me:$LINENO: checking for clock_t" >&5
11756 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11757 if test "${gcc_cv_type_clock_t+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 cat >conftest.
$ac_ext <<_ACEOF
11764 cat confdefs.h
>>conftest.
$ac_ext
11765 cat >>conftest.
$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11768 #include "ansidecl.h"
11769 #include "system.h"
11779 rm -f conftest.
$ac_objext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781 (eval $ac_compile) 2>conftest.er1
11783 grep -v '^ *+' conftest.er1
>conftest.err
11785 cat conftest.err
>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try
='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try
='test -s conftest.$ac_objext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 gcc_cv_type_clock_t
=yes
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.
$ac_ext >&5
11806 gcc_cv_type_clock_t
=no
11808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11810 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11811 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11812 if test $gcc_cv_type_clock_t = yes; then
11814 cat >>confdefs.h
<<\_ACEOF
11815 #define HAVE_CLOCK_T 1
11820 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11821 CFLAGS
="$saved_CFLAGS"
11823 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11824 if test "${enable_initfini_array+set}" = set; then
11825 enableval
="$enable_initfini_array"
11829 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11830 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11831 if test "${gcc_cv_initfini_array+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 if test "$cross_compiling" = yes; then
11835 gcc_cv_initfini_array
=no
11837 cat >conftest.
$ac_ext <<_ACEOF
11840 cat confdefs.h
>>conftest.
$ac_ext
11841 cat >>conftest.
$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11845 int main (void) { return x; }
11846 int foo (void) { x = 0; }
11847 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11849 rm -f conftest
$ac_exeext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851 (eval $ac_link) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 gcc_cv_initfini_array
=yes
11862 echo "$as_me: program exited with status $ac_status" >&5
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.
$ac_ext >&5
11866 ( exit $ac_status )
11867 gcc_cv_initfini_array
=no
11869 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11872 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11873 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11874 enable_initfini_array
=$gcc_cv_initfini_array
11877 if test $enable_initfini_array = yes; then
11879 cat >>confdefs.h
<<\_ACEOF
11880 #define HAVE_INITFINI_ARRAY 1
11885 # mkdir takes a single argument on some systems.
11886 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11887 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11888 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 cat >conftest.
$ac_ext <<_ACEOF
11894 cat confdefs.h
>>conftest.
$ac_ext
11895 cat >>conftest.
$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11898 #include <sys/types.h>
11899 #ifdef HAVE_SYS_STAT_H
11900 # include <sys/stat.h>
11902 #ifdef HAVE_UNISTD_H
11903 # include <unistd.h>
11905 #ifdef HAVE_DIRECT_H
11906 # include <direct.h>
11916 rm -f conftest.
$ac_objext
11917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11918 (eval $ac_compile) 2>conftest.er1
11920 grep -v '^ *+' conftest.er1
>conftest.err
11922 cat conftest.err
>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try
='test -z "$ac_c_werror_flag"
11926 || test ! -s conftest.err'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try
='test -s conftest.$ac_objext'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 gcc_cv_mkdir_takes_one_arg
=no
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.
$ac_ext >&5
11943 gcc_cv_mkdir_takes_one_arg
=yes
11945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11947 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11948 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11949 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11951 cat >>confdefs.h
<<\_ACEOF
11952 #define MKDIR_TAKES_ONE_ARG 1
11964 # With Setjmp/Longjmp based exception handling.
11965 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11966 if test "${enable_sjlj_exceptions+set}" = set; then
11967 enableval
="$enable_sjlj_exceptions"
11968 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11970 cat >>confdefs.h
<<_ACEOF
11971 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11976 # For platforms with the unwind ABI which includes an unwind library,
11977 # libunwind, we can choose to use the system libunwind.
11979 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11980 if test "${with_system_libunwind+set}" = set; then
11981 withval
="$with_system_libunwind"
11985 # --------------------------------------------------------
11986 # Build, host, and target specific configuration fragments
11987 # --------------------------------------------------------
11989 # Collect build-machine-specific information.
11990 .
${srcdir}/config.build
11992 # Collect host-machine-specific information.
11993 .
${srcdir}/config.
host
11997 # Collect target-machine-specific information.
11998 .
${srcdir}/config.gcc
12000 extra_objs
="${host_extra_objs} ${extra_objs}"
12001 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12003 # Default the target-machine variables that were not explicitly set.
12004 if test x
"$tm_file" = x
12005 then tm_file
=$cpu_type/$cpu_type.h
; fi
12007 if test x
"$extra_headers" = x
12008 then extra_headers
=; fi
12010 if test x
$md_file = x
12011 then md_file
=$cpu_type/$cpu_type.md
; fi
12013 if test x
$out_file = x
12014 then out_file
=$cpu_type/$cpu_type.c
; fi
12016 if test x
"$tmake_file" = x
12017 then tmake_file
=$cpu_type/t-
$cpu_type
12020 if test x
"$dwarf2" = xyes
12021 then tm_file
="$tm_file tm-dwarf2.h"
12024 # Say what files are being used for the output code and MD file.
12025 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12026 echo "Using \`$srcdir/config/$md_file' as machine description file."
12028 # If any of the xm_file variables contain nonexistent files, warn
12029 # about them and drop them.
12032 for x
in $build_xm_file; do
12033 if test -f $srcdir/config
/$x
12035 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12036 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12039 build_xm_file
="$bx"
12042 for x
in $host_xm_file; do
12043 if test -f $srcdir/config
/$x
12045 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12046 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12052 for x
in $xm_file; do
12053 if test -f $srcdir/config
/$x
12055 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12056 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12062 for f
in $tm_file; do
12065 if test $count = ax
; then
12066 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12068 echo "Using the following target machine macro files:"
12069 for f
in $tm_file; do
12070 echo " $srcdir/config/$f"
12074 if test x
$need_64bit_hwint = xyes
; then
12076 cat >>confdefs.h
<<\_ACEOF
12077 #define NEED_64BIT_HOST_WIDE_INT 1
12082 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12084 cat >>confdefs.h
<<\_ACEOF
12085 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12091 for f
in $host_xm_file; do
12094 if test $count = a
; then
12096 elif test $count = ax
; then
12097 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12099 echo "Using the following host machine macro files:"
12100 for f
in $host_xm_file; do
12101 echo " $srcdir/config/$f"
12104 echo "Using ${out_host_hook_obj} for host machine hooks."
12106 if test "$host_xm_file" != "$build_xm_file"; then
12108 for f
in $build_xm_file; do
12111 if test $count = a
; then
12113 elif test $count = ax
; then
12114 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12116 echo "Using the following build machine macro files:"
12117 for f
in $build_xm_file; do
12118 echo " $srcdir/config/$f"
12127 # Check if a valid thread package
12128 case ${enable_threads} in
12131 target_thread_file
='single'
12135 target_thread_file
='single'
12137 aix | dce | gnat | irix | posix | posix95 | rtems | \
12138 single | solaris | vxworks | win32
)
12139 target_thread_file
=${enable_threads}
12142 echo "${enable_threads} is an unknown thread package" 1>&2
12147 if test x
${thread_file} = x
; then
12148 # No thread file set by target-specific clauses in config.gcc,
12149 # so use file chosen by default logic above
12150 thread_file
=${target_thread_file}
12153 # Make gthr-default.h if we have a thread file.
12155 if test $thread_file != single
; then
12156 rm -f gthr-default.h
12157 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12158 gthread_flags
=-DHAVE_GTHR_DEFAULT
12167 if test x
$enable___cxa_atexit = xyes || \
12168 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12169 if test x
$host = x
$target; then
12170 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12171 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12172 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 cat >conftest.
$ac_ext <<_ACEOF
12178 cat confdefs.h
>>conftest.
$ac_ext
12179 cat >>conftest.
$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12183 #define __cxa_atexit innocuous___cxa_atexit
12185 /* System header to define __stub macros and hopefully few prototypes,
12186 which can conflict with char __cxa_atexit (); below.
12187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12188 <limits.h> exists even on freestanding compilers. */
12191 # include <limits.h>
12193 # include <assert.h>
12196 #undef __cxa_atexit
12198 /* Override any gcc2 internal prototype to avoid an error. */
12203 /* We use char because int might match the return type of a gcc2
12204 builtin and then its argument prototype would still apply. */
12205 char __cxa_atexit ();
12206 /* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12212 char (*f) () = __cxa_atexit;
12221 return f != __cxa_atexit;
12226 rm -f conftest.
$ac_objext conftest
$ac_exeext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228 (eval $ac_link) 2>conftest.er1
12230 grep -v '^ *+' conftest.er1
>conftest.err
12232 cat conftest.err
>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try
='test -z "$ac_c_werror_flag"
12236 || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try
='test -s conftest$ac_exeext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_cv_func___cxa_atexit
=yes
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.
$ac_ext >&5
12253 ac_cv_func___cxa_atexit
=no
12255 rm -f conftest.err conftest.
$ac_objext \
12256 conftest
$ac_exeext conftest.
$ac_ext
12258 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12259 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12260 if test $ac_cv_func___cxa_atexit = yes; then
12263 echo "__cxa_atexit can't be enabled on this target"
12267 # We can't check for __cxa_atexit when building a cross, so assume
12271 if test x
$use_cxa_atexit = xyes
; then
12273 cat >>confdefs.h
<<\_ACEOF
12274 #define DEFAULT_USE_CXA_ATEXIT 1
12280 # Look for a file containing extra machine modes.
12281 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12282 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12285 cat >>confdefs.h
<<_ACEOF
12286 #define EXTRA_MODES_FILE "config/$extra_modes"
12291 # Convert extra_options into a form suitable for Makefile use.
12293 for f
in $extra_options; do
12294 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12298 # auto-host.h is the file containing items generated by autoconf and is
12299 # the first file included by config.h.
12300 # If host=build, it is correct to have bconfig include auto-host.h
12301 # as well. If host!=build, we are in error and need to do more
12302 # work to find out the build config parameters.
12303 if test x
$host = x
$build
12305 build_auto
=auto-host.h
12307 # We create a subdir, then run autoconf in the subdir.
12308 # To prevent recursion we set host and build for the new
12309 # invocation of configure to the build for this invocation
12316 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12317 *) realsrcdir
=..
/${srcdir};;
12319 saved_CFLAGS
="${CFLAGS}"
12320 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12321 ${realsrcdir}/configure \
12322 --enable-languages=${enable_languages-all} \
12323 --target=$target_alias --host=$build_alias --build=$build_alias
12324 CFLAGS
="${saved_CFLAGS}"
12326 # We just finished tests for the build machine, so rename
12327 # the file auto-build.h in the gcc directory.
12328 mv auto-host.h ..
/auto-build.h
12331 build_auto
=auto-build.h
12335 tm_file
="${tm_file} defaults.h"
12336 tm_p_file
="${tm_p_file} tm-preds.h"
12337 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12338 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12339 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12340 # put this back in temporarily.
12341 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12347 # Compile in configure arguments.
12348 if test -f configargs.h
; then
12349 # Being re-configured.
12350 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12351 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12353 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12356 # Double all backslashes and backslash all quotes to turn
12357 # gcc_config_arguments into a C string.
12358 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12359 $gcc_config_arguments
12361 gcc_config_arguments_str
=`cat conftest.out`
12364 cat > configargs.h
<<EOF
12365 /* Generated automatically. */
12366 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12367 static const char thread_model[] = "$thread_file";
12369 static const struct {
12370 const char *name, *value;
12371 } configure_default_options[] = $configure_default_options;
12374 # Internationalization
12375 # If we haven't got the data from the intl directory,
12376 # assume NLS is disabled.
12384 if test -f ..
/intl
/config.intl
; then
12385 . ..
/intl
/config.intl
12387 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12388 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12389 if test x
"$USE_NLS" != xyes
; then
12390 echo "$as_me:$LINENO: result: no" >&5
12391 echo "${ECHO_T}no" >&6
12393 echo "$as_me:$LINENO: result: yes" >&5
12394 echo "${ECHO_T}yes" >&6
12396 cat >>confdefs.h
<<\_ACEOF
12397 #define ENABLE_NLS 1
12401 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12402 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12403 # Look for .po and .gmo files in the source directory.
12406 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12407 # If there aren't any .gmo files the shell will give us the
12408 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12410 case "$cat" in *\
**)
12413 # The quadruple backslash is collapsed to a double backslash
12414 # by the backticks, then collapsed again by the double quotes,
12415 # leaving us with one backslash in the sed expression (right
12416 # before the dot that mustn't act as a wildcard).
12417 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12418 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12419 # The user is allowed to set LINGUAS to a list of languages to
12420 # install catalogs for. If it's empty that means "all of them."
12421 if test "x$LINGUAS" = x
; then
12422 CATALOGS
="$CATALOGS $cat"
12423 XLINGUAS
="$XLINGUAS $lang"
12425 case "$LINGUAS" in *$lang*)
12426 CATALOGS
="$CATALOGS $cat"
12427 XLINGUAS
="$XLINGUAS $lang"
12432 LINGUAS
="$XLINGUAS"
12433 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12434 echo "${ECHO_T}$LINGUAS" >&6
12437 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12438 # -liconv on the link line twice.
12439 case "$LIBINTL" in *$LIBICONV*)
12443 # Check whether --enable-secureplt or --disable-secureplt was given.
12444 if test "${enable_secureplt+set}" = set; then
12445 enableval
="$enable_secureplt"
12449 # Windows32 Registry support for specifying GCC installation paths.
12450 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12451 if test "${enable_win32_registry+set}" = set; then
12452 enableval
="$enable_win32_registry"
12457 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12458 if test "x$enable_win32_registry" != xno
; then
12459 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12460 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12461 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 ac_func_search_save_LIBS
=$LIBS
12465 ac_cv_search_RegOpenKeyExA
=no
12466 cat >conftest.
$ac_ext <<_ACEOF
12469 cat confdefs.h
>>conftest.
$ac_ext
12470 cat >>conftest.
$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12473 /* Override any gcc2 internal prototype to avoid an error. */
12477 /* We use char because int might match the return type of a gcc2
12478 builtin and then its argument prototype would still apply. */
12479 char RegOpenKeyExA ();
12488 rm -f conftest.
$ac_objext conftest
$ac_exeext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12490 (eval $ac_link) 2>conftest.er1
12492 grep -v '^ *+' conftest.er1
>conftest.err
12494 cat conftest.err
>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try
='test -z "$ac_c_werror_flag"
12498 || test ! -s conftest.err'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try
='test -s conftest$ac_exeext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_search_RegOpenKeyExA
="none required"
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.
$ac_ext >&5
12516 rm -f conftest.err conftest.
$ac_objext \
12517 conftest
$ac_exeext conftest.
$ac_ext
12518 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12519 for ac_lib
in advapi32
; do
12520 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12521 cat >conftest.
$ac_ext <<_ACEOF
12524 cat confdefs.h
>>conftest.
$ac_ext
12525 cat >>conftest.
$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12528 /* Override any gcc2 internal prototype to avoid an error. */
12532 /* We use char because int might match the return type of a gcc2
12533 builtin and then its argument prototype would still apply. */
12534 char RegOpenKeyExA ();
12543 rm -f conftest.
$ac_objext conftest
$ac_exeext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12545 (eval $ac_link) 2>conftest.er1
12547 grep -v '^ *+' conftest.er1
>conftest.err
12549 cat conftest.err
>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try
='test -z "$ac_c_werror_flag"
12553 || test ! -s conftest.err'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; } &&
12559 { ac_try
='test -s conftest$ac_exeext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.
$ac_ext >&5
12572 rm -f conftest.err conftest.
$ac_objext \
12573 conftest
$ac_exeext conftest.
$ac_ext
12576 LIBS
=$ac_func_search_save_LIBS
12578 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12579 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12580 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12581 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12584 enable_win32_registry
=no
12589 if test "x$enable_win32_registry" != xno
; then
12591 cat >>confdefs.h
<<\_ACEOF
12592 #define ENABLE_WIN32_REGISTRY 1
12596 if test "x$enable_win32_registry" != xyes \
12597 && test "x$enable_win32_registry" != x
; then
12599 cat >>confdefs.h
<<_ACEOF
12600 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12608 # Get an absolute path to the GCC top-level source directory
12609 holddir
=`${PWDCMD-pwd}`
12611 topdir
=`${PWDCMD-pwd}`
12614 # Conditionalize the makefile for this host machine.
12616 for f
in ${host_xmake_file}
12618 if test -f ${srcdir}/config
/$f
12620 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12624 # Conditionalize the makefile for this target machine.
12626 for f
in ${tmake_file}
12628 if test -f ${srcdir}/config
/$f
12630 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12633 tmake_file
="${tmake_file_}"
12635 # If the host doesn't support symlinks, modify CC in
12636 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12637 # Otherwise, we can use "CC=$(CC)".
12641 cc_set_by_configure
="\$(CC)"
12642 quoted_cc_set_by_configure
="\$(CC)"
12643 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12644 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12647 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12648 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12649 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12650 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12654 # This is a terrible hack which will go away some day.
12655 host_cc_for_libada
=${CC}
12658 out_object_file
=`basename $out_file .c`.o
12660 tm_file_list
="options.h"
12661 tm_include_list
="options.h"
12662 for f
in $tm_file; do
12665 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12666 tm_include_list
="${tm_include_list} $f"
12669 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12670 tm_include_list
="${tm_include_list} config/$f"
12677 for f
in $tm_p_file; do
12680 tm_p_file_list
="${tm_p_file_list} $f"
12681 tm_p_include_list
="${tm_p_include_list} $f"
12684 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12685 tm_p_include_list
="${tm_p_include_list} config/$f"
12691 for f
in $xm_file; do
12694 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12695 xm_include_list
="${xm_include_list} $f"
12698 xm_file_list
="${xm_file_list} $f"
12699 xm_include_list
="${xm_include_list} $f"
12702 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12703 xm_include_list
="${xm_include_list} config/$f"
12709 host_xm_include_list
=
12710 for f
in $host_xm_file; do
12713 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12714 host_xm_include_list
="${host_xm_include_list} $f"
12717 host_xm_file_list
="${host_xm_file_list} $f"
12718 host_xm_include_list
="${host_xm_include_list} $f"
12721 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12722 host_xm_include_list
="${host_xm_include_list} config/$f"
12727 build_xm_file_list
=
12728 for f
in $build_xm_file; do
12731 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12732 build_xm_include_list
="${build_xm_include_list} $f"
12734 auto-build.h | auto-host.h
)
12735 build_xm_file_list
="${build_xm_file_list} $f"
12736 build_xm_include_list
="${build_xm_include_list} $f"
12739 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12740 build_xm_include_list
="${build_xm_include_list} config/$f"
12745 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12746 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12749 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12750 if test x
$host != x
$target
12752 CROSS
="-DCROSS_COMPILE"
12754 SYSTEM_HEADER_DIR
=$build_system_header_dir
12755 case "$host","$target" in
12756 # Darwin crosses can use the host system's libraries and headers,
12757 # because of the fat library support. Of course, it must be the
12758 # same version of Darwin on both sides. Allow the user to
12759 # just say --target=foo-darwin without a version number to mean
12760 # "the version on this system".
12761 *-*-darwin*,*-*-darwin*)
12762 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12763 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12764 if test $hostos = $targetos -o $targetos = darwin
; then
12766 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12771 i?
86-*-*,x86_64-
*-* \
12772 | powerpc
*-*-*,powerpc64
*-*-*)
12773 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12775 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12776 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12777 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12780 # If this is a cross-compiler that does not
12781 # have its own set of headers then define
12784 # If this is using newlib, without having the headers available now,
12785 # then define inhibit_libc in LIBGCC2_CFLAGS.
12786 # This prevents libgcc2 from containing any code which requires libc
12789 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12790 test x
$with_newlib = xyes
; } &&
12791 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12796 # When building gcc with a cross-compiler, we need to adjust things so
12797 # that the generator programs are still built with the native compiler.
12798 # Also, we cannot run fixincludes or fix-header.
12800 # These are the normal (build=host) settings:
12801 CC_FOR_BUILD
='$(CC)'
12802 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12803 STMP_FIXINC
=stmp-fixinc
12805 # Possibly disable fixproto, on a per-target basis.
12806 case ${use_fixproto} in
12811 STMP_FIXPROTO
=stmp-fixproto
12816 # And these apply if build != host, or we are generating coverage data
12817 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12819 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12821 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12822 if test "x$STMP_FIXPROTO" != x
; then
12823 STMP_FIXPROTO
=stmp-install-fixproto
12828 # Expand extra_headers to include complete path.
12829 # This substitutes for lots of t-* files.
12830 extra_headers_list
=
12831 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12832 for file in ${extra_headers} ; do
12833 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12836 # Define collect2 in Makefile.
12837 case $host_can_use_collect2 in
12839 *) collect2
='collect2$(exeext)' ;;
12843 # Add a definition of USE_COLLECT2 if system wants one.
12844 case $use_collect2 in
12845 no
) use_collect2
= ;;
12848 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12849 xm_defines
="${xm_defines} USE_COLLECT2"
12850 case $host_can_use_collect2 in
12852 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12853 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12854 { (exit 1); exit 1; }; }
12860 # ---------------------------
12861 # Assembler & linker features
12862 # ---------------------------
12864 # Identify the assembler which will work hand-in-glove with the newly
12865 # built GCC, so that we can examine its features. This is the assembler
12866 # which will be driven by the driver program.
12868 # If build != host, and we aren't building gas in-tree, we identify a
12869 # build->target assembler and hope that it will have the same features
12870 # as the host->target assembler we'll be using.
12873 gcc_cv_gas_major_version
=
12874 gcc_cv_gas_minor_version
=
12875 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12876 if test -x "$DEFAULT_ASSEMBLER"; then
12877 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12878 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12879 && test -f ..
/gas
/Makefile \
12880 && test x
$build = x
$host; then
12881 # Single tree build which includes gas. We want to prefer it
12882 # over whatever linker top-level may have detected, since
12883 # we'll use what we're building after installation anyway.
12885 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12886 for f
in $gcc_cv_as_bfd_srcdir/configure \
12887 $gcc_cv_as_gas_srcdir/configure \
12888 $gcc_cv_as_gas_srcdir/configure.
in \
12889 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12890 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12891 if test x
$gcc_cv_gas_version != x
; then
12895 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12896 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12897 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12898 case $gcc_cv_gas_patch_version in
12899 "") gcc_cv_gas_patch_version
="0" ;;
12901 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12902 + $gcc_cv_gas_minor_version \) \* 1000 \
12903 + $gcc_cv_gas_patch_version`
12905 gcc_cv_as
=..
/gas
/as-new
$build_exeext
12906 in_tree_gas_is_elf
=no
12907 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12908 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12909 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12911 in_tree_gas_is_elf
=yes
12913 elif test -x as
$build_exeext; then
12914 # Build using assembler in the current directory.
12915 gcc_cv_as
=.
/as
$build_exeext
12916 elif test -x "$AS_FOR_TARGET"; then
12917 gcc_cv_as
="$AS_FOR_TARGET"
12918 elif test -x "$AS" && test x
$host = x
$target; then
12923 # When searching for the assembler or linker, search the same directories
12924 # that the installed compiler will search. Else we may find the wrong
12925 # assembler or linker and lose. If we do not find a suitable binary,
12926 # then try the user's path.
12928 # Also note we have to check MD_EXEC_PREFIX before checking the user's path.
12929 if test "x$exec_prefix" = xNONE
; then
12930 if test "x$prefix" = xNONE
; then
12931 gcc_cv_tool_prefix
=/usr
/local
12933 gcc_cv_tool_prefix
=$prefix
12936 gcc_cv_tool_prefix
=$exec_prefix
12939 if test x
$host = x
$build; then
12940 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
12941 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
12942 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
12943 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
12944 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
12945 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
12950 if test x
$build = x
$target; then
12951 # Rummage through tm_files looking for MD_EXEC_PREFIX
12953 for f
in ${tm_file_list}; do
12954 if test -f $f; then
12955 if grep '^#[ ]*undef[ ]*MD_EXEC_PREFIX' $f > /dev
/null
; then
12958 md_dirs
="$md_dirs "`sed -n -e 's@^#[ ]*define[ ]*MD_EXEC_PREFIX[ ]*"\(.*\)/"@\1@p' < $f`
12961 for f
in ${md_dirs}; do
12962 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
12970 if test "x$gcc_cv_as" = x
; then
12971 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
12973 if test "x$gcc_cv_tool_dirs" = x
; then
12978 # Extract the first word of "$ac_prog", so it can be a program name with args.
12979 set dummy
$ac_prog; ac_word
=$2
12980 echo "$as_me:$LINENO: checking for $ac_word" >&5
12981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12982 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
12990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12991 for as_dir
in $gcc_cv_tool_dirs
12994 test -z "$as_dir" && as_dir
=.
12995 for ac_exec_ext
in '' $ac_executable_extensions; do
12996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
12998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13009 if test -n "$gcc_cv_as"; then
13010 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13011 echo "${ECHO_T}$gcc_cv_as" >&6
13013 echo "$as_me:$LINENO: result: no" >&5
13014 echo "${ECHO_T}no" >&6
13017 test -n "$gcc_cv_as" && break
13022 if test "x$gcc_cv_as" = x
; then
13023 # If the loop above did not find a tool, then use whatever
13024 # one we can find in the users's path. We are looking for a
13025 # ${build} -> ${target} tool.
13026 if test "x$program_prefix" != xNONE
; then
13027 default_tool_name
=${program_prefix}as
13028 elif test x
$build != x
$host && test x
$build != x
$target; then
13029 default_tool_name
=${target_noncanonical}-as
13031 default_tool_name
=`echo as | sed "${program_transform_name}"`
13033 for ac_prog
in $default_tool_name
13035 # Extract the first word of "$ac_prog", so it can be a program name with args.
13036 set dummy
$ac_prog; ac_word
=$2
13037 echo "$as_me:$LINENO: checking for $ac_word" >&5
13038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13039 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13048 for as_dir
in $PATH
13051 test -z "$as_dir" && as_dir
=.
13052 for ac_exec_ext
in '' $ac_executable_extensions; do
13053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13066 if test -n "$gcc_cv_as"; then
13067 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13068 echo "${ECHO_T}$gcc_cv_as" >&6
13070 echo "$as_me:$LINENO: result: no" >&5
13071 echo "${ECHO_T}no" >&6
13074 test -n "$gcc_cv_as" && break
13076 test -n "$gcc_cv_as" || gcc_cv_as
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13079 test "$silent" != yes && exec 6>&1
13081 ORIGINAL_AS_FOR_TARGET
="$gcc_cv_as"
13083 echo "$as_me:$LINENO: checking what assembler to use" >&5
13084 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13085 case $in_tree_gas in
13087 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13088 echo "${ECHO_T}\"newly built gas\"" >&6
13091 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13092 echo "${ECHO_T}$gcc_cv_as" >&6
13096 # Identify the linker which will work hand-in-glove with the newly
13097 # built GCC, so that we can examine its features. This is the linker
13098 # which will be driven by the driver program.
13100 # If build != host, and we aren't building gas in-tree, we identify a
13101 # build->target linker and hope that it will have the same features
13102 # as the host->target linker we'll be using.
13105 gcc_cv_gld_major_version
=
13106 gcc_cv_gld_minor_version
=
13107 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13108 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13109 if test -x "$DEFAULT_LINKER"; then
13110 gcc_cv_ld
="$DEFAULT_LINKER"
13111 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13112 && test -f ..
/ld
/Makefile \
13113 && test x
$build = x
$host; then
13114 # Single tree build which includes ld. We want to prefer it
13115 # over whatever linker top-level may have detected, since
13116 # we'll use what we're building after installation anyway.
13118 in_tree_ld_is_elf
=no
13119 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13120 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13121 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13122 in_tree_ld_is_elf
=yes
13124 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
13126 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13127 if test x
$gcc_cv_gld_version != x
; then
13131 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13132 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13133 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13134 elif test -x collect-ld
$build_exeext; then
13135 # Build using linker in the current directory.
13136 gcc_cv_ld
=.
/collect-ld
$build_exeext
13137 elif test -x "$LD_FOR_TARGET"; then
13138 gcc_cv_ld
="$LD_FOR_TARGET"
13139 elif test -x "$LD" && test x
$host = x
$target; then
13148 if test "x$gcc_cv_ld" = x
; then
13149 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13151 if test "x$gcc_cv_tool_dirs" = x
; then
13156 # Extract the first word of "$ac_prog", so it can be a program name with args.
13157 set dummy
$ac_prog; ac_word
=$2
13158 echo "$as_me:$LINENO: checking for $ac_word" >&5
13159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13160 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13169 for as_dir
in $gcc_cv_tool_dirs
13172 test -z "$as_dir" && as_dir
=.
13173 for ac_exec_ext
in '' $ac_executable_extensions; do
13174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13185 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13187 if test -n "$gcc_cv_ld"; then
13188 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13189 echo "${ECHO_T}$gcc_cv_ld" >&6
13191 echo "$as_me:$LINENO: result: no" >&5
13192 echo "${ECHO_T}no" >&6
13195 test -n "$gcc_cv_ld" && break
13200 if test "x$gcc_cv_ld" = x
; then
13201 # If the loop above did not find a tool, then use whatever
13202 # one we can find in the users's path. We are looking for a
13203 # ${build} -> ${target} tool.
13204 if test "x$program_prefix" != xNONE
; then
13205 default_tool_name
=${program_prefix}ld
13206 elif test x
$build != x
$host && test x
$build != x
$target; then
13207 default_tool_name
=${target_noncanonical}-ld
13209 default_tool_name
=`echo ld | sed "${program_transform_name}"`
13211 for ac_prog
in $default_tool_name
13213 # Extract the first word of "$ac_prog", so it can be a program name with args.
13214 set dummy
$ac_prog; ac_word
=$2
13215 echo "$as_me:$LINENO: checking for $ac_word" >&5
13216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13217 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13226 for as_dir
in $PATH
13229 test -z "$as_dir" && as_dir
=.
13230 for ac_exec_ext
in '' $ac_executable_extensions; do
13231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13232 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13244 if test -n "$gcc_cv_ld"; then
13245 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13246 echo "${ECHO_T}$gcc_cv_ld" >&6
13248 echo "$as_me:$LINENO: result: no" >&5
13249 echo "${ECHO_T}no" >&6
13252 test -n "$gcc_cv_ld" && break
13254 test -n "$gcc_cv_ld" || gcc_cv_ld
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13257 test "$silent" != yes && exec 6>&1
13259 ORIGINAL_LD_FOR_TARGET
="$gcc_cv_ld"
13261 echo "$as_me:$LINENO: checking what linker to use" >&5
13262 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13263 case $in_tree_ld in
13265 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13266 echo "${ECHO_T}\"newly built ld\"" >&6
13269 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13270 echo "${ECHO_T}$gcc_cv_ld" >&6
13274 # Figure out what nm we will be using.
13275 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13278 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13279 && test -f ..
/binutils
/Makefile
; then
13280 # Single tree build which includes binutils.
13282 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13283 elif test -x nm
$build_exeext; then
13284 gcc_cv_nm
=.
/nm
$build_exeext
13292 if test "x$gcc_cv_nm" = x
; then
13293 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13295 if test "x$gcc_cv_tool_dirs" = x
; then
13300 # Extract the first word of "$ac_prog", so it can be a program name with args.
13301 set dummy
$ac_prog; ac_word
=$2
13302 echo "$as_me:$LINENO: checking for $ac_word" >&5
13303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13304 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13313 for as_dir
in $gcc_cv_tool_dirs
13316 test -z "$as_dir" && as_dir
=.
13317 for ac_exec_ext
in '' $ac_executable_extensions; do
13318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13331 if test -n "$gcc_cv_nm"; then
13332 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13333 echo "${ECHO_T}$gcc_cv_nm" >&6
13335 echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6
13339 test -n "$gcc_cv_nm" && break
13344 if test "x$gcc_cv_nm" = x
; then
13345 # If the loop above did not find a tool, then use whatever
13346 # one we can find in the users's path. We are looking for a
13347 # ${build} -> ${target} tool.
13348 if test "x$program_prefix" != xNONE
; then
13349 default_tool_name
=${program_prefix}nm
13350 elif test x
$build != x
$host && test x
$build != x
$target; then
13351 default_tool_name
=${target_noncanonical}-nm
13353 default_tool_name
=`echo nm | sed "${program_transform_name}"`
13355 for ac_prog
in $default_tool_name
13357 # Extract the first word of "$ac_prog", so it can be a program name with args.
13358 set dummy
$ac_prog; ac_word
=$2
13359 echo "$as_me:$LINENO: checking for $ac_word" >&5
13360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13361 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13370 for as_dir
in $PATH
13373 test -z "$as_dir" && as_dir
=.
13374 for ac_exec_ext
in '' $ac_executable_extensions; do
13375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13376 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13388 if test -n "$gcc_cv_nm"; then
13389 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13390 echo "${ECHO_T}$gcc_cv_nm" >&6
13392 echo "$as_me:$LINENO: result: no" >&5
13393 echo "${ECHO_T}no" >&6
13396 test -n "$gcc_cv_nm" && break
13398 test -n "$gcc_cv_nm" || gcc_cv_nm
="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13401 test "$silent" != yes && exec 6>&1
13403 ORIGINAL_NM_FOR_TARGET
="$gcc_cv_nm"
13405 echo "$as_me:$LINENO: checking what nm to use" >&5
13406 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13407 case $in_tree_nm in
13408 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13409 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13410 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13411 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13414 # Figure out what objdump we will be using.
13415 echo "$as_me:$LINENO: checking what objdump to use" >&5
13416 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13418 if test -x objdump
$build_exeext; then
13419 gcc_cv_objdump
=.
/objdump
$build_exeext
13420 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13421 && test -f ..
/binutils
/Makefile
; then
13422 # Single tree build which includes binutils.
13423 in_tree_objdump
=yes
13424 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13425 elif test "x$program_prefix" != xNONE
; then
13426 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
13427 elif test x
$build != x
$host && test x
$build != x
$target; then
13428 gcc_cv_objdump
=${target_noncanonical}-objdump$build_exeext
13430 gcc_cv_objdump
=`echo objdump | \
13431 sed "${program_transform_name}"`$build_exeext
13433 case $in_tree_objdump in
13434 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13435 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13436 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13437 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13440 # Figure out what assembler alignment features are present.
13441 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13442 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13443 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 gcc_cv_as_balign_and_p2align
=no
13447 if test $in_tree_gas = yes; then
13448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13449 then gcc_cv_as_balign_and_p2align
=yes
13451 elif test x
$gcc_cv_as != x
; then
13453 .p2align 2' > conftest.s
13454 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }
13461 gcc_cv_as_balign_and_p2align
=yes
13463 echo "configure: failed program was" >&5
13466 rm -f conftest.o conftest.s
13469 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13470 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13471 if test $gcc_cv_as_balign_and_p2align = yes; then
13473 cat >>confdefs.h
<<\_ACEOF
13474 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13479 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13480 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13481 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 gcc_cv_as_max_skip_p2align
=no
13485 if test $in_tree_gas = yes; then
13486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13487 then gcc_cv_as_max_skip_p2align
=yes
13489 elif test x
$gcc_cv_as != x
; then
13490 echo '.p2align 4,,7' > conftest.s
13491 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }
13498 gcc_cv_as_max_skip_p2align
=yes
13500 echo "configure: failed program was" >&5
13503 rm -f conftest.o conftest.s
13506 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13507 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13508 if test $gcc_cv_as_max_skip_p2align = yes; then
13510 cat >>confdefs.h
<<\_ACEOF
13511 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13516 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13517 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13518 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 gcc_cv_as_subsection_m1
=no
13522 if test $in_tree_gas = yes; then
13523 if test $in_tree_gas_is_elf = yes \
13524 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13525 then gcc_cv_as_subsection_m1
=yes
13527 elif test x
$gcc_cv_as != x
; then
13528 echo 'conftest_label1: .word 0
13530 conftest_label2: .word 0
13531 .previous' > conftest.s
13532 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }
13539 if test x
$gcc_cv_nm != x
; then
13540 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13541 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13542 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13544 else gcc_cv_as_subsection_m1
=yes
13546 rm -f conftest.nm1 conftest.nm2
13549 echo "configure: failed program was" >&5
13552 rm -f conftest.o conftest.s
13555 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13556 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13557 if test $gcc_cv_as_subsection_m1 = yes; then
13559 cat >>confdefs.h
<<\_ACEOF
13560 #define HAVE_GAS_SUBSECTION_ORDERING 1
13565 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13566 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13567 if test "${gcc_cv_as_weak+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 if test $in_tree_gas = yes; then
13572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13573 then gcc_cv_as_weak
=yes
13575 elif test x
$gcc_cv_as != x
; then
13576 echo ' .weak foobar' > conftest.s
13577 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }
13586 echo "configure: failed program was" >&5
13589 rm -f conftest.o conftest.s
13592 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13593 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13594 if test $gcc_cv_as_weak = yes; then
13596 cat >>confdefs.h
<<\_ACEOF
13597 #define HAVE_GAS_WEAK 1
13602 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13603 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13604 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 gcc_cv_as_nsubspa_comdat
=no
13608 if test $in_tree_gas = yes; then
13609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13610 then gcc_cv_as_nsubspa_comdat
=yes
13612 elif test x
$gcc_cv_as != x
; then
13613 echo ' .SPACE $TEXT$
13614 .NSUBSPA $CODE$,COMDAT' > conftest.s
13615 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }
13622 gcc_cv_as_nsubspa_comdat
=yes
13624 echo "configure: failed program was" >&5
13627 rm -f conftest.o conftest.s
13630 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13631 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13632 if test $gcc_cv_as_nsubspa_comdat = yes; then
13634 cat >>confdefs.h
<<\_ACEOF
13635 #define HAVE_GAS_NSUBSPA_COMDAT 1
13640 # .hidden needs to be supported in both the assembler and the linker,
13641 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13642 # This is irritatingly difficult to feature test for; we have to check the
13643 # date string after the version number. If we've got an in-tree
13644 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13646 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13647 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13648 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13649 if test "${gcc_cv_as_hidden+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 gcc_cv_as_hidden
=no
13653 if test $in_tree_gas = yes; then
13654 if test $in_tree_gas_is_elf = yes \
13655 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13656 then gcc_cv_as_hidden
=yes
13658 elif test x
$gcc_cv_as != x
; then
13659 echo ' .hidden foobar
13660 foobar:' > conftest.s
13661 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }
13668 gcc_cv_as_hidden
=yes
13670 echo "configure: failed program was" >&5
13673 rm -f conftest.o conftest.s
13676 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13677 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13680 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13681 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13682 if test "${gcc_cv_ld_hidden+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 if test $in_tree_ld = yes ; then
13686 gcc_cv_ld_hidden
=no
13687 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 \
13688 && test $in_tree_ld_is_elf = yes; then
13689 gcc_cv_ld_hidden
=yes
13692 gcc_cv_ld_hidden
=yes
13693 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13694 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13695 ld_vers
=`echo $ld_ver | sed -n \
13696 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13697 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13698 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13699 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13700 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13701 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13702 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13703 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'`
13704 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13705 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13706 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13707 if test 0"$ld_date" -lt 20020404; then
13708 if test -n "$ld_date"; then
13709 # If there was date string, but was earlier than 2002-04-04, fail
13710 gcc_cv_ld_hidden
=no
13711 elif test -z "$ld_vers"; then
13712 # If there was no date string nor ld version number, something is wrong
13713 gcc_cv_ld_hidden
=no
13715 test -z "$ld_vers_patch" && ld_vers_patch
=0
13716 if test "$ld_vers_major" -lt 2; then
13717 gcc_cv_ld_hidden
=no
13718 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13719 gcc_cv_ld_hidden
="no"
13720 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13721 gcc_cv_ld_hidden
=no
13726 case "${target}" in
13727 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13728 gcc_cv_ld_hidden
=yes
13731 gcc_cv_ld_hidden
=no
13737 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13738 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13739 libgcc_visibility
=no
13742 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13743 libgcc_visibility
=yes
13745 cat >>confdefs.h
<<\_ACEOF
13746 #define HAVE_GAS_HIDDEN 1
13751 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13752 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13753 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13754 if test "${gcc_cv_as_leb128+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 gcc_cv_as_leb128
=no
13758 if test $in_tree_gas = yes; then
13759 if test $in_tree_gas_is_elf = yes \
13760 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13761 then gcc_cv_as_leb128
=yes
13763 elif test x
$gcc_cv_as != x
; then
13770 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }
13777 # GAS versions before 2.11 do not support uleb128,
13778 # despite appearing to.
13779 # ??? There exists an elf-specific test that will crash
13780 # the assembler. Perhaps it's better to figure out whether
13781 # arbitrary sections are supported and try the test.
13782 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13783 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13784 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13785 as_major
=`echo $as_ver | sed 's/\..*//'`
13786 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13787 if test $as_major -eq 2 && test $as_minor -lt 11
13789 else gcc_cv_as_leb128
=yes
13793 echo "configure: failed program was" >&5
13796 rm -f conftest.o conftest.s
13799 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13800 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13801 if test $gcc_cv_as_leb128 = yes; then
13803 cat >>confdefs.h
<<\_ACEOF
13804 #define HAVE_AS_LEB128 1
13809 # GAS versions up to and including 2.11.0 may mis-optimize
13811 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13812 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13813 if test "${gcc_cv_as_eh_frame+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 gcc_cv_as_eh_frame
=no
13817 if test $in_tree_gas = yes; then
13818 if test $in_tree_gas_is_elf = yes \
13819 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13820 then gcc_cv_as_eh_frame
=yes
13822 elif test x
$gcc_cv_as != x
; then
13829 .section .eh_frame,"aw",@progbits
13831 .4byte .LECIE1-.LSCIE1
13845 .4byte .LEFDE1-.LASFDE1
13847 .4byte .LASFDE1-__FRAME_BEGIN__
13854 .LEFDE1:' > conftest.s
13855 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }
13862 cat > conftest.lit
<<EOF
13863 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13864 0010 01000000 12000000 18000000 00000000 ................
13865 0020 08000000 04080000 0044 .........D
13867 cat > conftest.big
<<EOF
13868 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13869 0010 00000001 00000012 00000018 00000000 ................
13870 0020 00000008 04000000 0844 .........D
13872 # If the assembler didn't choke, and we can objdump,
13873 # and we got the correct data, then succeed.
13874 if test x
$gcc_cv_objdump != x \
13875 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13876 |
tail -3 > conftest.got \
13877 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13878 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13880 gcc_cv_as_eh_frame
=yes
13881 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 gcc_cv_as_eh_frame
=buggy
13889 # Uh oh, what do we do now?
13890 gcc_cv_as_eh_frame
=no
13893 echo "configure: failed program was" >&5
13896 rm -f conftest.o conftest.s
13899 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13900 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13903 if test $gcc_cv_as_eh_frame = buggy
; then
13905 cat >>confdefs.h
<<\_ACEOF
13906 #define USE_AS_TRADITIONAL_FORMAT 1
13911 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13912 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13913 if test "${gcc_cv_as_shf_merge+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 gcc_cv_as_shf_merge
=no
13917 if test $in_tree_gas = yes; then
13918 if test $in_tree_gas_is_elf = yes \
13919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13920 then gcc_cv_as_shf_merge
=yes
13922 elif test x
$gcc_cv_as != x
; then
13923 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13924 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }
13931 gcc_cv_as_shf_merge
=yes
13933 echo "configure: failed program was" >&5
13936 rm -f conftest.o conftest.s
13939 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13940 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13942 if test $gcc_cv_as_shf_merge = no
; then
13943 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13944 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13945 if test "${gcc_cv_as_shf_merge+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 gcc_cv_as_shf_merge
=no
13949 if test $in_tree_gas = yes; then
13950 if test $in_tree_gas_is_elf = yes \
13951 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13952 then gcc_cv_as_shf_merge
=yes
13954 elif test x
$gcc_cv_as != x
; then
13955 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13956 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }
13963 gcc_cv_as_shf_merge
=yes
13965 echo "configure: failed program was" >&5
13968 rm -f conftest.o conftest.s
13971 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13972 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13976 cat >>confdefs.h
<<_ACEOF
13977 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13981 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13982 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13983 if test "${gcc_cv_as_comdat_group+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 gcc_cv_as_comdat_group
=no
13987 if test $in_tree_gas = yes; then
13988 if test $in_tree_gas_is_elf = yes \
13989 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13990 then gcc_cv_as_comdat_group
=yes
13992 elif test x
$gcc_cv_as != x
; then
13993 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13994 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }
14001 gcc_cv_as_comdat_group
=yes
14003 echo "configure: failed program was" >&5
14006 rm -f conftest.o conftest.s
14009 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14010 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14012 if test $gcc_cv_as_comdat_group = yes; then
14013 gcc_cv_as_comdat_group_percent
=no
14015 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14016 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14017 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 gcc_cv_as_comdat_group_percent
=no
14021 if test $in_tree_gas = yes; then
14022 if test $in_tree_gas_is_elf = yes \
14023 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14024 then gcc_cv_as_comdat_group_percent
=yes
14026 elif test x
$gcc_cv_as != x
; then
14027 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14028 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }
14035 gcc_cv_as_comdat_group_percent
=yes
14037 echo "configure: failed program was" >&5
14040 rm -f conftest.o conftest.s
14043 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14044 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14047 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14049 if test 0"$ld_date" -lt 20050308; then
14050 if test -n "$ld_date"; then
14051 # If there was date string, but was earlier than 2005-03-08, fail
14053 elif test "$ld_vers_major" -lt 2; then
14055 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14059 if test $comdat_group = no
; then
14060 gcc_cv_as_comdat_group
=no
14061 gcc_cv_as_comdat_group_percent
=no
14065 cat >>confdefs.h
<<_ACEOF
14066 #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`
14070 # Thread-local storage - the check is heavily parametrized.
14078 .section ".tdata","awT",@progbits
14081 ldq $27,__tls_get_addr($29) !literal!1
14082 lda $16,foo($29) !tlsgd!1
14083 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14084 ldq $27,__tls_get_addr($29) !literal!2
14085 lda $16,foo($29) !tlsldm!2
14086 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14087 ldq $1,foo($29) !gotdtprel
14088 ldah $2,foo($29) !dtprelhi
14089 lda $3,foo($2) !dtprello
14090 lda $4,foo($29) !dtprel
14091 ldq $1,foo($29) !gottprel
14092 ldah $2,foo($29) !tprelhi
14093 lda $3,foo($2) !tprello
14094 lda $4,foo($29) !tprel'
14097 tls_as_opt
=--fatal-warnings
14101 .section ".tdata","awT",@progbits
14104 call #gettlsoff(x)'
14113 .section ".tdata","awT",@progbits
14117 addil LT%foo-$tls_gdidx$,gp
14118 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14121 addil LT%foo-$tls_ldidx$,gp
14123 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14124 addil LR%foo-$tls_dtpoff$,%ret0
14125 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14127 addil LT%foo-$tls_ieoff$,gp
14128 ldw RT%foo-$tls_ieoff$(%r1),%t2
14131 addil LR%foo-$tls_leoff$,%t1
14132 ldo RR%foo-$tls_leoff$(%r1),%t2'
14135 tls_as_opt
=--fatal-warnings
14139 .section ".tdata","awT",@progbits
14143 leal foo@TLSGD(,%ebx,1), %eax
14144 leal foo@TLSLDM(%ebx), %eax
14145 leal foo@DTPOFF(%eax), %edx
14146 movl foo@GOTTPOFF(%ebx), %eax
14147 subl foo@GOTTPOFF(%ebx), %eax
14148 addl foo@GOTNTPOFF(%ebx), %eax
14149 movl foo@INDNTPOFF, %eax
14150 movl $foo@TPOFF, %eax
14151 subl $foo@TPOFF, %eax
14152 leal foo@NTPOFF(%ecx), %eax'
14155 tls_as_opt
=--fatal-warnings
14159 .section ".tdata","awT",@progbits
14163 leaq foo@TLSGD(%rip), %rdi
14164 leaq foo@TLSLD(%rip), %rdi
14165 leaq foo@DTPOFF(%rax), %rdx
14166 movq foo@GOTTPOFF(%rip), %rax
14167 movq $foo@TPOFF, %rax'
14170 tls_as_opt
=--fatal-warnings
14174 .section ".tdata","awT",@progbits
14177 addl r16 = @ltoff(@dtpmod(foo#)), gp
14178 addl r17 = @ltoff(@dtprel(foo#)), gp
14179 addl r18 = @ltoff(@tprel(foo#)), gp
14180 addl r19 = @dtprel(foo#), gp
14181 adds r21 = @dtprel(foo#), r13
14182 movl r23 = @dtprel(foo#)
14183 addl r20 = @tprel(foo#), gp
14184 adds r22 = @tprel(foo#), r13
14185 movl r24 = @tprel(foo#)'
14188 tls_as_opt
=--fatal-warnings
14192 .section .tdata,"awT",@progbits
14196 addiu $4, $28, %tlsgd(x)
14197 addiu $4, $28, %tlsldm(x)
14198 lui $4, %dtprel_hi(x)
14199 addiu $4, $4, %dtprel_lo(x)
14200 lw $4, %gottprel(x)($28)
14201 lui $4, %tprel_hi(x)
14202 addiu $4, $4, %tprel_lo(x)'
14205 tls_as_opt
='-32 --fatal-warnings'
14209 .section ".tdata","awT",@progbits
14217 addi 3,31,ld0@got@tlsgd
14219 addi 3,31,x1@got@tlsld
14222 addis 9,3,x2@dtprel@ha
14223 addi 9,9,x2@dtprel@l
14224 lwz 9,x3@got@tprel(31)
14227 addis 9,2,x2@tprel@ha
14228 addi 9,9,x2@tprel@l'
14231 tls_as_opt
="-a32 --fatal-warnings"
14235 .section ".tdata","awT",@progbits
14243 addi 3,2,ld0@got@tlsgd
14249 addi 3,2,x1@got@tlsld
14255 addis 9,3,x2@dtprel@ha
14256 addi 9,9,x2@dtprel@l
14259 ld 9,x3@got@dtprel(2)
14265 tls_as_opt
="-a64 --fatal-warnings"
14269 .section ".tdata","awT",@progbits
14276 .long foo@GOTNTPOFF
14277 .long foo@INDNTPOFF
14278 l %r1,foo@GOTNTPOFF(%r12)
14279 l %r1,0(%r1):tls_load:foo
14280 bas %r14,0(%r1,%r13):tls_gdcall:foo
14281 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14284 tls_as_opt
="-m31 --fatal-warnings"
14288 .section ".tdata","awT",@progbits
14295 .quad foo@GOTNTPOFF
14296 lg %r1,foo@GOTNTPOFF(%r12)
14297 larl %r1,foo@INDNTPOFF
14298 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14299 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14302 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14304 sh-
*-* | sh
[34]-*-*)
14306 .section ".tdata","awT",@progbits
14316 tls_as_opt
=--fatal-warnings
14320 sparc
*-sun-solaris2.
*)
14327 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14329 .section ".tdata",#alloc,#write,#tls
14332 sethi %tgd_hi22(foo), %o0
14333 add %o0, %tgd_lo10(foo), %o1
14334 add %l7, %o1, %o0, %tgd_add(foo)
14335 call __tls_get_addr, %tgd_call(foo)
14336 sethi %tldm_hi22(foo), %l1
14337 add %l1, %tldm_lo10(foo), %l2
14338 add %l7, %l2, %o0, %tldm_add(foo)
14339 call __tls_get_addr, %tldm_call(foo)
14340 sethi %tldo_hix22(foo), %l3
14341 xor %l3, %tldo_lox10(foo), %l4
14342 add %o0, %l4, %l5, %tldo_add(foo)
14343 sethi %tie_hi22(foo), %o3
14344 add %o3, %tie_lo10(foo), %o3
14345 ld [%l7 + %o3], %o2, %tie_ld(foo)
14346 add %g7, %o2, %o4, %tie_add(foo)
14347 sethi %tle_hix22(foo), %l1
14348 xor %l1, %tle_lox10(foo), %o5
14349 ld [%g7 + %o5], %o1'
14354 .section ".tdata","awT",@progbits
14357 sethi %tgd_hi22(foo), %o0
14358 add %o0, %tgd_lo10(foo), %o1
14359 add %l7, %o1, %o0, %tgd_add(foo)
14360 call __tls_get_addr, %tgd_call(foo)
14361 sethi %tldm_hi22(foo), %l1
14362 add %l1, %tldm_lo10(foo), %l2
14363 add %l7, %l2, %o0, %tldm_add(foo)
14364 call __tls_get_addr, %tldm_call(foo)
14365 sethi %tldo_hix22(foo), %l3
14366 xor %l3, %tldo_lox10(foo), %l4
14367 add %o0, %l4, %l5, %tldo_add(foo)
14368 sethi %tie_hi22(foo), %o3
14369 add %o3, %tie_lo10(foo), %o3
14370 ld [%l7 + %o3], %o2, %tie_ld(foo)
14371 add %g7, %o2, %o4, %tie_add(foo)
14372 sethi %tle_hix22(foo), %l1
14373 xor %l1, %tle_lox10(foo), %o5
14374 ld [%g7 + %o5], %o1'
14377 tls_as_opt
="-32 --fatal-warnings"
14381 if test -z "$tls_first_major"; then
14382 : # If we don't have a check, assume no support.
14384 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14385 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14386 if test "${gcc_cv_as_tls+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 if test $in_tree_gas = yes; then
14391 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14392 then gcc_cv_as_tls
=yes
14394 elif test x
$gcc_cv_as != x
; then
14395 echo "$conftest_s" > conftest.s
14396 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }
14405 echo "configure: failed program was" >&5
14408 rm -f conftest.o conftest.s
14411 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14412 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14413 if test $gcc_cv_as_tls = yes; then
14415 cat >>confdefs.h
<<\_ACEOF
14416 #define HAVE_AS_TLS 1
14422 # Target-specific assembler checks.
14424 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14425 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14426 gcc_cv_ld_static_dynamic
=no
14427 if test $in_tree_ld = yes ; then
14428 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14429 gcc_cv_ld_static_dynamic
=yes
14431 elif test x
$gcc_cv_ld != x
; then
14432 # Check if linker supports -Bstatic/-Bdynamic option
14433 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14434 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14435 gcc_cv_ld_static_dynamic
=yes
14438 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14440 cat >>confdefs.h
<<\_ACEOF
14441 #define HAVE_LD_STATIC_DYNAMIC 1
14445 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14446 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14448 if test x
"$demangler_in_ld" = xyes
; then
14449 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14450 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14451 gcc_cv_ld_demangle
=no
14452 if test $in_tree_ld = yes; then
14453 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 \
14454 gcc_cv_ld_demangle
=yes
14456 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14457 # Check if the GNU linker supports --demangle option
14458 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14459 gcc_cv_ld_demangle
=yes
14462 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14464 cat >>confdefs.h
<<\_ACEOF
14465 #define HAVE_LD_DEMANGLE 1
14469 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14470 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14474 # All TARGET_ABI_OSF targets.
14475 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14476 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14477 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14478 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 gcc_cv_as_alpha_explicit_relocs
=no
14482 if test $in_tree_gas = yes; then
14483 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14484 then gcc_cv_as_alpha_explicit_relocs
=yes
14486 elif test x
$gcc_cv_as != x
; then
14487 echo ' .set nomacro
14489 extbl $3, $2, $3 !lituse_bytoff!1
14490 ldq $2, a($29) !literal!1
14491 ldq $4, b($29) !literal!2
14492 ldq_u $3, 0($2) !lituse_base!1
14493 ldq $27, f($29) !literal!5
14494 jsr $26, ($27), f !lituse_jsr!5
14495 ldah $29, 0($26) !gpdisp!3
14496 lda $0, c($29) !gprel
14497 ldah $1, d($29) !gprelhigh
14498 lda $1, d($1) !gprellow
14499 lda $29, 0($29) !gpdisp!3' > conftest.s
14500 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; }
14507 gcc_cv_as_alpha_explicit_relocs
=yes
14509 echo "configure: failed program was" >&5
14512 rm -f conftest.o conftest.s
14515 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14516 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14517 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14519 cat >>confdefs.h
<<\_ACEOF
14520 #define HAVE_AS_EXPLICIT_RELOCS 1
14524 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14525 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14526 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 gcc_cv_as_alpha_jsrdirect_relocs
=no
14530 if test $in_tree_gas = yes; then
14531 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14532 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14534 elif test x
$gcc_cv_as != x
; then
14535 echo ' .set nomacro
14537 ldq $27, a($29) !literal!1
14538 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14539 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }
14546 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14548 echo "configure: failed program was" >&5
14551 rm -f conftest.o conftest.s
14554 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14555 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14556 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14558 cat >>confdefs.h
<<\_ACEOF
14559 #define HAVE_AS_JSRDIRECT_RELOCS 1
14566 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14567 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14568 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 gcc_cv_as_cris_no_mul_bug
=no
14572 if test $in_tree_gas = yes; then
14573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14574 then gcc_cv_as_cris_no_mul_bug
=yes
14576 elif test x
$gcc_cv_as != x
; then
14577 echo '.text' > conftest.s
14578 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }
14585 gcc_cv_as_cris_no_mul_bug
=yes
14587 echo "configure: failed program was" >&5
14590 rm -f conftest.o conftest.s
14593 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14594 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14595 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14597 cat >>confdefs.h
<<\_ACEOF
14598 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14605 echo "$as_me:$LINENO: checking assembler for .register" >&5
14606 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14607 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 gcc_cv_as_sparc_register_op
=no
14611 if test x
$gcc_cv_as != x
; then
14612 echo '.register %g2, #scratch' > conftest.s
14613 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }
14620 gcc_cv_as_sparc_register_op
=yes
14622 echo "configure: failed program was" >&5
14625 rm -f conftest.o conftest.s
14628 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14629 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14630 if test $gcc_cv_as_sparc_register_op = yes; then
14632 cat >>confdefs.h
<<\_ACEOF
14633 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14638 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14639 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14640 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 gcc_cv_as_sparc_relax
=no
14644 if test x
$gcc_cv_as != x
; then
14645 echo '.text' > conftest.s
14646 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }
14653 gcc_cv_as_sparc_relax
=yes
14655 echo "configure: failed program was" >&5
14658 rm -f conftest.o conftest.s
14661 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14662 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14663 if test $gcc_cv_as_sparc_relax = yes; then
14665 cat >>confdefs.h
<<\_ACEOF
14666 #define HAVE_AS_RELAX_OPTION 1
14671 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14672 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14673 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14676 gcc_cv_as_sparc_ua_pcrel
=no
14677 if test x
$gcc_cv_as != x
; then
14684 .uaword %r_disp32(foo)' > conftest.s
14685 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; }
14692 if test x
$gcc_cv_ld != x \
14693 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14694 gcc_cv_as_sparc_ua_pcrel
=yes
14698 echo "configure: failed program was" >&5
14701 rm -f conftest.o conftest.s
14704 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14705 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14706 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14708 cat >>confdefs.h
<<\_ACEOF
14709 #define HAVE_AS_SPARC_UA_PCREL 1
14713 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14714 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14715 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14719 if test x
$gcc_cv_as != x
; then
14723 .uaword %r_disp32(foo)
14724 .byte 0x32, 0x33, 0x34
14728 .skip 4' > conftest.s
14729 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }
14736 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14737 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14738 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14739 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14740 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14741 |
grep 'DISP32' > /dev
/null
2>&1; then
14744 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14749 echo "configure: failed program was" >&5
14752 rm -f conftest.o conftest.s
14755 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14756 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14757 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14759 cat >>confdefs.h
<<\_ACEOF
14760 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14765 fi # unaligned pcrel relocs
14767 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14768 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14769 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 gcc_cv_as_sparc_offsetable_lo10
=no
14773 if test x
$gcc_cv_as != x
; then
14775 or %g1, %lo(ab) + 12, %g1
14776 or %g1, %lo(ab + 12), %g1' > conftest.s
14777 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }
14784 if test x
$gcc_cv_objdump != x \
14785 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14786 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14787 gcc_cv_as_sparc_offsetable_lo10
=yes
14790 echo "configure: failed program was" >&5
14793 rm -f conftest.o conftest.s
14796 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14797 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14798 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14800 cat >>confdefs.h
<<\_ACEOF
14801 #define HAVE_AS_OFFSETABLE_LO10 1
14807 i
[34567]86-*-* | x86_64-
*-*)
14809 cygwin
* | pe | mingw32
*)
14810 # Used for DWARF 2 in PE
14811 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14812 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14813 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 gcc_cv_as_ix86_pe_secrel32
=no
14817 if test $in_tree_gas = yes; then
14818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14819 then gcc_cv_as_ix86_pe_secrel32
=yes
14821 elif test x
$gcc_cv_as != x
; then
14825 .secrel32 foo' > conftest.s
14826 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }
14833 if test x
$gcc_cv_ld != x \
14834 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14835 gcc_cv_as_ix86_pe_secrel32
=yes
14839 echo "configure: failed program was" >&5
14842 rm -f conftest.o conftest.s
14845 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14846 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14847 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14849 cat >>confdefs.h
<<\_ACEOF
14850 #define HAVE_GAS_PE_SECREL32_RELOC 1
14857 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14858 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14859 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 gcc_cv_as_ix86_filds_fists
=no
14863 if test $in_tree_gas = yes; then
14864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14865 then gcc_cv_as_ix86_filds_fists
=yes
14867 elif test x
$gcc_cv_as != x
; then
14868 echo 'filds mem; fists mem' > conftest.s
14869 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }
14876 gcc_cv_as_ix86_filds_fists
=yes
14878 echo "configure: failed program was" >&5
14881 rm -f conftest.o conftest.s
14884 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14885 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14886 if test $gcc_cv_as_ix86_filds_fists = yes; then
14888 cat >>confdefs.h
<<\_ACEOF
14889 #define HAVE_GAS_FILDS_FISTS 1
14894 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14895 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14896 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 gcc_cv_as_ix86_cmov_sun_syntax
=no
14900 if test x
$gcc_cv_as != x
; then
14901 echo 'cmovl.l %edx, %eax' > conftest.s
14902 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }
14909 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14911 echo "configure: failed program was" >&5
14914 rm -f conftest.o conftest.s
14917 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14918 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14919 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14921 cat >>confdefs.h
<<\_ACEOF
14922 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14927 # This one is used unconditionally by i386.[ch]; it is to be defined
14928 # to 1 if the feature is present, 0 otherwise.
14929 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14930 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14931 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 gcc_cv_as_ix86_gotoff_in_data
=no
14935 if test $in_tree_gas = yes; then
14936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14937 then gcc_cv_as_ix86_gotoff_in_data
=yes
14939 elif test x
$gcc_cv_as != x
; then
14944 .long .L0@GOTOFF' > conftest.s
14945 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }
14952 gcc_cv_as_ix86_gotoff_in_data
=yes
14954 echo "configure: failed program was" >&5
14957 rm -f conftest.o conftest.s
14960 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14961 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14964 cat >>confdefs.h
<<_ACEOF
14965 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14971 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14972 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14973 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14977 if test $in_tree_gas = yes; then
14978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14979 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14981 elif test x
$gcc_cv_as != x
; then
14983 addl r15 = @ltoffx(x#), gp
14985 ld8.mov r16 = [r15], x#' > conftest.s
14986 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }
14993 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14995 echo "configure: failed program was" >&5
14998 rm -f conftest.o conftest.s
15001 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15002 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15003 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15005 cat >>confdefs.h
<<\_ACEOF
15006 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15015 *-*-aix*) conftest_s
=' .machine "pwr5"
15019 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15020 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15021 if test "${gcc_cv_as_machine_directive+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 gcc_cv_as_machine_directive
=no
15025 if test x
$gcc_cv_as != x
; then
15026 echo ' .machine ppc7400' > conftest.s
15027 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }
15034 gcc_cv_as_machine_directive
=yes
15036 echo "configure: failed program was" >&5
15039 rm -f conftest.o conftest.s
15042 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15043 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15045 if test x
$gcc_cv_as_machine_directive != xyes
; then
15046 echo "*** This target requires an assembler supporting \".machine\"" >&2
15047 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15048 test x
$build = x
$target && exit 1
15052 *) conftest_s
=' .machine power4
15057 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15058 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15059 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 gcc_cv_as_powerpc_mfcrf
=no
15063 if test $in_tree_gas = yes; then
15064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15065 then gcc_cv_as_powerpc_mfcrf
=yes
15067 elif test x
$gcc_cv_as != x
; then
15068 echo "$conftest_s" > conftest.s
15069 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }
15076 gcc_cv_as_powerpc_mfcrf
=yes
15078 echo "configure: failed program was" >&5
15081 rm -f conftest.o conftest.s
15084 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15085 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15086 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15088 cat >>confdefs.h
<<\_ACEOF
15089 #define HAVE_AS_MFCRF 1
15095 *-*-aix*) conftest_s
=' .machine "pwr5"
15098 *) conftest_s
=' .machine power5
15103 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15104 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15105 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 gcc_cv_as_powerpc_popcntb
=no
15109 if test $in_tree_gas = yes; then
15110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15111 then gcc_cv_as_powerpc_popcntb
=yes
15113 elif test x
$gcc_cv_as != x
; then
15114 echo "$conftest_s" > conftest.s
15115 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }
15122 gcc_cv_as_powerpc_popcntb
=yes
15124 echo "configure: failed program was" >&5
15127 rm -f conftest.o conftest.s
15130 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15131 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15132 if test $gcc_cv_as_powerpc_popcntb = yes; then
15134 cat >>confdefs.h
<<\_ACEOF
15135 #define HAVE_AS_POPCNTB 1
15141 *-*-aix*) conftest_s
=' .csect .text[PR]
15143 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15147 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15148 *) conftest_s
=' .text
15150 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15153 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15154 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15155 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 gcc_cv_as_powerpc_rel16
=no
15159 if test $in_tree_gas = yes; then
15160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15161 then gcc_cv_as_powerpc_rel16
=yes
15163 elif test x
$gcc_cv_as != x
; then
15164 echo "$conftest_s" > conftest.s
15165 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }
15172 gcc_cv_as_powerpc_rel16
=yes
15174 echo "configure: failed program was" >&5
15177 rm -f conftest.o conftest.s
15180 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15181 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15182 if test $gcc_cv_as_powerpc_rel16 = yes; then
15184 cat >>confdefs.h
<<\_ACEOF
15185 #define HAVE_AS_REL16 1
15192 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15193 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15194 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 gcc_cv_as_mips_explicit_relocs
=no
15198 if test $in_tree_gas = yes; then
15199 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15200 then gcc_cv_as_mips_explicit_relocs
=yes
15202 elif test x
$gcc_cv_as != x
; then
15203 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15204 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }
15211 gcc_cv_as_mips_explicit_relocs
=yes
15213 echo "configure: failed program was" >&5
15216 rm -f conftest.o conftest.s
15219 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15220 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15221 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15222 if test x
$target_cpu_default = x
15223 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15224 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15228 if test x
$gas_flag = xyes \
15229 ||
test x
"$host" != x
"$build" \
15230 ||
test ! -x "$gcc_cv_as" \
15231 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15234 echo "*** This configuration requires the GNU assembler" >&2
15239 # ??? Not all targets support dwarf2 debug_line, even within a version
15240 # of gas. Moreover, we need to emit a valid instruction to trigger any
15241 # info to the output file. So, as supported targets are added to gas 2.11,
15242 # add some instruction here to (also) show we expect this might work.
15243 # ??? Once 2.11 is released, probably need to add first known working
15244 # version to the per-target configury.
15246 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15247 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15248 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
15251 ia64
*-*-* | s390
*-*-*)
15258 if test x
"$insn" != x
; then
15260 .file 1 \"conftest.s\"
15263 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15264 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15265 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 gcc_cv_as_dwarf2_debug_line
=no
15269 if test $in_tree_gas = yes; then
15270 if test $in_tree_gas_is_elf = yes \
15271 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15272 then gcc_cv_as_dwarf2_debug_line
=yes
15274 elif test x
$gcc_cv_as != x
; then
15275 echo "$conftest_s" > conftest.s
15276 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }
15283 if test x
$gcc_cv_objdump != x \
15284 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15285 |
grep debug_line
> /dev
/null
2>&1; then
15286 gcc_cv_as_dwarf2_debug_line
=yes
15289 echo "configure: failed program was" >&5
15292 rm -f conftest.o conftest.s
15295 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15296 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15299 # The .debug_line file table must be in the exact order that
15300 # we specified the files, since these indices are also used
15301 # by DW_AT_decl_file. Approximate this test by testing if
15302 # the assembler bitches if the same index is assigned twice.
15303 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15304 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15305 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 gcc_cv_as_dwarf2_file_buggy
=no
15309 if test x
$gcc_cv_as != x
; then
15310 echo ' .file 1 "foo.s"
15311 .file 1 "bar.s"' > conftest.s
15312 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }
15319 gcc_cv_as_dwarf2_file_buggy
=yes
15321 echo "configure: failed program was" >&5
15324 rm -f conftest.o conftest.s
15327 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15328 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15331 if test $gcc_cv_as_dwarf2_debug_line = yes \
15332 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15334 cat >>confdefs.h
<<\_ACEOF
15335 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15340 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15341 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15342 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 gcc_cv_as_gdwarf2_flag
=no
15346 if test $in_tree_gas = yes; then
15347 if test $in_tree_gas_is_elf = yes \
15348 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15349 then gcc_cv_as_gdwarf2_flag
=yes
15351 elif test x
$gcc_cv_as != x
; then
15352 echo "$insn" > conftest.s
15353 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }
15360 gcc_cv_as_gdwarf2_flag
=yes
15362 echo "configure: failed program was" >&5
15365 rm -f conftest.o conftest.s
15368 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15369 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15370 if test $gcc_cv_as_gdwarf2_flag = yes; then
15372 cat >>confdefs.h
<<\_ACEOF
15373 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15378 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15379 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15380 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 gcc_cv_as_gstabs_flag
=no
15384 if test $in_tree_gas = yes; then
15385 if test $in_tree_gas_is_elf = yes \
15386 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15387 then gcc_cv_as_gstabs_flag
=yes
15389 elif test x
$gcc_cv_as != x
; then
15390 echo "$insn" > conftest.s
15391 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }
15398 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15399 # and warns about it, but still exits successfully. So check for
15401 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }
15408 else gcc_cv_as_gstabs_flag
=yes
15411 echo "configure: failed program was" >&5
15414 rm -f conftest.o conftest.s
15417 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15418 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15419 if test $gcc_cv_as_gstabs_flag = yes; then
15421 cat >>confdefs.h
<<\_ACEOF
15422 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15428 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15429 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15430 gcc_cv_ld_ro_rw_mix
=unknown
15431 if test $in_tree_ld = yes ; then
15432 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 \
15433 && test $in_tree_ld_is_elf = yes; then
15434 gcc_cv_ld_ro_rw_mix
=read-write
15436 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15437 echo '.section myfoosect, "a"' > conftest1.s
15438 echo '.section myfoosect, "aw"' > conftest2.s
15439 echo '.byte 1' >> conftest2.s
15440 echo '.section myfoosect, "a"' > conftest3.s
15441 echo '.byte 0' >> conftest3.s
15442 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15443 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15444 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15445 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15446 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15447 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15448 | sed -e '/myfoosect/!d' -e N`
15449 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15450 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15451 gcc_cv_ld_ro_rw_mix
=read-only
15453 gcc_cv_ld_ro_rw_mix
=read-write
15457 rm -f conftest.
* conftest
[123].
*
15459 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15461 cat >>confdefs.h
<<\_ACEOF
15462 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15466 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15467 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15469 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15470 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15471 gcc_cv_ld_eh_frame_hdr
=no
15472 if test $in_tree_ld = yes ; then
15473 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 \
15474 && test $in_tree_ld_is_elf = yes; then
15475 gcc_cv_ld_eh_frame_hdr
=yes
15477 elif test x
$gcc_cv_ld != x
; then
15478 # Check if linker supports --eh-frame-hdr option
15479 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15480 gcc_cv_ld_eh_frame_hdr
=yes
15484 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15486 cat >>confdefs.h
<<\_ACEOF
15487 #define HAVE_LD_EH_FRAME_HDR 1
15491 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15492 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15494 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15495 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15497 if test $in_tree_ld = yes ; then
15498 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 \
15499 && test $in_tree_ld_is_elf = yes; then
15502 elif test x
$gcc_cv_ld != x
; then
15503 # Check if linker supports -pie option
15504 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15508 if test x
"$gcc_cv_ld_pie" = xyes
; then
15510 cat >>confdefs.h
<<\_ACEOF
15511 #define HAVE_LD_PIE 1
15515 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15516 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15522 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15523 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15524 if test "${gcc_cv_ld_as_needed+set}" = set; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 gcc_cv_ld_as_needed
=no
15528 if test $in_tree_ld = yes ; then
15529 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 \
15530 && test $in_tree_ld_is_elf = yes; then
15531 gcc_cv_ld_as_needed
=yes
15533 elif test x
$gcc_cv_ld != x
; then
15534 # Check if linker supports --as-needed and --no-as-needed options
15535 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15536 gcc_cv_ld_as_needed
=yes
15541 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15542 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15543 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15545 cat >>confdefs.h
<<\_ACEOF
15546 #define HAVE_LD_AS_NEEDED 1
15552 powerpc64
*-*-linux*)
15553 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15554 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15555 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 gcc_cv_ld_no_dot_syms
=no
15559 if test $in_tree_ld = yes ; then
15560 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
15561 gcc_cv_ld_no_dot_syms
=yes
15563 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15564 cat > conftest1.s
<<EOF
15568 cat > conftest2.s
<<EOF
15569 .section ".opd","aw"
15572 .type foo,@function
15574 .quad .LEfoo,.TOC.@tocbase,0
15580 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15581 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15582 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15583 gcc_cv_ld_no_dot_syms
=yes
15585 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15589 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15590 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15591 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15593 cat >>confdefs.h
<<\_ACEOF
15594 #define HAVE_LD_NO_DOT_SYMS 1
15601 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15602 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15603 if test "${gcc_cv_ld_sysroot+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 gcc_cv_ld_sysroot
=no
15607 if test $in_tree_ld = yes ; then
15608 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
15609 gcc_cv_ld_sysroot
=yes
15611 elif test x
$gcc_cv_ld != x
; then
15612 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
15613 gcc_cv_ld_sysroot
=yes
15617 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15618 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15619 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
15621 cat >>confdefs.h
<<\_ACEOF
15622 #define HAVE_LD_SYSROOT 1
15627 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15628 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15630 cat >>confdefs.h
<<_ACEOF
15631 #define PREFIX_INCLUDE_DIR "$prefix/include"
15636 # Test for stack protector support in target C library.
15639 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15640 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15641 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 gcc_cv_libc_provides_ssp
=no
15645 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15646 if test "x$with_sysroot" = x
; then
15647 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15648 elif test "x$with_sysroot" = xyes
; then
15649 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15651 glibc_header_dir
="${with_sysroot}/usr/include"
15654 glibc_header_dir
=/usr
/include
15656 # glibc 2.4 and later provides __stack_chk_fail and
15657 # either __stack_chk_guard, or TLS access to stack guard canary.
15658 if test -f $glibc_header_dir/features.h \
15659 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15660 $glibc_header_dir/features.h
> /dev
/null
; then
15661 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15662 $glibc_header_dir/features.h
> /dev
/null
; then
15663 gcc_cv_libc_provides_ssp
=yes
15664 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15665 $glibc_header_dir/features.h
> /dev
/null \
15666 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15667 $glibc_header_dir/features.h
> /dev
/null
; then
15668 gcc_cv_libc_provides_ssp
=yes
15672 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15673 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15674 *) gcc_cv_libc_provides_ssp
=no
;;
15676 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
15678 cat >>confdefs.h
<<\_ACEOF
15679 #define TARGET_LIBC_PROVIDES_SSP 1
15684 # Find out what GC implementation we want, or may, use.
15686 # Check whether --with-gc or --without-gc was given.
15687 if test "${with_gc+set}" = set; then
15696 cat >>confdefs.h
<<\_ACEOF
15702 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15703 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15704 { (exit 1); exit 1; }; }
15711 echo "Using $GGC for garbage collection."
15713 # Use the system's zlib library.
15715 zlibinc
="-I\$(srcdir)/../zlib"
15717 # Check whether --with-system-zlib or --without-system-zlib was given.
15718 if test "${with_system_zlib+set}" = set; then
15719 withval
="$with_system_zlib"
15728 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15729 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15730 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15731 if test "${enable_maintainer_mode+set}" = set; then
15732 enableval
="$enable_maintainer_mode"
15733 maintainer_mode
=$enableval
15738 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15739 echo "${ECHO_T}$maintainer_mode" >&6
15741 if test "$maintainer_mode" = "yes"; then
15751 # Make empty files to contain the specs and options for each language.
15752 # Then add #include lines to for a compiler that has specs and/or options.
15757 for subdir
in .
$subdirs
15759 if test -f $srcdir/$subdir/lang.opt
; then
15760 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15762 if test -f $srcdir/$subdir/lang-specs.h
; then
15763 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15765 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15766 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15770 # These (without "all_") are set in each config-lang.in.
15771 # `language' must be a single word so is spelled singularly.
15773 all_boot_languages
=
15776 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15777 # List of language makefile fragments.
15778 all_lang_makefrags
=
15779 # List of language subdirectory makefiles. Deprecated.
15780 all_lang_makefiles
=
15781 # Files for gengtype
15782 all_gtfiles
="$target_gtfiles"
15783 # Files for gengtype with language
15784 all_gtfiles_files_langs
=
15785 all_gtfiles_files_files
=
15787 # Add the language fragments.
15788 # Languages are added via two mechanisms. Some information must be
15789 # recorded in makefile variables, these are defined in config-lang.in.
15790 # We accumulate them and plug them into the main Makefile.
15791 # The other mechanism is a set of hooks for each of the main targets
15792 # like `clean', `install', etc.
15794 language_hooks
="Make-hooks"
15804 .
${srcdir}/$s/config-lang.
in
15805 if test "x$language" = x
15807 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15810 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15811 if test -f ${srcdir}/$s/Makefile.
in
15812 then all_lang_makefiles
="$s/Makefile"
15814 all_languages
="$all_languages $language"
15815 if test "x$boot_language" = xyes
15817 all_boot_languages
="$all_boot_languages $language"
15819 all_compilers
="$all_compilers $compilers"
15820 all_stagestuff
="$all_stagestuff $stagestuff"
15821 all_outputs
="$all_outputs $outputs"
15822 all_gtfiles
="$all_gtfiles $gtfiles"
15825 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15826 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15830 # Pick up gtfiles for c
15833 .
${srcdir}/c-config-lang.
in
15834 all_gtfiles
="$all_gtfiles $gtfiles"
15837 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15838 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15842 for language
in $all_languages
15844 check_languages
="$check_languages check-$language"
15847 # We link each language in with a set of hooks, reached indirectly via
15852 target_list
="all.build all.cross start.encap rest.encap tags \
15853 install-normal install-common install-man \
15854 uninstall info man srcextra srcman srcinfo \
15855 mostlyclean clean distclean maintainer-clean \
15856 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15857 for t
in $target_list
15860 for lang
in $all_languages
15864 echo "lang.$t: $x" >> Make-hooks
15873 echo "dir ." > .gdbinit
15874 echo "dir ${srcdir}" >> .gdbinit
15875 if test x
$gdb_needs_out_file_path = xyes
15877 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15879 if test "x$subdirs" != x
; then
15882 echo "dir ${srcdir}/$s" >> .gdbinit
15885 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15887 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15888 # absolute path for gcc_tooldir based on inserting the number of up-directory
15889 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15890 # $(libsubdir)/@(unlibsubdir) based path.
15891 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15892 # make and thus we'd get different behavior depending on where we built the
15894 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15895 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15897 # An explanation of the sed strings:
15898 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15899 # -e 's|/$||' match a trailing forward slash and eliminates it
15900 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15901 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15903 # (*) Note this pattern overwrites the first character of the string
15904 # with a forward slash if one is not already present. This is not a
15905 # problem because the exact names of the sub-directories concerned is
15906 # unimportant, just the number of them matters.
15908 # The practical upshot of these patterns is like this:
15910 # prefix exec_prefix result
15911 # ------ ----------- ------
15912 # /foo /foo/bar ../
15913 # /foo/ /foo/bar ../
15914 # /foo /foo/bar/ ../
15915 # /foo/ /foo/bar/ ../
15916 # /foo /foo/bar/ugg ../../
15919 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15924 # Find a directory in which to install a shared libgcc.
15926 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15927 if test "${enable_version_specific_runtime_libs+set}" = set; then
15928 enableval
="$enable_version_specific_runtime_libs"
15933 # Check whether --with-slibdir or --without-slibdir was given.
15934 if test "${with_slibdir+set}" = set; then
15935 withval
="$with_slibdir"
15936 slibdir
="$with_slibdir"
15938 if test "${enable_version_specific_runtime_libs+set}" = set; then
15939 slibdir
='$(libsubdir)'
15940 elif test "$host" != "$target"; then
15941 slibdir
='$(build_tooldir)/lib'
15943 slibdir
='$(libdir)'
15948 objdir
=`${PWDCMD-pwd}`
15951 # Substitute configuration variables
16016 if test x
${build} = x
${host} ; then
16017 if test x
${host} = x
${target} ; then
16018 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16020 echo "Links are now set up to build a cross-compiler" 1>&2
16021 echo " from ${host} to ${target}." 1>&2
16024 if test x
${host} = x
${target} ; then
16025 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16026 echo " for ${target}." 1>&2
16028 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16029 echo " from ${host} to ${target}." 1>&2
16036 # Configure the subdirectories
16037 # AC_CONFIG_SUBDIRS($subdirs)
16039 # Create the Makefile
16040 # and configure language subdirectories
16041 ac_config_files
="$ac_config_files $all_outputs"
16044 ac_config_commands
="$ac_config_commands default"
16046 cat >confcache
<<\_ACEOF
16047 # This file is a shell script that caches the results of configure
16048 # tests run on this system so they can be shared between configure
16049 # scripts and configure runs, see configure's option --config-cache.
16050 # It is not useful on other systems. If it contains results you don't
16051 # want to keep, you may remove or edit it.
16053 # config.status only pays attention to the cache file if you give it
16054 # the --recheck option to rerun configure.
16056 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16058 # following values.
16062 # The following way of writing the cache mishandles newlines in values,
16063 # but we know of no workaround that is simple, portable, and efficient.
16064 # So, don't put newlines in cache variables' values.
16065 # Ultrix sh set writes to stderr and can't be redirected directly,
16066 # and sets the high bit in the cache file unless we assign to the vars.
16069 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16071 # `set' does not quote correctly, so add quotes (double-quote
16072 # substitution turns \\\\ into \\, and sed turns \\ into \).
16075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16078 # `set' quotes correctly as required by POSIX, so do not add quotes.
16080 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16089 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16091 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16092 if test -w $cache_file; then
16093 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16094 cat confcache
>$cache_file
16096 echo "not updating unwritable cache $cache_file"
16101 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16102 # Let make expand exec_prefix.
16103 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16105 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16106 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16107 # trailing colons and then remove the whole line if VPATH becomes empty
16108 # (actually we leave an empty line to preserve line numbers).
16109 if test "x$srcdir" = x.
; then
16110 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16111 s/:*\$(srcdir):*/:/;
16112 s/:*\${srcdir}:*/:/;
16114 s/^\([^=]*=[ ]*\):*/\1/;
16120 DEFS
=-DHAVE_CONFIG_H
16124 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16125 # 1. Remove the extension, and $U if already installed.
16126 ac_i
=`echo "$ac_i" |
16127 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16129 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16130 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16132 LIBOBJS
=$ac_libobjs
16134 LTLIBOBJS
=$ac_ltlibobjs
16138 : ${CONFIG_STATUS=./config.status}
16139 ac_clean_files_save
=$ac_clean_files
16140 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16141 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16142 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16143 cat >$CONFIG_STATUS <<_ACEOF
16145 # Generated by $as_me.
16146 # Run this file to recreate the current configuration.
16147 # Compiler output produced by configure, useful for debugging
16148 # configure, is in config.log if it exists.
16151 ac_cs_recheck=false
16153 SHELL=\${CONFIG_SHELL-$SHELL}
16156 cat >>$CONFIG_STATUS <<\_ACEOF
16157 ## --------------------- ##
16158 ## M4sh Initialization. ##
16159 ## --------------------- ##
16161 # Be Bourne compatible
16162 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16165 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16166 # is contrary to our usage. Disable this feature.
16167 alias -g '${1+"$@"}'='"$@"'
16168 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16171 DUALCASE
=1; export DUALCASE
# for MKS sh
16173 # Support unset when possible.
16174 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16181 # Work around bugs in pre-3.0 UWIN ksh.
16182 $as_unset ENV MAIL MAILPATH
16189 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16190 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16191 LC_TELEPHONE LC_TIME
16193 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16194 eval $as_var=C
; export $as_var
16200 # Required to use basename.
16201 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16207 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16208 as_basename
=basename
16214 # Name of the executable.
16215 as_me
=`$as_basename "$0" ||
16216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16217 X"$0" : 'X\(//\)$' \| \
16218 X"$0" : 'X\(/\)$' \| \
16219 . : '\(.\)' 2>/dev/null ||
16221 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16222 /^X\/\(\/\/\)$/{ s//\1/; q; }
16223 /^X\/\(\/\).*/{ s//\1/; q; }
16227 # PATH needs CR, and LINENO needs CR and PATH.
16228 # Avoid depending upon Character Ranges.
16229 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16230 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16231 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16232 as_cr_digits
='0123456789'
16233 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16235 # The user is always right.
16236 if test "${PATH_SEPARATOR+set}" != set; then
16237 echo "#! /bin/sh" >conf$$.sh
16238 echo "exit 0" >>conf$$.sh
16240 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16249 as_lineno_1
=$LINENO
16250 as_lineno_2
=$LINENO
16251 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16252 test "x$as_lineno_1" != "x$as_lineno_2" &&
16253 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16254 # Find who we are. Look in the path if we contain no path at all
16257 *[\\/]* ) as_myself
=$0 ;;
16258 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16259 for as_dir
in $PATH
16262 test -z "$as_dir" && as_dir
=.
16263 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16268 # We did not find ourselves, most probably we were run as `sh COMMAND'
16269 # in which case we are not to be found in the path.
16270 if test "x$as_myself" = x
; then
16273 if test ! -f "$as_myself"; then
16274 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16275 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16276 { (exit 1); exit 1; }; }
16278 case $CONFIG_SHELL in
16280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16281 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16284 test -z "$as_dir" && as_dir
=.
16285 for as_base
in sh bash ksh sh5
; do
16288 if ("$as_dir/$as_base" -c '
16289 as_lineno_1=$LINENO
16290 as_lineno_2=$LINENO
16291 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16292 test "x$as_lineno_1" != "x$as_lineno_2" &&
16293 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16294 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16295 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16296 CONFIG_SHELL
=$as_dir/$as_base
16297 export CONFIG_SHELL
16298 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16306 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16307 # uniformly replaced by the line number. The first 'sed' inserts a
16308 # line-number line before each line; the second 'sed' does the real
16309 # work. The second script uses 'N' to pair each line-number line
16310 # with the numbered line, and appends trailing '-' during
16311 # substitution so that $LINENO is not a special case at line end.
16312 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16313 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16314 sed '=' <$as_myself |
16319 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16322 s,^['$as_cr_digits']*\n,,
16323 ' >$as_me.lineno
&&
16324 chmod +x
$as_me.lineno ||
16325 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16326 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16327 { (exit 1); exit 1; }; }
16329 # Don't try to exec as it changes $[0], causing all sort of problems
16330 # (the dirname of $[0] is not the place where we might find the
16331 # original and so on. Autoconf is especially sensible to this).
16333 # Exit status is that of the last command.
16338 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16339 *c
*,-n*) ECHO_N
= ECHO_C
='
16341 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16342 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16345 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16351 rm -f conf$$ conf$$.exe conf$$.
file
16353 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16354 # We could just check for DJGPP; but this test a) works b) is more generic
16355 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16356 if test -f conf$$.exe
; then
16357 # Don't use ln at all; we don't have any links
16362 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16367 rm -f conf$$ conf$$.exe conf$$.
file
16369 if mkdir
-p .
2>/dev
/null
; then
16372 test -d .
/-p && rmdir .
/-p
16376 as_executable_p
="test -f"
16378 # Sed expression to map a string onto a valid CPP name.
16379 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16381 # Sed expression to map a string onto a valid variable name.
16382 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16386 # We need space, tab and new line, in precisely that order.
16396 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16397 # report actual input values of CONFIG_FILES etc. instead of their
16398 # values after options handling. Logging --version etc. is OK.
16402 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16403 ## Running $as_me. ##
16408 This file was extended by $as_me, which was
16409 generated by GNU Autoconf 2.59. Invocation command line was
16411 CONFIG_FILES = $CONFIG_FILES
16412 CONFIG_HEADERS = $CONFIG_HEADERS
16413 CONFIG_LINKS = $CONFIG_LINKS
16414 CONFIG_COMMANDS = $CONFIG_COMMANDS
16418 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16422 # Files that config.status was made for.
16423 if test -n "$ac_config_files"; then
16424 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16427 if test -n "$ac_config_headers"; then
16428 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16431 if test -n "$ac_config_links"; then
16432 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16435 if test -n "$ac_config_commands"; then
16436 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16439 cat >>$CONFIG_STATUS <<\_ACEOF
16442 \`$as_me' instantiates files from templates according to the
16443 current configuration.
16445 Usage: $0 [OPTIONS] [FILE]...
16447 -h, --help print this help, then exit
16448 -V, --version print version number, then exit
16449 -q, --quiet do not print progress messages
16450 -d, --debug don't remove temporary files
16451 --recheck update $as_me by reconfiguring in the same conditions
16452 --file=FILE[:TEMPLATE]
16453 instantiate the configuration file FILE
16454 --header=FILE[:TEMPLATE]
16455 instantiate the configuration header FILE
16457 Configuration files:
16460 Configuration headers:
16463 Configuration commands:
16466 Report bugs to <bug-autoconf@gnu.org>."
16469 cat >>$CONFIG_STATUS <<_ACEOF
16472 configured by $0, generated by GNU Autoconf 2.59,
16473 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16475 Copyright (C) 2003 Free Software Foundation, Inc.
16476 This config.status script is free software; the Free Software Foundation
16477 gives unlimited permission to copy, distribute and modify it."
16481 cat >>$CONFIG_STATUS <<\_ACEOF
16482 # If no file are specified by the user, then we need to provide default
16483 # value. By we need to know if files were specified by the user.
16489 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16490 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16498 *) # This is not an option, so the user has probably given explicit
16501 ac_need_defaults
=false
;;
16505 # Handling of the options.
16507 cat >>$CONFIG_STATUS <<\_ACEOF
16508 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16510 --version |
--vers* |
-V )
16511 echo "$ac_cs_version"; exit 0 ;;
16513 # Conflict between --help and --header
16514 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16515 Try \`$0 --help' for more information." >&5
16516 echo "$as_me: error: ambiguous option: $1
16517 Try \`$0 --help' for more information." >&2;}
16518 { (exit 1); exit 1; }; };;
16519 --help |
--hel |
-h )
16520 echo "$ac_cs_usage"; exit 0 ;;
16521 --debug |
--d* |
-d )
16523 --file |
--fil |
--fi |
--f )
16525 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16526 ac_need_defaults
=false
;;
16527 --header |
--heade |
--head |
--hea )
16529 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16530 ac_need_defaults
=false
;;
16531 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16532 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16535 # This is an error.
16536 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16537 Try \`$0 --help' for more information." >&5
16538 echo "$as_me: error: unrecognized option: $1
16539 Try \`$0 --help' for more information." >&2;}
16540 { (exit 1); exit 1; }; } ;;
16542 *) ac_config_targets
="$ac_config_targets $1" ;;
16548 ac_configure_extra_args
=
16550 if $ac_cs_silent; then
16552 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16556 cat >>$CONFIG_STATUS <<_ACEOF
16557 if \$ac_cs_recheck; then
16558 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16559 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16564 cat >>$CONFIG_STATUS <<_ACEOF
16566 # INIT-COMMANDS section.
16575 cat >>$CONFIG_STATUS <<\_ACEOF
16576 for ac_config_target
in $ac_config_targets
16578 case "$ac_config_target" in
16579 # Handling of arguments.
16580 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
16581 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16582 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
16583 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16584 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16585 { (exit 1); exit 1; }; };;
16589 # If the user did not use the arguments to specify the items to instantiate,
16590 # then the envvar interface is used. Set only those that are not.
16591 # We use the long form for the default assignment because of an extremely
16592 # bizarre bug on SunOS 4.1.3.
16593 if $ac_need_defaults; then
16594 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16595 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16596 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16599 # Have a temporary directory for convenience. Make it in the build tree
16600 # simply because there is no reason to put it here, and in addition,
16601 # creating and moving files from /tmp can sometimes cause problems.
16602 # Create a temporary directory, and hook for its removal unless debugging.
16605 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16606 trap '{ (exit 1); exit 1; }' 1 2 13 15
16609 # Create a (secure) tmp directory for tmp files.
16612 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16613 test -n "$tmp" && test -d "$tmp"
16616 tmp
=.
/confstat$$
-$RANDOM
16617 (umask 077 && mkdir
$tmp)
16620 echo "$me: cannot create a temporary directory in ." >&2
16621 { (exit 1); exit 1; }
16626 cat >>$CONFIG_STATUS <<_ACEOF
16629 # CONFIG_FILES section.
16632 # No need to generate the scripts if there are no CONFIG_FILES.
16633 # This happens for instance when ./config.status config.h
16634 if test -n "\$CONFIG_FILES"; then
16635 # Protect against being on the right side of a sed subst in config.status.
16636 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16637 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16638 s,@SHELL@,$SHELL,;t t
16639 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16640 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16641 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16642 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16643 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16644 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16645 s,@exec_prefix@,$exec_prefix,;t t
16646 s,@prefix@,$prefix,;t t
16647 s,@program_transform_name@,$program_transform_name,;t t
16648 s,@bindir@,$bindir,;t t
16649 s,@sbindir@,$sbindir,;t t
16650 s,@libexecdir@,$libexecdir,;t t
16651 s,@datadir@,$datadir,;t t
16652 s,@sysconfdir@,$sysconfdir,;t t
16653 s,@sharedstatedir@,$sharedstatedir,;t t
16654 s,@localstatedir@,$localstatedir,;t t
16655 s,@libdir@,$libdir,;t t
16656 s,@includedir@,$includedir,;t t
16657 s,@oldincludedir@,$oldincludedir,;t t
16658 s,@infodir@,$infodir,;t t
16659 s,@mandir@,$mandir,;t t
16660 s,@build_alias@,$build_alias,;t t
16661 s,@host_alias@,$host_alias,;t t
16662 s,@target_alias@,$target_alias,;t t
16663 s,@DEFS@,$DEFS,;t t
16664 s,@ECHO_C@,$ECHO_C,;t t
16665 s,@ECHO_N@,$ECHO_N,;t t
16666 s,@ECHO_T@,$ECHO_T,;t t
16667 s,@LIBS@,$LIBS,;t t
16668 s,@build@,$build,;t t
16669 s,@build_cpu@,$build_cpu,;t t
16670 s,@build_vendor@,$build_vendor,;t t
16671 s,@build_os@,$build_os,;t t
16672 s,@host@,$host,;t t
16673 s,@host_cpu@,$host_cpu,;t t
16674 s,@host_vendor@,$host_vendor,;t t
16675 s,@host_os@,$host_os,;t t
16676 s,@target@,$target,;t t
16677 s,@target_cpu@,$target_cpu,;t t
16678 s,@target_vendor@,$target_vendor,;t t
16679 s,@target_os@,$target_os,;t t
16680 s,@target_noncanonical@,$target_noncanonical,;t t
16681 s,@build_subdir@,$build_subdir,;t t
16682 s,@host_subdir@,$host_subdir,;t t
16683 s,@target_subdir@,$target_subdir,;t t
16684 s,@GENINSRC@,$GENINSRC,;t t
16686 s,@CFLAGS@,$CFLAGS,;t t
16687 s,@LDFLAGS@,$LDFLAGS,;t t
16688 s,@CPPFLAGS@,$CPPFLAGS,;t t
16689 s,@ac_ct_CC@,$ac_ct_CC,;t t
16690 s,@EXEEXT@,$EXEEXT,;t t
16691 s,@OBJEXT@,$OBJEXT,;t t
16692 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16693 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16695 s,@EGREP@,$EGREP,;t t
16696 s,@strict1_warn@,$strict1_warn,;t t
16697 s,@warn_cflags@,$warn_cflags,;t t
16698 s,@WERROR@,$WERROR,;t t
16699 s,@nocommon_flag@,$nocommon_flag,;t t
16700 s,@TREEBROWSER@,$TREEBROWSER,;t t
16701 s,@valgrind_path@,$valgrind_path,;t t
16702 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16703 s,@valgrind_command@,$valgrind_command,;t t
16704 s,@coverage_flags@,$coverage_flags,;t t
16705 s,@enable_multilib@,$enable_multilib,;t t
16706 s,@enable_shared@,$enable_shared,;t t
16707 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16708 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16709 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16710 s,@onestep@,$onestep,;t t
16711 s,@SET_MAKE@,$SET_MAKE,;t t
16713 s,@LN_S@,$LN_S,;t t
16715 s,@RANLIB@,$RANLIB,;t t
16716 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16717 s,@ranlib_flags@,$ranlib_flags,;t t
16718 s,@INSTALL@,$INSTALL,;t t
16719 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16720 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16721 s,@make_compare_target@,$make_compare_target,;t t
16722 s,@have_mktemp_command@,$have_mktemp_command,;t t
16723 s,@MAKEINFO@,$MAKEINFO,;t t
16724 s,@BUILD_INFO@,$BUILD_INFO,;t t
16725 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16726 s,@FLEX@,$FLEX,;t t
16727 s,@BISON@,$BISON,;t t
16730 s,@stage1_cflags@,$stage1_cflags,;t t
16731 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16732 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16733 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16734 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16735 s,@LIBICONV@,$LIBICONV,;t t
16736 s,@LTLIBICONV@,$LTLIBICONV,;t t
16737 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16738 s,@manext@,$manext,;t t
16739 s,@objext@,$objext,;t t
16740 s,@gthread_flags@,$gthread_flags,;t t
16741 s,@extra_modes_file@,$extra_modes_file,;t t
16742 s,@extra_opt_files@,$extra_opt_files,;t t
16743 s,@USE_NLS@,$USE_NLS,;t t
16744 s,@LIBINTL@,$LIBINTL,;t t
16745 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16746 s,@INCINTL@,$INCINTL,;t t
16747 s,@XGETTEXT@,$XGETTEXT,;t t
16748 s,@GMSGFMT@,$GMSGFMT,;t t
16749 s,@POSUB@,$POSUB,;t t
16750 s,@CATALOGS@,$CATALOGS,;t t
16751 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16752 s,@CROSS@,$CROSS,;t t
16754 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16755 s,@inhibit_libc@,$inhibit_libc,;t t
16756 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16757 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16758 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16759 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16760 s,@collect2@,$collect2,;t t
16761 s,@gcc_cv_as@,$gcc_cv_as,;t t
16762 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
16763 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
16764 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
16765 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
16766 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
16767 s,@libgcc_visibility@,$libgcc_visibility,;t t
16769 s,@zlibdir@,$zlibdir,;t t
16770 s,@zlibinc@,$zlibinc,;t t
16771 s,@MAINT@,$MAINT,;t t
16772 s,@gcc_tooldir@,$gcc_tooldir,;t t
16773 s,@dollar@,$dollar,;t t
16774 s,@slibdir@,$slibdir,;t t
16775 s,@objdir@,$objdir,;t t
16776 s,@subdirs@,$subdirs,;t t
16777 s,@srcdir@,$srcdir,;t t
16778 s,@all_boot_languages@,$all_boot_languages,;t t
16779 s,@all_compilers@,$all_compilers,;t t
16780 s,@all_gtfiles@,$all_gtfiles,;t t
16781 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16782 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16783 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16784 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16785 s,@all_languages@,$all_languages,;t t
16786 s,@all_stagestuff@,$all_stagestuff,;t t
16787 s,@build_exeext@,$build_exeext,;t t
16788 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16789 s,@build_xm_file_list@,$build_xm_file_list,;t t
16790 s,@build_xm_include_list@,$build_xm_include_list,;t t
16791 s,@build_xm_defines@,$build_xm_defines,;t t
16792 s,@check_languages@,$check_languages,;t t
16793 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16794 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16795 s,@cpp_install_dir@,$cpp_install_dir,;t t
16796 s,@xmake_file@,$xmake_file,;t t
16797 s,@tmake_file@,$tmake_file,;t t
16798 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16799 s,@extra_headers_list@,$extra_headers_list,;t t
16800 s,@extra_objs@,$extra_objs,;t t
16801 s,@extra_parts@,$extra_parts,;t t
16802 s,@extra_passes@,$extra_passes,;t t
16803 s,@extra_programs@,$extra_programs,;t t
16804 s,@float_h_file@,$float_h_file,;t t
16805 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16806 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16807 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16808 s,@host_exeext@,$host_exeext,;t t
16809 s,@host_xm_file_list@,$host_xm_file_list,;t t
16810 s,@host_xm_include_list@,$host_xm_include_list,;t t
16811 s,@host_xm_defines@,$host_xm_defines,;t t
16812 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16813 s,@install@,$install,;t t
16814 s,@lang_opt_files@,$lang_opt_files,;t t
16815 s,@lang_specs_files@,$lang_specs_files,;t t
16816 s,@lang_tree_files@,$lang_tree_files,;t t
16817 s,@local_prefix@,$local_prefix,;t t
16818 s,@md_file@,$md_file,;t t
16819 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16820 s,@out_file@,$out_file,;t t
16821 s,@out_object_file@,$out_object_file,;t t
16822 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16823 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16824 s,@thread_file@,$thread_file,;t t
16825 s,@tm_file_list@,$tm_file_list,;t t
16826 s,@tm_include_list@,$tm_include_list,;t t
16827 s,@tm_defines@,$tm_defines,;t t
16828 s,@tm_p_file_list@,$tm_p_file_list,;t t
16829 s,@tm_p_include_list@,$tm_p_include_list,;t t
16830 s,@xm_file_list@,$xm_file_list,;t t
16831 s,@xm_include_list@,$xm_include_list,;t t
16832 s,@xm_defines@,$xm_defines,;t t
16833 s,@c_target_objs@,$c_target_objs,;t t
16834 s,@cxx_target_objs@,$cxx_target_objs,;t t
16835 s,@target_cpu_default@,$target_cpu_default,;t t
16836 s,@GMPLIBS@,$GMPLIBS,;t t
16837 s,@GMPINC@,$GMPINC,;t t
16838 s,@LIBOBJS@,$LIBOBJS,;t t
16839 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16840 /@language_hooks@/r $language_hooks
16841 s,@language_hooks@,,;t t
16846 cat >>$CONFIG_STATUS <<\_ACEOF
16847 # Split the substitutions into bite-sized pieces for seds with
16848 # small command number limits, like on Digital OSF/1 and HP-UX.
16849 ac_max_sed_lines
=48
16850 ac_sed_frag
=1 # Number of current file.
16851 ac_beg
=1 # First line for current file.
16852 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16855 while $ac_more_lines; do
16856 if test $ac_beg -gt 1; then
16857 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16859 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16861 if test ! -s $tmp/subs.frag
; then
16862 ac_more_lines
=false
16864 # The purpose of the label and of the branching condition is to
16865 # speed up the sed processing (if there are no `@' at all, there
16866 # is no need to browse any of the substitutions).
16867 # These are the two extra sed commands mentioned above.
16869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16870 if test -z "$ac_sed_cmds"; then
16871 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16873 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16875 ac_sed_frag
=`expr $ac_sed_frag + 1`
16877 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16880 if test -z "$ac_sed_cmds"; then
16883 fi # test -n "$CONFIG_FILES"
16886 cat >>$CONFIG_STATUS <<\_ACEOF
16887 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16888 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16890 - |
*:- |
*:-:* ) # input from stdin
16892 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16893 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16894 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16895 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16896 * ) ac_file_in
=$ac_file.
in ;;
16899 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16900 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16902 X"$ac_file" : 'X\(//\)[^/]' \| \
16903 X"$ac_file" : 'X\(//\)$' \| \
16904 X"$ac_file" : 'X\(/\)' \| \
16905 . : '\(.\)' 2>/dev/null ||
16907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16909 /^X\(\/\/\)$/{ s//\1/; q; }
16910 /^X\(\/\).*/{ s//\1/; q; }
16912 { if $as_mkdir_p; then
16917 while test ! -d "$as_dir"; do
16918 as_dirs
="$as_dir $as_dirs"
16919 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16921 X"$as_dir" : 'X\(//\)[^/]' \| \
16922 X"$as_dir" : 'X\(//\)$' \| \
16923 X"$as_dir" : 'X\(/\)' \| \
16924 . : '\(.\)' 2>/dev/null ||
16926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16928 /^X\(\/\/\)$/{ s//\1/; q; }
16929 /^X\(\/\).*/{ s//\1/; q; }
16932 test ! -n "$as_dirs" || mkdir
$as_dirs
16933 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16934 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16935 { (exit 1); exit 1; }; }; }
16939 if test "$ac_dir" != .
; then
16940 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16941 # A "../" for each directory in $ac_dir_suffix.
16942 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16944 ac_dir_suffix
= ac_top_builddir
=
16948 .
) # No --srcdir option. We are building in place.
16950 if test -z "$ac_top_builddir"; then
16953 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16955 [\\/]* | ?
:[\\/]* ) # Absolute path.
16956 ac_srcdir
=$srcdir$ac_dir_suffix;
16957 ac_top_srcdir
=$srcdir ;;
16958 *) # Relative path.
16959 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16960 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16963 # Do not use `cd foo && pwd` to compute absolute paths, because
16964 # the directories may not exist.
16966 .
) ac_abs_builddir
="$ac_dir";;
16969 .
) ac_abs_builddir
=`pwd`;;
16970 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16971 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16974 case $ac_abs_builddir in
16975 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16977 case ${ac_top_builddir}.
in
16978 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16979 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16980 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16983 case $ac_abs_builddir in
16984 .
) ac_abs_srcdir
=$ac_srcdir;;
16987 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16988 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16989 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16992 case $ac_abs_builddir in
16993 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16995 case $ac_top_srcdir in
16996 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16997 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16998 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17004 if test x
"$ac_file" != x-
; then
17005 { echo "$as_me:$LINENO: creating $ac_file" >&5
17006 echo "$as_me: creating $ac_file" >&6;}
17009 # Let's still pretend it is `configure' which instantiates (i.e., don't
17010 # use $as_me), people would be surprised to read:
17011 # /* config.h. Generated by config.status. */
17012 if test x
"$ac_file" = x-
; then
17015 configure_input
="$ac_file. "
17017 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17018 sed 's,.*/,,'` by configure."
17020 # First look for the input files in the build tree, otherwise in the
17022 ac_file_inputs
=`IFS=:
17023 for f in $ac_file_in; do
17025 -) echo $tmp/stdin ;;
17027 # Absolute (can't be DOS-style, as IFS=:)
17028 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17029 echo "$as_me: error: cannot find input file: $f" >&2;}
17030 { (exit 1); exit 1; }; }
17033 if test -f "$f"; then
17036 elif test -f "$srcdir/$f"; then
17041 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17042 echo "$as_me: error: cannot find input file: $f" >&2;}
17043 { (exit 1); exit 1; }; }
17046 done` ||
{ (exit 1); exit 1; }
17048 cat >>$CONFIG_STATUS <<_ACEOF
17052 cat >>$CONFIG_STATUS <<\_ACEOF
17054 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17055 s
,@configure_input@
,$configure_input,;t t
17056 s
,@srcdir@
,$ac_srcdir,;t t
17057 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17058 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17059 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17060 s
,@builddir@
,$ac_builddir,;t t
17061 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17062 s
,@top_builddir@
,$ac_top_builddir,;t t
17063 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17064 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17066 if test x"$ac_file" != x-; then
17067 mv $tmp/out $ac_file
17075 cat >>$CONFIG_STATUS <<\_ACEOF
17078 # CONFIG_HEADER section.
17081 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17082 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17084 # ac_d sets the value in "#define NAME VALUE" lines.
17085 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17086 ac_dB
='[ ].*$,\1#\2'
17089 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17090 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17091 ac_uB
='$,\1#\2define\3'
17095 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17096 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17098 - |
*:- |
*:-:* ) # input from stdin
17100 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17101 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17102 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17103 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17104 * ) ac_file_in
=$ac_file.
in ;;
17107 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17108 echo "$as_me: creating $ac_file" >&6;}
17110 # First look for the input files in the build tree, otherwise in the
17112 ac_file_inputs
=`IFS=:
17113 for f in $ac_file_in; do
17115 -) echo $tmp/stdin ;;
17117 # Absolute (can't be DOS-style, as IFS=:)
17118 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17119 echo "$as_me: error: cannot find input file: $f" >&2;}
17120 { (exit 1); exit 1; }; }
17121 # Do quote $f, to prevent DOS paths from being IFS'd.
17124 if test -f "$f"; then
17127 elif test -f "$srcdir/$f"; then
17132 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17133 echo "$as_me: error: cannot find input file: $f" >&2;}
17134 { (exit 1); exit 1; }; }
17137 done` ||
{ (exit 1); exit 1; }
17138 # Remove the trailing spaces.
17139 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17143 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17144 # `conftest.undefs', that substitutes the proper values into
17145 # config.h.in to produce config.h. The first handles `#define'
17146 # templates, and the second `#undef' templates.
17147 # And first: Protect against being on the right side of a sed subst in
17148 # config.status. Protect against being in an unquoted here document
17149 # in config.status.
17150 rm -f conftest.defines conftest.undefs
17151 # Using a here document instead of a string reduces the quoting nightmare.
17152 # Putting comments in sed scripts is not portable.
17154 # `end' is used to avoid that the second main sed command (meant for
17155 # 0-ary CPP macros) applies to n-ary macro definitions.
17156 # See the Autoconf documentation for `clear'.
17157 cat >confdef2sed.
sed <<\_ACEOF
17162 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17164 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17167 # If some macros were called several times there might be several times
17168 # the same #defines, which is useless. Nevertheless, we may not want to
17169 # sort them, since we want the *last* AC-DEFINE to be honored.
17170 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17171 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17172 rm -f confdef2sed.sed
17174 # This sed command replaces #undef with comments. This is necessary, for
17175 # example, in the case of _POSIX_SOURCE, which is predefined and required
17176 # on some systems where configure will not decide to define it.
17177 cat >>conftest.undefs <<\_ACEOF
17178 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17181 # Break up conftest.defines because some shells have a limit on the size
17182 # of here documents, and old seds have small limits too (100 cmds).
17183 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17184 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17185 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17186 echo ' :' >>$CONFIG_STATUS
17187 rm -f conftest.tail
17188 while grep . conftest.defines >/dev/null
17190 # Write a limited-size here document to $tmp/defines.sed.
17191 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17192 # Speed up: don't consider the non `#define' lines.
17193 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17194 # Work around the forget-to-reset-the-flag bug.
17195 echo 't clr' >>$CONFIG_STATUS
17196 echo ': clr' >>$CONFIG_STATUS
17197 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17199 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17201 mv $tmp/out $tmp/in
17203 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17204 rm -f conftest.defines
17205 mv conftest.
tail conftest.defines
17207 rm -f conftest.defines
17208 echo ' fi # grep' >>$CONFIG_STATUS
17209 echo >>$CONFIG_STATUS
17211 # Break up conftest.undefs because some shells have a limit on the size
17212 # of here documents, and old seds have small limits too (100 cmds).
17213 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17214 rm -f conftest.
tail
17215 while grep . conftest.undefs
>/dev
/null
17217 # Write a limited-size here document to $tmp/undefs.sed.
17218 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17219 # Speed up: don't consider the non
`#undef'
17220 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17221 # Work around the forget-to-reset-the-flag bug.
17222 echo 't clr' >>$CONFIG_STATUS
17223 echo ': clr' >>$CONFIG_STATUS
17224 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17226 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17228 mv $tmp/out $tmp/in
17230 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17231 rm -f conftest.undefs
17232 mv conftest.tail conftest.undefs
17234 rm -f conftest.undefs
17236 cat >>$CONFIG_STATUS <<\_ACEOF
17237 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17238 # use $as_me), people would be surprised to read:
17239 # /* config.h. Generated by config.status. */
17240 if test x
"$ac_file" = x-
; then
17241 echo "/* Generated by configure. */" >$tmp/config.h
17243 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17245 cat $tmp/in >>$tmp/config.h
17247 if test x
"$ac_file" != x-
; then
17248 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17249 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17250 echo "$as_me: $ac_file is unchanged" >&6;}
17252 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17254 X"$ac_file" : 'X\(//\)[^/]' \| \
17255 X"$ac_file" : 'X\(//\)$' \| \
17256 X"$ac_file" : 'X\(/\)' \| \
17257 . : '\(.\)' 2>/dev/null ||
17259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17261 /^X\(\/\/\)$/{ s//\1/; q; }
17262 /^X\(\/\).*/{ s//\1/; q; }
17264 { if $as_mkdir_p; then
17269 while test ! -d "$as_dir"; do
17270 as_dirs
="$as_dir $as_dirs"
17271 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17273 X"$as_dir" : 'X\(//\)[^/]' \| \
17274 X"$as_dir" : 'X\(//\)$' \| \
17275 X"$as_dir" : 'X\(/\)' \| \
17276 . : '\(.\)' 2>/dev/null ||
17278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17280 /^X\(\/\/\)$/{ s//\1/; q; }
17281 /^X\(\/\).*/{ s//\1/; q; }
17284 test ! -n "$as_dirs" || mkdir
$as_dirs
17285 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17286 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17287 { (exit 1); exit 1; }; }; }
17290 mv $tmp/config.h
$ac_file
17294 rm -f $tmp/config.h
17298 cat >>$CONFIG_STATUS <<\_ACEOF
17301 # CONFIG_COMMANDS section.
17303 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17304 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17305 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17306 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17307 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17308 X"$ac_dest" : 'X\(//\)[^/]' \| \
17309 X"$ac_dest" : 'X\(//\)$' \| \
17310 X"$ac_dest" : 'X\(/\)' \| \
17311 . : '\(.\)' 2>/dev/null ||
17313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17315 /^X\(\/\/\)$/{ s//\1/; q; }
17316 /^X\(\/\).*/{ s//\1/; q; }
17318 { if $as_mkdir_p; then
17323 while test ! -d "$as_dir"; do
17324 as_dirs
="$as_dir $as_dirs"
17325 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17327 X"$as_dir" : 'X\(//\)[^/]' \| \
17328 X"$as_dir" : 'X\(//\)$' \| \
17329 X"$as_dir" : 'X\(/\)' \| \
17330 . : '\(.\)' 2>/dev/null ||
17332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17334 /^X\(\/\/\)$/{ s//\1/; q; }
17335 /^X\(\/\).*/{ s//\1/; q; }
17338 test ! -n "$as_dirs" || mkdir
$as_dirs
17339 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17340 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17341 { (exit 1); exit 1; }; }; }
17345 if test "$ac_dir" != .
; then
17346 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17347 # A "../" for each directory in $ac_dir_suffix.
17348 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17350 ac_dir_suffix
= ac_top_builddir
=
17354 .
) # No --srcdir option. We are building in place.
17356 if test -z "$ac_top_builddir"; then
17359 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17361 [\\/]* | ?
:[\\/]* ) # Absolute path.
17362 ac_srcdir
=$srcdir$ac_dir_suffix;
17363 ac_top_srcdir
=$srcdir ;;
17364 *) # Relative path.
17365 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17366 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17369 # Do not use `cd foo && pwd` to compute absolute paths, because
17370 # the directories may not exist.
17372 .
) ac_abs_builddir
="$ac_dir";;
17375 .
) ac_abs_builddir
=`pwd`;;
17376 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17377 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17380 case $ac_abs_builddir in
17381 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17383 case ${ac_top_builddir}.
in
17384 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17385 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17386 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17389 case $ac_abs_builddir in
17390 .
) ac_abs_srcdir
=$ac_srcdir;;
17393 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17394 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17395 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17398 case $ac_abs_builddir in
17399 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17401 case $ac_top_srcdir in
17402 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17403 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17404 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17409 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17410 echo "$as_me: executing $ac_dest commands" >&6;}
17413 case ${CONFIG_HEADERS} in
17414 *auto-host.h
:config.
in*)
17417 # Make sure all the subdirs exist.
17418 for d
in $subdirs doc build
17420 test -d $d || mkdir
$d
17422 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17423 # bootstrapping and the installation procedure can still use
17424 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17425 # FLAGS_TO_PASS has been modified to solve the problem there.
17426 # This is virtually a duplicate of what happens in configure.lang; we do
17427 # an extra check to make sure this only happens if ln -s can be used.
17430 for d
in ${subdirs} ; do
17431 STARTDIR
=`${PWDCMD-pwd}`
17433 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17436 $LN_S ..
/$t $t 2>/dev
/null
17447 cat >>$CONFIG_STATUS <<\_ACEOF
17449 { (exit 0); exit 0; }
17451 chmod +x
$CONFIG_STATUS
17452 ac_clean_files
=$ac_clean_files_save
17455 # configure is writing to config.log, and then calls config.status.
17456 # config.status does its own redirection, appending to config.log.
17457 # Unfortunately, on DOS this fails, as config.log is still kept open
17458 # by configure, so config.status won't be able to write to it; its
17459 # output is simply discarded. So we exec the FD to /dev/null,
17460 # effectively closing config.log, so it can be properly (re)opened and
17461 # appended to by config.status. When coming back to configure, we
17462 # need to make the FD available again.
17463 if test "$no_create" != yes; then
17465 ac_config_status_args
=
17466 test "$silent" = yes &&
17467 ac_config_status_args
="$ac_config_status_args --quiet"
17469 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17471 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17472 # would make configure fail if this is the last instruction.
17473 $ac_cs_success ||
{ (exit 1); exit 1; }