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 GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S 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 build_subdir host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: yes,no
,all
,none
,release.
871 Flags are
: assert
,fold,gc
,gcac
,misc
,
872 rtlflag
,rtl
,runtime
,tree
,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler
's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don
't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-long-double-128 Use
128-bit long double by default.
936 --with-gc={page
,zone
} choose the garbage collection mechanism to use
938 --with-system-zlib use installed libz
939 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
940 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
941 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
942 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
944 Some influential environment variables
:
945 CC C compiler
command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
948 nonstandard directory
<lib dir
>
949 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
950 headers
in a nonstandard directory
<include dir
>
952 GMPLIBS How to link GMP
953 GMPINC How to
find GMP include files
955 Use these variables to override the choices made by
`configure' or to help
956 it to find libraries and programs with nonstandard names/locations.
961 if test "$ac_init_help" = "recursive"; then
962 # If there are subdirs, report their specific --help.
964 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965 test -d $ac_dir || continue
968 if test "$ac_dir" != .; then
969 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
970 # A "../" for each directory in $ac_dir_suffix.
971 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
973 ac_dir_suffix= ac_top_builddir=
977 .) # No --srcdir option. We are building in place.
979 if test -z "$ac_top_builddir"; then
982 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
984 [\\/]* | ?:[\\/]* ) # Absolute path.
985 ac_srcdir=$srcdir$ac_dir_suffix;
986 ac_top_srcdir=$srcdir ;;
988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
992 # Do not use `cd foo
&& pwd` to compute absolute paths, because
993 # the directories may not exist.
995 .) ac_abs_builddir="$ac_dir";;
998 .) ac_abs_builddir=`pwd`;;
999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 case ${ac_top_builddir}. in
1007 .) ac_abs_top_builddir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1012 case $ac_abs_builddir in
1013 .) ac_abs_srcdir=$ac_srcdir;;
1016 .) ac_abs_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1021 case $ac_abs_builddir in
1022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 case $ac_top_srcdir in
1025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1032 # Check for guested configure; otherwise get Cygnus style configure.
1033 if test -f $ac_srcdir/configure.gnu; then
1035 $SHELL $ac_srcdir/configure.gnu --help=recursive
1036 elif test -f $ac_srcdir/configure; then
1038 $SHELL $ac_srcdir/configure --help=recursive
1039 elif test -f $ac_srcdir/configure.ac ||
1040 test -f $ac_srcdir/configure.in; then
1042 $ac_configure --help
1044 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1050 test -n "$ac_init_help" && exit 0
1051 if $ac_init_version; then
1054 Copyright (C) 2003 Free Software Foundation, Inc.
1055 This configure script is free software; the Free Software Foundation
1056 gives unlimited permission to copy, distribute and modify it.
1062 This file contains any messages produced by compilers while
1063 running configure, to aid debugging if configure makes a mistake.
1065 It was created by $as_me, which was
1066 generated by GNU Autoconf 2.59. Invocation command line was
1077 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1078 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1079 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1080 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1081 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1083 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1084 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1086 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1087 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1088 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1089 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1090 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1091 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1092 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 test -z "$as_dir" && as_dir=.
1101 echo "PATH: $as_dir"
1116 # Keep a trace of the command line.
1117 # Strip out --no-create and --no-recursion so they do not pile up.
1118 # Strip out --silent because we don't want to record it for future runs.
1119 # Also quote any args containing shell meta-characters.
1120 # Make two passes to allow for proper duplicate-argument suppression.
1125 ac_must_keep_next=false
1131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1135 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1139 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142 if test $ac_must_keep_next = true; then
1143 ac_must_keep_next=false # Got value, back to normal.
1146 *=* | --config-cache | -C | -disable-* | --disable-* \
1147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149 | -with-* | --with-* | -without-* | --without-* | --x)
1150 case "$ac_configure_args0 " in
1151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1154 -* ) ac_must_keep_next=true ;;
1157 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158 # Get rid of the leading space.
1164 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167 # When interrupted or exit'd, cleanup temporary files, and complete
1168 # config.log. We remove comments because anyway the quotes in there
1169 # would cause problems or look ugly.
1170 # WARNING: Be sure not to use single quotes in there, as some shells,
1171 # such as our DU 5.0 friend, will then `close
' the trap.
1172 trap 'exit_status
=$?
1173 # Save into config.log some information that might help in debugging.
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1183 # The following way of writing the cache mishandles newlines in values,
1186 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1189 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1201 ## ----------------- ##
1202 ## Output variables. ##
1203 ## ----------------- ##
1206 for ac_var
in $ac_subst_vars
1208 eval ac_val
=$
`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1213 if test -n "$ac_subst_files"; then
1220 for ac_var
in $ac_subst_files
1222 eval ac_val
=$
`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1228 if test -s confdefs.h
; then
1235 sed "/^$/d" confdefs.h |
sort
1238 test "$ac_signal" != 0 &&
1239 echo "$as_me: caught signal $ac_signal"
1240 echo "$as_me: exit $exit_status"
1242 rm -f core
*.core
&&
1243 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1246 for ac_signal in 1 2 13 15; do
1247 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252 rm -rf conftest* confdefs.h
1253 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1256 # Predefined preprocessor variables.
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 # Let the site file select an alternate cache file if it wants to.
1284 # Prefer explicitly selected file to automatically selected ones.
1285 if test -z "$CONFIG_SITE"; then
1286 if test "x$prefix" != xNONE; then
1287 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1289 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1292 for ac_site_file in $CONFIG_SITE; do
1293 if test -r "$ac_site_file"; then
1294 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295 echo "$as_me: loading site script $ac_site_file" >&6;}
1296 sed 's
/^
/|
/' "$ac_site_file" >&5
1301 if test -r "$cache_file"; then
1302 # Some versions of bash will fail to source /dev/null (special
1303 # files actually), so we avoid doing that.
1304 if test -f "$cache_file"; then
1305 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306 echo "$as_me: loading cache $cache_file" >&6;}
1308 [\\/]* | ?:[\\/]* ) . $cache_file;;
1309 *) . ./$cache_file;;
1313 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314 echo "$as_me: creating cache $cache_file" >&6;}
1318 # Check that the precious variables saved in the cache have kept the same
1320 ac_cache_corrupted=false
1321 for ac_var in `(set) 2>&1 |
1322 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324 eval ac_new_set=\$ac_env_${ac_var}_set
1325 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326 eval ac_new_val="\$ac_env_${ac_var}_value"
1327 case $ac_old_set,$ac_new_set in
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1331 ac_cache_corrupted=: ;;
1333 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1338 if test "x$ac_old_val" != "x$ac_new_val"; then
1339 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1340 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1341 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1342 echo "$as_me: former value: $ac_old_val" >&2;}
1343 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1344 echo "$as_me: current value: $ac_new_val" >&2;}
1345 ac_cache_corrupted=:
1348 # Pass precious variables to config.status.
1349 if test "$ac_new_set" = set; then
1351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1353 *) ac_arg=$ac_var=$ac_new_val ;;
1355 case " $ac_configure_args " in
1356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1357 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361 if $ac_cache_corrupted; then
1362 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1365 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366 { (exit 1); exit 1; }; }
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1372 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1394 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1397 gcc_version=`cat $srcdir/BASE-VER`
1399 # Determine the host, build, and target systems
1401 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1402 if test -f $ac_dir/install-sh; then
1404 ac_install_sh="$ac_aux_dir/install-sh -c"
1406 elif test -f $ac_dir/install.sh; then
1408 ac_install_sh="$ac_aux_dir/install.sh -c"
1410 elif test -f $ac_dir/shtool; then
1412 ac_install_sh="$ac_aux_dir/shtool install -c"
1416 if test -z "$ac_aux_dir"; then
1417 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1418 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1419 { (exit 1); exit 1; }; }
1421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1423 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425 # Make sure we can run config.sub.
1426 $ac_config_sub sun4 >/dev/null 2>&1 ||
1427 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1429 { (exit 1); exit 1; }; }
1431 echo "$as_me:$LINENO: checking build system type" >&5
1432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1433 if test "${ac_cv_build+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_build_alias=$build_alias
1437 test -z "$ac_cv_build_alias" &&
1438 ac_cv_build_alias=`$ac_config_guess`
1439 test -z "$ac_cv_build_alias" &&
1440 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1442 { (exit 1); exit 1; }; }
1443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1450 echo "${ECHO_T}$ac_cv_build" >&6
1452 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1453 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1454 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1457 echo "$as_me:$LINENO: checking host system type" >&5
1458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1459 if test "${ac_cv_host+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 ac_cv_host_alias=$host_alias
1463 test -z "$ac_cv_host_alias" &&
1464 ac_cv_host_alias=$ac_cv_build_alias
1465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1466 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1468 { (exit 1); exit 1; }; }
1471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1472 echo "${ECHO_T}$ac_cv_host" >&6
1474 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1475 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1476 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1479 echo "$as_me:$LINENO: checking target system type" >&5
1480 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1481 if test "${ac_cv_target+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 ac_cv_target_alias=$target_alias
1485 test "x$ac_cv_target_alias" = "x" &&
1486 ac_cv_target_alias=$ac_cv_host_alias
1487 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1490 { (exit 1); exit 1; }; }
1493 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1494 echo "${ECHO_T}$ac_cv_target" >&6
1495 target=$ac_cv_target
1496 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1497 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1498 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1501 # The aliases save the names the user supplied, while $host etc.
1502 # will get canonicalized.
1503 test -n "$target_alias" &&
1504 test "$program_prefix$program_suffix$program_transform_name" = \
1506 program_prefix=${target_alias}-
1508 # Determine the noncanonical target name, for directory use.
1509 ACX_NONCANONICAL_TARGET
1511 # Determine the target- and build-specific subdirectories
1514 # Set program_transform_name
1515 test "$program_prefix" != NONE &&
1516 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1517 # Use a double $ so make ignores it.
1518 test "$program_suffix" != NONE &&
1519 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1520 # Double any \ or $. echo might interpret backslashes.
1521 # By default was `s,x,x', remove it
if useless.
1522 cat <<\_ACEOF
>conftest.
sed
1523 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1525 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1529 # Check for bogus environment variables.
1530 # Test if LIBRARY_PATH contains the notation for the current directory
1531 # since this would lead to problems installing/building glibc.
1532 # LIBRARY_PATH contains the current directory if one of the following
1534 # - one of the terminals (":" and ";") is the first or last sign
1535 # - two terminals occur directly after each other
1536 # - the path contains an element with a dot in it
1537 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1538 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1539 case ${LIBRARY_PATH} in
1540 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1541 library_path_setting
="contains current directory"
1544 library_path_setting
="ok"
1547 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1548 echo "${ECHO_T}$library_path_setting" >&6
1549 if test "$library_path_setting" != "ok"; then
1550 { { echo "$as_me:$LINENO: error:
1551 *** LIBRARY_PATH shouldn't contain the current directory when
1552 *** building gcc. Please change the environment variable
1553 *** and run configure again." >&5
1554 echo "$as_me: error:
1555 *** LIBRARY_PATH shouldn't contain the current directory when
1556 *** building gcc. Please change the environment variable
1557 *** and run configure again." >&2;}
1558 { (exit 1); exit 1; }; }
1561 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1562 # since this would lead to problems installing/building glibc.
1563 # GCC_EXEC_PREFIX contains the current directory if one of the following
1565 # - one of the terminals (":" and ";") is the first or last sign
1566 # - two terminals occur directly after each other
1567 # - the path contains an element with a dot in it
1568 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1569 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1570 case ${GCC_EXEC_PREFIX} in
1571 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1572 gcc_exec_prefix_setting
="contains current directory"
1575 gcc_exec_prefix_setting
="ok"
1578 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1579 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1580 if test "$gcc_exec_prefix_setting" != "ok"; then
1581 { { echo "$as_me:$LINENO: error:
1582 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1583 *** building gcc. Please change the environment variable
1584 *** and run configure again." >&5
1585 echo "$as_me: error:
1586 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1587 *** building gcc. Please change the environment variable
1588 *** and run configure again." >&2;}
1589 { (exit 1); exit 1; }; }
1596 # Specify the local prefix
1599 # Check whether --with-local-prefix or --without-local-prefix was given.
1600 if test "${with_local_prefix+set}" = set; then
1601 withval
="$with_local_prefix"
1602 case "${withval}" in
1603 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1604 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1605 { (exit 1); exit 1; }; } ;;
1607 *) local_prefix
=$with_local_prefix ;;
1611 # Default local prefix if it is empty
1612 if test x
$local_prefix = x
; then
1613 local_prefix
=/usr
/local
1616 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1617 # passed in by the toplevel make and thus we'd get different behavior
1618 # depending on where we built the sources.
1619 gcc_gxx_include_dir
=
1620 # Specify the g++ header file directory
1622 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1623 if test "${with_gxx_include_dir+set}" = set; then
1624 withval
="$with_gxx_include_dir"
1625 case "${withval}" in
1626 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1627 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1628 { (exit 1); exit 1; }; } ;;
1630 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1634 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1635 if test x
${gcc_gxx_include_dir} = x
; then
1636 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1637 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1639 libstdcxx_incdir
='include/c++/$(version)'
1640 if test x
$host != x
$target; then
1641 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1643 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1648 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1649 if test "${with_cpp_install_dir+set}" = set; then
1650 withval
="$with_cpp_install_dir"
1651 if test x
$withval = xyes
; then
1652 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1653 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1654 { (exit 1); exit 1; }; }
1655 elif test x
$withval != xno
; then
1656 cpp_install_dir
=$withval
1660 # We would like to our source tree to be readonly. However when releases or
1661 # pre-releases are generated, the flex/bison generated files as well as the
1662 # various formats of manuals need to be included along with the rest of the
1663 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1666 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1667 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1668 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1669 if test "${enable_generated_files_in_srcdir+set}" = set; then
1670 enableval
="$enable_generated_files_in_srcdir"
1671 generated_files_in_srcdir
=$enableval
1673 generated_files_in_srcdir
=no
1676 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1677 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1679 if test "$generated_files_in_srcdir" = "yes"; then
1686 # -------------------
1687 # Find default linker
1688 # -------------------
1692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1693 if test "${with_gnu_ld+set}" = set; then
1694 withval
="$with_gnu_ld"
1695 gnu_ld_flag
="$with_gnu_ld"
1700 # With pre-defined ld
1702 # Check whether --with-ld or --without-ld was given.
1703 if test "${with_ld+set}" = set; then
1705 DEFAULT_LINKER
="$with_ld"
1707 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1708 if test ! -x "$DEFAULT_LINKER"; then
1709 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1710 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1711 { (exit 1); exit 1; }; }
1712 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1716 cat >>confdefs.h
<<_ACEOF
1717 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1722 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1723 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1724 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1725 if test x
"$gnu_ld_flag" = x
"no"; then
1726 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1727 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1729 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1730 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 # With demangler in GNU ld
1739 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1740 if test "${with_demangler_in_ld+set}" = set; then
1741 withval
="$with_demangler_in_ld"
1742 demangler_in_ld
="$with_demangler_in_ld"
1747 # ----------------------
1748 # Find default assembler
1749 # ----------------------
1753 # Check whether --with-gnu-as or --without-gnu-as was given.
1754 if test "${with_gnu_as+set}" = set; then
1755 withval
="$with_gnu_as"
1756 gas_flag
="$with_gnu_as"
1762 # Check whether --with-as or --without-as was given.
1763 if test "${with_as+set}" = set; then
1765 DEFAULT_ASSEMBLER
="$with_as"
1767 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1768 if test ! -x "$DEFAULT_ASSEMBLER"; then
1769 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1770 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1771 { (exit 1); exit 1; }; }
1772 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1776 cat >>confdefs.h
<<_ACEOF
1777 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1782 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1783 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1784 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1785 if test x
"$gas_flag" = x
"no"; then
1786 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1787 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1789 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1790 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1801 # If a non-executable a.out is present (e.g. created by GNU as above even if
1802 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1803 # file, even when creating an executable, so an execution test fails.
1804 # Remove possible default executable files to avoid this.
1806 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1807 # Autoconf includes it.
1808 rm -f a.out a.exe b.out
1810 # Find the native compiler
1812 ac_cpp
='$CPP $CPPFLAGS'
1813 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1818 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC
="$CC" # Let the user override the test.
1827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir
=.
1832 for ac_exec_ext
in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$ac_cv_prog_CC"; then
1855 # Extract the first word of "gcc", so it can be a program name with args.
1856 set dummy gcc
; ac_word
=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir
=.
1870 for ac_exec_ext
in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC
="gcc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1895 if test -z "$CC"; then
1896 if test -n "$ac_tool_prefix"; then
1897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1898 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC
="$CC" # Let the user override the test.
1907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir
=.
1912 for ac_exec_ext
in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 if test -n "$CC"; then
1925 echo "$as_me:$LINENO: result: $CC" >&5
1926 echo "${ECHO_T}$CC" >&6
1928 echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1933 if test -z "$ac_cv_prog_CC"; then
1935 # Extract the first word of "cc", so it can be a program name with args.
1936 set dummy cc
; ac_word
=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 if test -n "$ac_ct_CC"; then
1943 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1949 test -z "$as_dir" && as_dir
=.
1950 for ac_exec_ext
in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_ac_ct_CC
="cc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1962 if test -n "$ac_ct_CC"; then
1963 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964 echo "${ECHO_T}$ac_ct_CC" >&6
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1976 if test -z "$CC"; then
1977 # Extract the first word of "cc", so it can be a program name with args.
1978 set dummy cc
; ac_word
=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC
="$CC" # Let the user override the test.
1988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir
=.
1993 for ac_exec_ext
in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1996 ac_prog_rejected
=yes
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 if test $ac_prog_rejected = yes; then
2007 # We found a bogon in the path, so make sure we never use it.
2008 set dummy
$ac_cv_prog_CC
2010 if test $# != 0; then
2011 # We chose a different compiler from the bogus one.
2012 # However, it has the same basename, so the bogon will be chosen
2013 # first if we set CC to just the basename; use the full file name.
2015 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2030 if test -z "$CC"; then
2031 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2035 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC
="$CC" # Let the user override the test.
2044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir
=.
2049 for ac_exec_ext
in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 if test -n "$CC"; then
2062 echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2069 test -n "$CC" && break
2072 if test -z "$CC"; then
2076 # Extract the first word of "$ac_prog", so it can be a program name with args.
2077 set dummy
$ac_prog; ac_word
=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir
=.
2091 for ac_exec_ext
in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 ac_cv_prog_ac_ct_CC
="$ac_prog"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6
2107 echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2111 test -n "$ac_ct_CC" && break
2120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&5
2122 echo "$as_me: error: no acceptable C compiler found in \$PATH
2123 See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2126 # Provide some information about the compiler.
2127 echo "$as_me:$LINENO:" \
2128 "checking for C compiler version" >&5
2129 ac_compiler
=`set X $ac_compile; echo $2`
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2131 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2136 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2141 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2146 cat >conftest.
$ac_ext <<_ACEOF
2149 cat confdefs.h
>>conftest.
$ac_ext
2150 cat >>conftest.
$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2161 ac_clean_files_save
=$ac_clean_files
2162 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2163 # Try to create an executable without -o first, disregard a.out.
2164 # It will help us diagnose broken compilers, and finding out an intuition
2166 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2167 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2168 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2170 (eval $ac_link_default) 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 # Find the output, starting from the most likely. This scheme is
2175 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2178 # Be careful to initialize this variable, since it used to be cached.
2179 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2181 # b.out is created by i960 compilers.
2182 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2184 test -f "$ac_file" ||
continue
2186 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2189 # This is the source file.
2192 # We found the default executable, but exeext='' is most
2196 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197 # FIXME: I believe we export ac_cv_exeext for Libtool,
2198 # but it would be cool to find out if it's true. Does anybody
2199 # maintain Libtool? --akim.
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.
$ac_ext >&5
2210 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&2;}
2214 { (exit 77); exit 77; }; }
2217 ac_exeext
=$ac_cv_exeext
2218 echo "$as_me:$LINENO: result: $ac_file" >&5
2219 echo "${ECHO_T}$ac_file" >&6
2221 # Check the compiler produces executables we can run. If not, either
2222 # the compiler is broken, or we cross compile.
2223 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226 # If not cross compiling, check that we can run a simple program.
2227 if test "$cross_compiling" != yes; then
2228 if { ac_try
='./$ac_file'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2236 if test "$cross_compiling" = maybe
; then
2239 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&2;}
2245 { (exit 1); exit 1; }; }
2249 echo "$as_me:$LINENO: result: yes" >&5
2250 echo "${ECHO_T}yes" >&6
2252 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2253 ac_clean_files
=$ac_clean_files_save
2254 # Check the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2258 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259 echo "${ECHO_T}$cross_compiling" >&6
2261 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2264 (eval $ac_link) 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2270 # work properly (i.e., refer to `conftest.exe'), while it won't with
2272 for ac_file
in conftest.exe conftest conftest.
*; do
2273 test -f "$ac_file" ||
continue
2275 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2276 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2290 rm -f conftest
$ac_cv_exeext
2291 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6
2294 rm -f conftest.
$ac_ext
2295 EXEEXT
=$ac_cv_exeext
2297 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2299 if test "${ac_cv_objext+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 cat >conftest.
$ac_ext <<_ACEOF
2305 cat confdefs.h
>>conftest.
$ac_ext
2306 cat >>conftest.
$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2317 rm -f conftest.o conftest.obj
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2325 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2326 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.
$ac_ext >&5
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337 See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2341 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2343 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344 echo "${ECHO_T}$ac_cv_objext" >&6
2345 OBJEXT
=$ac_cv_objext
2347 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2349 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 cat >conftest.
$ac_ext <<_ACEOF
2355 cat confdefs.h
>>conftest.
$ac_ext
2356 cat >>conftest.
$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2370 rm -f conftest.
$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2374 grep -v '^ *+' conftest.er1
>conftest.err
2376 cat conftest.err
>&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try
='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try
='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.
$ac_ext >&5
2399 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2400 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2403 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2406 ac_test_CFLAGS
=${CFLAGS+set}
2407 ac_save_CFLAGS
=$CFLAGS
2409 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411 if test "${ac_cv_prog_cc_g+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 cat >conftest.
$ac_ext <<_ACEOF
2417 cat confdefs.h
>>conftest.
$ac_ext
2418 cat >>conftest.
$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2429 rm -f conftest.
$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1
>conftest.err
2435 cat conftest.err
>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try
='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try
='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.
$ac_ext >&5
2458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2460 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2461 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2462 if test "$ac_test_CFLAGS" = set; then
2463 CFLAGS
=$ac_save_CFLAGS
2464 elif test $ac_cv_prog_cc_g = yes; then
2465 if test "$GCC" = yes; then
2471 if test "$GCC" = yes; then
2477 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2478 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2479 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 ac_cv_prog_cc_stdc
=no
2484 cat >conftest.
$ac_ext <<_ACEOF
2487 cat confdefs.h
>>conftest.
$ac_ext
2488 cat >>conftest.
$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2492 #include <sys/types.h>
2493 #include <sys/stat.h>
2494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2495 struct buf { int x; };
2496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497 static char *e (p, i)
2503 static char *f (char * (*g) (char **, int), char **p, ...)
2508 s = g (p, va_arg (v,int));
2513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2514 function prototypes and stuff, but not '\xHH' hex character constants.
2515 These don't provoke an error unfortunately, instead are silently treated
2516 as 'x'. The following induces an error, until -std1 is added to get
2517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2518 array size at least. It's necessary to write '\x00'==0 to get something
2519 that's true only with -std1. */
2520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2522 int test (int i, double x);
2523 struct s1 {int (*f) (int a);};
2524 struct s2 {int (*f) (double a);};
2525 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2531 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2536 # Don't try gcc -ansi; that turns off useful extensions and
2537 # breaks some systems' header files.
2538 # AIX -qlanglvl=ansi
2539 # Ultrix and OSF/1 -std1
2540 # HP-UX 10.20 and later -Ae
2541 # HP-UX older versions -Aa -D_HPUX_SOURCE
2542 # SVR4 -Xc -D__EXTENSIONS__
2543 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2545 CC
="$ac_save_CC $ac_arg"
2546 rm -f conftest.
$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2550 grep -v '^ *+' conftest.er1
>conftest.err
2552 cat conftest.err
>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try
='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try
='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 ac_cv_prog_cc_stdc
=$ac_arg
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.
$ac_ext >&5
2575 rm -f conftest.err conftest.
$ac_objext
2577 rm -f conftest.
$ac_ext conftest.
$ac_objext
2582 case "x$ac_cv_prog_cc_stdc" in
2584 echo "$as_me:$LINENO: result: none needed" >&5
2585 echo "${ECHO_T}none needed" >&6 ;;
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2592 # Some people use a C++ compiler to compile C. Since we use `exit',
2593 # in C++ we need to declare it. In case someone uses the same compiler
2594 # for both compiling C and C++ we need to have the C++ compiler decide
2595 # the declaration of exit, since it's the most demanding environment.
2596 cat >conftest.
$ac_ext <<_ACEOF
2601 rm -f conftest.
$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2605 grep -v '^ *+' conftest.er1
>conftest.err
2607 cat conftest.err
>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try
='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try
='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 for ac_declaration
in \
2625 'extern "C" void std::exit (int) throw (); using std::exit;' \
2626 'extern "C" void std::exit (int); using std::exit;' \
2627 'extern "C" void exit (int) throw ();' \
2628 'extern "C" void exit (int);' \
2631 cat >conftest.
$ac_ext <<_ACEOF
2634 cat confdefs.h
>>conftest.
$ac_ext
2635 cat >>conftest.
$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2647 rm -f conftest.
$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1
>conftest.err
2653 cat conftest.err
>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try
='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try
='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.
$ac_ext >&5
2676 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2677 cat >conftest.
$ac_ext <<_ACEOF
2680 cat confdefs.h
>>conftest.
$ac_ext
2681 cat >>conftest.
$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.
$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1
>conftest.err
2698 cat conftest.err
>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try
='test -z "$ac_c_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try
='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.
$ac_ext >&5
2720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2723 if test -n "$ac_declaration"; then
2724 echo '#ifdef __cplusplus' >>confdefs.h
2725 echo $ac_declaration >>confdefs.h
2726 echo '#endif' >>confdefs.h
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.
$ac_ext >&5
2734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2736 ac_cpp
='$CPP $CPPFLAGS'
2737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2741 if test "x$CC" != xcc
; then
2742 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2743 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2745 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2746 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2748 set dummy
$CC; ac_cc
=`echo $2 |
2749 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2750 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 cat >conftest.
$ac_ext <<_ACEOF
2756 cat confdefs.h
>>conftest.
$ac_ext
2757 cat >>conftest.
$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2768 # Make sure it works both with $CC and with simple cc.
2769 # We do the test twice because some compilers refuse to overwrite an
2770 # existing .o file with -o, though they will create one.
2771 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2772 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); };
2783 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2784 if test "x$CC" != xcc
; then
2785 # Test first that cc exists at all.
2786 if { ac_try
='cc -c conftest.$ac_ext >&5'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; }; then
2792 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2793 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); };
2807 # cc exists but doesn't like -o.
2808 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2813 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2818 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2819 echo "$as_me:$LINENO: result: yes" >&5
2820 echo "${ECHO_T}yes" >&6
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2825 cat >>confdefs.h
<<\_ACEOF
2826 #define NO_MINUS_C_MINUS_O 1
2831 # expand $ac_aux_dir to an absolute path
2832 am_aux_dir
=`cd $ac_aux_dir && pwd`
2834 # FIXME: we rely on the cache variable name because
2835 # there is no other way.
2837 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2838 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2839 # Losing compiler, so override with the script.
2840 # FIXME: It is wrong to rewrite CC.
2841 # But if we don't then we get into trouble of one sort or another.
2842 # A longer-term fix would be to have automake use am__CC in this case,
2843 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2844 CC
="$am_aux_dir/compile $CC"
2847 # autoconf is lame and doesn't give us any substitution variable for this.
2848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2849 NO_MINUS_C_MINUS_O
=yes
2851 OUTPUT_OPTION
='-o $@'
2856 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2857 # optimizations to be activated explicitly by the toplevel.
2859 */prev-gcc
/xgcc
*) ;;
2860 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2864 # -------------------------
2865 # Check C compiler features
2866 # -------------------------
2869 ac_cpp
='$CPP $CPPFLAGS'
2870 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2873 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2875 # On Suns, sometimes $CPP names a directory.
2876 if test -n "$CPP" && test -d "$CPP"; then
2879 if test -z "$CPP"; then
2880 if test "${ac_cv_prog_CPP+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 # Double quotes because CPP needs to be expanded
2884 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2887 for ac_c_preproc_warn_flag
in '' yes
2889 # Use a header file that comes with gcc, so configuring glibc
2890 # with a fresh cross-compiler works.
2891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 # <limits.h> exists even on freestanding compilers.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp. "Syntax error" is here to catch this case.
2895 cat >conftest.
$ac_ext <<_ACEOF
2898 cat confdefs.h
>>conftest.
$ac_ext
2899 cat >>conftest.
$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2902 # include <limits.h>
2904 # include <assert.h>
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2911 grep -v '^ *+' conftest.er1
>conftest.err
2913 cat conftest.err
>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } >/dev
/null
; then
2916 if test -s conftest.err
; then
2917 ac_cpp_err
=$ac_c_preproc_warn_flag
2918 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2925 if test -z "$ac_cpp_err"; then
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.
$ac_ext >&5
2931 # Broken: fails on valid input.
2934 rm -f conftest.err conftest.
$ac_ext
2936 # OK, works on sane cases. Now check whether non-existent headers
2937 # can be detected and how.
2938 cat >conftest.
$ac_ext <<_ACEOF
2941 cat confdefs.h
>>conftest.
$ac_ext
2942 cat >>conftest.
$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2944 #include <ac_nonexistent.h>
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2949 grep -v '^ *+' conftest.er1
>conftest.err
2951 cat conftest.err
>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } >/dev
/null
; then
2954 if test -s conftest.err
; then
2955 ac_cpp_err
=$ac_c_preproc_warn_flag
2956 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2963 if test -z "$ac_cpp_err"; then
2964 # Broken: success on invalid input.
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.
$ac_ext >&5
2970 # Passes both tests.
2974 rm -f conftest.err conftest.
$ac_ext
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.
$ac_ext
2979 if $ac_preproc_ok; then
2991 echo "$as_me:$LINENO: result: $CPP" >&5
2992 echo "${ECHO_T}$CPP" >&6
2994 for ac_c_preproc_warn_flag
in '' yes
2996 # Use a header file that comes with gcc, so configuring glibc
2997 # with a fresh cross-compiler works.
2998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2999 # <limits.h> exists even on freestanding compilers.
3000 # On the NeXT, cc -E runs the code through the compiler's parser,
3001 # not just through cpp. "Syntax error" is here to catch this case.
3002 cat >conftest.
$ac_ext <<_ACEOF
3005 cat confdefs.h
>>conftest.
$ac_ext
3006 cat >>conftest.
$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3009 # include <limits.h>
3011 # include <assert.h>
3015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3018 grep -v '^ *+' conftest.er1
>conftest.err
3020 cat conftest.err
>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } >/dev
/null
; then
3023 if test -s conftest.err
; then
3024 ac_cpp_err
=$ac_c_preproc_warn_flag
3025 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3032 if test -z "$ac_cpp_err"; then
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.
$ac_ext >&5
3038 # Broken: fails on valid input.
3041 rm -f conftest.err conftest.
$ac_ext
3043 # OK, works on sane cases. Now check whether non-existent headers
3044 # can be detected and how.
3045 cat >conftest.
$ac_ext <<_ACEOF
3048 cat confdefs.h
>>conftest.
$ac_ext
3049 cat >>conftest.
$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051 #include <ac_nonexistent.h>
3053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3056 grep -v '^ *+' conftest.er1
>conftest.err
3058 cat conftest.err
>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } >/dev
/null
; then
3061 if test -s conftest.err
; then
3062 ac_cpp_err
=$ac_c_preproc_warn_flag
3063 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3070 if test -z "$ac_cpp_err"; then
3071 # Broken: success on invalid input.
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.
$ac_ext >&5
3077 # Passes both tests.
3081 rm -f conftest.err conftest.
$ac_ext
3084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3085 rm -f conftest.err conftest.
$ac_ext
3086 if $ac_preproc_ok; then
3089 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&5
3091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&2;}
3093 { (exit 1); exit 1; }; }
3097 ac_cpp
='$CPP $CPPFLAGS'
3098 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3103 echo "$as_me:$LINENO: checking for inline" >&5
3104 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3105 if test "${ac_cv_c_inline+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 for ac_kw
in inline __inline__ __inline
; do
3110 cat >conftest.
$ac_ext <<_ACEOF
3113 cat confdefs.h
>>conftest.
$ac_ext
3114 cat >>conftest.
$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3118 static $ac_kw foo_t static_foo () {return 0; }
3119 $ac_kw foo_t foo () {return 0; }
3123 rm -f conftest.
$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>conftest.er1
3127 grep -v '^ *+' conftest.er1
>conftest.err
3129 cat conftest.err
>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try
='test -z "$ac_c_werror_flag"
3133 || test ! -s conftest.err'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try
='test -s conftest.$ac_objext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 ac_cv_c_inline
=$ac_kw; break
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.
$ac_ext >&5
3151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3155 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3156 echo "${ECHO_T}$ac_cv_c_inline" >&6
3159 case $ac_cv_c_inline in
3162 case $ac_cv_c_inline in
3164 *) ac_val
=$ac_cv_c_inline;;
3166 cat >>confdefs.h
<<_ACEOF
3168 #define inline $ac_val
3175 # sizeof(char) is 1 by definition.
3177 echo "$as_me:$LINENO: checking for egrep" >&5
3178 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3179 if test "${ac_cv_prog_egrep+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3183 then ac_cv_prog_egrep
='grep -E'
3184 else ac_cv_prog_egrep
='egrep'
3187 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3188 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3189 EGREP
=$ac_cv_prog_egrep
3192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3194 if test "${ac_cv_header_stdc+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 cat >conftest.
$ac_ext <<_ACEOF
3200 cat confdefs.h
>>conftest.
$ac_ext
3201 cat >>conftest.
$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3216 rm -f conftest.
$ac_objext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3218 (eval $ac_compile) 2>conftest.er1
3220 grep -v '^ *+' conftest.er1
>conftest.err
3222 cat conftest.err
>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } &&
3225 { ac_try
='test -z "$ac_c_werror_flag"
3226 || test ! -s conftest.err'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; } &&
3232 { ac_try
='test -s conftest.$ac_objext'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; }; then
3238 ac_cv_header_stdc
=yes
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.
$ac_ext >&5
3243 ac_cv_header_stdc
=no
3245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3247 if test $ac_cv_header_stdc = yes; then
3248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3249 cat >conftest.
$ac_ext <<_ACEOF
3252 cat confdefs.h
>>conftest.
$ac_ext
3253 cat >>conftest.
$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3259 $EGREP "memchr" >/dev
/null
2>&1; then
3262 ac_cv_header_stdc
=no
3268 if test $ac_cv_header_stdc = yes; then
3269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3270 cat >conftest.
$ac_ext <<_ACEOF
3273 cat confdefs.h
>>conftest.
$ac_ext
3274 cat >>conftest.
$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3280 $EGREP "free" >/dev
/null
2>&1; then
3283 ac_cv_header_stdc
=no
3289 if test $ac_cv_header_stdc = yes; then
3290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3291 if test "$cross_compiling" = yes; then
3294 cat >conftest.
$ac_ext <<_ACEOF
3297 cat confdefs.h
>>conftest.
$ac_ext
3298 cat >>conftest.
$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3301 #if ((' ' & 0x0FF) == 0x020)
3302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3305 # define ISLOWER(c) \
3306 (('a' <= (c) && (c) <= 'i') \
3307 || ('j' <= (c) && (c) <= 'r') \
3308 || ('s' <= (c) && (c) <= 'z'))
3309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3317 for (i = 0; i < 256; i++)
3318 if (XOR (islower (i), ISLOWER (i))
3319 || toupper (i) != TOUPPER (i))
3324 rm -f conftest
$ac_exeext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3326 (eval $ac_link) 2>&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3337 echo "$as_me: program exited with status $ac_status" >&5
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.
$ac_ext >&5
3342 ac_cv_header_stdc
=no
3344 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3350 if test $ac_cv_header_stdc = yes; then
3352 cat >>confdefs.h
<<\_ACEOF
3353 #define STDC_HEADERS 1
3358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3368 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3369 inttypes.h stdint.h unistd.h
3371 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3372 echo "$as_me:$LINENO: checking for $ac_header" >&5
3373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 cat >conftest.
$ac_ext <<_ACEOF
3380 cat confdefs.h
>>conftest.
$ac_ext
3381 cat >>conftest.
$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 $ac_includes_default
3385 #include <$ac_header>
3387 rm -f conftest.
$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389 (eval $ac_compile) 2>conftest.er1
3391 grep -v '^ *+' conftest.er1
>conftest.err
3393 cat conftest.err
>&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try
='test -z "$ac_c_werror_flag"
3397 || test ! -s conftest.err'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; } &&
3403 { ac_try
='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 eval "$as_ac_Header=yes"
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.
$ac_ext >&5
3414 eval "$as_ac_Header=no"
3416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3421 cat >>confdefs.h
<<_ACEOF
3422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3430 echo "$as_me:$LINENO: checking for void *" >&5
3431 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3432 if test "${ac_cv_type_void_p+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 cat >conftest.
$ac_ext <<_ACEOF
3438 cat confdefs.h
>>conftest.
$ac_ext
3439 cat >>conftest.
$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 $ac_includes_default
3447 if (sizeof (void *))
3453 rm -f conftest.
$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1
>conftest.err
3459 cat conftest.err
>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try
='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try
='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_cv_type_void_p
=yes
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3480 ac_cv_type_void_p
=no
3482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3484 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3485 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3487 echo "$as_me:$LINENO: checking size of void *" >&5
3488 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3489 if test "${ac_cv_sizeof_void_p+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 if test "$ac_cv_type_void_p" = yes; then
3493 # The cast to unsigned long works around a bug in the HP C Compiler
3494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3496 # This bug is HP SR number 8606223364.
3497 if test "$cross_compiling" = yes; then
3498 # Depending upon the size, compute the lo and hi bounds.
3499 cat >conftest.
$ac_ext <<_ACEOF
3502 cat confdefs.h
>>conftest.
$ac_ext
3503 cat >>conftest.
$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 $ac_includes_default
3509 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3516 rm -f conftest.
$ac_objext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>conftest.er1
3520 grep -v '^ *+' conftest.er1
>conftest.err
3522 cat conftest.err
>&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try
='test -z "$ac_c_werror_flag"
3526 || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try
='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3540 cat >conftest.
$ac_ext <<_ACEOF
3543 cat confdefs.h
>>conftest.
$ac_ext
3544 cat >>conftest.
$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 $ac_includes_default
3550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3557 rm -f conftest.
$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3561 grep -v '^ *+' conftest.er1
>conftest.err
3563 cat conftest.err
>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try
='test -z "$ac_c_werror_flag"
3567 || test ! -s conftest.err'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; } &&
3573 { ac_try
='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 ac_hi
=$ac_mid; break
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.
$ac_ext >&5
3584 ac_lo
=`expr $ac_mid + 1`
3585 if test $ac_lo -le $ac_mid; then
3589 ac_mid
=`expr 2 '*' $ac_mid + 1`
3591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.
$ac_ext >&5
3597 cat >conftest.
$ac_ext <<_ACEOF
3600 cat confdefs.h
>>conftest.
$ac_ext
3601 cat >>conftest.
$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 $ac_includes_default
3607 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3614 rm -f conftest.
$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3618 grep -v '^ *+' conftest.er1
>conftest.err
3620 cat conftest.err
>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try
='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try
='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3638 cat >conftest.
$ac_ext <<_ACEOF
3641 cat confdefs.h
>>conftest.
$ac_ext
3642 cat >>conftest.
$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_includes_default
3648 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3655 rm -f conftest.
$ac_objext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3659 grep -v '^ *+' conftest.er1
>conftest.err
3661 cat conftest.err
>&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try
='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try
='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_lo
=$ac_mid; break
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.
$ac_ext >&5
3682 ac_hi
=`expr '(' $ac_mid ')' - 1`
3683 if test $ac_mid -le $ac_hi; then
3687 ac_mid
=`expr 2 '*' $ac_mid`
3689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.
$ac_ext >&5
3697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3700 # Binary search between lo and hi bounds.
3701 while test "x$ac_lo" != "x$ac_hi"; do
3702 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3703 cat >conftest.
$ac_ext <<_ACEOF
3706 cat confdefs.h
>>conftest.
$ac_ext
3707 cat >>conftest.
$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 $ac_includes_default
3713 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3720 rm -f conftest.
$ac_objext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>conftest.er1
3724 grep -v '^ *+' conftest.er1
>conftest.err
3726 cat conftest.err
>&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try
='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try
='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.
$ac_ext >&5
3747 ac_lo
=`expr '(' $ac_mid ')' + 1`
3749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3752 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3753 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3754 See \`config.log' for more details." >&5
3755 echo "$as_me: error: cannot compute sizeof (void *), 77
3756 See \`config.log' for more details." >&2;}
3757 { (exit 1); exit 1; }; } ;;
3760 if test "$cross_compiling" = yes; then
3761 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3762 See \`config.log' for more details." >&5
3763 echo "$as_me: error: cannot run test program while cross compiling
3764 See \`config.log' for more details." >&2;}
3765 { (exit 1); exit 1; }; }
3767 cat >conftest.
$ac_ext <<_ACEOF
3770 cat confdefs.h
>>conftest.
$ac_ext
3771 cat >>conftest.
$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 $ac_includes_default
3774 long longval () { return (long) (sizeof (void *)); }
3775 unsigned long ulongval () { return (long) (sizeof (void *)); }
3782 FILE *f = fopen ("conftest.val", "w");
3785 if (((long) (sizeof (void *))) < 0)
3787 long i = longval ();
3788 if (i != ((long) (sizeof (void *))))
3790 fprintf (f, "%ld\n", i);
3794 unsigned long i = ulongval ();
3795 if (i != ((long) (sizeof (void *))))
3797 fprintf (f, "%lu\n", i);
3799 exit (ferror (f) || fclose (f) != 0);
3805 rm -f conftest
$ac_exeext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807 (eval $ac_link) 2>&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_cv_sizeof_void_p
=`cat conftest.val`
3818 echo "$as_me: program exited with status $ac_status" >&5
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.
$ac_ext >&5
3823 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3824 See \`config.log' for more details." >&5
3825 echo "$as_me: error: cannot compute sizeof (void *), 77
3826 See \`config.log' for more details." >&2;}
3827 { (exit 1); exit 1; }; }
3829 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3834 ac_cv_sizeof_void_p
=0
3837 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3838 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3839 cat >>confdefs.h
<<_ACEOF
3840 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3844 echo "$as_me:$LINENO: checking for short" >&5
3845 echo $ECHO_N "checking for short... $ECHO_C" >&6
3846 if test "${ac_cv_type_short+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 cat >conftest.
$ac_ext <<_ACEOF
3852 cat confdefs.h
>>conftest.
$ac_ext
3853 cat >>conftest.
$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 $ac_includes_default
3867 rm -f conftest.
$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>conftest.er1
3871 grep -v '^ *+' conftest.er1
>conftest.err
3873 cat conftest.err
>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try
='test -z "$ac_c_werror_flag"
3877 || test ! -s conftest.err'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; } &&
3883 { ac_try
='test -s conftest.$ac_objext'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; }; then
3889 ac_cv_type_short
=yes
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.
$ac_ext >&5
3896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3898 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3899 echo "${ECHO_T}$ac_cv_type_short" >&6
3901 echo "$as_me:$LINENO: checking size of short" >&5
3902 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3903 if test "${ac_cv_sizeof_short+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 if test "$ac_cv_type_short" = yes; then
3907 # The cast to unsigned long works around a bug in the HP C Compiler
3908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3910 # This bug is HP SR number 8606223364.
3911 if test "$cross_compiling" = yes; then
3912 # Depending upon the size, compute the lo and hi bounds.
3913 cat >conftest.
$ac_ext <<_ACEOF
3916 cat confdefs.h
>>conftest.
$ac_ext
3917 cat >>conftest.
$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 $ac_includes_default
3923 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3930 rm -f conftest.
$ac_objext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3932 (eval $ac_compile) 2>conftest.er1
3934 grep -v '^ *+' conftest.er1
>conftest.err
3936 cat conftest.err
>&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } &&
3939 { ac_try
='test -z "$ac_c_werror_flag"
3940 || test ! -s conftest.err'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; } &&
3946 { ac_try
='test -s conftest.$ac_objext'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3954 cat >conftest.
$ac_ext <<_ACEOF
3957 cat confdefs.h
>>conftest.
$ac_ext
3958 cat >>conftest.
$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960 $ac_includes_default
3964 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3971 rm -f conftest.
$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>conftest.er1
3975 grep -v '^ *+' conftest.er1
>conftest.err
3977 cat conftest.err
>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } &&
3980 { ac_try
='test -z "$ac_c_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try
='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_hi
=$ac_mid; break
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.
$ac_ext >&5
3998 ac_lo
=`expr $ac_mid + 1`
3999 if test $ac_lo -le $ac_mid; then
4003 ac_mid
=`expr 2 '*' $ac_mid + 1`
4005 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.
$ac_ext >&5
4011 cat >conftest.
$ac_ext <<_ACEOF
4014 cat confdefs.h
>>conftest.
$ac_ext
4015 cat >>conftest.
$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 $ac_includes_default
4021 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4028 rm -f conftest.
$ac_objext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030 (eval $ac_compile) 2>conftest.er1
4032 grep -v '^ *+' conftest.er1
>conftest.err
4034 cat conftest.err
>&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try
='test -z "$ac_c_werror_flag"
4038 || test ! -s conftest.err'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; } &&
4044 { ac_try
='test -s conftest.$ac_objext'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 $ac_includes_default
4062 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4069 rm -f conftest.
$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4073 grep -v '^ *+' conftest.er1
>conftest.err
4075 cat conftest.err
>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try
='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try
='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_lo
=$ac_mid; break
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.
$ac_ext >&5
4096 ac_hi
=`expr '(' $ac_mid ')' - 1`
4097 if test $ac_mid -le $ac_hi; then
4101 ac_mid
=`expr 2 '*' $ac_mid`
4103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.
$ac_ext >&5
4111 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4114 # Binary search between lo and hi bounds.
4115 while test "x$ac_lo" != "x$ac_hi"; do
4116 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4117 cat >conftest.
$ac_ext <<_ACEOF
4120 cat confdefs.h
>>conftest.
$ac_ext
4121 cat >>conftest.
$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 $ac_includes_default
4127 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4134 rm -f conftest.
$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1
>conftest.err
4140 cat conftest.err
>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try
='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try
='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.
$ac_ext >&5
4161 ac_lo
=`expr '(' $ac_mid ')' + 1`
4163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4166 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4167 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4168 See \`config.log' for more details." >&5
4169 echo "$as_me: error: cannot compute sizeof (short), 77
4170 See \`config.log' for more details." >&2;}
4171 { (exit 1); exit 1; }; } ;;
4174 if test "$cross_compiling" = yes; then
4175 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4176 See \`config.log' for more details." >&5
4177 echo "$as_me: error: cannot run test program while cross compiling
4178 See \`config.log' for more details." >&2;}
4179 { (exit 1); exit 1; }; }
4181 cat >conftest.
$ac_ext <<_ACEOF
4184 cat confdefs.h
>>conftest.
$ac_ext
4185 cat >>conftest.
$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 $ac_includes_default
4188 long longval () { return (long) (sizeof (short)); }
4189 unsigned long ulongval () { return (long) (sizeof (short)); }
4196 FILE *f = fopen ("conftest.val", "w");
4199 if (((long) (sizeof (short))) < 0)
4201 long i = longval ();
4202 if (i != ((long) (sizeof (short))))
4204 fprintf (f, "%ld\n", i);
4208 unsigned long i = ulongval ();
4209 if (i != ((long) (sizeof (short))))
4211 fprintf (f, "%lu\n", i);
4213 exit (ferror (f) || fclose (f) != 0);
4219 rm -f conftest
$ac_exeext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221 (eval $ac_link) 2>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_cv_sizeof_short
=`cat conftest.val`
4232 echo "$as_me: program exited with status $ac_status" >&5
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.
$ac_ext >&5
4237 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4238 See \`config.log' for more details." >&5
4239 echo "$as_me: error: cannot compute sizeof (short), 77
4240 See \`config.log' for more details." >&2;}
4241 { (exit 1); exit 1; }; }
4243 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4248 ac_cv_sizeof_short
=0
4251 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4252 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4253 cat >>confdefs.h
<<_ACEOF
4254 #define SIZEOF_SHORT $ac_cv_sizeof_short
4258 echo "$as_me:$LINENO: checking for int" >&5
4259 echo $ECHO_N "checking for int... $ECHO_C" >&6
4260 if test "${ac_cv_type_int+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 cat >conftest.
$ac_ext <<_ACEOF
4266 cat confdefs.h
>>conftest.
$ac_ext
4267 cat >>conftest.
$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 $ac_includes_default
4281 rm -f conftest.
$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>conftest.er1
4285 grep -v '^ *+' conftest.er1
>conftest.err
4287 cat conftest.err
>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try
='test -z "$ac_c_werror_flag"
4291 || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try
='test -s conftest.$ac_objext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.
$ac_ext >&5
4310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4312 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4313 echo "${ECHO_T}$ac_cv_type_int" >&6
4315 echo "$as_me:$LINENO: checking size of int" >&5
4316 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4317 if test "${ac_cv_sizeof_int+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 if test "$ac_cv_type_int" = yes; then
4321 # The cast to unsigned long works around a bug in the HP C Compiler
4322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4324 # This bug is HP SR number 8606223364.
4325 if test "$cross_compiling" = yes; then
4326 # Depending upon the size, compute the lo and hi bounds.
4327 cat >conftest.
$ac_ext <<_ACEOF
4330 cat confdefs.h
>>conftest.
$ac_ext
4331 cat >>conftest.
$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4337 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4344 rm -f conftest.
$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>conftest.er1
4348 grep -v '^ *+' conftest.er1
>conftest.err
4350 cat conftest.err
>&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try
='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try
='test -s conftest.$ac_objext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4368 cat >conftest.
$ac_ext <<_ACEOF
4371 cat confdefs.h
>>conftest.
$ac_ext
4372 cat >>conftest.
$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 $ac_includes_default
4378 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4385 rm -f conftest.
$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>conftest.er1
4389 grep -v '^ *+' conftest.er1
>conftest.err
4391 cat conftest.err
>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try
='test -z "$ac_c_werror_flag"
4395 || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try
='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_hi
=$ac_mid; break
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.
$ac_ext >&5
4412 ac_lo
=`expr $ac_mid + 1`
4413 if test $ac_lo -le $ac_mid; then
4417 ac_mid
=`expr 2 '*' $ac_mid + 1`
4419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.
$ac_ext >&5
4425 cat >conftest.
$ac_ext <<_ACEOF
4428 cat confdefs.h
>>conftest.
$ac_ext
4429 cat >>conftest.
$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 $ac_includes_default
4435 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4442 rm -f conftest.
$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4446 grep -v '^ *+' conftest.er1
>conftest.err
4448 cat conftest.err
>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try
='test -z "$ac_c_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try
='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4466 cat >conftest.
$ac_ext <<_ACEOF
4469 cat confdefs.h
>>conftest.
$ac_ext
4470 cat >>conftest.
$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 $ac_includes_default
4476 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4483 rm -f conftest.
$ac_objext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485 (eval $ac_compile) 2>conftest.er1
4487 grep -v '^ *+' conftest.er1
>conftest.err
4489 cat conftest.err
>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try
='test -z "$ac_c_werror_flag"
4493 || test ! -s conftest.err'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; } &&
4499 { ac_try
='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_lo
=$ac_mid; break
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.
$ac_ext >&5
4510 ac_hi
=`expr '(' $ac_mid ')' - 1`
4511 if test $ac_mid -le $ac_hi; then
4515 ac_mid
=`expr 2 '*' $ac_mid`
4517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.
$ac_ext >&5
4525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4528 # Binary search between lo and hi bounds.
4529 while test "x$ac_lo" != "x$ac_hi"; do
4530 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4531 cat >conftest.
$ac_ext <<_ACEOF
4534 cat confdefs.h
>>conftest.
$ac_ext
4535 cat >>conftest.
$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4541 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4548 rm -f conftest.
$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1
>conftest.err
4554 cat conftest.err
>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try
='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try
='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.
$ac_ext >&5
4575 ac_lo
=`expr '(' $ac_mid ')' + 1`
4577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4580 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4581 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4582 See \`config.log' for more details." >&5
4583 echo "$as_me: error: cannot compute sizeof (int), 77
4584 See \`config.log' for more details." >&2;}
4585 { (exit 1); exit 1; }; } ;;
4588 if test "$cross_compiling" = yes; then
4589 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4590 See \`config.log' for more details." >&5
4591 echo "$as_me: error: cannot run test program while cross compiling
4592 See \`config.log' for more details." >&2;}
4593 { (exit 1); exit 1; }; }
4595 cat >conftest.
$ac_ext <<_ACEOF
4598 cat confdefs.h
>>conftest.
$ac_ext
4599 cat >>conftest.
$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4602 long longval () { return (long) (sizeof (int)); }
4603 unsigned long ulongval () { return (long) (sizeof (int)); }
4610 FILE *f = fopen ("conftest.val", "w");
4613 if (((long) (sizeof (int))) < 0)
4615 long i = longval ();
4616 if (i != ((long) (sizeof (int))))
4618 fprintf (f, "%ld\n", i);
4622 unsigned long i = ulongval ();
4623 if (i != ((long) (sizeof (int))))
4625 fprintf (f, "%lu\n", i);
4627 exit (ferror (f) || fclose (f) != 0);
4633 rm -f conftest
$ac_exeext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4635 (eval $ac_link) 2>&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_cv_sizeof_int
=`cat conftest.val`
4646 echo "$as_me: program exited with status $ac_status" >&5
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.
$ac_ext >&5
4651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4652 See \`config.log' for more details." >&5
4653 echo "$as_me: error: cannot compute sizeof (int), 77
4654 See \`config.log' for more details." >&2;}
4655 { (exit 1); exit 1; }; }
4657 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4665 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4666 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4667 cat >>confdefs.h
<<_ACEOF
4668 #define SIZEOF_INT $ac_cv_sizeof_int
4672 echo "$as_me:$LINENO: checking for long" >&5
4673 echo $ECHO_N "checking for long... $ECHO_C" >&6
4674 if test "${ac_cv_type_long+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 cat >conftest.
$ac_ext <<_ACEOF
4680 cat confdefs.h
>>conftest.
$ac_ext
4681 cat >>conftest.
$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 $ac_includes_default
4695 rm -f conftest.
$ac_objext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1
>conftest.err
4701 cat conftest.err
>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try
='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try
='test -s conftest.$ac_objext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.
$ac_ext >&5
4724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4726 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4727 echo "${ECHO_T}$ac_cv_type_long" >&6
4729 echo "$as_me:$LINENO: checking size of long" >&5
4730 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4731 if test "${ac_cv_sizeof_long+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 if test "$ac_cv_type_long" = yes; then
4735 # The cast to unsigned long works around a bug in the HP C Compiler
4736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4738 # This bug is HP SR number 8606223364.
4739 if test "$cross_compiling" = yes; then
4740 # Depending upon the size, compute the lo and hi bounds.
4741 cat >conftest.
$ac_ext <<_ACEOF
4744 cat confdefs.h
>>conftest.
$ac_ext
4745 cat >>conftest.
$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 $ac_includes_default
4751 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4758 rm -f conftest.
$ac_objext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760 (eval $ac_compile) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1
>conftest.err
4764 cat conftest.err
>&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try
='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try
='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4782 cat >conftest.
$ac_ext <<_ACEOF
4785 cat confdefs.h
>>conftest.
$ac_ext
4786 cat >>conftest.
$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788 $ac_includes_default
4792 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4799 rm -f conftest.
$ac_objext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801 (eval $ac_compile) 2>conftest.er1
4803 grep -v '^ *+' conftest.er1
>conftest.err
4805 cat conftest.err
>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try
='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try
='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_hi
=$ac_mid; break
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.
$ac_ext >&5
4826 ac_lo
=`expr $ac_mid + 1`
4827 if test $ac_lo -le $ac_mid; then
4831 ac_mid
=`expr 2 '*' $ac_mid + 1`
4833 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.
$ac_ext >&5
4839 cat >conftest.
$ac_ext <<_ACEOF
4842 cat confdefs.h
>>conftest.
$ac_ext
4843 cat >>conftest.
$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 $ac_includes_default
4849 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4856 rm -f conftest.
$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4860 grep -v '^ *+' conftest.er1
>conftest.err
4862 cat conftest.err
>&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try
='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try
='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4880 cat >conftest.
$ac_ext <<_ACEOF
4883 cat confdefs.h
>>conftest.
$ac_ext
4884 cat >>conftest.
$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 $ac_includes_default
4890 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4897 rm -f conftest.
$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4901 grep -v '^ *+' conftest.er1
>conftest.err
4903 cat conftest.err
>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try
='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try
='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_lo
=$ac_mid; break
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.
$ac_ext >&5
4924 ac_hi
=`expr '(' $ac_mid ')' - 1`
4925 if test $ac_mid -le $ac_hi; then
4929 ac_mid
=`expr 2 '*' $ac_mid`
4931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.
$ac_ext >&5
4939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4942 # Binary search between lo and hi bounds.
4943 while test "x$ac_lo" != "x$ac_hi"; do
4944 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4945 cat >conftest.
$ac_ext <<_ACEOF
4948 cat confdefs.h
>>conftest.
$ac_ext
4949 cat >>conftest.
$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 $ac_includes_default
4955 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4962 rm -f conftest.
$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1
>conftest.err
4968 cat conftest.err
>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try
='test -z "$ac_c_werror_flag"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try
='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.
$ac_ext >&5
4989 ac_lo
=`expr '(' $ac_mid ')' + 1`
4991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4994 ?
*) ac_cv_sizeof_long
=$ac_lo;;
4995 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4996 See \`config.log' for more details." >&5
4997 echo "$as_me: error: cannot compute sizeof (long), 77
4998 See \`config.log' for more details." >&2;}
4999 { (exit 1); exit 1; }; } ;;
5002 if test "$cross_compiling" = yes; then
5003 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5004 See \`config.log' for more details." >&5
5005 echo "$as_me: error: cannot run test program while cross compiling
5006 See \`config.log' for more details." >&2;}
5007 { (exit 1); exit 1; }; }
5009 cat >conftest.
$ac_ext <<_ACEOF
5012 cat confdefs.h
>>conftest.
$ac_ext
5013 cat >>conftest.
$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 $ac_includes_default
5016 long longval () { return (long) (sizeof (long)); }
5017 unsigned long ulongval () { return (long) (sizeof (long)); }
5024 FILE *f = fopen ("conftest.val", "w");
5027 if (((long) (sizeof (long))) < 0)
5029 long i = longval ();
5030 if (i != ((long) (sizeof (long))))
5032 fprintf (f, "%ld\n", i);
5036 unsigned long i = ulongval ();
5037 if (i != ((long) (sizeof (long))))
5039 fprintf (f, "%lu\n", i);
5041 exit (ferror (f) || fclose (f) != 0);
5047 rm -f conftest
$ac_exeext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049 (eval $ac_link) 2>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_cv_sizeof_long
=`cat conftest.val`
5060 echo "$as_me: program exited with status $ac_status" >&5
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.
$ac_ext >&5
5065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5066 See \`config.log' for more details." >&5
5067 echo "$as_me: error: cannot compute sizeof (long), 77
5068 See \`config.log' for more details." >&2;}
5069 { (exit 1); exit 1; }; }
5071 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5079 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5080 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5081 cat >>confdefs.h
<<_ACEOF
5082 #define SIZEOF_LONG $ac_cv_sizeof_long
5086 echo "$as_me:$LINENO: checking for long long" >&5
5087 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5088 if test "${ac_cv_type_long_long+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 cat >conftest.
$ac_ext <<_ACEOF
5094 cat confdefs.h
>>conftest.
$ac_ext
5095 cat >>conftest.
$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5101 if ((long long *) 0)
5103 if (sizeof (long long))
5109 rm -f conftest.
$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111 (eval $ac_compile) 2>conftest.er1
5113 grep -v '^ *+' conftest.er1
>conftest.err
5115 cat conftest.err
>&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try
='test -z "$ac_c_werror_flag"
5119 || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try
='test -s conftest.$ac_objext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 ac_cv_type_long_long
=yes
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.
$ac_ext >&5
5136 ac_cv_type_long_long
=no
5138 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5140 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5141 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5142 if test $ac_cv_type_long_long = yes; then
5144 cat >>confdefs.h
<<_ACEOF
5145 #define HAVE_LONG_LONG 1
5148 echo "$as_me:$LINENO: checking for long long" >&5
5149 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5150 if test "${ac_cv_type_long_long+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 cat >conftest.
$ac_ext <<_ACEOF
5156 cat confdefs.h
>>conftest.
$ac_ext
5157 cat >>conftest.
$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 $ac_includes_default
5163 if ((long long *) 0)
5165 if (sizeof (long long))
5171 rm -f conftest.
$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>conftest.er1
5175 grep -v '^ *+' conftest.er1
>conftest.err
5177 cat conftest.err
>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try
='test -z "$ac_c_werror_flag"
5181 || test ! -s conftest.err'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; } &&
5187 { ac_try
='test -s conftest.$ac_objext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 ac_cv_type_long_long
=yes
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.
$ac_ext >&5
5198 ac_cv_type_long_long
=no
5200 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5202 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5203 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5205 echo "$as_me:$LINENO: checking size of long long" >&5
5206 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5207 if test "${ac_cv_sizeof_long_long+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 if test "$ac_cv_type_long_long" = yes; then
5211 # The cast to unsigned long works around a bug in the HP C Compiler
5212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5214 # This bug is HP SR number 8606223364.
5215 if test "$cross_compiling" = yes; then
5216 # Depending upon the size, compute the lo and hi bounds.
5217 cat >conftest.
$ac_ext <<_ACEOF
5220 cat confdefs.h
>>conftest.
$ac_ext
5221 cat >>conftest.
$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 $ac_includes_default
5227 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5234 rm -f conftest.
$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>conftest.er1
5238 grep -v '^ *+' conftest.er1
>conftest.err
5240 cat conftest.err
>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try
='test -z "$ac_c_werror_flag"
5244 || test ! -s conftest.err'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try
='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5258 cat >conftest.
$ac_ext <<_ACEOF
5261 cat confdefs.h
>>conftest.
$ac_ext
5262 cat >>conftest.
$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 $ac_includes_default
5268 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5275 rm -f conftest.
$ac_objext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5277 (eval $ac_compile) 2>conftest.er1
5279 grep -v '^ *+' conftest.er1
>conftest.err
5281 cat conftest.err
>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try
='test -z "$ac_c_werror_flag"
5285 || test ! -s conftest.err'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; } &&
5291 { ac_try
='test -s conftest.$ac_objext'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5297 ac_hi
=$ac_mid; break
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.
$ac_ext >&5
5302 ac_lo
=`expr $ac_mid + 1`
5303 if test $ac_lo -le $ac_mid; then
5307 ac_mid
=`expr 2 '*' $ac_mid + 1`
5309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.
$ac_ext >&5
5315 cat >conftest.
$ac_ext <<_ACEOF
5318 cat confdefs.h
>>conftest.
$ac_ext
5319 cat >>conftest.
$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5325 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5332 rm -f conftest.
$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>conftest.er1
5336 grep -v '^ *+' conftest.er1
>conftest.err
5338 cat conftest.err
>&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try
='test -z "$ac_c_werror_flag"
5342 || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try
='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5356 cat >conftest.
$ac_ext <<_ACEOF
5359 cat confdefs.h
>>conftest.
$ac_ext
5360 cat >>conftest.
$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 $ac_includes_default
5366 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5373 rm -f conftest.
$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>conftest.er1
5377 grep -v '^ *+' conftest.er1
>conftest.err
5379 cat conftest.err
>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try
='test -z "$ac_c_werror_flag"
5383 || test ! -s conftest.err'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; } &&
5389 { ac_try
='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 ac_lo
=$ac_mid; break
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.
$ac_ext >&5
5400 ac_hi
=`expr '(' $ac_mid ')' - 1`
5401 if test $ac_mid -le $ac_hi; then
5405 ac_mid
=`expr 2 '*' $ac_mid`
5407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.
$ac_ext >&5
5415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5418 # Binary search between lo and hi bounds.
5419 while test "x$ac_lo" != "x$ac_hi"; do
5420 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5421 cat >conftest.
$ac_ext <<_ACEOF
5424 cat confdefs.h
>>conftest.
$ac_ext
5425 cat >>conftest.
$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 $ac_includes_default
5431 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5438 rm -f conftest.
$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5442 grep -v '^ *+' conftest.er1
>conftest.err
5444 cat conftest.err
>&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try
='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try
='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.
$ac_ext >&5
5465 ac_lo
=`expr '(' $ac_mid ')' + 1`
5467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5470 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5471 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5472 See \`config.log' for more details." >&5
5473 echo "$as_me: error: cannot compute sizeof (long long), 77
5474 See \`config.log' for more details." >&2;}
5475 { (exit 1); exit 1; }; } ;;
5478 if test "$cross_compiling" = yes; then
5479 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5480 See \`config.log' for more details." >&5
5481 echo "$as_me: error: cannot run test program while cross compiling
5482 See \`config.log' for more details." >&2;}
5483 { (exit 1); exit 1; }; }
5485 cat >conftest.
$ac_ext <<_ACEOF
5488 cat confdefs.h
>>conftest.
$ac_ext
5489 cat >>conftest.
$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5492 long longval () { return (long) (sizeof (long long)); }
5493 unsigned long ulongval () { return (long) (sizeof (long long)); }
5500 FILE *f = fopen ("conftest.val", "w");
5503 if (((long) (sizeof (long long))) < 0)
5505 long i = longval ();
5506 if (i != ((long) (sizeof (long long))))
5508 fprintf (f, "%ld\n", i);
5512 unsigned long i = ulongval ();
5513 if (i != ((long) (sizeof (long long))))
5515 fprintf (f, "%lu\n", i);
5517 exit (ferror (f) || fclose (f) != 0);
5523 rm -f conftest
$ac_exeext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5525 (eval $ac_link) 2>&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_sizeof_long_long
=`cat conftest.val`
5536 echo "$as_me: program exited with status $ac_status" >&5
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.
$ac_ext >&5
5541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5542 See \`config.log' for more details." >&5
5543 echo "$as_me: error: cannot compute sizeof (long long), 77
5544 See \`config.log' for more details." >&2;}
5545 { (exit 1); exit 1; }; }
5547 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5552 ac_cv_sizeof_long_long
=0
5555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5556 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5557 cat >>confdefs.h
<<_ACEOF
5558 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5564 echo "$as_me:$LINENO: checking for __int64" >&5
5565 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5566 if test "${ac_cv_type___int64+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 cat >conftest.
$ac_ext <<_ACEOF
5572 cat confdefs.h
>>conftest.
$ac_ext
5573 cat >>conftest.
$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 $ac_includes_default
5581 if (sizeof (__int64))
5587 rm -f conftest.
$ac_objext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>conftest.er1
5591 grep -v '^ *+' conftest.er1
>conftest.err
5593 cat conftest.err
>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try
='test -z "$ac_c_werror_flag"
5597 || test ! -s conftest.err'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; } &&
5603 { ac_try
='test -s conftest.$ac_objext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_type___int64
=yes
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.
$ac_ext >&5
5614 ac_cv_type___int64
=no
5616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5618 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5619 echo "${ECHO_T}$ac_cv_type___int64" >&6
5620 if test $ac_cv_type___int64 = yes; then
5622 cat >>confdefs.h
<<_ACEOF
5623 #define HAVE___INT64 1
5626 echo "$as_me:$LINENO: checking for __int64" >&5
5627 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5628 if test "${ac_cv_type___int64+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.
$ac_ext <<_ACEOF
5634 cat confdefs.h
>>conftest.
$ac_ext
5635 cat >>conftest.
$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 $ac_includes_default
5643 if (sizeof (__int64))
5649 rm -f conftest.
$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>conftest.er1
5653 grep -v '^ *+' conftest.er1
>conftest.err
5655 cat conftest.err
>&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try
='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try
='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_type___int64
=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.
$ac_ext >&5
5676 ac_cv_type___int64
=no
5678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5680 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5681 echo "${ECHO_T}$ac_cv_type___int64" >&6
5683 echo "$as_me:$LINENO: checking size of __int64" >&5
5684 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5685 if test "${ac_cv_sizeof___int64+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 if test "$ac_cv_type___int64" = yes; then
5689 # The cast to unsigned long works around a bug in the HP C Compiler
5690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5692 # This bug is HP SR number 8606223364.
5693 if test "$cross_compiling" = yes; then
5694 # Depending upon the size, compute the lo and hi bounds.
5695 cat >conftest.
$ac_ext <<_ACEOF
5698 cat confdefs.h
>>conftest.
$ac_ext
5699 cat >>conftest.
$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5705 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5712 rm -f conftest.
$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>conftest.er1
5716 grep -v '^ *+' conftest.er1
>conftest.err
5718 cat conftest.err
>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try
='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try
='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5736 cat >conftest.
$ac_ext <<_ACEOF
5739 cat confdefs.h
>>conftest.
$ac_ext
5740 cat >>conftest.
$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 $ac_includes_default
5746 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5753 rm -f conftest.
$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5757 grep -v '^ *+' conftest.er1
>conftest.err
5759 cat conftest.err
>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try
='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try
='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_hi
=$ac_mid; break
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.
$ac_ext >&5
5780 ac_lo
=`expr $ac_mid + 1`
5781 if test $ac_lo -le $ac_mid; then
5785 ac_mid
=`expr 2 '*' $ac_mid + 1`
5787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.
$ac_ext >&5
5793 cat >conftest.
$ac_ext <<_ACEOF
5796 cat confdefs.h
>>conftest.
$ac_ext
5797 cat >>conftest.
$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 $ac_includes_default
5803 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5810 rm -f conftest.
$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>conftest.er1
5814 grep -v '^ *+' conftest.er1
>conftest.err
5816 cat conftest.err
>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try
='test -z "$ac_c_werror_flag"
5820 || test ! -s conftest.err'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try
='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5834 cat >conftest.
$ac_ext <<_ACEOF
5837 cat confdefs.h
>>conftest.
$ac_ext
5838 cat >>conftest.
$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 $ac_includes_default
5844 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5851 rm -f conftest.
$ac_objext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>conftest.er1
5855 grep -v '^ *+' conftest.er1
>conftest.err
5857 cat conftest.err
>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try
='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try
='test -s conftest.$ac_objext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 ac_lo
=$ac_mid; break
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.
$ac_ext >&5
5878 ac_hi
=`expr '(' $ac_mid ')' - 1`
5879 if test $ac_mid -le $ac_hi; then
5883 ac_mid
=`expr 2 '*' $ac_mid`
5885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.
$ac_ext >&5
5893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 # Binary search between lo and hi bounds.
5897 while test "x$ac_lo" != "x$ac_hi"; do
5898 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5899 cat >conftest.
$ac_ext <<_ACEOF
5902 cat confdefs.h
>>conftest.
$ac_ext
5903 cat >>conftest.
$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5909 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5916 rm -f conftest.
$ac_objext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>conftest.er1
5920 grep -v '^ *+' conftest.er1
>conftest.err
5922 cat conftest.err
>&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try
='test -z "$ac_c_werror_flag"
5926 || test ! -s conftest.err'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try
='test -s conftest.$ac_objext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.
$ac_ext >&5
5943 ac_lo
=`expr '(' $ac_mid ')' + 1`
5945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5948 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5949 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5950 See \`config.log' for more details." >&5
5951 echo "$as_me: error: cannot compute sizeof (__int64), 77
5952 See \`config.log' for more details." >&2;}
5953 { (exit 1); exit 1; }; } ;;
5956 if test "$cross_compiling" = yes; then
5957 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5958 See \`config.log' for more details." >&5
5959 echo "$as_me: error: cannot run test program while cross compiling
5960 See \`config.log' for more details." >&2;}
5961 { (exit 1); exit 1; }; }
5963 cat >conftest.
$ac_ext <<_ACEOF
5966 cat confdefs.h
>>conftest.
$ac_ext
5967 cat >>conftest.
$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 $ac_includes_default
5970 long longval () { return (long) (sizeof (__int64)); }
5971 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5978 FILE *f = fopen ("conftest.val", "w");
5981 if (((long) (sizeof (__int64))) < 0)
5983 long i = longval ();
5984 if (i != ((long) (sizeof (__int64))))
5986 fprintf (f, "%ld\n", i);
5990 unsigned long i = ulongval ();
5991 if (i != ((long) (sizeof (__int64))))
5993 fprintf (f, "%lu\n", i);
5995 exit (ferror (f) || fclose (f) != 0);
6001 rm -f conftest
$ac_exeext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6003 (eval $ac_link) 2>&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_sizeof___int64
=`cat conftest.val`
6014 echo "$as_me: program exited with status $ac_status" >&5
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.
$ac_ext >&5
6019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6020 See \`config.log' for more details." >&5
6021 echo "$as_me: error: cannot compute sizeof (__int64), 77
6022 See \`config.log' for more details." >&2;}
6023 { (exit 1); exit 1; }; }
6025 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6030 ac_cv_sizeof___int64
=0
6033 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6034 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6035 cat >>confdefs.h
<<_ACEOF
6036 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6043 # ---------------------
6044 # Warnings and checking
6045 # ---------------------
6047 # Check $CC warning features (if it's GCC).
6048 # We want to use -pedantic, but we don't want warnings about
6051 # * overlong strings
6052 # So, we only use -pedantic if we can disable those warnings.
6054 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6055 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6056 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 save_CFLAGS
="$CFLAGS"
6060 CFLAGS
="-Wno-long-long"
6061 cat >conftest.
$ac_ext <<_ACEOF
6064 cat confdefs.h
>>conftest.
$ac_ext
6065 cat >>conftest.
$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6069 rm -f conftest.
$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1
>conftest.err
6075 cat conftest.err
>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try
='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try
='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_prog_cc_w_no_long_long
=yes
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.
$ac_ext >&5
6096 ac_cv_prog_cc_w_no_long_long
=no
6098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6099 CFLAGS
="$save_CFLAGS"
6102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6103 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6105 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6106 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6107 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 save_CFLAGS
="$CFLAGS"
6111 CFLAGS
="-Wno-variadic-macros"
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6120 rm -f conftest.
$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
6124 grep -v '^ *+' conftest.er1
>conftest.err
6126 cat conftest.err
>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try
='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try
='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_prog_cc_w_no_variadic_macros
=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.
$ac_ext >&5
6147 ac_cv_prog_cc_w_no_variadic_macros
=no
6149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6150 CFLAGS
="$save_CFLAGS"
6153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6154 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6156 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6157 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6158 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 save_CFLAGS
="$CFLAGS"
6162 CFLAGS
="-Wno-overlength-strings"
6163 cat >conftest.
$ac_ext <<_ACEOF
6166 cat confdefs.h
>>conftest.
$ac_ext
6167 cat >>conftest.
$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6171 rm -f conftest.
$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>conftest.er1
6175 grep -v '^ *+' conftest.er1
>conftest.err
6177 cat conftest.err
>&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try
='test -z "$ac_c_werror_flag"
6181 || test ! -s conftest.err'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; } &&
6187 { ac_try
='test -s conftest.$ac_objext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_prog_cc_w_no_overlength_strings
=yes
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.
$ac_ext >&5
6198 ac_cv_prog_cc_w_no_overlength_strings
=no
6200 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6201 CFLAGS
="$save_CFLAGS"
6204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6205 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6208 if test $ac_cv_prog_cc_w_no_long_long = yes \
6209 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6210 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6211 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6214 # Add -Wold-style-definition if it's accepted
6215 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6216 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6217 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 save_CFLAGS
="$CFLAGS"
6221 CFLAGS
="-Wold-style-definition"
6222 cat >conftest.
$ac_ext <<_ACEOF
6225 cat confdefs.h
>>conftest.
$ac_ext
6226 cat >>conftest.
$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6230 rm -f conftest.
$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6234 grep -v '^ *+' conftest.er1
>conftest.err
6236 cat conftest.err
>&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try
='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try
='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_cv_prog_cc_w_old_style_definition
=yes
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.
$ac_ext >&5
6257 ac_cv_prog_cc_w_old_style_definition
=no
6259 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 CFLAGS
="$save_CFLAGS"
6263 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6264 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6265 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6266 strict1_warn
="${strict1_warn} -Wold-style-definition"
6269 # Add -Wmissing-format-attribute if it's accepted
6270 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6271 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6272 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 save_CFLAGS
="$CFLAGS"
6276 CFLAGS
="-Wmissing-format-attribute"
6277 cat >conftest.
$ac_ext <<_ACEOF
6280 cat confdefs.h
>>conftest.
$ac_ext
6281 cat >>conftest.
$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6285 rm -f conftest.
$ac_objext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6287 (eval $ac_compile) 2>conftest.er1
6289 grep -v '^ *+' conftest.er1
>conftest.err
6291 cat conftest.err
>&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try
='test -z "$ac_c_werror_flag"
6295 || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try
='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_prog_cc_w_missing_format_attribute
=yes
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.
$ac_ext >&5
6312 ac_cv_prog_cc_w_missing_format_attribute
=no
6314 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6315 CFLAGS
="$save_CFLAGS"
6318 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6319 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6320 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6321 strict1_warn
="${strict1_warn} -Wmissing-format-attribute"
6324 # Enable -Werror, period.
6325 # Check whether --enable-werror_always or --disable-werror_always was given.
6326 if test "${enable_werror_always+set}" = set; then
6327 enableval
="$enable_werror_always"
6330 enable_werror_always
=no
6332 if test x
${enable_werror_always} = xyes
; then
6333 strict1_warn
="${strict1_warn} -Werror"
6339 # Get C++ compatibility warning flag, if supported.
6340 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6341 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6342 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 save_CFLAGS
="$CFLAGS"
6346 CFLAGS
="-Wc++-compat"
6347 cat >conftest.
$ac_ext <<_ACEOF
6350 cat confdefs.h
>>conftest.
$ac_ext
6351 cat >>conftest.
$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6355 rm -f conftest.
$ac_objext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357 (eval $ac_compile) 2>conftest.er1
6359 grep -v '^ *+' conftest.er1
>conftest.err
6361 cat conftest.err
>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try
='test -z "$ac_c_werror_flag"
6365 || test ! -s conftest.err'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try
='test -s conftest.$ac_objext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 ac_cv_prog_cc_w_cxx_compat
=yes
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.
$ac_ext >&5
6382 ac_cv_prog_cc_w_cxx_compat
=no
6384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6385 CFLAGS
="$save_CFLAGS"
6388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6389 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6390 if test x
${ac_cv_prog_cc_w_cxx_compat} = xyes
; then
6391 cxx_compat_warn
="-Wc++-compat"
6396 # If the native compiler is GCC, we can enable warnings even in stage1.
6397 # That's useful for people building cross-compilers, or just running a
6400 if test "x$GCC" = "xyes"; then
6401 warn_cflags
='$(GCC_WARN_CFLAGS)'
6405 # Enable -Werror in bootstrap stage2 and later.
6407 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6410 # Check whether --enable-werror or --disable-werror was given.
6411 if test "${enable_werror+set}" = set; then
6412 enableval
="$enable_werror"
6415 if test x
$is_release = x
; then
6416 # Default to "yes" on development branches.
6419 # Default to "no" on release branches.
6423 if test x
$enable_werror = xyes
; then
6428 # Enable expensive internal checks
6429 # Check whether --enable-checking or --disable-checking was given.
6430 if test "${enable_checking+set}" = set; then
6431 enableval
="$enable_checking"
6432 ac_checking_flags
="${enableval}"
6435 # Determine the default checks.
6436 if test x
$is_release = x
; then
6437 ac_checking_flags
=yes
6439 ac_checking_flags
=release
6442 ac_assert_checking
=1
6446 ac_gc_always_collect
=
6448 ac_rtlflag_checking
=
6449 ac_runtime_checking
=1
6451 ac_valgrind_checking
=
6452 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6453 for check
in $ac_checking_flags
6456 # these set all the flags to specific states
6457 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6458 ac_fold_checking
= ; ac_gc_checking
=1 ;
6459 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6460 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6461 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6462 no|none
) ac_assert_checking
= ; ac_checking
= ;
6463 ac_fold_checking
= ; ac_gc_checking
= ;
6464 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6465 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6466 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6467 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6468 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6469 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6470 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6471 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6472 release
) ac_assert_checking
=1 ; ac_checking
= ;
6473 ac_fold_checking
= ; ac_gc_checking
= ;
6474 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6475 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6476 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6477 # these enable particular checks
6478 assert
) ac_assert_checking
=1 ;;
6479 fold) ac_fold_checking
=1 ;;
6480 gc
) ac_gc_checking
=1 ;;
6481 gcac
) ac_gc_always_collect
=1 ;;
6482 misc
) ac_checking
=1 ;;
6483 rtl
) ac_rtl_checking
=1 ;;
6484 rtlflag
) ac_rtlflag_checking
=1 ;;
6485 runtime
) ac_runtime_checking
=1 ;;
6486 tree
) ac_tree_checking
=1 ;;
6487 valgrind
) ac_valgrind_checking
=1 ;;
6488 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6489 echo "$as_me: error: unknown check category $check" >&2;}
6490 { (exit 1); exit 1; }; } ;;
6496 if test x
$ac_checking != x
; then
6498 cat >>confdefs.h
<<\_ACEOF
6499 #define ENABLE_CHECKING 1
6502 nocommon_flag
=-fno-common
6505 if test x
$ac_assert_checking != x
; then
6507 cat >>confdefs.h
<<\_ACEOF
6508 #define ENABLE_ASSERT_CHECKING 1
6513 if test x
$ac_runtime_checking != x
; then
6515 cat >>confdefs.h
<<\_ACEOF
6516 #define ENABLE_RUNTIME_CHECKING 1
6520 if test x
$ac_tree_checking != x
; then
6522 cat >>confdefs.h
<<\_ACEOF
6523 #define ENABLE_TREE_CHECKING 1
6526 TREEBROWSER
=tree-browser.o
6529 if test x
$ac_rtl_checking != x
; then
6531 cat >>confdefs.h
<<\_ACEOF
6532 #define ENABLE_RTL_CHECKING 1
6536 if test x
$ac_rtlflag_checking != x
; then
6538 cat >>confdefs.h
<<\_ACEOF
6539 #define ENABLE_RTL_FLAG_CHECKING 1
6543 if test x
$ac_gc_checking != x
; then
6545 cat >>confdefs.h
<<\_ACEOF
6546 #define ENABLE_GC_CHECKING 1
6550 if test x
$ac_gc_always_collect != x
; then
6552 cat >>confdefs.h
<<\_ACEOF
6553 #define ENABLE_GC_ALWAYS_COLLECT 1
6557 if test x
$ac_fold_checking != x
; then
6559 cat >>confdefs.h
<<\_ACEOF
6560 #define ENABLE_FOLD_CHECKING 1
6564 valgrind_path_defines
=
6567 if test "${ac_cv_header_valgrind_h+set}" = set; then
6568 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6569 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6570 if test "${ac_cv_header_valgrind_h+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6574 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6576 # Is the header compilable?
6577 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6578 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6579 cat >conftest.
$ac_ext <<_ACEOF
6582 cat confdefs.h
>>conftest.
$ac_ext
6583 cat >>conftest.
$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 $ac_includes_default
6586 #include <valgrind.h>
6588 rm -f conftest.
$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>conftest.er1
6592 grep -v '^ *+' conftest.er1
>conftest.err
6594 cat conftest.err
>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try
='test -z "$ac_c_werror_flag"
6598 || test ! -s conftest.err'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; } &&
6604 { ac_try
='test -s conftest.$ac_objext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_header_compiler
=yes
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.
$ac_ext >&5
6615 ac_header_compiler
=no
6617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619 echo "${ECHO_T}$ac_header_compiler" >&6
6621 # Is the header present?
6622 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6623 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6624 cat >conftest.
$ac_ext <<_ACEOF
6627 cat confdefs.h
>>conftest.
$ac_ext
6628 cat >>conftest.
$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <valgrind.h>
6632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6635 grep -v '^ *+' conftest.er1
>conftest.err
6637 cat conftest.err
>&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } >/dev
/null
; then
6640 if test -s conftest.err
; then
6641 ac_cpp_err
=$ac_c_preproc_warn_flag
6642 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6649 if test -z "$ac_cpp_err"; then
6650 ac_header_preproc
=yes
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.
$ac_ext >&5
6655 ac_header_preproc
=no
6657 rm -f conftest.err conftest.
$ac_ext
6658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6659 echo "${ECHO_T}$ac_header_preproc" >&6
6661 # So? What about this header?
6662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6664 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6665 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6667 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6668 ac_header_preproc
=yes
6671 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6672 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6674 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6676 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6678 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6680 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6682 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6685 ## ------------------------------------------ ##
6686 ## Report this to the AC_PACKAGE_NAME lists. ##
6687 ## ------------------------------------------ ##
6690 sed "s/^/$as_me: WARNING: /" >&2
6693 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6694 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6695 if test "${ac_cv_header_valgrind_h+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 ac_cv_header_valgrind_h
=$ac_header_preproc
6700 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6701 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6704 if test $ac_cv_header_valgrind_h = yes; then
6712 if test x
$ac_valgrind_checking != x
; then
6713 # It is certainly possible that there's valgrind but no valgrind.h.
6714 # GCC relies on making annotations so we must have both.
6715 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6716 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6717 cat >conftest.
$ac_ext <<_ACEOF
6720 cat confdefs.h
>>conftest.
$ac_ext
6721 cat >>conftest.
$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <valgrind/memcheck.h>
6724 #ifndef VALGRIND_DISCARD
6725 #error VALGRIND_DISCARD not defined
6728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6729 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6731 grep -v '^ *+' conftest.er1
>conftest.err
6733 cat conftest.err
>&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } >/dev
/null
; then
6736 if test -s conftest.err
; then
6737 ac_cpp_err
=$ac_c_preproc_warn_flag
6738 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6745 if test -z "$ac_cpp_err"; then
6746 gcc_cv_header_valgrind_memcheck_h
=yes
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.
$ac_ext >&5
6751 gcc_cv_header_valgrind_memcheck_h
=no
6753 rm -f conftest.err conftest.
$ac_ext
6754 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6755 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6756 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6757 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6758 cat >conftest.
$ac_ext <<_ACEOF
6761 cat confdefs.h
>>conftest.
$ac_ext
6762 cat >>conftest.
$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <memcheck.h>
6765 #ifndef VALGRIND_DISCARD
6766 #error VALGRIND_DISCARD not defined
6769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6770 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6772 grep -v '^ *+' conftest.er1
>conftest.err
6774 cat conftest.err
>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } >/dev
/null
; then
6777 if test -s conftest.err
; then
6778 ac_cpp_err
=$ac_c_preproc_warn_flag
6779 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6786 if test -z "$ac_cpp_err"; then
6787 gcc_cv_header_memcheck_h
=yes
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.
$ac_ext >&5
6792 gcc_cv_header_memcheck_h
=no
6794 rm -f conftest.err conftest.
$ac_ext
6795 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6796 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6798 # Prepare PATH_SEPARATOR.
6799 # The user is always right.
6800 if test "${PATH_SEPARATOR+set}" != set; then
6801 echo "#! /bin/sh" >conf$$.sh
6802 echo "exit 0" >>conf$$.sh
6804 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6812 # Find out how to test for executable files. Don't use a zero-byte file,
6813 # as systems may use methods other than mode bits to determine executability.
6814 cat >conf$$.
file <<_ASEOF
6818 chmod +x conf$$.
file
6819 if test -x conf$$.
file >/dev
/null
2>&1; then
6820 ac_executable_p
="test -x"
6822 ac_executable_p
="test -f"
6826 # Extract the first word of "valgrind", so it can be a program name with args.
6827 set dummy valgrind
; ac_word
=$2
6828 echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6830 if test "${ac_cv_path_valgrind_path+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 case "$valgrind_path" in
6835 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6838 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6839 for ac_dir
in $PATH; do
6841 test -z "$ac_dir" && ac_dir
=.
6842 for ac_exec_ext
in '' $ac_executable_extensions; do
6843 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6844 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6845 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6846 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6856 valgrind_path
="$ac_cv_path_valgrind_path"
6857 if test -n "$valgrind_path"; then
6858 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6859 echo "${ECHO_T}$valgrind_path" >&6
6861 echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6865 if test "x$valgrind_path" = "x" \
6866 ||
(test $have_valgrind_h = no \
6867 && test $gcc_cv_header_memcheck_h = no \
6868 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6869 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6870 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6871 { (exit 1); exit 1; }; }
6873 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6874 valgrind_command
="$valgrind_path -q"
6876 cat >>confdefs.h
<<\_ACEOF
6877 #define ENABLE_VALGRIND_CHECKING 1
6880 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6882 cat >>confdefs.h
<<\_ACEOF
6883 #define HAVE_VALGRIND_MEMCHECK_H 1
6887 if test $gcc_cv_header_memcheck_h = yes; then
6889 cat >>confdefs.h
<<\_ACEOF
6890 #define HAVE_MEMCHECK_H 1
6898 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6899 if test "${enable_mapped_location+set}" = set; then
6900 enableval
="$enable_mapped_location"
6903 enable_mapped_location
=no
6906 if test "$enable_mapped_location" = yes ; then
6908 cat >>confdefs.h
<<\_ACEOF
6909 #define USE_MAPPED_LOCATION 1
6914 # Enable code coverage collection
6915 # Check whether --enable-coverage or --disable-coverage was given.
6916 if test "${enable_coverage+set}" = set; then
6917 enableval
="$enable_coverage"
6918 case "${enableval}" in
6920 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6923 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6926 # a.k.a. --disable-coverage
6930 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6931 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6932 { (exit 1); exit 1; }; }
6940 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6941 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6942 enableval
="$enable_gather_detailed_mem_stats"
6945 enable_gather_detailed_mem_stats
=no
6947 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6949 cat >>confdefs.h
<<\_ACEOF
6950 #define GATHER_STATISTICS 1
6955 # -------------------------------
6956 # Miscenalleous configure options
6957 # -------------------------------
6961 # Check whether --with-stabs or --without-stabs was given.
6962 if test "${with_stabs+set}" = set; then
6963 withval
="$with_stabs"
6969 # Determine whether or not multilibs are enabled.
6970 # Check whether --enable-multilib or --disable-multilib was given.
6971 if test "${enable_multilib+set}" = set; then
6972 enableval
="$enable_multilib"
6979 # Enable __cxa_atexit for C++.
6980 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6981 if test "${enable___cxa_atexit+set}" = set; then
6982 enableval
="$enable___cxa_atexit"
6986 # Enable C extension for decimal float if target supports it.
6987 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6988 if test "${enable_decimal_float+set}" = set; then
6989 enableval
="$enable_decimal_float"
6991 if test x
$enablevar = xyes
; then
6993 powerpc
*-*-linux* | i?
86*-*-linux*)
6994 enable_decimal_float
=yes
6997 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6998 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6999 enable_decimal_float
=no
7005 enable_decimal_float
=no
7010 dfp
=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7012 cat >>confdefs.h
<<_ACEOF
7013 #define ENABLE_DECIMAL_FLOAT $dfp
7018 # Pass with no value to take the default
7019 # Pass with a value to specify a thread package
7020 # Check whether --enable-threads or --disable-threads was given.
7021 if test "${enable_threads+set}" = set; then
7022 enableval
="$enable_threads"
7028 # Check whether --enable-tls or --disable-tls was given.
7029 if test "${enable_tls+set}" = set; then
7030 enableval
="$enable_tls"
7034 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7035 Valid choices are 'yes' and 'no'." >&5
7036 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7037 Valid choices are 'yes' and 'no'." >&2;}
7038 { (exit 1); exit 1; }; } ;;
7045 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7046 if test "${enable_objc_gc+set}" = set; then
7047 enableval
="$enable_objc_gc"
7048 if test x
$enable_objc_gc = xno
; then
7058 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7059 if test "${with_dwarf2+set}" = set; then
7060 withval
="$with_dwarf2"
7061 dwarf2
="$with_dwarf2"
7066 # Check whether --enable-shared or --disable-shared was given.
7067 if test "${enable_shared+set}" = set; then
7068 enableval
="$enable_shared"
7070 case $enable_shared in
7074 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7075 for pkg
in $enableval; do
7076 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7090 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7091 if test "${with_build_sysroot+set}" = set; then
7092 withval
="$with_build_sysroot"
7097 # Check whether --with-sysroot or --without-sysroot was given.
7098 if test "${with_sysroot+set}" = set; then
7099 withval
="$with_sysroot"
7101 case ${with_sysroot} in
7102 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7103 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7106 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7107 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7109 if test "x$exec_prefix" = xNONE
; then
7110 if test "x$prefix" = xNONE
; then
7111 test_prefix
=/usr
/local
7116 test_prefix
=$exec_prefix
7118 case ${TARGET_SYSTEM_ROOT} in
7119 "${test_prefix}"|
"${test_prefix}/"*|\
7120 '${exec_prefix}'|
'${exec_prefix}/'*)
7121 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7122 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7129 TARGET_SYSTEM_ROOT_DEFINE
=
7130 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7137 # Build with intermodule optimisations
7138 # Check whether --enable-intermodule or --disable-intermodule was given.
7139 if test "${enable_intermodule+set}" = set; then
7140 enableval
="$enable_intermodule"
7141 case ${enable_intermodule} in
7142 yes) onestep
="-onestep";;
7150 # Sanity check enable_languages in case someone does not run the toplevel
7151 # configure # script.
7152 # Check whether --enable-languages or --disable-languages was given.
7153 if test "${enable_languages+set}" = set; then
7154 enableval
="$enable_languages"
7155 case ,${enable_languages}, in
7157 # go safe -- we cannot be much sure without the toplevel
7159 # analysis of which target libs are present and usable
7163 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7164 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7165 { (exit 1); exit 1; }; }
7170 enable_languages
=c
,${enable_languages}
7177 # Used by documentation targets
7182 # -------------------------
7183 # Checks for other programs
7184 # -------------------------
7186 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7187 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7188 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7189 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.
make <<\_ACEOF
7194 @
echo 'ac_maketemp="$(MAKE)"'
7196 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7197 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7198 if test -n "$ac_maketemp"; then
7199 eval ac_cv_prog_make_
${ac_make}_set
=yes
7201 eval ac_cv_prog_make_
${ac_make}_set
=no
7205 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7206 echo "$as_me:$LINENO: result: yes" >&5
7207 echo "${ECHO_T}yes" >&6
7210 echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6
7212 SET_MAKE
="MAKE=${MAKE-make}"
7216 # Find some useful tools
7217 for ac_prog
in gawk mawk nawk
awk
7219 # Extract the first word of "$ac_prog", so it can be a program name with args.
7220 set dummy
$ac_prog; ac_word
=$2
7221 echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7223 if test "${ac_cv_prog_AWK+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 if test -n "$AWK"; then
7227 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir
=.
7234 for ac_exec_ext
in '' $ac_executable_extensions; do
7235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_AWK
="$ac_prog"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 if test -n "$AWK"; then
7247 echo "$as_me:$LINENO: result: $AWK" >&5
7248 echo "${ECHO_T}$AWK" >&6
7250 echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6
7254 test -n "$AWK" && break
7257 # We need awk to create options.c and options.h.
7258 # Bail out if it's missing.
7260 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7261 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7262 { (exit 1); exit 1; }; } ;;
7265 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7266 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7267 if test "${gcc_cv_prog_LN_S+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 rm -f conftestdata_t
7271 echo >conftestdata_f
7272 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7274 gcc_cv_prog_LN_S
="ln -s"
7276 if ln conftestdata_f conftestdata_t
2>/dev
/null
7280 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7282 gcc_cv_prog_LN_S
="cp -p"
7288 rm -f conftestdata_f conftestdata_t
7291 LN_S
="$gcc_cv_prog_LN_S"
7292 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7293 echo "$as_me:$LINENO: result: yes" >&5
7294 echo "${ECHO_T}yes" >&6
7296 if test "$gcc_cv_prog_LN_S" = "ln"; then
7297 echo "$as_me:$LINENO: result: no, using ln" >&5
7298 echo "${ECHO_T}no, using ln" >&6
7300 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7301 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7308 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_RANLIB+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 if test -n "$RANLIB"; then
7315 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir
=.
7322 for ac_exec_ext
in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 RANLIB
=$ac_cv_prog_RANLIB
7334 if test -n "$RANLIB"; then
7335 echo "$as_me:$LINENO: result: $RANLIB" >&5
7336 echo "${ECHO_T}$RANLIB" >&6
7338 echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6
7343 if test -z "$ac_cv_prog_RANLIB"; then
7344 ac_ct_RANLIB
=$RANLIB
7345 # Extract the first word of "ranlib", so it can be a program name with args.
7346 set dummy ranlib
; ac_word
=$2
7347 echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 if test -n "$ac_ct_RANLIB"; then
7353 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir
=.
7360 for ac_exec_ext
in '' $ac_executable_extensions; do
7361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7372 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7373 if test -n "$ac_ct_RANLIB"; then
7374 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7375 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7377 echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7381 RANLIB
=$ac_ct_RANLIB
7383 RANLIB
="$ac_cv_prog_RANLIB"
7388 # By default, the Darwin ranlib will not treat common symbols as
7389 # definitions when building the archive table of contents. Other
7390 # ranlibs do that; pass an option to the Darwin ranlib that makes
7391 # it behave similarly.
7399 # Find a good install program. We prefer a C program (faster),
7400 # so one script is as good as another. But avoid the broken or
7401 # incompatible versions:
7402 # SysV /etc/install, /usr/sbin/install
7403 # SunOS /usr/etc/install
7404 # IRIX /sbin/install
7406 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7407 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7408 # ./install, which can be erroneously created by make from ./install.sh.
7409 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7410 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7411 if test -z "$INSTALL"; then
7412 if test "${ac_cv_path_install+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7416 for ac_dir
in $PATH; do
7417 # Account for people who put trailing slashes in PATH elements.
7419 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7421 # OSF1 and SCO ODT 3.0 have their own names for install.
7422 for ac_prog
in ginstall scoinst
install; do
7423 if test -f $ac_dir/$ac_prog; then
7424 if test $ac_prog = install &&
7425 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7426 # AIX install. It has an incompatible calling convention.
7427 # OSF/1 installbsd also uses dspmsg, but is usable.
7430 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7441 if test "${ac_cv_path_install+set}" = set; then
7442 INSTALL
="$ac_cv_path_install"
7444 # As a last resort, use the slow shell script. We don't cache a
7445 # path for INSTALL within a source directory, because that will
7446 # break other packages using the cache if that directory is
7447 # removed, or if the path is relative.
7448 INSTALL
="$ac_install_sh"
7451 echo "$as_me:$LINENO: result: $INSTALL" >&5
7452 echo "${ECHO_T}$INSTALL" >&6
7454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7455 # It thinks the first close brace ends the variable substitution.
7456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7458 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7461 # See if cmp has --ignore-initial.
7462 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7463 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7464 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 gcc_cv_prog_cmp_skip
=slowcompare
7470 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7471 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7474 gcc_cv_prog_cmp_skip
=gnucompare
7477 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7478 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7479 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7482 gcc_cv_prog_cmp_skip
=fastcompare
7489 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7490 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7491 make_compare_target
=$gcc_cv_prog_cmp_skip
7495 # See if we have the mktemp command.
7496 # Extract the first word of "mktemp", so it can be a program name with args.
7497 set dummy mktemp
; ac_word
=$2
7498 echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7500 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 if test -n "$have_mktemp_command"; then
7504 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir
=.
7511 for ac_exec_ext
in '' $ac_executable_extensions; do
7512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_have_mktemp_command
="yes"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7523 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7524 if test -n "$have_mktemp_command"; then
7525 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7526 echo "${ECHO_T}$have_mktemp_command" >&6
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7533 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7535 # See if makeinfo has been installed and is modern enough
7536 # that we can use it.
7538 ac_executable_extensions
="$build_exeext"
7540 # Extract the first word of "makeinfo", so it can be a program name with args.
7541 set dummy makeinfo
; ac_word
=$2
7542 echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7544 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 if test -n "$MAKEINFO"; then
7548 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir
=.
7555 for ac_exec_ext
in '' $ac_executable_extensions; do
7556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 ac_cv_prog_MAKEINFO
="makeinfo"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 MAKEINFO
=$ac_cv_prog_MAKEINFO
7567 if test -n "$MAKEINFO"; then
7568 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7569 echo "${ECHO_T}$MAKEINFO" >&6
7571 echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6
7575 if test -n "$MAKEINFO"; then
7576 # Found it, now check the version.
7577 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7578 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7579 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7583 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7584 echo "configure:7584: version of makeinfo is $ac_prog_version" >&5
7585 case $ac_prog_version in
7586 '') gcc_cv_prog_makeinfo_modern
=no
;;
7588 gcc_cv_prog_makeinfo_modern
=yes;;
7589 *) gcc_cv_prog_makeinfo_modern
=no
;;
7593 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7594 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7596 gcc_cv_prog_makeinfo_modern
=no
7599 if test $gcc_cv_prog_makeinfo_modern = no
; then
7600 MAKEINFO
="$MISSING makeinfo"
7601 { echo "$as_me:$LINENO: WARNING:
7602 *** Makeinfo is missing or too old.
7603 *** Info documentation will not be built." >&5
7604 echo "$as_me: WARNING:
7605 *** Makeinfo is missing or too old.
7606 *** Info documentation will not be built." >&2;}
7613 # Is pod2man recent enough to regenerate manpages?
7614 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7615 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7616 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7617 echo "$as_me:$LINENO: result: yes" >&5
7618 echo "${ECHO_T}yes" >&6
7619 GENERATED_MANPAGES
=generated-manpages
7621 echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6
7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy
$ac_prog; ac_word
=$2
7632 echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7634 if test "${ac_cv_prog_FLEX+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 if test -n "$FLEX"; then
7638 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7644 test -z "$as_dir" && as_dir
=.
7645 for ac_exec_ext
in '' $ac_executable_extensions; do
7646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647 ac_cv_prog_FLEX
="$ac_prog"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 FLEX
=$ac_cv_prog_FLEX
7657 if test -n "$FLEX"; then
7658 echo "$as_me:$LINENO: result: $FLEX" >&5
7659 echo "${ECHO_T}$FLEX" >&6
7661 echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6
7665 test -n "$FLEX" && break
7667 test -n "$FLEX" || FLEX
="$MISSING flex"
7671 for ac_prog
in bison
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy
$ac_prog; ac_word
=$2
7675 echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7677 if test "${ac_cv_prog_BISON+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 if test -n "$BISON"; then
7681 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir
=.
7688 for ac_exec_ext
in '' $ac_executable_extensions; do
7689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_BISON
="$ac_prog"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 BISON
=$ac_cv_prog_BISON
7700 if test -n "$BISON"; then
7701 echo "$as_me:$LINENO: result: $BISON" >&5
7702 echo "${ECHO_T}$BISON" >&6
7704 echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7708 test -n "$BISON" && break
7710 test -n "$BISON" || BISON
="$MISSING bison"
7713 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7714 # check for build == host before using them.
7717 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7718 && test -d ..
/binutils
; then
7719 NM
='$(objdir)/../binutils/nm-new'
7721 # Extract the first word of "nm", so it can be a program name with args.
7722 set dummy nm
; ac_word
=$2
7723 echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7725 if test "${ac_cv_prog_NM+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 if test -n "$NM"; then
7729 ac_cv_prog_NM
="$NM" # Let the user override the test.
7731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir
=.
7736 for ac_exec_ext
in '' $ac_executable_extensions; do
7737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7749 if test -n "$NM"; then
7750 echo "$as_me:$LINENO: result: $NM" >&5
7751 echo "${ECHO_T}$NM" >&6
7753 echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6
7760 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7761 && test -d ..
/binutils
; then
7762 AR
='$(objdir)/../binutils/ar'
7764 # Extract the first word of "ar", so it can be a program name with args.
7765 set dummy
ar; ac_word
=$2
7766 echo "$as_me:$LINENO: checking for $ac_word" >&5
7767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7768 if test "${ac_cv_prog_AR+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 if test -n "$AR"; then
7772 ac_cv_prog_AR
="$AR" # Let the user override the test.
7774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7778 test -z "$as_dir" && as_dir
=.
7779 for ac_exec_ext
in '' $ac_executable_extensions; do
7780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7792 if test -n "$AR"; then
7793 echo "$as_me:$LINENO: result: $AR" >&5
7794 echo "${ECHO_T}$AR" >&6
7796 echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6
7803 # --------------------
7804 # Checks for C headers
7805 # --------------------
7807 echo "$as_me:$LINENO: checking for GNU C library" >&5
7808 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7809 if test "${gcc_cv_glibc+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 cat >conftest.
$ac_ext <<_ACEOF
7815 cat confdefs.h
>>conftest.
$ac_ext
7816 cat >>conftest.
$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7818 #include <features.h>
7823 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7824 #error Not a GNU C library system
7830 rm -f conftest.
$ac_objext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832 (eval $ac_compile) 2>conftest.er1
7834 grep -v '^ *+' conftest.er1
>conftest.err
7836 cat conftest.err
>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try
='test -z "$ac_c_werror_flag"
7840 || test ! -s conftest.err'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try
='test -s conftest.$ac_objext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.
$ac_ext >&5
7859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7862 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7863 echo "${ECHO_T}$gcc_cv_glibc" >&6
7864 if test $gcc_cv_glibc = yes; then
7866 cat >>confdefs.h
<<\_ACEOF
7867 #define _GNU_SOURCE 1
7872 # Need to reject headers which give warnings, so that the -Werror bootstrap
7873 # works later. *sigh* This needs to come before all header checks.
7874 ac_c_preproc_warn_flag
=yes
7876 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7878 if test "${ac_cv_header_stdc+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 cat >conftest.
$ac_ext <<_ACEOF
7884 cat confdefs.h
>>conftest.
$ac_ext
7885 cat >>conftest.
$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7900 rm -f conftest.
$ac_objext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7902 (eval $ac_compile) 2>conftest.er1
7904 grep -v '^ *+' conftest.er1
>conftest.err
7906 cat conftest.err
>&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try
='test -z "$ac_c_werror_flag"
7910 || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try
='test -s conftest.$ac_objext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_header_stdc
=yes
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.
$ac_ext >&5
7927 ac_cv_header_stdc
=no
7929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7931 if test $ac_cv_header_stdc = yes; then
7932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7933 cat >conftest.
$ac_ext <<_ACEOF
7936 cat confdefs.h
>>conftest.
$ac_ext
7937 cat >>conftest.
$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7943 $EGREP "memchr" >/dev
/null
2>&1; then
7946 ac_cv_header_stdc
=no
7952 if test $ac_cv_header_stdc = yes; then
7953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7954 cat >conftest.
$ac_ext <<_ACEOF
7957 cat confdefs.h
>>conftest.
$ac_ext
7958 cat >>conftest.
$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7964 $EGREP "free" >/dev
/null
2>&1; then
7967 ac_cv_header_stdc
=no
7973 if test $ac_cv_header_stdc = yes; then
7974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7975 if test "$cross_compiling" = yes; then
7978 cat >conftest.
$ac_ext <<_ACEOF
7981 cat confdefs.h
>>conftest.
$ac_ext
7982 cat >>conftest.
$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7985 #if ((' ' & 0x0FF) == 0x020)
7986 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7987 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7989 # define ISLOWER(c) \
7990 (('a' <= (c) && (c) <= 'i') \
7991 || ('j' <= (c) && (c) <= 'r') \
7992 || ('s' <= (c) && (c) <= 'z'))
7993 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7996 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8001 for (i = 0; i < 256; i++)
8002 if (XOR (islower (i), ISLOWER (i))
8003 || toupper (i) != TOUPPER (i))
8008 rm -f conftest
$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8021 echo "$as_me: program exited with status $ac_status" >&5
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.
$ac_ext >&5
8026 ac_cv_header_stdc
=no
8028 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8032 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8033 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8034 if test $ac_cv_header_stdc = yes; then
8036 cat >>confdefs.h
<<\_ACEOF
8037 #define STDC_HEADERS 1
8042 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8043 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8044 if test "${ac_cv_header_time+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 cat >conftest.
$ac_ext <<_ACEOF
8050 cat confdefs.h
>>conftest.
$ac_ext
8051 cat >>conftest.
$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053 #include <sys/types.h>
8054 #include <sys/time.h>
8060 if ((struct tm *) 0)
8066 rm -f conftest.
$ac_objext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>conftest.er1
8070 grep -v '^ *+' conftest.er1
>conftest.err
8072 cat conftest.err
>&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try
='test -z "$ac_c_werror_flag"
8076 || test ! -s conftest.err'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try
='test -s conftest.$ac_objext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_header_time
=yes
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.
$ac_ext >&5
8093 ac_cv_header_time
=no
8095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8097 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8098 echo "${ECHO_T}$ac_cv_header_time" >&6
8099 if test $ac_cv_header_time = yes; then
8101 cat >>confdefs.h
<<\_ACEOF
8102 #define TIME_WITH_SYS_TIME 1
8108 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8109 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8110 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 cat >conftest.
$ac_ext <<_ACEOF
8116 cat confdefs.h
>>conftest.
$ac_ext
8117 cat >>conftest.
$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 #include <sys/types.h>
8120 #include <sys/wait.h>
8122 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8125 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8133 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8138 rm -f conftest.
$ac_objext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8140 (eval $ac_compile) 2>conftest.er1
8142 grep -v '^ *+' conftest.er1
>conftest.err
8144 cat conftest.err
>&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try
='test -z "$ac_c_werror_flag"
8148 || test ! -s conftest.err'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try
='test -s conftest.$ac_objext'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; }; then
8160 ac_cv_header_sys_wait_h
=yes
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.
$ac_ext >&5
8165 ac_cv_header_sys_wait_h
=no
8167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8169 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8170 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8171 if test $ac_cv_header_sys_wait_h = yes; then
8173 cat >>confdefs.h
<<\_ACEOF
8174 #define HAVE_SYS_WAIT_H 1
8201 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8202 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8203 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8204 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8206 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8208 echo "$as_me:$LINENO: checking for $ac_header" >&5
8209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8216 # Is the header compilable?
8217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8219 cat >conftest.
$ac_ext <<_ACEOF
8222 cat confdefs.h
>>conftest.
$ac_ext
8223 cat >>conftest.
$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8226 #include <$ac_header>
8228 rm -f conftest.
$ac_objext
8229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8230 (eval $ac_compile) 2>conftest.er1
8232 grep -v '^ *+' conftest.er1
>conftest.err
8234 cat conftest.err
>&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try
='test -z "$ac_c_werror_flag"
8238 || test ! -s conftest.err'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; } &&
8244 { ac_try
='test -s conftest.$ac_objext'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8250 ac_header_compiler
=yes
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.
$ac_ext >&5
8255 ac_header_compiler
=no
8257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8259 echo "${ECHO_T}$ac_header_compiler" >&6
8261 # Is the header present?
8262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8264 cat >conftest.
$ac_ext <<_ACEOF
8267 cat confdefs.h
>>conftest.
$ac_ext
8268 cat >>conftest.
$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8270 #include <$ac_header>
8272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8273 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8275 grep -v '^ *+' conftest.er1
>conftest.err
8277 cat conftest.err
>&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } >/dev
/null
; then
8280 if test -s conftest.err
; then
8281 ac_cpp_err
=$ac_c_preproc_warn_flag
8282 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8289 if test -z "$ac_cpp_err"; then
8290 ac_header_preproc
=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.
$ac_ext >&5
8295 ac_header_preproc
=no
8297 rm -f conftest.err conftest.
$ac_ext
8298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8299 echo "${ECHO_T}$ac_header_preproc" >&6
8301 # So? What about this header?
8302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8308 ac_header_preproc
=yes
8311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8325 ## ------------------------------------------ ##
8326 ## Report this to the AC_PACKAGE_NAME lists. ##
8327 ## ------------------------------------------ ##
8330 sed "s/^/$as_me: WARNING: /" >&2
8333 echo "$as_me:$LINENO: checking for $ac_header" >&5
8334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 eval "$as_ac_Header=\$ac_header_preproc"
8340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8345 cat >>confdefs.h
<<_ACEOF
8346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8354 # Check for thread headers.
8355 if test "${ac_cv_header_thread_h+set}" = set; then
8356 echo "$as_me:$LINENO: checking for thread.h" >&5
8357 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8358 if test "${ac_cv_header_thread_h+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8362 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8364 # Is the header compilable?
8365 echo "$as_me:$LINENO: checking thread.h usability" >&5
8366 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
8367 cat >conftest.
$ac_ext <<_ACEOF
8370 cat confdefs.h
>>conftest.
$ac_ext
8371 cat >>conftest.
$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8376 rm -f conftest.
$ac_objext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8378 (eval $ac_compile) 2>conftest.er1
8380 grep -v '^ *+' conftest.er1
>conftest.err
8382 cat conftest.err
>&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try
='test -z "$ac_c_werror_flag"
8386 || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try
='test -s conftest.$ac_objext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 ac_header_compiler
=yes
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.
$ac_ext >&5
8403 ac_header_compiler
=no
8405 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8407 echo "${ECHO_T}$ac_header_compiler" >&6
8409 # Is the header present?
8410 echo "$as_me:$LINENO: checking thread.h presence" >&5
8411 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
8412 cat >conftest.
$ac_ext <<_ACEOF
8415 cat confdefs.h
>>conftest.
$ac_ext
8416 cat >>conftest.
$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8423 grep -v '^ *+' conftest.er1
>conftest.err
8425 cat conftest.err
>&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev
/null
; then
8428 if test -s conftest.err
; then
8429 ac_cpp_err
=$ac_c_preproc_warn_flag
8430 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8437 if test -z "$ac_cpp_err"; then
8438 ac_header_preproc
=yes
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.
$ac_ext >&5
8443 ac_header_preproc
=no
8445 rm -f conftest.err conftest.
$ac_ext
8446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8447 echo "${ECHO_T}$ac_header_preproc" >&6
8449 # So? What about this header?
8450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8452 { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
8453 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8454 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the compiler's result" >&5
8455 echo "$as_me: WARNING: thread.h: proceeding with the compiler's result" >&2;}
8456 ac_header_preproc
=yes
8459 { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
8460 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
8461 { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
8462 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
8463 { echo "$as_me:$LINENO: WARNING: thread.h: see the Autoconf documentation" >&5
8464 echo "$as_me: WARNING: thread.h: see the Autoconf documentation" >&2;}
8465 { echo "$as_me:$LINENO: WARNING: thread.h: section \"Present But Cannot Be Compiled\"" >&5
8466 echo "$as_me: WARNING: thread.h: section \"Present But Cannot Be Compiled\"" >&2;}
8467 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
8468 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: thread.h: in the future, the compiler will take precedence" >&5
8470 echo "$as_me: WARNING: thread.h: in the future, the compiler will take precedence" >&2;}
8473 ## ------------------------------------------ ##
8474 ## Report this to the AC_PACKAGE_NAME lists. ##
8475 ## ------------------------------------------ ##
8478 sed "s/^/$as_me: WARNING: /" >&2
8481 echo "$as_me:$LINENO: checking for thread.h" >&5
8482 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8483 if test "${ac_cv_header_thread_h+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 ac_cv_header_thread_h
=$ac_header_preproc
8488 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8489 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8492 if test $ac_cv_header_thread_h = yes; then
8499 if test "${ac_cv_header_pthread_h+set}" = set; then
8500 echo "$as_me:$LINENO: checking for pthread.h" >&5
8501 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8502 if test "${ac_cv_header_pthread_h+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8506 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8508 # Is the header compilable?
8509 echo "$as_me:$LINENO: checking pthread.h usability" >&5
8510 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
8511 cat >conftest.
$ac_ext <<_ACEOF
8514 cat confdefs.h
>>conftest.
$ac_ext
8515 cat >>conftest.
$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 $ac_includes_default
8518 #include <pthread.h>
8520 rm -f conftest.
$ac_objext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>conftest.er1
8524 grep -v '^ *+' conftest.er1
>conftest.err
8526 cat conftest.err
>&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try
='test -z "$ac_c_werror_flag"
8530 || test ! -s conftest.err'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try
='test -s conftest.$ac_objext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_header_compiler
=yes
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.
$ac_ext >&5
8547 ac_header_compiler
=no
8549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8551 echo "${ECHO_T}$ac_header_compiler" >&6
8553 # Is the header present?
8554 echo "$as_me:$LINENO: checking pthread.h presence" >&5
8555 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
8556 cat >conftest.
$ac_ext <<_ACEOF
8559 cat confdefs.h
>>conftest.
$ac_ext
8560 cat >>conftest.
$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562 #include <pthread.h>
8564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8565 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8567 grep -v '^ *+' conftest.er1
>conftest.err
8569 cat conftest.err
>&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } >/dev
/null
; then
8572 if test -s conftest.err
; then
8573 ac_cpp_err
=$ac_c_preproc_warn_flag
8574 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8581 if test -z "$ac_cpp_err"; then
8582 ac_header_preproc
=yes
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.
$ac_ext >&5
8587 ac_header_preproc
=no
8589 rm -f conftest.err conftest.
$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8591 echo "${ECHO_T}$ac_header_preproc" >&6
8593 # So? What about this header?
8594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8596 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
8597 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
8599 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
8600 ac_header_preproc
=yes
8603 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
8604 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
8606 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
8608 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
8609 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
8610 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
8612 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
8614 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
8617 ## ------------------------------------------ ##
8618 ## Report this to the AC_PACKAGE_NAME lists. ##
8619 ## ------------------------------------------ ##
8622 sed "s/^/$as_me: WARNING: /" >&2
8625 echo "$as_me:$LINENO: checking for pthread.h" >&5
8626 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8627 if test "${ac_cv_header_pthread_h+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 ac_cv_header_pthread_h
=$ac_header_preproc
8632 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8633 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8636 if test $ac_cv_header_pthread_h = yes; then
8644 # These tests can't be done till we know if we have limits.h.
8645 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8646 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8647 if test "${gcc_cv_decl_char_bit+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 cat >conftest.
$ac_ext <<_ACEOF
8653 cat confdefs.h
>>conftest.
$ac_ext
8654 cat >>conftest.
$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #ifdef HAVE_LIMITS_H
8663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8664 $EGREP "found" >/dev
/null
2>&1; then
8665 gcc_cv_decl_char_bit
=yes
8667 gcc_cv_decl_char_bit
=no
8673 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8674 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8675 if test $gcc_cv_decl_char_bit = no
; then
8676 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8677 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8678 if test "${gcc_cv_c_nbby+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 while test $i -lt 65; do
8684 cat >conftest.
$ac_ext <<_ACEOF
8687 cat confdefs.h
>>conftest.
$ac_ext
8688 cat >>conftest.
$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8695 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8696 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8702 rm -f conftest.
$ac_objext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>conftest.er1
8706 grep -v '^ *+' conftest.er1
>conftest.err
8708 cat conftest.err
>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try
='test -z "$ac_c_werror_flag"
8712 || test ! -s conftest.err'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; } &&
8718 { ac_try
='test -s conftest.$ac_objext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 gcc_cv_c_nbby
=$i; break
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.
$ac_ext >&5
8730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8733 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8736 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8737 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8738 if test $gcc_cv_c_nbby = failed
; then
8739 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8740 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8741 { (exit 1); exit 1; }; }
8744 cat >>confdefs.h
<<_ACEOF
8745 #define CHAR_BIT $gcc_cv_c_nbby
8750 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8751 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8752 if test "${ac_cv_c_bigendian+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 # See if sys/param.h defines the BYTE_ORDER macro.
8756 cat >conftest.
$ac_ext <<_ACEOF
8759 cat confdefs.h
>>conftest.
$ac_ext
8760 cat >>conftest.
$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 #include <sys/types.h>
8763 #include <sys/param.h>
8768 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8776 rm -f conftest.
$ac_objext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8778 (eval $ac_compile) 2>conftest.er1
8780 grep -v '^ *+' conftest.er1
>conftest.err
8782 cat conftest.err
>&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try
='test -z "$ac_c_werror_flag"
8786 || test ! -s conftest.err'
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; } &&
8792 { ac_try
='test -s conftest.$ac_objext'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
8798 # It does; now see whether it defined to BIG_ENDIAN or not.
8799 cat >conftest.
$ac_ext <<_ACEOF
8802 cat confdefs.h
>>conftest.
$ac_ext
8803 cat >>conftest.
$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 #include <sys/types.h>
8806 #include <sys/param.h>
8811 #if BYTE_ORDER != BIG_ENDIAN
8819 rm -f conftest.
$ac_objext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8821 (eval $ac_compile) 2>conftest.er1
8823 grep -v '^ *+' conftest.er1
>conftest.err
8825 cat conftest.err
>&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try
='test -z "$ac_c_werror_flag"
8829 || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try
='test -s conftest.$ac_objext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_c_bigendian
=yes
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.
$ac_ext >&5
8846 ac_cv_c_bigendian
=no
8848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.
$ac_ext >&5
8853 # It does not; compile a test program.
8854 if test "$cross_compiling" = yes; then
8855 # try to guess the endianness by grepping values into an object file
8856 ac_cv_c_bigendian
=unknown
8857 cat >conftest.
$ac_ext <<_ACEOF
8860 cat confdefs.h
>>conftest.
$ac_ext
8861 cat >>conftest.
$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8864 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8865 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8866 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8867 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8868 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8872 _ascii (); _ebcdic ();
8877 rm -f conftest.
$ac_objext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8879 (eval $ac_compile) 2>conftest.er1
8881 grep -v '^ *+' conftest.er1
>conftest.err
8883 cat conftest.err
>&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try
='test -z "$ac_c_werror_flag"
8887 || test ! -s conftest.err'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; } &&
8893 { ac_try
='test -s conftest.$ac_objext'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8900 ac_cv_c_bigendian
=yes
8902 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8903 if test "$ac_cv_c_bigendian" = unknown
; then
8904 ac_cv_c_bigendian
=no
8906 # finding both strings is unlikely to happen, but who knows?
8907 ac_cv_c_bigendian
=unknown
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.
$ac_ext >&5
8915 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8917 cat >conftest.
$ac_ext <<_ACEOF
8920 cat confdefs.h
>>conftest.
$ac_ext
8921 cat >>conftest.
$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8926 /* Are we little or big endian? From Harbison&Steele. */
8930 char c[sizeof (long)];
8933 exit (u.c[sizeof (long) - 1] == 1);
8936 rm -f conftest
$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938 (eval $ac_link) 2>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_c_bigendian
=no
8949 echo "$as_me: program exited with status $ac_status" >&5
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.
$ac_ext >&5
8954 ac_cv_c_bigendian
=yes
8956 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8959 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8961 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8962 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8963 case $ac_cv_c_bigendian in
8966 cat >>confdefs.h
<<\_ACEOF
8967 #define WORDS_BIGENDIAN 1
8973 { { echo "$as_me:$LINENO: error: unknown endianness
8974 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8975 echo "$as_me: error: unknown endianness
8976 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8977 { (exit 1); exit 1; }; } ;;
8985 # Stage specific cflags for build.
8989 if test x
$GCC = xyes
8991 stage1_cflags
="-Wa,-J"
8997 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8998 # sources; use -no-cpp-precomp to get to GNU cpp.
8999 # Apple's GCC has bugs in designated initializer handling, so disable
9001 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
9006 # These libraries may be used by collect2.
9007 # We may need a special search path to get them linked.
9008 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9009 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9010 if test "${gcc_cv_collect2_libs+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 for libs
in '' -lld -lmld \
9015 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9016 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9019 cat >conftest.
$ac_ext <<_ACEOF
9022 cat confdefs.h
>>conftest.
$ac_ext
9023 cat >>conftest.
$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9026 /* Override any gcc2 internal prototype to avoid an error. */
9030 /* We use char because int might match the return type of a gcc2
9031 builtin and then its argument prototype would still apply. */
9041 rm -f conftest.
$ac_objext conftest
$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9045 grep -v '^ *+' conftest.er1
>conftest.err
9047 cat conftest.err
>&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try
='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try
='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 gcc_cv_collect2_libs
="$libs"; break
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.
$ac_ext >&5
9069 rm -f conftest.err conftest.
$ac_objext \
9070 conftest
$ac_exeext conftest.
$ac_ext
9073 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9075 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9076 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9077 case $gcc_cv_collect2_libs in
9079 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9083 # When building Ada code on Alpha, we need exc_resume which is usually in
9084 # -lexc. So test for it.
9087 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9088 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9089 if test "${ac_cv_search_exc_resume+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 ac_func_search_save_LIBS
=$LIBS
9093 ac_cv_search_exc_resume
=no
9094 cat >conftest.
$ac_ext <<_ACEOF
9097 cat confdefs.h
>>conftest.
$ac_ext
9098 cat >>conftest.
$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9101 /* Override any gcc2 internal prototype to avoid an error. */
9105 /* We use char because int might match the return type of a gcc2
9106 builtin and then its argument prototype would still apply. */
9116 rm -f conftest.
$ac_objext conftest
$ac_exeext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>conftest.er1
9120 grep -v '^ *+' conftest.er1
>conftest.err
9122 cat conftest.err
>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try
='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try
='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_search_exc_resume
="none required"
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.
$ac_ext >&5
9144 rm -f conftest.err conftest.
$ac_objext \
9145 conftest
$ac_exeext conftest.
$ac_ext
9146 if test "$ac_cv_search_exc_resume" = no
; then
9147 for ac_lib
in exc
; do
9148 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9149 cat >conftest.
$ac_ext <<_ACEOF
9152 cat confdefs.h
>>conftest.
$ac_ext
9153 cat >>conftest.
$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9156 /* Override any gcc2 internal prototype to avoid an error. */
9160 /* We use char because int might match the return type of a gcc2
9161 builtin and then its argument prototype would still apply. */
9171 rm -f conftest.
$ac_objext conftest
$ac_exeext
9172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9173 (eval $ac_link) 2>conftest.er1
9175 grep -v '^ *+' conftest.er1
>conftest.err
9177 cat conftest.err
>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
9180 { ac_try
='test -z "$ac_c_werror_flag"
9181 || test ! -s conftest.err'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try
='test -s conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_cv_search_exc_resume
="-l$ac_lib"
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.
$ac_ext >&5
9200 rm -f conftest.err conftest.
$ac_objext \
9201 conftest
$ac_exeext conftest.
$ac_ext
9204 LIBS
=$ac_func_search_save_LIBS
9206 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9207 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9208 if test "$ac_cv_search_exc_resume" != no
; then
9209 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9217 # Some systems put ldexp and frexp in libm instead of libc; assume
9218 # they're both in the same place. jcf-dump needs them.
9221 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9222 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9223 if test "${ac_cv_search_ldexp+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 ac_func_search_save_LIBS
=$LIBS
9227 ac_cv_search_ldexp
=no
9228 cat >conftest.
$ac_ext <<_ACEOF
9231 cat confdefs.h
>>conftest.
$ac_ext
9232 cat >>conftest.
$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9235 /* Override any gcc2 internal prototype to avoid an error. */
9239 /* We use char because int might match the return type of a gcc2
9240 builtin and then its argument prototype would still apply. */
9250 rm -f conftest.
$ac_objext conftest
$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>conftest.er1
9254 grep -v '^ *+' conftest.er1
>conftest.err
9256 cat conftest.err
>&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try
='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try
='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_search_ldexp
="none required"
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.
$ac_ext >&5
9278 rm -f conftest.err conftest.
$ac_objext \
9279 conftest
$ac_exeext conftest.
$ac_ext
9280 if test "$ac_cv_search_ldexp" = no
; then
9282 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9283 cat >conftest.
$ac_ext <<_ACEOF
9286 cat confdefs.h
>>conftest.
$ac_ext
9287 cat >>conftest.
$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9290 /* Override any gcc2 internal prototype to avoid an error. */
9294 /* We use char because int might match the return type of a gcc2
9295 builtin and then its argument prototype would still apply. */
9305 rm -f conftest.
$ac_objext conftest
$ac_exeext
9306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307 (eval $ac_link) 2>conftest.er1
9309 grep -v '^ *+' conftest.er1
>conftest.err
9311 cat conftest.err
>&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try
='test -z "$ac_c_werror_flag"
9315 || test ! -s conftest.err'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; } &&
9321 { ac_try
='test -s conftest$ac_exeext'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 ac_cv_search_ldexp
="-l$ac_lib"
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.
$ac_ext >&5
9334 rm -f conftest.err conftest.
$ac_objext \
9335 conftest
$ac_exeext conftest.
$ac_ext
9338 LIBS
=$ac_func_search_save_LIBS
9340 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9341 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9342 if test "$ac_cv_search_ldexp" != no
; then
9343 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9351 # Use <inttypes.h> only if it exists,
9352 # doesn't clash with <sys/types.h>, and declares intmax_t.
9353 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9354 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9355 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 cat >conftest.
$ac_ext <<_ACEOF
9361 cat confdefs.h
>>conftest.
$ac_ext
9362 cat >>conftest.
$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 #include <sys/types.h>
9365 #include <inttypes.h>
9374 rm -f conftest.
$ac_objext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>conftest.er1
9378 grep -v '^ *+' conftest.er1
>conftest.err
9380 cat conftest.err
>&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try
='test -z "$ac_c_werror_flag"
9384 || test ! -s conftest.err'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try
='test -s conftest.$ac_objext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 gcc_cv_header_inttypes_h
=yes
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.
$ac_ext >&5
9401 gcc_cv_header_inttypes_h
=no
9403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9406 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9407 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9408 if test $gcc_cv_header_inttypes_h = yes; then
9410 cat >>confdefs.h
<<\_ACEOF
9411 #define HAVE_INTTYPES_H 1
9453 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9454 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9455 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9456 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
9458 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9459 echo "$as_me:$LINENO: checking for $ac_func" >&5
9460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9461 if eval "test \"\${$as_ac_var+set}\" = set"; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 cat >conftest.
$ac_ext <<_ACEOF
9467 cat confdefs.h
>>conftest.
$ac_ext
9468 cat >>conftest.
$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9472 #define $ac_func innocuous_$ac_func
9474 /* System header to define __stub macros and hopefully few prototypes,
9475 which can conflict with char $ac_func (); below.
9476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9477 <limits.h> exists even on freestanding compilers. */
9480 # include <limits.h>
9482 # include <assert.h>
9487 /* Override any gcc2 internal prototype to avoid an error. */
9492 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */
9495 /* The GNU C library defines this for functions which it implements
9496 to always fail with ENOSYS. Some functions are actually named
9497 something starting with __ and the normal name is an alias. */
9498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9501 char (*f) () = $ac_func;
9510 return f != $ac_func;
9515 rm -f conftest.
$ac_objext conftest
$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517 (eval $ac_link) 2>conftest.er1
9519 grep -v '^ *+' conftest.er1
>conftest.err
9521 cat conftest.err
>&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try
='test -z "$ac_c_werror_flag"
9525 || test ! -s conftest.err'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try
='test -s conftest$ac_exeext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 eval "$as_ac_var=yes"
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.
$ac_ext >&5
9542 eval "$as_ac_var=no"
9544 rm -f conftest.err conftest.
$ac_objext \
9545 conftest
$ac_exeext conftest.
$ac_ext
9547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9549 if test `eval echo '${'$as_ac_var'}'` = yes; then
9550 cat >>confdefs.h
<<_ACEOF
9551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9558 if test x
$ac_cv_func_mbstowcs = xyes
; then
9559 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9560 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9561 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 if test "$cross_compiling" = yes; then
9565 gcc_cv_func_mbstowcs_works
=yes
9567 cat >conftest.
$ac_ext <<_ACEOF
9570 cat confdefs.h
>>conftest.
$ac_ext
9571 cat >>conftest.
$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9580 rm -f conftest
$ac_exeext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9582 (eval $ac_link) 2>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 gcc_cv_func_mbstowcs_works
=yes
9593 echo "$as_me: program exited with status $ac_status" >&5
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.
$ac_ext >&5
9598 gcc_cv_func_mbstowcs_works
=no
9600 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9603 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9604 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9605 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9607 cat >>confdefs.h
<<\_ACEOF
9608 #define HAVE_WORKING_MBSTOWCS 1
9614 echo "$as_me:$LINENO: checking for ssize_t" >&5
9615 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9616 if test "${ac_cv_type_ssize_t+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 cat >conftest.
$ac_ext <<_ACEOF
9622 cat confdefs.h
>>conftest.
$ac_ext
9623 cat >>conftest.
$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 $ac_includes_default
9631 if (sizeof (ssize_t))
9637 rm -f conftest.
$ac_objext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9639 (eval $ac_compile) 2>conftest.er1
9641 grep -v '^ *+' conftest.er1
>conftest.err
9643 cat conftest.err
>&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try
='test -z "$ac_c_werror_flag"
9647 || test ! -s conftest.err'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; } &&
9653 { ac_try
='test -s conftest.$ac_objext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_type_ssize_t
=yes
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.
$ac_ext >&5
9664 ac_cv_type_ssize_t
=no
9666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9668 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9669 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9670 if test $ac_cv_type_ssize_t = yes; then
9674 cat >>confdefs.h
<<_ACEOF
9681 # Try to determine the array type of the second argument of getgroups
9682 # for the target system (int or gid_t).
9683 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9684 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9685 if test "${ac_cv_type_uid_t+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 cat >conftest.
$ac_ext <<_ACEOF
9691 cat confdefs.h
>>conftest.
$ac_ext
9692 cat >>conftest.
$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 #include <sys/types.h>
9697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9698 $EGREP "uid_t" >/dev
/null
2>&1; then
9699 ac_cv_type_uid_t
=yes
9706 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9707 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9708 if test $ac_cv_type_uid_t = no
; then
9710 cat >>confdefs.h
<<\_ACEOF
9715 cat >>confdefs.h
<<\_ACEOF
9721 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9722 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9723 if test "${ac_cv_type_getgroups+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 if test "$cross_compiling" = yes; then
9727 ac_cv_type_getgroups
=cross
9729 cat >conftest.
$ac_ext <<_ACEOF
9732 cat confdefs.h
>>conftest.
$ac_ext
9733 cat >>conftest.
$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 /* Thanks to Mike Rendell for this test. */
9736 #include <sys/types.h>
9739 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9746 union { gid_t gval; long lval; } val;
9749 for (i = 0; i < NGID; i++)
9750 gidset[i] = val.gval;
9751 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9753 /* Exit non-zero if getgroups seems to require an array of ints. This
9754 happens when gid_t is short but getgroups modifies an array of ints. */
9755 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9758 rm -f conftest
$ac_exeext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_type_getgroups
=gid_t
9771 echo "$as_me: program exited with status $ac_status" >&5
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.
$ac_ext >&5
9776 ac_cv_type_getgroups
=int
9778 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9780 if test $ac_cv_type_getgroups = cross
; then
9781 cat >conftest.
$ac_ext <<_ACEOF
9784 cat confdefs.h
>>conftest.
$ac_ext
9785 cat >>conftest.
$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9791 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9792 ac_cv_type_getgroups
=gid_t
9794 ac_cv_type_getgroups
=int
9800 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9801 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9803 cat >>confdefs.h
<<_ACEOF
9804 #define GETGROUPS_T $ac_cv_type_getgroups
9808 if test "${target}" = "${build}"; then
9809 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9812 # This condition may need some tweaking. It should include all
9813 # targets where the array type of the second argument of getgroups
9814 # is int and the type of gid_t is not equivalent to int.
9815 *-*-sunos* |
*-*-ultrix*)
9816 TARGET_GETGROUPS_T
=int
9819 TARGET_GETGROUPS_T
=gid_t
9826 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9827 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9828 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9829 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9833 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9835 # Is the header compilable?
9836 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
9837 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
9838 cat >conftest.
$ac_ext <<_ACEOF
9841 cat confdefs.h
>>conftest.
$ac_ext
9842 cat >>conftest.
$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 $ac_includes_default
9845 #include <sys/mman.h>
9847 rm -f conftest.
$ac_objext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849 (eval $ac_compile) 2>conftest.er1
9851 grep -v '^ *+' conftest.er1
>conftest.err
9853 cat conftest.err
>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try
='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try
='test -s conftest.$ac_objext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_header_compiler
=yes
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.
$ac_ext >&5
9874 ac_header_compiler
=no
9876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878 echo "${ECHO_T}$ac_header_compiler" >&6
9880 # Is the header present?
9881 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
9882 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
9883 cat >conftest.
$ac_ext <<_ACEOF
9886 cat confdefs.h
>>conftest.
$ac_ext
9887 cat >>conftest.
$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 #include <sys/mman.h>
9891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9894 grep -v '^ *+' conftest.er1
>conftest.err
9896 cat conftest.err
>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } >/dev
/null
; then
9899 if test -s conftest.err
; then
9900 ac_cpp_err
=$ac_c_preproc_warn_flag
9901 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9908 if test -z "$ac_cpp_err"; then
9909 ac_header_preproc
=yes
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.
$ac_ext >&5
9914 ac_header_preproc
=no
9916 rm -f conftest.err conftest.
$ac_ext
9917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 echo "${ECHO_T}$ac_header_preproc" >&6
9920 # So? What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9923 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
9924 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
9926 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc
=yes
9930 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
9935 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
9937 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
9941 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
9944 ## ------------------------------------------ ##
9945 ## Report this to the AC_PACKAGE_NAME lists. ##
9946 ## ------------------------------------------ ##
9949 sed "s/^/$as_me: WARNING: /" >&2
9952 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9953 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9954 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 ac_cv_header_sys_mman_h
=$ac_header_preproc
9959 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9960 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9963 if test $ac_cv_header_sys_mman_h = yes; then
9964 gcc_header_sys_mman_h
=yes
9966 gcc_header_sys_mman_h
=no
9970 echo "$as_me:$LINENO: checking for mmap" >&5
9971 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9972 if test "${ac_cv_func_mmap+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 cat >conftest.
$ac_ext <<_ACEOF
9978 cat confdefs.h
>>conftest.
$ac_ext
9979 cat >>conftest.
$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9983 #define mmap innocuous_mmap
9985 /* System header to define __stub macros and hopefully few prototypes,
9986 which can conflict with char mmap (); below.
9987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9988 <limits.h> exists even on freestanding compilers. */
9991 # include <limits.h>
9993 # include <assert.h>
9998 /* Override any gcc2 internal prototype to avoid an error. */
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10006 /* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
10009 #if defined (__stub_mmap) || defined (__stub___mmap)
10012 char (*f) () = mmap;
10026 rm -f conftest.
$ac_objext conftest
$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>conftest.er1
10030 grep -v '^ *+' conftest.er1
>conftest.err
10032 cat conftest.err
>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try
='test -z "$ac_c_werror_flag"
10036 || test ! -s conftest.err'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; } &&
10042 { ac_try
='test -s conftest$ac_exeext'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 ac_cv_func_mmap
=yes
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.
$ac_ext >&5
10055 rm -f conftest.err conftest.
$ac_objext \
10056 conftest
$ac_exeext conftest.
$ac_ext
10058 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10059 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10060 if test $ac_cv_func_mmap = yes; then
10066 if test "$gcc_header_sys_mman_h" != yes \
10067 ||
test "$gcc_func_mmap" != yes; then
10068 gcc_cv_func_mmap_file
=no
10069 gcc_cv_func_mmap_dev_zero
=no
10070 gcc_cv_func_mmap_anon
=no
10072 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10073 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10074 if test "${gcc_cv_func_mmap_file+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 # Add a system to this blacklist if
10078 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10079 # memory area containing the same data that you'd get if you applied
10080 # read() to the same fd. The only system known to have a problem here
10081 # is VMS, where text files have record structure.
10084 gcc_cv_func_mmap_file
=no
;;
10086 gcc_cv_func_mmap_file
=yes;;
10089 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10090 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10091 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10092 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10093 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 # Add a system to this blacklist if it has mmap() but /dev/zero
10097 # does not exist, or if mmapping /dev/zero does not give anonymous
10098 # zeroed pages with both the following properties:
10099 # 1. If you map N consecutive pages in with one call, and then
10100 # unmap any subset of those pages, the pages that were not
10101 # explicitly unmapped remain accessible.
10102 # 2. If you map two adjacent blocks of memory and then unmap them
10103 # both at once, they must both go away.
10104 # Systems known to be in this category are Windows (all variants),
10107 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10108 gcc_cv_func_mmap_dev_zero
=no
;;
10110 gcc_cv_func_mmap_dev_zero
=yes;;
10113 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10114 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10116 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10117 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10118 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10119 if test "${gcc_cv_decl_map_anon+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.
$ac_ext <<_ACEOF
10125 cat confdefs.h
>>conftest.
$ac_ext
10126 cat >>conftest.
$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 #include <sys/types.h>
10129 #include <sys/mman.h>
10130 #include <unistd.h>
10132 #ifndef MAP_ANONYMOUS
10133 #define MAP_ANONYMOUS MAP_ANON
10139 int n = MAP_ANONYMOUS;
10144 rm -f conftest.
$ac_objext
10145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10146 (eval $ac_compile) 2>conftest.er1
10148 grep -v '^ *+' conftest.er1
>conftest.err
10150 cat conftest.err
>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } &&
10153 { ac_try
='test -z "$ac_c_werror_flag"
10154 || test ! -s conftest.err'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; } &&
10160 { ac_try
='test -s conftest.$ac_objext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 gcc_cv_decl_map_anon
=yes
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.
$ac_ext >&5
10171 gcc_cv_decl_map_anon
=no
10173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10175 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10176 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10178 if test $gcc_cv_decl_map_anon = no
; then
10179 gcc_cv_func_mmap_anon
=no
10181 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10182 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10183 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10187 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10188 # doesn't give anonymous zeroed pages with the same properties listed
10189 # above for use of /dev/zero.
10190 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10192 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10193 gcc_cv_func_mmap_anon
=no
;;
10195 gcc_cv_func_mmap_anon
=yes;;
10198 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10199 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10203 if test $gcc_cv_func_mmap_file = yes; then
10205 cat >>confdefs.h
<<\_ACEOF
10206 #define HAVE_MMAP_FILE 1
10210 if test $gcc_cv_func_mmap_dev_zero = yes; then
10212 cat >>confdefs.h
<<\_ACEOF
10213 #define HAVE_MMAP_DEV_ZERO 1
10217 if test $gcc_cv_func_mmap_anon = yes; then
10219 cat >>confdefs.h
<<\_ACEOF
10220 #define HAVE_MMAP_ANON 1
10228 # Under VMS, vfork works very differently than on Unix. The standard test
10229 # won't work, and it isn't easily adaptable. It makes more sense to
10231 ac_cv_func_vfork_works
=yes
10234 echo "$as_me:$LINENO: checking for pid_t" >&5
10235 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10236 if test "${ac_cv_type_pid_t+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 cat >conftest.
$ac_ext <<_ACEOF
10242 cat confdefs.h
>>conftest.
$ac_ext
10243 cat >>conftest.
$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10245 $ac_includes_default
10251 if (sizeof (pid_t))
10257 rm -f conftest.
$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>conftest.er1
10261 grep -v '^ *+' conftest.er1
>conftest.err
10263 cat conftest.err
>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try
='test -z "$ac_c_werror_flag"
10267 || test ! -s conftest.err'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; } &&
10273 { ac_try
='test -s conftest.$ac_objext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_cv_type_pid_t
=yes
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.
$ac_ext >&5
10284 ac_cv_type_pid_t
=no
10286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10288 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10289 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10290 if test $ac_cv_type_pid_t = yes; then
10294 cat >>confdefs.h
<<_ACEOF
10302 for ac_header
in unistd.h vfork.h
10304 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10306 echo "$as_me:$LINENO: checking for $ac_header" >&5
10307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10314 # Is the header compilable?
10315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10317 cat >conftest.
$ac_ext <<_ACEOF
10320 cat confdefs.h
>>conftest.
$ac_ext
10321 cat >>conftest.
$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 $ac_includes_default
10324 #include <$ac_header>
10326 rm -f conftest.
$ac_objext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328 (eval $ac_compile) 2>conftest.er1
10330 grep -v '^ *+' conftest.er1
>conftest.err
10332 cat conftest.err
>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } &&
10335 { ac_try
='test -z "$ac_c_werror_flag"
10336 || test ! -s conftest.err'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; } &&
10342 { ac_try
='test -s conftest.$ac_objext'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_header_compiler
=yes
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.
$ac_ext >&5
10353 ac_header_compiler
=no
10355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10357 echo "${ECHO_T}$ac_header_compiler" >&6
10359 # Is the header present?
10360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10362 cat >conftest.
$ac_ext <<_ACEOF
10365 cat confdefs.h
>>conftest.
$ac_ext
10366 cat >>conftest.
$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 #include <$ac_header>
10370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10371 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10373 grep -v '^ *+' conftest.er1
>conftest.err
10375 cat conftest.err
>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } >/dev
/null
; then
10378 if test -s conftest.err
; then
10379 ac_cpp_err
=$ac_c_preproc_warn_flag
10380 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10387 if test -z "$ac_cpp_err"; then
10388 ac_header_preproc
=yes
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.
$ac_ext >&5
10393 ac_header_preproc
=no
10395 rm -f conftest.err conftest.
$ac_ext
10396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10397 echo "${ECHO_T}$ac_header_preproc" >&6
10399 # So? What about this header?
10400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10406 ac_header_preproc
=yes
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10423 ## ------------------------------------------ ##
10424 ## Report this to the AC_PACKAGE_NAME lists. ##
10425 ## ------------------------------------------ ##
10428 sed "s/^/$as_me: WARNING: /" >&2
10431 echo "$as_me:$LINENO: checking for $ac_header" >&5
10432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 eval "$as_ac_Header=\$ac_header_preproc"
10438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10443 cat >>confdefs.h
<<_ACEOF
10444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10453 for ac_func
in fork vfork
10455 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10456 echo "$as_me:$LINENO: checking for $ac_func" >&5
10457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10458 if eval "test \"\${$as_ac_var+set}\" = set"; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 cat >conftest.
$ac_ext <<_ACEOF
10464 cat confdefs.h
>>conftest.
$ac_ext
10465 cat >>conftest.
$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10469 #define $ac_func innocuous_$ac_func
10471 /* System header to define __stub macros and hopefully few prototypes,
10472 which can conflict with char $ac_func (); below.
10473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10474 <limits.h> exists even on freestanding compilers. */
10477 # include <limits.h>
10479 # include <assert.h>
10484 /* Override any gcc2 internal prototype to avoid an error. */
10489 /* We use char because int might match the return type of a gcc2
10490 builtin and then its argument prototype would still apply. */
10492 /* The GNU C library defines this for functions which it implements
10493 to always fail with ENOSYS. Some functions are actually named
10494 something starting with __ and the normal name is an alias. */
10495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10498 char (*f) () = $ac_func;
10507 return f != $ac_func;
10512 rm -f conftest.
$ac_objext conftest
$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514 (eval $ac_link) 2>conftest.er1
10516 grep -v '^ *+' conftest.er1
>conftest.err
10518 cat conftest.err
>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try
='test -z "$ac_c_werror_flag"
10522 || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try
='test -s conftest$ac_exeext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 eval "$as_ac_var=yes"
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.
$ac_ext >&5
10539 eval "$as_ac_var=no"
10541 rm -f conftest.err conftest.
$ac_objext \
10542 conftest
$ac_exeext conftest.
$ac_ext
10544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10546 if test `eval echo '${'$as_ac_var'}'` = yes; then
10547 cat >>confdefs.h
<<_ACEOF
10548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10554 if test "x$ac_cv_func_fork" = xyes
; then
10555 echo "$as_me:$LINENO: checking for working fork" >&5
10556 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10557 if test "${ac_cv_func_fork_works+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 if test "$cross_compiling" = yes; then
10561 ac_cv_func_fork_works
=cross
10563 cat >conftest.
$ac_ext <<_ACEOF
10564 /* By Ruediger Kuhlmann. */
10565 #include <sys/types.h>
10567 # include <unistd.h>
10569 /* Some systems only have a dummy stub for fork() */
10577 rm -f conftest
$ac_exeext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10579 (eval $ac_link) 2>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_func_fork_works
=yes
10590 echo "$as_me: program exited with status $ac_status" >&5
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.
$ac_ext >&5
10594 ( exit $ac_status )
10595 ac_cv_func_fork_works
=no
10597 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10600 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10601 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10604 ac_cv_func_fork_works
=$ac_cv_func_fork
10606 if test "x$ac_cv_func_fork_works" = xcross
; then
10608 *-*-amigaos* |
*-*-msdosdjgpp*)
10609 # Override, as these systems have only a dummy fork() stub
10610 ac_cv_func_fork_works
=no
10613 ac_cv_func_fork_works
=yes
10616 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10617 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10619 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10620 if test "x$ac_cv_func_vfork" = xyes
; then
10621 echo "$as_me:$LINENO: checking for working vfork" >&5
10622 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10623 if test "${ac_cv_func_vfork_works+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 if test "$cross_compiling" = yes; then
10627 ac_cv_func_vfork_works
=cross
10629 cat >conftest.
$ac_ext <<_ACEOF
10632 cat confdefs.h
>>conftest.
$ac_ext
10633 cat >>conftest.
$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 /* Thanks to Paul Eggert for this test. */
10637 #include <stdlib.h>
10638 #include <sys/types.h>
10639 #include <sys/stat.h>
10640 #include <sys/wait.h>
10642 # include <unistd.h>
10645 # include <vfork.h>
10647 /* On some sparc systems, changes by the child to local and incoming
10648 argument registers are propagated back to the parent. The compiler
10649 is told about this with #include <vfork.h>, but some compilers
10650 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10651 static variable whose address is put into a register that is
10652 clobbered by the vfork. */
10655 sparc_address_test (int arg)
10657 sparc_address_test (arg) int arg;
10660 static pid_t child;
10678 pid_t parent = getpid ();
10681 sparc_address_test (0);
10686 /* Here is another test for sparc vfork register problems. This
10687 test uses lots of local variables, at least as many local
10688 variables as main has allocated so far including compiler
10689 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10690 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10691 reuse the register of parent for one of the local variables,
10692 since it will think that parent can't possibly be used any more
10693 in this routine. Assigning to the local variable will thus
10694 munge parent in the parent process. */
10696 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10697 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10698 /* Convince the compiler that p..p7 are live; otherwise, it might
10699 use the same hardware register for all 8 local variables. */
10700 if (p != p1 || p != p2 || p != p3 || p != p4
10701 || p != p5 || p != p6 || p != p7)
10704 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10705 from child file descriptors. If the child closes a descriptor
10706 before it execs or exits, this munges the parent's descriptor
10707 as well. Test for this by closing stdout in the child. */
10708 _exit(close(fileno(stdout)) != 0);
10713 while (wait(&status) != child)
10716 /* Was there some problem with vforking? */
10719 /* Did the child fail? (This shouldn't happen.) */
10722 /* Did the vfork/compiler bug occur? */
10723 || parent != getpid()
10725 /* Did the file descriptor bug occur? */
10726 || fstat(fileno(stdout), &st) != 0
10731 rm -f conftest
$ac_exeext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10733 (eval $ac_link) 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_cv_func_vfork_works
=yes
10744 echo "$as_me: program exited with status $ac_status" >&5
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.
$ac_ext >&5
10748 ( exit $ac_status )
10749 ac_cv_func_vfork_works
=no
10751 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10754 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10755 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10758 if test "x$ac_cv_func_fork_works" = xcross
; then
10759 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10760 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10761 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10764 if test "x$ac_cv_func_vfork_works" = xyes
; then
10766 cat >>confdefs.h
<<\_ACEOF
10767 #define HAVE_WORKING_VFORK 1
10772 cat >>confdefs.h
<<\_ACEOF
10777 if test "x$ac_cv_func_fork_works" = xyes
; then
10779 cat >>confdefs.h
<<\_ACEOF
10780 #define HAVE_WORKING_FORK 1
10787 if test "X$prefix" = "XNONE"; then
10788 acl_final_prefix
="$ac_default_prefix"
10790 acl_final_prefix
="$prefix"
10792 if test "X$exec_prefix" = "XNONE"; then
10793 acl_final_exec_prefix
='${prefix}'
10795 acl_final_exec_prefix
="$exec_prefix"
10797 acl_save_prefix
="$prefix"
10798 prefix
="$acl_final_prefix"
10799 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10800 prefix
="$acl_save_prefix"
10803 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10804 if test "${with_gnu_ld+set}" = set; then
10805 withval
="$with_gnu_ld"
10806 test "$withval" = no || with_gnu_ld
=yes
10810 # Prepare PATH_SEPARATOR.
10811 # The user is always right.
10812 if test "${PATH_SEPARATOR+set}" != set; then
10813 echo "#! /bin/sh" >conf$$.sh
10814 echo "exit 0" >>conf$$.sh
10816 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10824 if test "$GCC" = yes; then
10825 # Check if gcc -print-prog-name=ld gives a path.
10826 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10827 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10830 # gcc leaves a trailing carriage return which upsets mingw
10831 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10833 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10836 # Accept absolute paths.
10837 [\\/]* |
[A-Za-z
]:[\\/]*)
10838 re_direlt
='/[^/][^/]*/\.\./'
10839 # Canonicalize the path of ld
10840 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10841 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10842 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10844 test -z "$LD" && LD
="$ac_prog"
10847 # If it fails, then pretend we aren't using GCC.
10851 # If it is relative, then search for the first ld in PATH.
10852 with_gnu_ld
=unknown
10855 elif test "$with_gnu_ld" = yes; then
10856 echo "$as_me:$LINENO: checking for GNU ld" >&5
10857 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10859 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10860 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10862 if test "${acl_cv_path_LD+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 if test -z "$LD"; then
10866 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10867 for ac_dir
in $PATH; do
10868 test -z "$ac_dir" && ac_dir
=.
10869 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10870 acl_cv_path_LD
="$ac_dir/$ac_prog"
10871 # Check to see if the program is GNU ld. I'd rather use --version,
10872 # but apparently some GNU ld's only accept -v.
10873 # Break only if it was the GNU/non-GNU ld that we prefer.
10874 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10875 *GNU
* |
*'with BFD'*)
10876 test "$with_gnu_ld" != no
&& break ;;
10878 test "$with_gnu_ld" != yes && break ;;
10884 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10888 LD
="$acl_cv_path_LD"
10889 if test -n "$LD"; then
10890 echo "$as_me:$LINENO: result: $LD" >&5
10891 echo "${ECHO_T}$LD" >&6
10893 echo "$as_me:$LINENO: result: no" >&5
10894 echo "${ECHO_T}no" >&6
10896 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10897 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10898 { (exit 1); exit 1; }; }
10899 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10900 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10901 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10905 case `$LD -v 2>&1 </dev/null` in
10906 *GNU
* |
*'with BFD'*)
10907 acl_cv_prog_gnu_ld
=yes ;;
10909 acl_cv_prog_gnu_ld
=no
;;
10912 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10913 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10914 with_gnu_ld
=$acl_cv_prog_gnu_ld
10919 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10920 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10921 if test "${acl_cv_rpath+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10926 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10928 rm -f .
/conftest.sh
10932 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10933 echo "${ECHO_T}$acl_cv_rpath" >&6
10935 libext
="$acl_cv_libext"
10936 shlibext
="$acl_cv_shlibext"
10937 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10938 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10939 hardcode_direct
="$acl_cv_hardcode_direct"
10940 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10941 # Check whether --enable-rpath or --disable-rpath was given.
10942 if test "${enable_rpath+set}" = set; then
10943 enableval
="$enable_rpath"
10957 acl_save_prefix
="$prefix"
10958 prefix
="$acl_final_prefix"
10959 acl_save_exec_prefix
="$exec_prefix"
10960 exec_prefix
="$acl_final_exec_prefix"
10962 eval additional_includedir
=\"$includedir\"
10963 eval additional_libdir
=\"$libdir\"
10965 exec_prefix
="$acl_save_exec_prefix"
10966 prefix
="$acl_save_prefix"
10969 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10970 if test "${with_libiconv_prefix+set}" = set; then
10971 withval
="$with_libiconv_prefix"
10973 if test "X$withval" = "Xno"; then
10976 if test "X$withval" = "X"; then
10978 acl_save_prefix
="$prefix"
10979 prefix
="$acl_final_prefix"
10980 acl_save_exec_prefix
="$exec_prefix"
10981 exec_prefix
="$acl_final_exec_prefix"
10983 eval additional_includedir
=\"$includedir\"
10984 eval additional_libdir
=\"$libdir\"
10986 exec_prefix
="$acl_save_exec_prefix"
10987 prefix
="$acl_save_prefix"
10990 additional_includedir
="$withval/include"
10991 additional_libdir
="$withval/lib"
11001 names_already_handled
=
11002 names_next_round
='iconv '
11003 while test -n "$names_next_round"; do
11004 names_this_round
="$names_next_round"
11006 for name
in $names_this_round; do
11008 for n
in $names_already_handled; do
11009 if test "$n" = "$name"; then
11010 already_handled
=yes
11014 if test -z "$already_handled"; then
11015 names_already_handled
="$names_already_handled $name"
11016 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11017 eval value
=\"\
$HAVE_LIB$uppername\"
11018 if test -n "$value"; then
11019 if test "$value" = yes; then
11020 eval value
=\"\
$LIB$uppername\"
11021 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11022 eval value
=\"\
$LTLIB$uppername\"
11023 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11032 if test $use_additional = yes; then
11033 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11034 found_dir
="$additional_libdir"
11035 found_so
="$additional_libdir/lib$name.$shlibext"
11036 if test -f "$additional_libdir/lib$name.la"; then
11037 found_la
="$additional_libdir/lib$name.la"
11040 if test -f "$additional_libdir/lib$name.$libext"; then
11041 found_dir
="$additional_libdir"
11042 found_a
="$additional_libdir/lib$name.$libext"
11043 if test -f "$additional_libdir/lib$name.la"; then
11044 found_la
="$additional_libdir/lib$name.la"
11049 if test "X$found_dir" = "X"; then
11050 for x
in $LDFLAGS $LTLIBICONV; do
11052 acl_save_prefix
="$prefix"
11053 prefix
="$acl_final_prefix"
11054 acl_save_exec_prefix
="$exec_prefix"
11055 exec_prefix
="$acl_final_exec_prefix"
11057 exec_prefix
="$acl_save_exec_prefix"
11058 prefix
="$acl_save_prefix"
11062 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11063 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11065 found_so
="$dir/lib$name.$shlibext"
11066 if test -f "$dir/lib$name.la"; then
11067 found_la
="$dir/lib$name.la"
11070 if test -f "$dir/lib$name.$libext"; then
11072 found_a
="$dir/lib$name.$libext"
11073 if test -f "$dir/lib$name.la"; then
11074 found_la
="$dir/lib$name.la"
11080 if test "X$found_dir" != "X"; then
11085 if test "X$found_dir" != "X"; then
11086 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11087 if test "X$found_so" != "X"; then
11088 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11089 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11092 for x
in $ltrpathdirs; do
11093 if test "X$x" = "X$found_dir"; then
11098 if test -z "$haveit"; then
11099 ltrpathdirs
="$ltrpathdirs $found_dir"
11101 if test "$hardcode_direct" = yes; then
11102 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11104 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11105 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11107 for x
in $rpathdirs; do
11108 if test "X$x" = "X$found_dir"; then
11113 if test -z "$haveit"; then
11114 rpathdirs
="$rpathdirs $found_dir"
11118 for x
in $LDFLAGS $LIBICONV; do
11120 acl_save_prefix
="$prefix"
11121 prefix
="$acl_final_prefix"
11122 acl_save_exec_prefix
="$exec_prefix"
11123 exec_prefix
="$acl_final_exec_prefix"
11125 exec_prefix
="$acl_save_exec_prefix"
11126 prefix
="$acl_save_prefix"
11128 if test "X$x" = "X-L$found_dir"; then
11133 if test -z "$haveit"; then
11134 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11136 if test "$hardcode_minus_L" != no
; then
11137 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11139 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11145 if test "X$found_a" != "X"; then
11146 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11148 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11151 additional_includedir
=
11152 case "$found_dir" in
11154 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11155 additional_includedir
="$basedir/include"
11158 if test "X$additional_includedir" != "X"; then
11159 if test "X$additional_includedir" != "X/usr/include"; then
11161 if test "X$additional_includedir" = "X/usr/local/include"; then
11162 if test -n "$GCC"; then
11164 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
11168 if test -z "$haveit"; then
11169 for x
in $CPPFLAGS $INCICONV; do
11171 acl_save_prefix
="$prefix"
11172 prefix
="$acl_final_prefix"
11173 acl_save_exec_prefix
="$exec_prefix"
11174 exec_prefix
="$acl_final_exec_prefix"
11176 exec_prefix
="$acl_save_exec_prefix"
11177 prefix
="$acl_save_prefix"
11179 if test "X$x" = "X-I$additional_includedir"; then
11184 if test -z "$haveit"; then
11185 if test -d "$additional_includedir"; then
11186 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11192 if test -n "$found_la"; then
11193 save_libdir
="$libdir"
11194 case "$found_la" in
11195 */* |
*\\*) .
"$found_la" ;;
11196 *) .
"./$found_la" ;;
11198 libdir
="$save_libdir"
11199 for dep
in $dependency_libs; do
11202 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11203 if test "X$additional_libdir" != "X/usr/lib"; then
11205 if test "X$additional_libdir" = "X/usr/local/lib"; then
11206 if test -n "$GCC"; then
11208 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
11212 if test -z "$haveit"; then
11214 for x
in $LDFLAGS $LIBICONV; do
11216 acl_save_prefix
="$prefix"
11217 prefix
="$acl_final_prefix"
11218 acl_save_exec_prefix
="$exec_prefix"
11219 exec_prefix
="$acl_final_exec_prefix"
11221 exec_prefix
="$acl_save_exec_prefix"
11222 prefix
="$acl_save_prefix"
11224 if test "X$x" = "X-L$additional_libdir"; then
11229 if test -z "$haveit"; then
11230 if test -d "$additional_libdir"; then
11231 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11235 for x
in $LDFLAGS $LTLIBICONV; do
11237 acl_save_prefix
="$prefix"
11238 prefix
="$acl_final_prefix"
11239 acl_save_exec_prefix
="$exec_prefix"
11240 exec_prefix
="$acl_final_exec_prefix"
11242 exec_prefix
="$acl_save_exec_prefix"
11243 prefix
="$acl_save_prefix"
11245 if test "X$x" = "X-L$additional_libdir"; then
11250 if test -z "$haveit"; then
11251 if test -d "$additional_libdir"; then
11252 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11259 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11260 if test "$enable_rpath" != no
; then
11262 for x
in $rpathdirs; do
11263 if test "X$x" = "X$dir"; then
11268 if test -z "$haveit"; then
11269 rpathdirs
="$rpathdirs $dir"
11272 for x
in $ltrpathdirs; do
11273 if test "X$x" = "X$dir"; then
11278 if test -z "$haveit"; then
11279 ltrpathdirs
="$ltrpathdirs $dir"
11284 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11287 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11290 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11291 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11297 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11298 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11304 if test "X$rpathdirs" != "X"; then
11305 if test -n "$hardcode_libdir_separator"; then
11307 for found_dir
in $rpathdirs; do
11308 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11310 acl_save_libdir
="$libdir"
11312 eval flag
=\"$hardcode_libdir_flag_spec\"
11313 libdir
="$acl_save_libdir"
11314 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11316 for found_dir
in $rpathdirs; do
11317 acl_save_libdir
="$libdir"
11318 libdir
="$found_dir"
11319 eval flag
=\"$hardcode_libdir_flag_spec\"
11320 libdir
="$acl_save_libdir"
11321 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11325 if test "X$ltrpathdirs" != "X"; then
11326 for found_dir
in $ltrpathdirs; do
11327 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11337 am_save_CPPFLAGS
="$CPPFLAGS"
11339 for element
in $INCICONV; do
11341 for x
in $CPPFLAGS; do
11343 acl_save_prefix
="$prefix"
11344 prefix
="$acl_final_prefix"
11345 acl_save_exec_prefix
="$exec_prefix"
11346 exec_prefix
="$acl_final_exec_prefix"
11348 exec_prefix
="$acl_save_exec_prefix"
11349 prefix
="$acl_save_prefix"
11351 if test "X$x" = "X$element"; then
11356 if test -z "$haveit"; then
11357 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11362 echo "$as_me:$LINENO: checking for iconv" >&5
11363 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11364 if test "${am_cv_func_iconv+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 am_cv_func_iconv
="no, consider installing GNU libiconv"
11370 cat >conftest.
$ac_ext <<_ACEOF
11373 cat confdefs.h
>>conftest.
$ac_ext
11374 cat >>conftest.
$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 #include <stdlib.h>
11381 iconv_t cd = iconv_open("","");
11382 iconv(cd,NULL,NULL,NULL,NULL);
11388 rm -f conftest.
$ac_objext conftest
$ac_exeext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11390 (eval $ac_link) 2>conftest.er1
11392 grep -v '^ *+' conftest.er1
>conftest.err
11394 cat conftest.err
>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try
='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try
='test -s conftest$ac_exeext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 am_cv_func_iconv
=yes
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.
$ac_ext >&5
11416 rm -f conftest.err conftest.
$ac_objext \
11417 conftest
$ac_exeext conftest.
$ac_ext
11418 if test "$am_cv_func_iconv" != yes; then
11419 am_save_LIBS
="$LIBS"
11420 LIBS
="$LIBS $LIBICONV"
11421 cat >conftest.
$ac_ext <<_ACEOF
11424 cat confdefs.h
>>conftest.
$ac_ext
11425 cat >>conftest.
$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <stdlib.h>
11432 iconv_t cd = iconv_open("","");
11433 iconv(cd,NULL,NULL,NULL,NULL);
11439 rm -f conftest.
$ac_objext conftest
$ac_exeext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441 (eval $ac_link) 2>conftest.er1
11443 grep -v '^ *+' conftest.er1
>conftest.err
11445 cat conftest.err
>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try
='test -z "$ac_c_werror_flag"
11449 || test ! -s conftest.err'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; } &&
11455 { ac_try
='test -s conftest$ac_exeext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 am_cv_lib_iconv
=yes
11462 am_cv_func_iconv
=yes
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.
$ac_ext >&5
11468 rm -f conftest.err conftest.
$ac_objext \
11469 conftest
$ac_exeext conftest.
$ac_ext
11470 LIBS
="$am_save_LIBS"
11474 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11475 echo "${ECHO_T}$am_cv_func_iconv" >&6
11476 if test "$am_cv_func_iconv" = yes; then
11478 cat >>confdefs.h
<<\_ACEOF
11479 #define HAVE_ICONV 1
11483 if test "$am_cv_lib_iconv" = yes; then
11484 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11485 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11486 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11487 echo "${ECHO_T}$LIBICONV" >&6
11489 CPPFLAGS
="$am_save_CPPFLAGS"
11496 if test "$am_cv_func_iconv" = yes; then
11497 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11498 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11499 if test "${am_cv_proto_iconv+set}" = set; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 cat >conftest.
$ac_ext <<_ACEOF
11506 cat confdefs.h
>>conftest.
$ac_ext
11507 cat >>conftest.
$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11510 #include <stdlib.h>
11516 #if defined(__STDC__) || defined(__cplusplus)
11517 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11530 rm -f conftest.
$ac_objext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11532 (eval $ac_compile) 2>conftest.er1
11534 grep -v '^ *+' conftest.er1
>conftest.err
11536 cat conftest.err
>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try
='test -z "$ac_c_werror_flag"
11540 || test ! -s conftest.err'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; } &&
11546 { ac_try
='test -s conftest.$ac_objext'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 am_cv_proto_iconv_arg1
=""
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.
$ac_ext >&5
11557 am_cv_proto_iconv_arg1
="const"
11559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11560 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);"
11563 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11564 echo "$as_me:$LINENO: result: ${ac_t:-
11565 }$am_cv_proto_iconv" >&5
11566 echo "${ECHO_T}${ac_t:-
11567 }$am_cv_proto_iconv" >&6
11569 cat >>confdefs.h
<<_ACEOF
11570 #define ICONV_CONST $am_cv_proto_iconv_arg1
11575 # Until we have in-tree GNU iconv:
11582 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11583 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11584 if test "${am_cv_langinfo_codeset+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 cat >conftest.
$ac_ext <<_ACEOF
11590 cat confdefs.h
>>conftest.
$ac_ext
11591 cat >>conftest.
$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 #include <langinfo.h>
11597 char* cs = nl_langinfo(CODESET);
11602 rm -f conftest.
$ac_objext conftest
$ac_exeext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11604 (eval $ac_link) 2>conftest.er1
11606 grep -v '^ *+' conftest.er1
>conftest.err
11608 cat conftest.err
>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try
='test -z "$ac_c_werror_flag"
11612 || test ! -s conftest.err'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try
='test -s conftest$ac_exeext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 am_cv_langinfo_codeset
=yes
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.
$ac_ext >&5
11629 am_cv_langinfo_codeset
=no
11631 rm -f conftest.err conftest.
$ac_objext \
11632 conftest
$ac_exeext conftest.
$ac_ext
11635 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11636 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11637 if test $am_cv_langinfo_codeset = yes; then
11639 cat >>confdefs.h
<<\_ACEOF
11640 #define HAVE_LANGINFO_CODESET 1
11646 # We will need to find libiberty.h and ansidecl.h
11647 saved_CFLAGS
="$CFLAGS"
11648 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11688 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11689 strsignal strstr strverscmp \
11690 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11691 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
11693 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11694 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11695 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11696 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 cat >conftest.
$ac_ext <<_ACEOF
11702 cat confdefs.h
>>conftest.
$ac_ext
11703 cat >>conftest.
$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11706 #define $ac_tr_decl 1
11708 #include "ansidecl.h"
11709 #include "system.h"
11715 char *(*pfn) = (char *(*)) $ac_func ;
11721 rm -f conftest.
$ac_objext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 (eval $ac_compile) 2>conftest.er1
11725 grep -v '^ *+' conftest.er1
>conftest.err
11727 cat conftest.err
>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try
='test -z "$ac_c_werror_flag"
11731 || test ! -s conftest.err'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; } &&
11737 { ac_try
='test -s conftest.$ac_objext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "gcc_cv_have_decl_$ac_func=yes"
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.
$ac_ext >&5
11748 eval "gcc_cv_have_decl_$ac_func=no"
11750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11753 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11754 echo "$as_me:$LINENO: result: yes" >&5
11755 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11756 #define $ac_tr_decl 1
11760 echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11762 #define $ac_tr_decl 0
11773 for ac_func
in getrlimit setrlimit getrusage
11775 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11776 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11777 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11778 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 cat >conftest.
$ac_ext <<_ACEOF
11784 cat confdefs.h
>>conftest.
$ac_ext
11785 cat >>conftest.
$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11788 #define $ac_tr_decl 1
11790 #include "ansidecl.h"
11791 #include "system.h"
11792 #ifdef HAVE_SYS_RESOURCE_H
11793 #include <sys/resource.h>
11801 char *(*pfn) = (char *(*)) $ac_func ;
11807 rm -f conftest.
$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>conftest.er1
11811 grep -v '^ *+' conftest.er1
>conftest.err
11813 cat conftest.err
>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try
='test -z "$ac_c_werror_flag"
11817 || test ! -s conftest.err'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try
='test -s conftest.$ac_objext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
11829 eval "gcc_cv_have_decl_$ac_func=yes"
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.
$ac_ext >&5
11834 eval "gcc_cv_have_decl_$ac_func=no"
11836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11839 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11840 echo "$as_me:$LINENO: result: yes" >&5
11841 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11842 #define $ac_tr_decl 1
11846 echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11848 #define $ac_tr_decl 0
11856 cat >conftest.
$ac_ext <<_ACEOF
11859 cat confdefs.h
>>conftest.
$ac_ext
11860 cat >>conftest.
$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11863 #include "ansidecl.h"
11864 #include "system.h"
11865 #ifdef HAVE_SYS_RESOURCE_H
11866 #include <sys/resource.h>
11877 rm -f conftest.
$ac_objext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>conftest.er1
11881 grep -v '^ *+' conftest.er1
>conftest.err
11883 cat conftest.err
>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try
='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try
='test -s conftest.$ac_objext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.
$ac_ext >&5
11905 cat >>confdefs.h
<<\_ACEOF
11906 #define rlim_t long
11910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11912 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11913 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11914 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11915 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11917 for ac_func
in ldgetname
11919 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11920 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11921 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11922 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 cat >conftest.
$ac_ext <<_ACEOF
11928 cat confdefs.h
>>conftest.
$ac_ext
11929 cat >>conftest.
$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11932 #define $ac_tr_decl 1
11934 #include "ansidecl.h"
11935 #include "system.h"
11936 #ifdef HAVE_LDFCN_H
11947 char *(*pfn) = (char *(*)) $ac_func ;
11953 rm -f conftest.
$ac_objext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>conftest.er1
11957 grep -v '^ *+' conftest.er1
>conftest.err
11959 cat conftest.err
>&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try
='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try
='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 eval "gcc_cv_have_decl_$ac_func=yes"
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.
$ac_ext >&5
11980 eval "gcc_cv_have_decl_$ac_func=no"
11982 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11985 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11986 echo "$as_me:$LINENO: result: yes" >&5
11987 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11988 #define $ac_tr_decl 1
11992 echo "$as_me:$LINENO: result: no" >&5
11993 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11994 #define $ac_tr_decl 0
12003 for ac_func
in times
12005 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12006 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12007 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12008 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 cat >conftest.
$ac_ext <<_ACEOF
12014 cat confdefs.h
>>conftest.
$ac_ext
12015 cat >>conftest.
$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12018 #define $ac_tr_decl 1
12020 #include "ansidecl.h"
12021 #include "system.h"
12022 #ifdef HAVE_SYS_TIMES_H
12023 #include <sys/times.h>
12031 char *(*pfn) = (char *(*)) $ac_func ;
12037 rm -f conftest.
$ac_objext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12039 (eval $ac_compile) 2>conftest.er1
12041 grep -v '^ *+' conftest.er1
>conftest.err
12043 cat conftest.err
>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try
='test -z "$ac_c_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try
='test -s conftest.$ac_objext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 eval "gcc_cv_have_decl_$ac_func=yes"
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.
$ac_ext >&5
12064 eval "gcc_cv_have_decl_$ac_func=no"
12066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12069 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12070 echo "$as_me:$LINENO: result: yes" >&5
12071 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12072 #define $ac_tr_decl 1
12076 echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12078 #define $ac_tr_decl 0
12087 for ac_func
in sigaltstack
12089 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12090 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12091 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12092 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 cat >conftest.
$ac_ext <<_ACEOF
12098 cat confdefs.h
>>conftest.
$ac_ext
12099 cat >>conftest.
$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12102 #define $ac_tr_decl 1
12104 #include "ansidecl.h"
12105 #include "system.h"
12106 #include <signal.h>
12113 char *(*pfn) = (char *(*)) $ac_func ;
12119 rm -f conftest.
$ac_objext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12121 (eval $ac_compile) 2>conftest.er1
12123 grep -v '^ *+' conftest.er1
>conftest.err
12125 cat conftest.err
>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try
='test -z "$ac_c_werror_flag"
12129 || test ! -s conftest.err'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try
='test -s conftest.$ac_objext'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 eval "gcc_cv_have_decl_$ac_func=yes"
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.
$ac_ext >&5
12146 eval "gcc_cv_have_decl_$ac_func=no"
12148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12151 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12152 echo "$as_me:$LINENO: result: yes" >&5
12153 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12154 #define $ac_tr_decl 1
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12160 #define $ac_tr_decl 0
12168 # More time-related stuff.
12169 echo "$as_me:$LINENO: checking for struct tms" >&5
12170 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12171 if test "${ac_cv_struct_tms+set}" = set; then
12172 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. */
12182 #include "ansidecl.h"
12183 #include "system.h"
12184 #ifdef HAVE_SYS_TIMES_H
12185 #include <sys/times.h>
12196 rm -f conftest.
$ac_objext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12198 (eval $ac_compile) 2>conftest.er1
12200 grep -v '^ *+' conftest.er1
>conftest.err
12202 cat conftest.err
>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try
='test -z "$ac_c_werror_flag"
12206 || test ! -s conftest.err'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; } &&
12212 { ac_try
='test -s conftest.$ac_objext'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 ac_cv_struct_tms
=yes
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.
$ac_ext >&5
12223 ac_cv_struct_tms
=no
12225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12227 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12228 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12229 if test $ac_cv_struct_tms = yes; then
12231 cat >>confdefs.h
<<\_ACEOF
12232 #define HAVE_STRUCT_TMS 1
12237 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12238 # revisit after autoconf 2.50.
12239 echo "$as_me:$LINENO: checking for clock_t" >&5
12240 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12241 if test "${gcc_cv_type_clock_t+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 cat >conftest.
$ac_ext <<_ACEOF
12248 cat confdefs.h
>>conftest.
$ac_ext
12249 cat >>conftest.
$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12252 #include "ansidecl.h"
12253 #include "system.h"
12263 rm -f conftest.
$ac_objext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12265 (eval $ac_compile) 2>conftest.er1
12267 grep -v '^ *+' conftest.er1
>conftest.err
12269 cat conftest.err
>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try
='test -z "$ac_c_werror_flag"
12273 || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try
='test -s conftest.$ac_objext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 gcc_cv_type_clock_t
=yes
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.
$ac_ext >&5
12290 gcc_cv_type_clock_t
=no
12292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12294 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12295 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12296 if test $gcc_cv_type_clock_t = yes; then
12298 cat >>confdefs.h
<<\_ACEOF
12299 #define HAVE_CLOCK_T 1
12304 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12305 CFLAGS
="$saved_CFLAGS"
12307 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12308 if test "${enable_initfini_array+set}" = set; then
12309 enableval
="$enable_initfini_array"
12313 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12314 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12315 if test "${gcc_cv_initfini_array+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 if test "$cross_compiling" = yes; then
12319 gcc_cv_initfini_array
=no
12321 cat >conftest.
$ac_ext <<_ACEOF
12324 cat confdefs.h
>>conftest.
$ac_ext
12325 cat >>conftest.
$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12329 int main (void) { return x; }
12330 int foo (void) { x = 0; }
12331 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12333 rm -f conftest
$ac_exeext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335 (eval $ac_link) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 gcc_cv_initfini_array
=yes
12346 echo "$as_me: program exited with status $ac_status" >&5
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.
$ac_ext >&5
12350 ( exit $ac_status )
12351 gcc_cv_initfini_array
=no
12353 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12356 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12357 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12358 enable_initfini_array
=$gcc_cv_initfini_array
12361 if test $enable_initfini_array = yes; then
12363 cat >>confdefs.h
<<\_ACEOF
12364 #define HAVE_INITFINI_ARRAY 1
12369 # mkdir takes a single argument on some systems.
12370 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12371 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12372 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 cat >conftest.
$ac_ext <<_ACEOF
12378 cat confdefs.h
>>conftest.
$ac_ext
12379 cat >>conftest.
$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12382 #include <sys/types.h>
12383 #ifdef HAVE_SYS_STAT_H
12384 # include <sys/stat.h>
12386 #ifdef HAVE_UNISTD_H
12387 # include <unistd.h>
12389 #ifdef HAVE_DIRECT_H
12390 # include <direct.h>
12400 rm -f conftest.
$ac_objext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402 (eval $ac_compile) 2>conftest.er1
12404 grep -v '^ *+' conftest.er1
>conftest.err
12406 cat conftest.err
>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try
='test -z "$ac_c_werror_flag"
12410 || test ! -s conftest.err'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try
='test -s conftest.$ac_objext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 gcc_cv_mkdir_takes_one_arg
=no
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.
$ac_ext >&5
12427 gcc_cv_mkdir_takes_one_arg
=yes
12429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12431 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12432 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12433 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12435 cat >>confdefs.h
<<\_ACEOF
12436 #define MKDIR_TAKES_ONE_ARG 1
12448 # With Setjmp/Longjmp based exception handling.
12449 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12450 if test "${enable_sjlj_exceptions+set}" = set; then
12451 enableval
="$enable_sjlj_exceptions"
12452 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12454 cat >>confdefs.h
<<_ACEOF
12455 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12460 # For platforms with the unwind ABI which includes an unwind library,
12461 # libunwind, we can choose to use the system libunwind.
12463 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12464 if test "${with_system_libunwind+set}" = set; then
12465 withval
="$with_system_libunwind"
12469 # --------------------------------------------------------
12470 # Build, host, and target specific configuration fragments
12471 # --------------------------------------------------------
12473 # Collect build-machine-specific information.
12474 .
${srcdir}/config.build
12476 # Collect host-machine-specific information.
12477 .
${srcdir}/config.
host
12481 # Collect target-machine-specific information.
12482 .
${srcdir}/config.gcc
12484 extra_objs
="${host_extra_objs} ${extra_objs}"
12485 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12487 # Default the target-machine variables that were not explicitly set.
12488 if test x
"$tm_file" = x
12489 then tm_file
=$cpu_type/$cpu_type.h
; fi
12491 if test x
"$extra_headers" = x
12492 then extra_headers
=; fi
12494 if test x
$md_file = x
12495 then md_file
=$cpu_type/$cpu_type.md
; fi
12497 if test x
$out_file = x
12498 then out_file
=$cpu_type/$cpu_type.c
; fi
12500 if test x
"$tmake_file" = x
12501 then tmake_file
=$cpu_type/t-
$cpu_type
12504 if test x
"$dwarf2" = xyes
12505 then tm_file
="$tm_file tm-dwarf2.h"
12508 # Say what files are being used for the output code and MD file.
12509 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12510 echo "Using \`$srcdir/config/$md_file' as machine description file."
12512 # If any of the xm_file variables contain nonexistent files, warn
12513 # about them and drop them.
12516 for x
in $build_xm_file; do
12517 if test -f $srcdir/config
/$x
12519 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12520 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12523 build_xm_file
="$bx"
12526 for x
in $host_xm_file; do
12527 if test -f $srcdir/config
/$x
12529 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12530 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12536 for x
in $xm_file; do
12537 if test -f $srcdir/config
/$x
12539 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12540 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12546 for f
in $tm_file; do
12549 if test $count = ax
; then
12550 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12552 echo "Using the following target machine macro files:"
12553 for f
in $tm_file; do
12554 echo " $srcdir/config/$f"
12558 if test x
$need_64bit_hwint = xyes
; then
12560 cat >>confdefs.h
<<\_ACEOF
12561 #define NEED_64BIT_HOST_WIDE_INT 1
12566 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12568 cat >>confdefs.h
<<\_ACEOF
12569 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12575 for f
in $host_xm_file; do
12578 if test $count = a
; then
12580 elif test $count = ax
; then
12581 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12583 echo "Using the following host machine macro files:"
12584 for f
in $host_xm_file; do
12585 echo " $srcdir/config/$f"
12588 echo "Using ${out_host_hook_obj} for host machine hooks."
12590 if test "$host_xm_file" != "$build_xm_file"; then
12592 for f
in $build_xm_file; do
12595 if test $count = a
; then
12597 elif test $count = ax
; then
12598 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12600 echo "Using the following build machine macro files:"
12601 for f
in $build_xm_file; do
12602 echo " $srcdir/config/$f"
12609 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12610 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12611 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 cat >conftest.
$ac_ext <<_ACEOF
12616 #include <sys/signal.h>
12617 #include <ucontext.h>
12618 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12621 rm -f conftest.
$ac_objext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12623 (eval $ac_compile) 2>conftest.er1
12625 grep -v '^ *+' conftest.er1
>conftest.err
12627 cat conftest.err
>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try
='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try
='test -s conftest.$ac_objext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 gcc_cv_mcontext_underscores
=no
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.
$ac_ext >&5
12648 gcc_cv_mcontext_underscores
=yes
12650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12652 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12653 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12654 if test $gcc_cv_mcontext_underscores = yes; then
12656 cat >>confdefs.h
<<\_ACEOF
12657 #define HAS_MCONTEXT_T_UNDERSCORES
12668 # Check if a valid thread package
12669 case ${enable_threads} in
12672 target_thread_file
='single'
12676 target_thread_file
='single'
12678 aix | dce | gnat | irix | posix | posix95 | rtems | \
12679 single | solaris | vxworks | win32
)
12680 target_thread_file
=${enable_threads}
12683 echo "${enable_threads} is an unknown thread package" 1>&2
12688 if test x
${thread_file} = x
; then
12689 # No thread file set by target-specific clauses in config.gcc,
12690 # so use file chosen by default logic above
12691 thread_file
=${target_thread_file}
12694 # Make gthr-default.h if we have a thread file.
12696 if test $thread_file != single
; then
12697 rm -f gthr-default.h
12698 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12699 gthread_flags
=-DHAVE_GTHR_DEFAULT
12708 if test x
$enable___cxa_atexit = xyes || \
12709 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12710 if test x
$host = x
$target; then
12711 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12712 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12713 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 cat >conftest.
$ac_ext <<_ACEOF
12719 cat confdefs.h
>>conftest.
$ac_ext
12720 cat >>conftest.
$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12724 #define __cxa_atexit innocuous___cxa_atexit
12726 /* System header to define __stub macros and hopefully few prototypes,
12727 which can conflict with char __cxa_atexit (); below.
12728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12729 <limits.h> exists even on freestanding compilers. */
12732 # include <limits.h>
12734 # include <assert.h>
12737 #undef __cxa_atexit
12739 /* Override any gcc2 internal prototype to avoid an error. */
12744 /* We use char because int might match the return type of a gcc2
12745 builtin and then its argument prototype would still apply. */
12746 char __cxa_atexit ();
12747 /* The GNU C library defines this for functions which it implements
12748 to always fail with ENOSYS. Some functions are actually named
12749 something starting with __ and the normal name is an alias. */
12750 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12753 char (*f) () = __cxa_atexit;
12762 return f != __cxa_atexit;
12767 rm -f conftest.
$ac_objext conftest
$ac_exeext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12769 (eval $ac_link) 2>conftest.er1
12771 grep -v '^ *+' conftest.er1
>conftest.err
12773 cat conftest.err
>&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } &&
12776 { ac_try
='test -z "$ac_c_werror_flag"
12777 || test ! -s conftest.err'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try
='test -s conftest$ac_exeext'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12789 ac_cv_func___cxa_atexit
=yes
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.
$ac_ext >&5
12794 ac_cv_func___cxa_atexit
=no
12796 rm -f conftest.err conftest.
$ac_objext \
12797 conftest
$ac_exeext conftest.
$ac_ext
12799 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12800 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12801 if test $ac_cv_func___cxa_atexit = yes; then
12804 echo "__cxa_atexit can't be enabled on this target"
12808 # We can't check for __cxa_atexit when building a cross, so assume
12812 if test x
$use_cxa_atexit = xyes
; then
12814 cat >>confdefs.h
<<\_ACEOF
12815 #define DEFAULT_USE_CXA_ATEXIT 2
12821 # Look for a file containing extra machine modes.
12822 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12823 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12826 cat >>confdefs.h
<<_ACEOF
12827 #define EXTRA_MODES_FILE "config/$extra_modes"
12832 # Convert extra_options into a form suitable for Makefile use.
12834 for f
in $extra_options; do
12835 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12839 # auto-host.h is the file containing items generated by autoconf and is
12840 # the first file included by config.h.
12841 # If host=build, it is correct to have bconfig include auto-host.h
12842 # as well. If host!=build, we are in error and need to do more
12843 # work to find out the build config parameters.
12844 if test x
$host = x
$build
12846 build_auto
=auto-host.h
12848 # We create a subdir, then run autoconf in the subdir.
12849 # To prevent recursion we set host and build for the new
12850 # invocation of configure to the build for this invocation
12857 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12858 *) realsrcdir
=..
/${srcdir};;
12860 saved_CFLAGS
="${CFLAGS}"
12861 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12862 ${realsrcdir}/configure \
12863 --enable-languages=${enable_languages-all} \
12864 --target=$target_alias --host=$build_alias --build=$build_alias
12865 CFLAGS
="${saved_CFLAGS}"
12867 # We just finished tests for the build machine, so rename
12868 # the file auto-build.h in the gcc directory.
12869 mv auto-host.h ..
/auto-build.h
12872 build_auto
=auto-build.h
12876 tm_file
="${tm_file} defaults.h"
12877 tm_p_file
="${tm_p_file} tm-preds.h"
12878 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12879 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12880 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12881 # put this back in temporarily.
12882 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12888 # Compile in configure arguments.
12889 if test -f configargs.h
; then
12890 # Being re-configured.
12891 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12892 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12894 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12897 # Double all backslashes and backslash all quotes to turn
12898 # gcc_config_arguments into a C string.
12899 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12900 $gcc_config_arguments
12902 gcc_config_arguments_str
=`cat conftest.out`
12905 cat > configargs.h
<<EOF
12906 /* Generated automatically. */
12907 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12908 static const char thread_model[] = "$thread_file";
12910 static const struct {
12911 const char *name, *value;
12912 } configure_default_options[] = $configure_default_options;
12915 # Internationalization
12916 ZW_GNU_GETTEXT_SISTER_DIR
12918 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12919 # -liconv on the link line twice.
12920 case "$LIBINTL" in *$LIBICONV*)
12924 # Check whether --enable-secureplt or --disable-secureplt was given.
12925 if test "${enable_secureplt+set}" = set; then
12926 enableval
="$enable_secureplt"
12930 # Windows32 Registry support for specifying GCC installation paths.
12931 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12932 if test "${enable_win32_registry+set}" = set; then
12933 enableval
="$enable_win32_registry"
12938 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12939 if test "x$enable_win32_registry" != xno
; then
12940 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12941 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12942 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 ac_func_search_save_LIBS
=$LIBS
12946 ac_cv_search_RegOpenKeyExA
=no
12947 cat >conftest.
$ac_ext <<_ACEOF
12950 cat confdefs.h
>>conftest.
$ac_ext
12951 cat >>conftest.
$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12954 /* Override any gcc2 internal prototype to avoid an error. */
12958 /* We use char because int might match the return type of a gcc2
12959 builtin and then its argument prototype would still apply. */
12960 char RegOpenKeyExA ();
12969 rm -f conftest.
$ac_objext conftest
$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971 (eval $ac_link) 2>conftest.er1
12973 grep -v '^ *+' conftest.er1
>conftest.err
12975 cat conftest.err
>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try
='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try
='test -s conftest$ac_exeext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_search_RegOpenKeyExA
="none required"
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.
$ac_ext >&5
12997 rm -f conftest.err conftest.
$ac_objext \
12998 conftest
$ac_exeext conftest.
$ac_ext
12999 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13000 for ac_lib
in advapi32
; do
13001 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13002 cat >conftest.
$ac_ext <<_ACEOF
13005 cat confdefs.h
>>conftest.
$ac_ext
13006 cat >>conftest.
$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13009 /* Override any gcc2 internal prototype to avoid an error. */
13013 /* We use char because int might match the return type of a gcc2
13014 builtin and then its argument prototype would still apply. */
13015 char RegOpenKeyExA ();
13024 rm -f conftest.
$ac_objext conftest
$ac_exeext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13026 (eval $ac_link) 2>conftest.er1
13028 grep -v '^ *+' conftest.er1
>conftest.err
13030 cat conftest.err
>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try
='test -z "$ac_c_werror_flag"
13034 || test ! -s conftest.err'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; } &&
13040 { ac_try
='test -s conftest$ac_exeext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13046 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.
$ac_ext >&5
13053 rm -f conftest.err conftest.
$ac_objext \
13054 conftest
$ac_exeext conftest.
$ac_ext
13057 LIBS
=$ac_func_search_save_LIBS
13059 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13060 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13061 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13062 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13065 enable_win32_registry
=no
13070 if test "x$enable_win32_registry" != xno
; then
13072 cat >>confdefs.h
<<\_ACEOF
13073 #define ENABLE_WIN32_REGISTRY 1
13077 if test "x$enable_win32_registry" != xyes \
13078 && test "x$enable_win32_registry" != x
; then
13080 cat >>confdefs.h
<<_ACEOF
13081 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13089 # Get an absolute path to the GCC top-level source directory
13090 holddir
=`${PWDCMD-pwd}`
13092 topdir
=`${PWDCMD-pwd}`
13095 # Conditionalize the makefile for this host machine.
13097 for f
in ${host_xmake_file}
13099 if test -f ${srcdir}/config
/$f
13101 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13105 # Conditionalize the makefile for this target machine.
13107 for f
in ${tmake_file}
13109 if test -f ${srcdir}/config
/$f
13111 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13114 tmake_file
="${tmake_file_}"
13116 # If the host doesn't support symlinks, modify CC in
13117 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
13118 # Otherwise, we can use "CC=$(CC)".
13122 cc_set_by_configure
="\$(CC)"
13123 quoted_cc_set_by_configure
="\$(CC)"
13124 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
13125 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
13128 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
13129 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
13130 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
13131 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
13135 # This is a terrible hack which will go away some day.
13136 host_cc_for_libada
=${CC}
13139 out_object_file
=`basename $out_file .c`.o
13141 tm_file_list
="options.h"
13142 tm_include_list
="options.h"
13143 for f
in $tm_file; do
13146 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13147 tm_include_list
="${tm_include_list} $f"
13150 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13151 tm_include_list
="${tm_include_list} config/$f"
13158 for f
in $tm_p_file; do
13161 tm_p_file_list
="${tm_p_file_list} $f"
13162 tm_p_include_list
="${tm_p_include_list} $f"
13165 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13166 tm_p_include_list
="${tm_p_include_list} config/$f"
13172 for f
in $xm_file; do
13175 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13176 xm_include_list
="${xm_include_list} $f"
13179 xm_file_list
="${xm_file_list} $f"
13180 xm_include_list
="${xm_include_list} $f"
13183 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13184 xm_include_list
="${xm_include_list} config/$f"
13190 host_xm_include_list
=
13191 for f
in $host_xm_file; do
13194 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13195 host_xm_include_list
="${host_xm_include_list} $f"
13198 host_xm_file_list
="${host_xm_file_list} $f"
13199 host_xm_include_list
="${host_xm_include_list} $f"
13202 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13203 host_xm_include_list
="${host_xm_include_list} config/$f"
13208 build_xm_file_list
=
13209 for f
in $build_xm_file; do
13212 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13213 build_xm_include_list
="${build_xm_include_list} $f"
13215 auto-build.h | auto-host.h
)
13216 build_xm_file_list
="${build_xm_file_list} $f"
13217 build_xm_include_list
="${build_xm_include_list} $f"
13220 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13221 build_xm_include_list
="${build_xm_include_list} config/$f"
13226 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
13227 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13230 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13232 if test "x$with_build_sysroot" != x
; then
13233 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13235 # This value is used, even on a native system, because
13236 # CROSS_SYSTEM_HEADER_DIR is just
13237 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13238 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13241 if test x
$host != x
$target
13243 CROSS
="-DCROSS_COMPILE"
13245 SYSTEM_HEADER_DIR
=$build_system_header_dir
13246 case "$host","$target" in
13247 # Darwin crosses can use the host system's libraries and headers,
13248 # because of the fat library support. Of course, it must be the
13249 # same version of Darwin on both sides. Allow the user to
13250 # just say --target=foo-darwin without a version number to mean
13251 # "the version on this system".
13252 *-*-darwin*,*-*-darwin*)
13253 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13254 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13255 if test $hostos = $targetos -o $targetos = darwin
; then
13257 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13262 i?
86-*-*,x86_64-
*-* \
13263 | powerpc
*-*-*,powerpc64
*-*-*)
13264 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13266 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13267 SYSTEM_HEADER_DIR
=$build_system_header_dir
13270 # If this is a cross-compiler that does not
13271 # have its own set of headers then define
13274 # If this is using newlib, without having the headers available now,
13275 # then define inhibit_libc in LIBGCC2_CFLAGS.
13276 # This prevents libgcc2 from containing any code which requires libc
13279 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13280 test x
$with_newlib = xyes
; } &&
13281 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13286 # When building gcc with a cross-compiler, we need to adjust things so
13287 # that the generator programs are still built with the native compiler.
13288 # Also, we cannot run fixincludes or fix-header.
13290 # These are the normal (build=host) settings:
13291 CC_FOR_BUILD
='$(CC)'
13292 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13293 STMP_FIXINC
=stmp-fixinc
13295 # Possibly disable fixproto, on a per-target basis.
13296 case ${use_fixproto} in
13301 STMP_FIXPROTO
=stmp-fixproto
13306 # And these apply if build != host, or we are generating coverage data
13307 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13309 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13311 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13312 if test "x$STMP_FIXPROTO" != x
; then
13313 STMP_FIXPROTO
=stmp-install-fixproto
13318 # Expand extra_headers to include complete path.
13319 # This substitutes for lots of t-* files.
13320 extra_headers_list
=
13321 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13322 for file in ${extra_headers} ; do
13323 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13326 # Define collect2 in Makefile.
13327 case $host_can_use_collect2 in
13329 *) collect2
='collect2$(exeext)' ;;
13333 # Add a definition of USE_COLLECT2 if system wants one.
13334 case $use_collect2 in
13335 no
) use_collect2
= ;;
13338 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13339 xm_defines
="${xm_defines} USE_COLLECT2"
13340 case $host_can_use_collect2 in
13342 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13343 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13344 { (exit 1); exit 1; }; }
13350 # ---------------------------
13351 # Assembler & linker features
13352 # ---------------------------
13354 # Identify the assembler which will work hand-in-glove with the newly
13355 # built GCC, so that we can examine its features. This is the assembler
13356 # which will be driven by the driver program.
13358 # If build != host, and we aren't building gas in-tree, we identify a
13359 # build->target assembler and hope that it will have the same features
13360 # as the host->target assembler we'll be using.
13361 gcc_cv_gas_major_version
=
13362 gcc_cv_gas_minor_version
=
13363 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13365 if test "${gcc_cv_as+set}" = set; then
13369 if test -x "$DEFAULT_ASSEMBLER"; then
13370 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13371 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13372 && test -f ..
/gas
/Makefile \
13373 && test x
$build = x
$host; then
13374 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13375 elif test -x as
$build_exeext; then
13376 # Build using assembler in the current directory.
13377 gcc_cv_as
=.
/as
$build_exeext
13378 elif test -x $AS_FOR_TARGET; then
13379 gcc_cv_as
="$AS_FOR_TARGET"
13381 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13382 set dummy
$AS_FOR_TARGET; ac_word
=$2
13383 echo "$as_me:$LINENO: checking for $ac_word" >&5
13384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13385 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13394 for as_dir
in $PATH
13397 test -z "$as_dir" && as_dir
=.
13398 for ac_exec_ext
in '' $ac_executable_extensions; do
13399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13412 if test -n "$gcc_cv_as"; then
13413 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13414 echo "${ECHO_T}$gcc_cv_as" >&6
13416 echo "$as_me:$LINENO: result: no" >&5
13417 echo "${ECHO_T}no" >&6
13424 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13427 echo "$as_me:$LINENO: checking what assembler to use" >&5
13428 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13429 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13430 # Single tree build which includes gas. We want to prefer it
13431 # over whatever linker top-level may have detected, since
13432 # we'll use what we're building after installation anyway.
13433 echo "$as_me:$LINENO: result: newly built gas" >&5
13434 echo "${ECHO_T}newly built gas" >&6
13436 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13437 for f
in $gcc_cv_as_bfd_srcdir/configure \
13438 $gcc_cv_as_gas_srcdir/configure \
13439 $gcc_cv_as_gas_srcdir/configure.
in \
13440 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13441 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13442 if test x
$gcc_cv_gas_version != x
; then
13446 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13447 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13448 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13449 case $gcc_cv_gas_patch_version in
13450 "") gcc_cv_gas_patch_version
="0" ;;
13452 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13453 + $gcc_cv_gas_minor_version \) \* 1000 \
13454 + $gcc_cv_gas_patch_version`
13456 in_tree_gas_is_elf
=no
13457 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13458 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13459 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13461 in_tree_gas_is_elf
=yes
13464 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13465 echo "${ECHO_T}$gcc_cv_as" >&6
13469 # Identify the linker which will work hand-in-glove with the newly
13470 # built GCC, so that we can examine its features. This is the linker
13471 # which will be driven by the driver program.
13473 # If build != host, and we aren't building gas in-tree, we identify a
13474 # build->target linker and hope that it will have the same features
13475 # as the host->target linker we'll be using.
13476 gcc_cv_gld_major_version
=
13477 gcc_cv_gld_minor_version
=
13478 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13479 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13481 if test "${gcc_cv_ld+set}" = set; then
13485 if test -x "$DEFAULT_LINKER"; then
13486 gcc_cv_ld
="$DEFAULT_LINKER"
13487 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13488 && test -f ..
/ld
/Makefile \
13489 && test x
$build = x
$host; then
13490 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13491 elif test -x collect-ld
$build_exeext; then
13492 # Build using linker in the current directory.
13493 gcc_cv_ld
=.
/collect-ld
$build_exeext
13494 elif test -x $LD_FOR_TARGET; then
13495 gcc_cv_ld
="$LD_FOR_TARGET"
13497 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13498 set dummy
$LD_FOR_TARGET; ac_word
=$2
13499 echo "$as_me:$LINENO: checking for $ac_word" >&5
13500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13501 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13510 for as_dir
in $PATH
13513 test -z "$as_dir" && as_dir
=.
13514 for ac_exec_ext
in '' $ac_executable_extensions; do
13515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13516 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13526 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13528 if test -n "$gcc_cv_ld"; then
13529 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13530 echo "${ECHO_T}$gcc_cv_ld" >&6
13532 echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6
13540 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13543 echo "$as_me:$LINENO: checking what linker to use" >&5
13544 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13545 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13546 # Single tree build which includes ld. We want to prefer it
13547 # over whatever linker top-level may have detected, since
13548 # we'll use what we're building after installation anyway.
13549 echo "$as_me:$LINENO: result: newly built ld" >&5
13550 echo "${ECHO_T}newly built ld" >&6
13552 in_tree_ld_is_elf
=no
13553 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13554 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13555 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13556 in_tree_ld_is_elf
=yes
13558 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
13560 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13561 if test x
$gcc_cv_gld_version != x
; then
13565 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13566 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13568 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13569 echo "${ECHO_T}$gcc_cv_ld" >&6
13573 # Figure out what nm we will be using.
13574 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13575 if test "${gcc_cv_nm+set}" = set; then
13579 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13580 && test -f ..
/binutils
/Makefile \
13581 && test x
$build = x
$host; then
13582 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13583 elif test -x nm
$build_exeext; then
13584 gcc_cv_nm
=.
/nm
$build_exeext
13585 elif test -x $NM_FOR_TARGET; then
13586 gcc_cv_nm
="$NM_FOR_TARGET"
13588 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13589 set dummy
$NM_FOR_TARGET; ac_word
=$2
13590 echo "$as_me:$LINENO: checking for $ac_word" >&5
13591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13592 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13601 for as_dir
in $PATH
13604 test -z "$as_dir" && as_dir
=.
13605 for ac_exec_ext
in '' $ac_executable_extensions; do
13606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13607 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13617 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13619 if test -n "$gcc_cv_nm"; then
13620 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13621 echo "${ECHO_T}$gcc_cv_nm" >&6
13623 echo "$as_me:$LINENO: result: no" >&5
13624 echo "${ECHO_T}no" >&6
13631 echo "$as_me:$LINENO: checking what nm to use" >&5
13632 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13633 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13634 # Single tree build which includes binutils.
13635 echo "$as_me:$LINENO: result: newly built nm" >&5
13636 echo "${ECHO_T}newly built nm" >&6
13639 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13640 echo "${ECHO_T}$gcc_cv_nm" >&6
13644 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13647 # Figure out what objdump we will be using.
13648 if test "${gcc_cv_objdump+set}" = set; then
13652 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13653 && test -f ..
/binutils
/Makefile \
13654 && test x
$build = x
$host; then
13655 # Single tree build which includes binutils.
13656 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13657 elif test -x objdump
$build_exeext; then
13658 gcc_cv_objdump
=.
/objdump
$build_exeext
13659 elif test -x $OBJDUMP_FOR_TARGET; then
13660 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13662 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13663 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13664 echo "$as_me:$LINENO: checking for $ac_word" >&5
13665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13666 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 case $gcc_cv_objdump in
13671 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13675 for as_dir
in $PATH
13678 test -z "$as_dir" && as_dir
=.
13679 for ac_exec_ext
in '' $ac_executable_extensions; do
13680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13691 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13693 if test -n "$gcc_cv_objdump"; then
13694 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13695 echo "${ECHO_T}$gcc_cv_objdump" >&6
13697 echo "$as_me:$LINENO: result: no" >&5
13698 echo "${ECHO_T}no" >&6
13705 echo "$as_me:$LINENO: checking what objdump to use" >&5
13706 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13707 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13708 # Single tree build which includes binutils.
13709 echo "$as_me:$LINENO: result: newly built objdump" >&5
13710 echo "${ECHO_T}newly built objdump" >&6
13711 elif test x
$gcc_cv_objdump = x
; then
13712 echo "$as_me:$LINENO: result: not found" >&5
13713 echo "${ECHO_T}not found" >&6
13715 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13716 echo "${ECHO_T}$gcc_cv_objdump" >&6
13719 # Figure out what assembler alignment features are present.
13720 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13721 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13722 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 gcc_cv_as_balign_and_p2align
=no
13726 if test $in_tree_gas = yes; then
13727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13728 then gcc_cv_as_balign_and_p2align
=yes
13730 elif test x
$gcc_cv_as != x
; then
13732 .p2align 2' > conftest.s
13733 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }
13740 gcc_cv_as_balign_and_p2align
=yes
13742 echo "configure: failed program was" >&5
13745 rm -f conftest.o conftest.s
13748 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13749 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13750 if test $gcc_cv_as_balign_and_p2align = yes; then
13752 cat >>confdefs.h
<<\_ACEOF
13753 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13758 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13759 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13760 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 gcc_cv_as_max_skip_p2align
=no
13764 if test $in_tree_gas = yes; then
13765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13766 then gcc_cv_as_max_skip_p2align
=yes
13768 elif test x
$gcc_cv_as != x
; then
13769 echo '.p2align 4,,7' > conftest.s
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 gcc_cv_as_max_skip_p2align
=yes
13779 echo "configure: failed program was" >&5
13782 rm -f conftest.o conftest.s
13785 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13786 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13787 if test $gcc_cv_as_max_skip_p2align = yes; then
13789 cat >>confdefs.h
<<\_ACEOF
13790 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13795 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13796 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13797 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 gcc_cv_as_subsection_m1
=no
13801 if test $in_tree_gas = yes; then
13802 if test $in_tree_gas_is_elf = yes \
13803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13804 then gcc_cv_as_subsection_m1
=yes
13806 elif test x
$gcc_cv_as != x
; then
13807 echo 'conftest_label1: .word 0
13809 conftest_label2: .word 0
13810 .previous' > conftest.s
13811 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }
13818 if test x
$gcc_cv_nm != x
; then
13819 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13820 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13821 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13823 else gcc_cv_as_subsection_m1
=yes
13825 rm -f conftest.nm1 conftest.nm2
13828 echo "configure: failed program was" >&5
13831 rm -f conftest.o conftest.s
13834 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13835 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13836 if test $gcc_cv_as_subsection_m1 = yes; then
13838 cat >>confdefs.h
<<\_ACEOF
13839 #define HAVE_GAS_SUBSECTION_ORDERING 1
13844 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13845 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13846 if test "${gcc_cv_as_weak+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 if test $in_tree_gas = yes; then
13851 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13852 then gcc_cv_as_weak
=yes
13854 elif test x
$gcc_cv_as != x
; then
13855 echo ' .weak foobar' > conftest.s
13856 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }
13865 echo "configure: failed program was" >&5
13868 rm -f conftest.o conftest.s
13871 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13872 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13873 if test $gcc_cv_as_weak = yes; then
13875 cat >>confdefs.h
<<\_ACEOF
13876 #define HAVE_GAS_WEAK 1
13881 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13882 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13883 if test "${gcc_cv_as_weakref+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 gcc_cv_as_weakref
=no
13887 if test $in_tree_gas = yes; then
13888 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13889 then gcc_cv_as_weakref
=yes
13891 elif test x
$gcc_cv_as != x
; then
13892 echo ' .weakref foobar, barfnot' > conftest.s
13893 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }
13900 gcc_cv_as_weakref
=yes
13902 echo "configure: failed program was" >&5
13905 rm -f conftest.o conftest.s
13908 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13909 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13910 if test $gcc_cv_as_weakref = yes; then
13912 cat >>confdefs.h
<<\_ACEOF
13913 #define HAVE_GAS_WEAKREF 1
13918 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13919 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13920 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 gcc_cv_as_nsubspa_comdat
=no
13924 if test $in_tree_gas = yes; then
13925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13926 then gcc_cv_as_nsubspa_comdat
=yes
13928 elif test x
$gcc_cv_as != x
; then
13929 echo ' .SPACE $TEXT$
13930 .NSUBSPA $CODE$,COMDAT' > conftest.s
13931 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }
13938 gcc_cv_as_nsubspa_comdat
=yes
13940 echo "configure: failed program was" >&5
13943 rm -f conftest.o conftest.s
13946 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13947 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13948 if test $gcc_cv_as_nsubspa_comdat = yes; then
13950 cat >>confdefs.h
<<\_ACEOF
13951 #define HAVE_GAS_NSUBSPA_COMDAT 1
13956 # .hidden needs to be supported in both the assembler and the linker,
13957 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13958 # This is irritatingly difficult to feature test for; we have to check the
13959 # date string after the version number. If we've got an in-tree
13960 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13962 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13963 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13964 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13965 if test "${gcc_cv_as_hidden+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 gcc_cv_as_hidden
=no
13969 if test $in_tree_gas = yes; then
13970 if test $in_tree_gas_is_elf = yes \
13971 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13972 then gcc_cv_as_hidden
=yes
13974 elif test x
$gcc_cv_as != x
; then
13975 echo ' .hidden foobar
13976 foobar:' > conftest.s
13977 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }
13984 gcc_cv_as_hidden
=yes
13986 echo "configure: failed program was" >&5
13989 rm -f conftest.o conftest.s
13992 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13993 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13996 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13997 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13998 if test "${gcc_cv_ld_hidden+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 if test $in_tree_ld = yes ; then
14002 gcc_cv_ld_hidden
=no
14003 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 \
14004 && test $in_tree_ld_is_elf = yes; then
14005 gcc_cv_ld_hidden
=yes
14008 gcc_cv_ld_hidden
=yes
14009 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14010 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
14011 ld_vers
=`echo $ld_ver | sed -n \
14012 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14013 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14014 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14015 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14016 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14017 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14018 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
14019 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'`
14020 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
14021 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14022 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14023 if test 0"$ld_date" -lt 20020404; then
14024 if test -n "$ld_date"; then
14025 # If there was date string, but was earlier than 2002-04-04, fail
14026 gcc_cv_ld_hidden
=no
14027 elif test -z "$ld_vers"; then
14028 # If there was no date string nor ld version number, something is wrong
14029 gcc_cv_ld_hidden
=no
14031 test -z "$ld_vers_patch" && ld_vers_patch
=0
14032 if test "$ld_vers_major" -lt 2; then
14033 gcc_cv_ld_hidden
=no
14034 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14035 gcc_cv_ld_hidden
="no"
14036 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14037 gcc_cv_ld_hidden
=no
14042 case "${target}" in
14043 hppa64
*-*-hpux* | ia64
*-*-hpux*)
14044 gcc_cv_ld_hidden
=yes
14047 gcc_cv_ld_hidden
=no
14053 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14054 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14055 libgcc_visibility
=no
14058 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14059 libgcc_visibility
=yes
14061 cat >>confdefs.h
<<\_ACEOF
14062 #define HAVE_GAS_HIDDEN 1
14067 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14068 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14069 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14070 if test "${gcc_cv_as_leb128+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 gcc_cv_as_leb128
=no
14074 if test $in_tree_gas = yes; then
14075 if test $in_tree_gas_is_elf = yes \
14076 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14077 then gcc_cv_as_leb128
=yes
14079 elif test x
$gcc_cv_as != x
; then
14086 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }
14093 # GAS versions before 2.11 do not support uleb128,
14094 # despite appearing to.
14095 # ??? There exists an elf-specific test that will crash
14096 # the assembler. Perhaps it's better to figure out whether
14097 # arbitrary sections are supported and try the test.
14098 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14099 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
14100 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14101 as_major
=`echo $as_ver | sed 's/\..*//'`
14102 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14103 if test $as_major -eq 2 && test $as_minor -lt 11
14105 else gcc_cv_as_leb128
=yes
14109 echo "configure: failed program was" >&5
14112 rm -f conftest.o conftest.s
14115 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14116 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14117 if test $gcc_cv_as_leb128 = yes; then
14119 cat >>confdefs.h
<<\_ACEOF
14120 #define HAVE_AS_LEB128 1
14125 # GAS versions up to and including 2.11.0 may mis-optimize
14127 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14128 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14129 if test "${gcc_cv_as_eh_frame+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 gcc_cv_as_eh_frame
=no
14133 if test $in_tree_gas = yes; then
14134 if test $in_tree_gas_is_elf = yes \
14135 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14136 then gcc_cv_as_eh_frame
=yes
14138 elif test x
$gcc_cv_as != x
; then
14145 .section .eh_frame,"aw",@progbits
14147 .4byte .LECIE1-.LSCIE1
14161 .4byte .LEFDE1-.LASFDE1
14163 .4byte .LASFDE1-__FRAME_BEGIN__
14170 .LEFDE1:' > conftest.s
14171 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }
14178 cat > conftest.lit
<<EOF
14179 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14180 0010 01000000 12000000 18000000 00000000 ................
14181 0020 08000000 04080000 0044 .........D
14183 cat > conftest.big
<<EOF
14184 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14185 0010 00000001 00000012 00000018 00000000 ................
14186 0020 00000008 04000000 0844 .........D
14188 # If the assembler didn't choke, and we can objdump,
14189 # and we got the correct data, then succeed.
14190 if test x
$gcc_cv_objdump != x \
14191 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
14192 |
tail -3 > conftest.got \
14193 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
14194 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
14196 gcc_cv_as_eh_frame
=yes
14197 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 gcc_cv_as_eh_frame
=buggy
14205 # Uh oh, what do we do now?
14206 gcc_cv_as_eh_frame
=no
14209 echo "configure: failed program was" >&5
14212 rm -f conftest.o conftest.s
14215 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14216 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14219 if test $gcc_cv_as_eh_frame = buggy
; then
14221 cat >>confdefs.h
<<\_ACEOF
14222 #define USE_AS_TRADITIONAL_FORMAT 1
14227 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14228 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14229 if test "${gcc_cv_as_shf_merge+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 gcc_cv_as_shf_merge
=no
14233 if test $in_tree_gas = yes; then
14234 if test $in_tree_gas_is_elf = yes \
14235 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14236 then gcc_cv_as_shf_merge
=yes
14238 elif test x
$gcc_cv_as != x
; then
14239 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14240 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }
14247 gcc_cv_as_shf_merge
=yes
14249 echo "configure: failed program was" >&5
14252 rm -f conftest.o conftest.s
14255 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14256 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14258 if test $gcc_cv_as_shf_merge = no
; then
14259 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14260 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14261 if test "${gcc_cv_as_shf_merge+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 gcc_cv_as_shf_merge
=no
14265 if test $in_tree_gas = yes; then
14266 if test $in_tree_gas_is_elf = yes \
14267 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14268 then gcc_cv_as_shf_merge
=yes
14270 elif test x
$gcc_cv_as != x
; then
14271 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14272 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }
14279 gcc_cv_as_shf_merge
=yes
14281 echo "configure: failed program was" >&5
14284 rm -f conftest.o conftest.s
14287 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14288 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14292 cat >>confdefs.h
<<_ACEOF
14293 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14297 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14298 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14299 if test "${gcc_cv_as_comdat_group+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 gcc_cv_as_comdat_group
=no
14303 if test $in_tree_gas = yes; then
14304 if test $in_tree_gas_is_elf = yes \
14305 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14306 then gcc_cv_as_comdat_group
=yes
14308 elif test x
$gcc_cv_as != x
; then
14309 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14310 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }
14317 gcc_cv_as_comdat_group
=yes
14319 echo "configure: failed program was" >&5
14322 rm -f conftest.o conftest.s
14325 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14326 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14328 if test $gcc_cv_as_comdat_group = yes; then
14329 gcc_cv_as_comdat_group_percent
=no
14331 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14332 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14333 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 gcc_cv_as_comdat_group_percent
=no
14337 if test $in_tree_gas = yes; then
14338 if test $in_tree_gas_is_elf = yes \
14339 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14340 then gcc_cv_as_comdat_group_percent
=yes
14342 elif test x
$gcc_cv_as != x
; then
14343 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14344 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }
14351 gcc_cv_as_comdat_group_percent
=yes
14353 echo "configure: failed program was" >&5
14356 rm -f conftest.o conftest.s
14359 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14360 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14363 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14365 if test 0"$ld_date" -lt 20050308; then
14366 if test -n "$ld_date"; then
14367 # If there was date string, but was earlier than 2005-03-08, fail
14369 elif test "$ld_vers_major" -lt 2; then
14371 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14376 # assume linkers other than GNU ld don't support COMDAT group
14379 if test $comdat_group = no
; then
14380 gcc_cv_as_comdat_group
=no
14381 gcc_cv_as_comdat_group_percent
=no
14384 cat >>confdefs.h
<<_ACEOF
14385 #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`
14389 # Thread-local storage - the check is heavily parametrized.
14397 .section ".tdata","awT",@progbits
14400 ldq $27,__tls_get_addr($29) !literal!1
14401 lda $16,foo($29) !tlsgd!1
14402 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14403 ldq $27,__tls_get_addr($29) !literal!2
14404 lda $16,foo($29) !tlsldm!2
14405 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14406 ldq $1,foo($29) !gotdtprel
14407 ldah $2,foo($29) !dtprelhi
14408 lda $3,foo($2) !dtprello
14409 lda $4,foo($29) !dtprel
14410 ldq $1,foo($29) !gottprel
14411 ldah $2,foo($29) !tprelhi
14412 lda $3,foo($2) !tprello
14413 lda $4,foo($29) !tprel'
14416 tls_as_opt
=--fatal-warnings
14420 .section ".tdata","awT",@progbits
14423 call #gettlsoff(x)'
14432 .section ".tdata","awT",@progbits
14436 addil LT%foo-$tls_gdidx$,gp
14437 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14440 addil LT%foo-$tls_ldidx$,gp
14442 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14443 addil LR%foo-$tls_dtpoff$,%ret0
14444 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14446 addil LT%foo-$tls_ieoff$,gp
14447 ldw RT%foo-$tls_ieoff$(%r1),%t2
14450 addil LR%foo-$tls_leoff$,%t1
14451 ldo RR%foo-$tls_leoff$(%r1),%t2'
14454 tls_as_opt
=--fatal-warnings
14458 .section ".tdata","awT",%progbits
14461 .word foo(gottpoff)
14471 .section ".tdata","awT",@progbits
14475 leal foo@TLSGD(,%ebx,1), %eax
14476 leal foo@TLSLDM(%ebx), %eax
14477 leal foo@DTPOFF(%eax), %edx
14478 movl foo@GOTTPOFF(%ebx), %eax
14479 subl foo@GOTTPOFF(%ebx), %eax
14480 addl foo@GOTNTPOFF(%ebx), %eax
14481 movl foo@INDNTPOFF, %eax
14482 movl $foo@TPOFF, %eax
14483 subl $foo@TPOFF, %eax
14484 leal foo@NTPOFF(%ecx), %eax'
14487 tls_as_opt
=--fatal-warnings
14491 .section ".tdata","awT",@progbits
14495 leaq foo@TLSGD(%rip), %rdi
14496 leaq foo@TLSLD(%rip), %rdi
14497 leaq foo@DTPOFF(%rax), %rdx
14498 movq foo@GOTTPOFF(%rip), %rax
14499 movq $foo@TPOFF, %rax'
14502 tls_as_opt
=--fatal-warnings
14506 .section ".tdata","awT",@progbits
14509 addl r16 = @ltoff(@dtpmod(foo#)), gp
14510 addl r17 = @ltoff(@dtprel(foo#)), gp
14511 addl r18 = @ltoff(@tprel(foo#)), gp
14512 addl r19 = @dtprel(foo#), gp
14513 adds r21 = @dtprel(foo#), r13
14514 movl r23 = @dtprel(foo#)
14515 addl r20 = @tprel(foo#), gp
14516 adds r22 = @tprel(foo#), r13
14517 movl r24 = @tprel(foo#)'
14520 tls_as_opt
=--fatal-warnings
14524 .section .tdata,"awT",@progbits
14528 addiu $4, $28, %tlsgd(x)
14529 addiu $4, $28, %tlsldm(x)
14530 lui $4, %dtprel_hi(x)
14531 addiu $4, $4, %dtprel_lo(x)
14532 lw $4, %gottprel(x)($28)
14533 lui $4, %tprel_hi(x)
14534 addiu $4, $4, %tprel_lo(x)'
14537 tls_as_opt
='-32 --fatal-warnings'
14541 .section ".tdata","awT",@progbits
14549 addi 3,31,ld0@got@tlsgd
14551 addi 3,31,x1@got@tlsld
14554 addis 9,3,x2@dtprel@ha
14555 addi 9,9,x2@dtprel@l
14556 lwz 9,x3@got@tprel(31)
14559 addis 9,2,x2@tprel@ha
14560 addi 9,9,x2@tprel@l'
14563 tls_as_opt
="-a32 --fatal-warnings"
14567 .section ".tdata","awT",@progbits
14575 addi 3,2,ld0@got@tlsgd
14581 addi 3,2,x1@got@tlsld
14587 addis 9,3,x2@dtprel@ha
14588 addi 9,9,x2@dtprel@l
14591 ld 9,x3@got@dtprel(2)
14597 tls_as_opt
="-a64 --fatal-warnings"
14601 .section ".tdata","awT",@progbits
14608 .long foo@GOTNTPOFF
14609 .long foo@INDNTPOFF
14610 l %r1,foo@GOTNTPOFF(%r12)
14611 l %r1,0(%r1):tls_load:foo
14612 bas %r14,0(%r1,%r13):tls_gdcall:foo
14613 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14616 tls_as_opt
="-m31 --fatal-warnings"
14620 .section ".tdata","awT",@progbits
14627 .quad foo@GOTNTPOFF
14628 lg %r1,foo@GOTNTPOFF(%r12)
14629 larl %r1,foo@INDNTPOFF
14630 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14631 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14634 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14636 sh-
*-* | sh
[34]-*-*)
14638 .section ".tdata","awT",@progbits
14648 tls_as_opt
=--fatal-warnings
14652 sparc
*-sun-solaris2.
[56789]*)
14653 # TLS was introduced in the Solaris 9 4/04 release but
14654 # we do not enable it by default on Solaris 9 either.
14655 if test "x$enable_tls" = xyes
; then
14661 sparc
*-sun-solaris2.
*)
14668 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14670 .section ".tdata",#alloc,#write,#tls
14673 sethi %tgd_hi22(foo), %o0
14674 add %o0, %tgd_lo10(foo), %o1
14675 add %l7, %o1, %o0, %tgd_add(foo)
14676 call __tls_get_addr, %tgd_call(foo)
14677 sethi %tldm_hi22(foo), %l1
14678 add %l1, %tldm_lo10(foo), %l2
14679 add %l7, %l2, %o0, %tldm_add(foo)
14680 call __tls_get_addr, %tldm_call(foo)
14681 sethi %tldo_hix22(foo), %l3
14682 xor %l3, %tldo_lox10(foo), %l4
14683 add %o0, %l4, %l5, %tldo_add(foo)
14684 sethi %tie_hi22(foo), %o3
14685 add %o3, %tie_lo10(foo), %o3
14686 ld [%l7 + %o3], %o2, %tie_ld(foo)
14687 add %g7, %o2, %o4, %tie_add(foo)
14688 sethi %tle_hix22(foo), %l1
14689 xor %l1, %tle_lox10(foo), %o5
14690 ld [%g7 + %o5], %o1'
14695 .section ".tdata","awT",@progbits
14698 sethi %tgd_hi22(foo), %o0
14699 add %o0, %tgd_lo10(foo), %o1
14700 add %l7, %o1, %o0, %tgd_add(foo)
14701 call __tls_get_addr, %tgd_call(foo)
14702 sethi %tldm_hi22(foo), %l1
14703 add %l1, %tldm_lo10(foo), %l2
14704 add %l7, %l2, %o0, %tldm_add(foo)
14705 call __tls_get_addr, %tldm_call(foo)
14706 sethi %tldo_hix22(foo), %l3
14707 xor %l3, %tldo_lox10(foo), %l4
14708 add %o0, %l4, %l5, %tldo_add(foo)
14709 sethi %tie_hi22(foo), %o3
14710 add %o3, %tie_lo10(foo), %o3
14711 ld [%l7 + %o3], %o2, %tie_ld(foo)
14712 add %g7, %o2, %o4, %tie_add(foo)
14713 sethi %tle_hix22(foo), %l1
14714 xor %l1, %tle_lox10(foo), %o5
14715 ld [%g7 + %o5], %o1'
14718 tls_as_opt
="-32 --fatal-warnings"
14723 if test "x$enable_tls" = xno
; then
14724 : # TLS explicitly disabled.
14725 elif test "x$enable_tls" = xyes
; then
14726 set_have_as_tls
=yes # TLS explicitly enabled.
14727 elif test -z "$tls_first_major"; then
14728 : # If we don't have a check, assume no support.
14730 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14731 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14732 if test "${gcc_cv_as_tls+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 if test $in_tree_gas = yes; then
14737 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14738 then gcc_cv_as_tls
=yes
14740 elif test x
$gcc_cv_as != x
; then
14741 echo "$conftest_s" > conftest.s
14742 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }
14751 echo "configure: failed program was" >&5
14754 rm -f conftest.o conftest.s
14757 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14758 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14759 if test $gcc_cv_as_tls = yes; then
14760 set_have_as_tls
=yes
14763 if test $set_have_as_tls = yes ; then
14765 cat >>confdefs.h
<<\_ACEOF
14766 #define HAVE_AS_TLS 1
14771 # Target-specific assembler checks.
14773 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14774 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14775 gcc_cv_ld_static_dynamic
=no
14776 if test $in_tree_ld = yes ; then
14777 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14778 gcc_cv_ld_static_dynamic
=yes
14780 elif test x
$gcc_cv_ld != x
; then
14781 # Check if linker supports -Bstatic/-Bdynamic option
14782 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14783 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14784 gcc_cv_ld_static_dynamic
=yes
14787 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14789 cat >>confdefs.h
<<\_ACEOF
14790 #define HAVE_LD_STATIC_DYNAMIC 1
14794 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14795 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14797 if test x
"$demangler_in_ld" = xyes
; then
14798 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14799 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14800 gcc_cv_ld_demangle
=no
14801 if test $in_tree_ld = yes; then
14802 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 \
14803 gcc_cv_ld_demangle
=yes
14805 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14806 # Check if the GNU linker supports --demangle option
14807 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14808 gcc_cv_ld_demangle
=yes
14811 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14813 cat >>confdefs.h
<<\_ACEOF
14814 #define HAVE_LD_DEMANGLE 1
14818 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14819 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14823 # All TARGET_ABI_OSF targets.
14824 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14825 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14826 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14827 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 gcc_cv_as_alpha_explicit_relocs
=no
14831 if test $in_tree_gas = yes; then
14832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14833 then gcc_cv_as_alpha_explicit_relocs
=yes
14835 elif test x
$gcc_cv_as != x
; then
14836 echo ' .set nomacro
14838 extbl $3, $2, $3 !lituse_bytoff!1
14839 ldq $2, a($29) !literal!1
14840 ldq $4, b($29) !literal!2
14841 ldq_u $3, 0($2) !lituse_base!1
14842 ldq $27, f($29) !literal!5
14843 jsr $26, ($27), f !lituse_jsr!5
14844 ldah $29, 0($26) !gpdisp!3
14845 lda $0, c($29) !gprel
14846 ldah $1, d($29) !gprelhigh
14847 lda $1, d($1) !gprellow
14848 lda $29, 0($29) !gpdisp!3' > conftest.s
14849 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }
14856 gcc_cv_as_alpha_explicit_relocs
=yes
14858 echo "configure: failed program was" >&5
14861 rm -f conftest.o conftest.s
14864 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14865 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14866 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14868 cat >>confdefs.h
<<\_ACEOF
14869 #define HAVE_AS_EXPLICIT_RELOCS 1
14873 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14874 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14875 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 gcc_cv_as_alpha_jsrdirect_relocs
=no
14879 if test $in_tree_gas = yes; then
14880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14881 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14883 elif test x
$gcc_cv_as != x
; then
14884 echo ' .set nomacro
14886 ldq $27, a($29) !literal!1
14887 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14888 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }
14895 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14897 echo "configure: failed program was" >&5
14900 rm -f conftest.o conftest.s
14903 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14904 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14905 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14907 cat >>confdefs.h
<<\_ACEOF
14908 #define HAVE_AS_JSRDIRECT_RELOCS 1
14915 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14916 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14917 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 gcc_cv_as_cris_no_mul_bug
=no
14921 if test $in_tree_gas = yes; then
14922 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14923 then gcc_cv_as_cris_no_mul_bug
=yes
14925 elif test x
$gcc_cv_as != x
; then
14926 echo '.text' > conftest.s
14927 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }
14934 gcc_cv_as_cris_no_mul_bug
=yes
14936 echo "configure: failed program was" >&5
14939 rm -f conftest.o conftest.s
14942 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14943 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14944 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14946 cat >>confdefs.h
<<\_ACEOF
14947 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14954 echo "$as_me:$LINENO: checking assembler for .register" >&5
14955 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14956 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 gcc_cv_as_sparc_register_op
=no
14960 if test x
$gcc_cv_as != x
; then
14961 echo '.register %g2, #scratch' > conftest.s
14962 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }
14969 gcc_cv_as_sparc_register_op
=yes
14971 echo "configure: failed program was" >&5
14974 rm -f conftest.o conftest.s
14977 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14978 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14979 if test $gcc_cv_as_sparc_register_op = yes; then
14981 cat >>confdefs.h
<<\_ACEOF
14982 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14987 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14988 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14989 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 gcc_cv_as_sparc_relax
=no
14993 if test x
$gcc_cv_as != x
; then
14994 echo '.text' > conftest.s
14995 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }
15002 gcc_cv_as_sparc_relax
=yes
15004 echo "configure: failed program was" >&5
15007 rm -f conftest.o conftest.s
15010 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15011 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15012 if test $gcc_cv_as_sparc_relax = yes; then
15014 cat >>confdefs.h
<<\_ACEOF
15015 #define HAVE_AS_RELAX_OPTION 1
15020 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15021 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15022 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 gcc_cv_as_sparc_ua_pcrel
=no
15026 if test x
$gcc_cv_as != x
; then
15033 .uaword %r_disp32(foo)' > conftest.s
15034 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }
15041 if test x
$gcc_cv_ld != x \
15042 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
15043 gcc_cv_as_sparc_ua_pcrel
=yes
15047 echo "configure: failed program was" >&5
15050 rm -f conftest.o conftest.s
15053 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15054 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15055 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15057 cat >>confdefs.h
<<\_ACEOF
15058 #define HAVE_AS_SPARC_UA_PCREL 1
15062 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15063 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15064 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 gcc_cv_as_sparc_ua_pcrel_hidden
=no
15068 if test x
$gcc_cv_as != x
; then
15072 .uaword %r_disp32(foo)
15073 .byte 0x32, 0x33, 0x34
15077 .skip 4' > conftest.s
15078 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }
15085 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
15086 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
15087 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
15088 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
15089 if $gcc_cv_objdump -R conftest
2> /dev
/null \
15090 |
grep 'DISP32' > /dev
/null
2>&1; then
15093 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
15098 echo "configure: failed program was" >&5
15101 rm -f conftest.o conftest.s
15104 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15105 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15106 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15108 cat >>confdefs.h
<<\_ACEOF
15109 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15114 fi # unaligned pcrel relocs
15116 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15117 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15118 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 gcc_cv_as_sparc_offsetable_lo10
=no
15122 if test x
$gcc_cv_as != x
; then
15124 or %g1, %lo(ab) + 12, %g1
15125 or %g1, %lo(ab + 12), %g1' > conftest.s
15126 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }
15133 if test x
$gcc_cv_objdump != x \
15134 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
15135 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
15136 gcc_cv_as_sparc_offsetable_lo10
=yes
15139 echo "configure: failed program was" >&5
15142 rm -f conftest.o conftest.s
15145 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15146 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15147 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15149 cat >>confdefs.h
<<\_ACEOF
15150 #define HAVE_AS_OFFSETABLE_LO10 1
15156 i
[34567]86-*-* | x86_64-
*-*)
15158 cygwin
* | pe | mingw32
*)
15159 # Used for DWARF 2 in PE
15160 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15161 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15162 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15163 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 gcc_cv_as_ix86_pe_secrel32
=no
15166 if test $in_tree_gas = yes; then
15167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15168 then gcc_cv_as_ix86_pe_secrel32
=yes
15170 elif test x
$gcc_cv_as != x
; then
15174 .secrel32 foo' > conftest.s
15175 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }
15182 if test x
$gcc_cv_ld != x \
15183 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
15184 gcc_cv_as_ix86_pe_secrel32
=yes
15188 echo "configure: failed program was" >&5
15191 rm -f conftest.o conftest.s
15194 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15195 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15196 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15198 cat >>confdefs.h
<<\_ACEOF
15199 #define HAVE_GAS_PE_SECREL32_RELOC 1
15206 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15207 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15208 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15211 gcc_cv_as_ix86_filds_fists
=no
15212 if test $in_tree_gas = yes; then
15213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15214 then gcc_cv_as_ix86_filds_fists
=yes
15216 elif test x
$gcc_cv_as != x
; then
15217 echo 'filds mem; fists mem' > conftest.s
15218 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }
15225 gcc_cv_as_ix86_filds_fists
=yes
15227 echo "configure: failed program was" >&5
15230 rm -f conftest.o conftest.s
15233 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15234 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15235 if test $gcc_cv_as_ix86_filds_fists = yes; then
15237 cat >>confdefs.h
<<\_ACEOF
15238 #define HAVE_GAS_FILDS_FISTS 1
15243 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15244 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15245 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 gcc_cv_as_ix86_cmov_sun_syntax
=no
15249 if test x
$gcc_cv_as != x
; then
15250 echo 'cmovl.l %edx, %eax' > conftest.s
15251 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }
15258 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15260 echo "configure: failed program was" >&5
15263 rm -f conftest.o conftest.s
15266 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15267 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15268 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15270 cat >>confdefs.h
<<\_ACEOF
15271 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15276 # This one is used unconditionally by i386.[ch]; it is to be defined
15277 # to 1 if the feature is present, 0 otherwise.
15278 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15279 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15280 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 gcc_cv_as_ix86_gotoff_in_data
=no
15284 if test $in_tree_gas = yes; then
15285 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15286 then gcc_cv_as_ix86_gotoff_in_data
=yes
15288 elif test x
$gcc_cv_as != x
; then
15293 .long .L0@GOTOFF' > conftest.s
15294 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }
15301 gcc_cv_as_ix86_gotoff_in_data
=yes
15303 echo "configure: failed program was" >&5
15306 rm -f conftest.o conftest.s
15309 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15310 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15313 cat >>confdefs.h
<<_ACEOF
15314 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15320 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15321 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15322 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15326 if test $in_tree_gas = yes; then
15327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15328 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15330 elif test x
$gcc_cv_as != x
; then
15332 addl r15 = @ltoffx(x#), gp
15334 ld8.mov r16 = [r15], x#' > conftest.s
15335 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }
15342 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15344 echo "configure: failed program was" >&5
15347 rm -f conftest.o conftest.s
15350 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15351 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15352 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15354 cat >>confdefs.h
<<\_ACEOF
15355 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15364 *-*-aix*) conftest_s
=' .machine "pwr5"
15368 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15369 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15370 if test "${gcc_cv_as_machine_directive+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 gcc_cv_as_machine_directive
=no
15374 if test x
$gcc_cv_as != x
; then
15375 echo ' .machine ppc7400' > conftest.s
15376 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }
15383 gcc_cv_as_machine_directive
=yes
15385 echo "configure: failed program was" >&5
15388 rm -f conftest.o conftest.s
15391 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15392 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15394 if test x
$gcc_cv_as_machine_directive != xyes
; then
15395 echo "*** This target requires an assembler supporting \".machine\"" >&2
15396 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15397 test x
$build = x
$target && exit 1
15401 *) conftest_s
=' .machine power4
15406 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15407 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15408 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 gcc_cv_as_powerpc_mfcrf
=no
15412 if test $in_tree_gas = yes; then
15413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15414 then gcc_cv_as_powerpc_mfcrf
=yes
15416 elif test x
$gcc_cv_as != x
; then
15417 echo "$conftest_s" > conftest.s
15418 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }
15425 gcc_cv_as_powerpc_mfcrf
=yes
15427 echo "configure: failed program was" >&5
15430 rm -f conftest.o conftest.s
15433 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15434 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15435 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15437 cat >>confdefs.h
<<\_ACEOF
15438 #define HAVE_AS_MFCRF 1
15444 *-*-aix*) conftest_s
=' .machine "pwr5"
15447 *) conftest_s
=' .machine power5
15452 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15453 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15454 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 gcc_cv_as_powerpc_popcntb
=no
15458 if test $in_tree_gas = yes; then
15459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15460 then gcc_cv_as_powerpc_popcntb
=yes
15462 elif test x
$gcc_cv_as != x
; then
15463 echo "$conftest_s" > conftest.s
15464 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }
15471 gcc_cv_as_powerpc_popcntb
=yes
15473 echo "configure: failed program was" >&5
15476 rm -f conftest.o conftest.s
15479 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15480 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15481 if test $gcc_cv_as_powerpc_popcntb = yes; then
15483 cat >>confdefs.h
<<\_ACEOF
15484 #define HAVE_AS_POPCNTB 1
15490 *-*-aix*) conftest_s
=' .machine "pwr5x"
15493 *) conftest_s
=' .machine power5
15498 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15499 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15500 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 gcc_cv_as_powerpc_fprnd
=no
15504 if test $in_tree_gas = yes; then
15505 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15506 then gcc_cv_as_powerpc_fprnd
=yes
15508 elif test x
$gcc_cv_as != x
; then
15509 echo "$conftest_s" > conftest.s
15510 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }
15517 gcc_cv_as_powerpc_fprnd
=yes
15519 echo "configure: failed program was" >&5
15522 rm -f conftest.o conftest.s
15525 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15526 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15527 if test $gcc_cv_as_powerpc_fprnd = yes; then
15529 cat >>confdefs.h
<<\_ACEOF
15530 #define HAVE_AS_FPRND 1
15536 *-*-aix*) conftest_s
=' .csect .text[PR]
15538 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15542 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15543 *) conftest_s
=' .text
15545 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15548 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15549 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15550 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 gcc_cv_as_powerpc_rel16
=no
15554 if test $in_tree_gas = yes; then
15555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15556 then gcc_cv_as_powerpc_rel16
=yes
15558 elif test x
$gcc_cv_as != x
; then
15559 echo "$conftest_s" > conftest.s
15560 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }
15567 gcc_cv_as_powerpc_rel16
=yes
15569 echo "configure: failed program was" >&5
15572 rm -f conftest.o conftest.s
15575 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15576 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15577 if test $gcc_cv_as_powerpc_rel16 = yes; then
15579 cat >>confdefs.h
<<\_ACEOF
15580 #define HAVE_AS_REL16 1
15587 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15588 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15589 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 gcc_cv_as_mips_explicit_relocs
=no
15593 if test $in_tree_gas = yes; then
15594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15595 then gcc_cv_as_mips_explicit_relocs
=yes
15597 elif test x
$gcc_cv_as != x
; then
15598 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15599 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }
15606 gcc_cv_as_mips_explicit_relocs
=yes
15608 echo "configure: failed program was" >&5
15611 rm -f conftest.o conftest.s
15614 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15615 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15616 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15617 if test x
$target_cpu_default = x
15618 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15619 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15625 # Mips and HP-UX need the GNU assembler.
15626 # Linux on IA64 might be able to use the Intel assembler.
15629 mips
*-*-* |
*-*-hpux* )
15630 if test x
$gas_flag = xyes \
15631 ||
test x
"$host" != x
"$build" \
15632 ||
test ! -x "$gcc_cv_as" \
15633 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15636 echo "*** This configuration requires the GNU assembler" >&2
15642 # ??? Not all targets support dwarf2 debug_line, even within a version
15643 # of gas. Moreover, we need to emit a valid instruction to trigger any
15644 # info to the output file. So, as supported targets are added to gas 2.11,
15645 # add some instruction here to (also) show we expect this might work.
15646 # ??? Once 2.11 is released, probably need to add first known working
15647 # version to the per-target configury.
15649 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15650 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15651 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-*)
15654 ia64
*-*-* | s390
*-*-*)
15661 if test x
"$insn" != x
; then
15663 .file 1 \"conftest.s\"
15666 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15667 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15668 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 gcc_cv_as_dwarf2_debug_line
=no
15672 if test $in_tree_gas = yes; then
15673 if test $in_tree_gas_is_elf = yes \
15674 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15675 then gcc_cv_as_dwarf2_debug_line
=yes
15677 elif test x
$gcc_cv_as != x
; then
15678 echo "$conftest_s" > conftest.s
15679 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }
15686 if test x
$gcc_cv_objdump != x \
15687 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15688 |
grep debug_line
> /dev
/null
2>&1; then
15689 gcc_cv_as_dwarf2_debug_line
=yes
15692 echo "configure: failed program was" >&5
15695 rm -f conftest.o conftest.s
15698 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15699 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15702 # The .debug_line file table must be in the exact order that
15703 # we specified the files, since these indices are also used
15704 # by DW_AT_decl_file. Approximate this test by testing if
15705 # the assembler bitches if the same index is assigned twice.
15706 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15707 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15708 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 gcc_cv_as_dwarf2_file_buggy
=no
15712 if test x
$gcc_cv_as != x
; then
15713 echo ' .file 1 "foo.s"
15714 .file 1 "bar.s"' > conftest.s
15715 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }
15722 gcc_cv_as_dwarf2_file_buggy
=yes
15724 echo "configure: failed program was" >&5
15727 rm -f conftest.o conftest.s
15730 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15731 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15734 if test $gcc_cv_as_dwarf2_debug_line = yes \
15735 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15737 cat >>confdefs.h
<<\_ACEOF
15738 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15743 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15744 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15745 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 gcc_cv_as_gdwarf2_flag
=no
15749 if test $in_tree_gas = yes; then
15750 if test $in_tree_gas_is_elf = yes \
15751 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15752 then gcc_cv_as_gdwarf2_flag
=yes
15754 elif test x
$gcc_cv_as != x
; then
15755 echo "$insn" > conftest.s
15756 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }
15763 gcc_cv_as_gdwarf2_flag
=yes
15765 echo "configure: failed program was" >&5
15768 rm -f conftest.o conftest.s
15771 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15772 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15773 if test $gcc_cv_as_gdwarf2_flag = yes; then
15775 cat >>confdefs.h
<<\_ACEOF
15776 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15781 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15782 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15783 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 gcc_cv_as_gstabs_flag
=no
15787 if test $in_tree_gas = yes; then
15788 if test $in_tree_gas_is_elf = yes \
15789 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15790 then gcc_cv_as_gstabs_flag
=yes
15792 elif test x
$gcc_cv_as != x
; then
15793 echo "$insn" > conftest.s
15794 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }
15801 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15802 # and warns about it, but still exits successfully. So check for
15804 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }
15811 else gcc_cv_as_gstabs_flag
=yes
15814 echo "configure: failed program was" >&5
15817 rm -f conftest.o conftest.s
15820 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15821 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15822 if test $gcc_cv_as_gstabs_flag = yes; then
15824 cat >>confdefs.h
<<\_ACEOF
15825 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15831 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15832 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15833 gcc_cv_ld_ro_rw_mix
=unknown
15834 if test $in_tree_ld = yes ; then
15835 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 \
15836 && test $in_tree_ld_is_elf = yes; then
15837 gcc_cv_ld_ro_rw_mix
=read-write
15839 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15840 echo '.section myfoosect, "a"' > conftest1.s
15841 echo '.section myfoosect, "aw"' > conftest2.s
15842 echo '.byte 1' >> conftest2.s
15843 echo '.section myfoosect, "a"' > conftest3.s
15844 echo '.byte 0' >> conftest3.s
15845 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15846 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15847 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15848 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15849 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15850 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15851 | sed -e '/myfoosect/!d' -e N`
15852 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15853 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15854 gcc_cv_ld_ro_rw_mix
=read-only
15856 gcc_cv_ld_ro_rw_mix
=read-write
15860 rm -f conftest.
* conftest
[123].
*
15862 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15864 cat >>confdefs.h
<<\_ACEOF
15865 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15869 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15870 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15872 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15873 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15874 gcc_cv_ld_eh_frame_hdr
=no
15875 if test $in_tree_ld = yes ; then
15876 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 \
15877 && test $in_tree_ld_is_elf = yes; then
15878 gcc_cv_ld_eh_frame_hdr
=yes
15880 elif test x
$gcc_cv_ld != x
; then
15881 # Check if linker supports --eh-frame-hdr option
15882 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15883 gcc_cv_ld_eh_frame_hdr
=yes
15887 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15889 cat >>confdefs.h
<<\_ACEOF
15890 #define HAVE_LD_EH_FRAME_HDR 1
15894 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15895 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15897 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15898 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15900 if test $in_tree_ld = yes ; then
15901 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 \
15902 && test $in_tree_ld_is_elf = yes; then
15905 elif test x
$gcc_cv_ld != x
; then
15906 # Check if linker supports -pie option
15907 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15911 if test x
"$gcc_cv_ld_pie" = xyes
; then
15913 cat >>confdefs.h
<<\_ACEOF
15914 #define HAVE_LD_PIE 1
15918 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15919 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15925 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15926 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15927 if test "${gcc_cv_ld_as_needed+set}" = set; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 gcc_cv_ld_as_needed
=no
15931 if test $in_tree_ld = yes ; then
15932 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 \
15933 && test $in_tree_ld_is_elf = yes; then
15934 gcc_cv_ld_as_needed
=yes
15936 elif test x
$gcc_cv_ld != x
; then
15937 # Check if linker supports --as-needed and --no-as-needed options
15938 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15939 gcc_cv_ld_as_needed
=yes
15944 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15945 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15946 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15948 cat >>confdefs.h
<<\_ACEOF
15949 #define HAVE_LD_AS_NEEDED 1
15954 case "$target:$tm_file" in
15955 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
15956 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15957 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15958 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 gcc_cv_ld_no_dot_syms
=no
15962 if test $in_tree_ld = yes ; then
15963 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
15964 gcc_cv_ld_no_dot_syms
=yes
15966 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15967 cat > conftest1.s
<<EOF
15971 cat > conftest2.s
<<EOF
15972 .section ".opd","aw"
15975 .type foo,@function
15977 .quad .LEfoo,.TOC.@tocbase,0
15983 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15984 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15985 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15986 gcc_cv_ld_no_dot_syms
=yes
15988 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15992 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15993 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15994 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15996 cat >>confdefs.h
<<\_ACEOF
15997 #define HAVE_LD_NO_DOT_SYMS 1
16004 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16005 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16006 if test "${gcc_cv_ld_sysroot+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 gcc_cv_ld_sysroot
=no
16010 if test $in_tree_ld = yes ; then
16011 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
16012 gcc_cv_ld_sysroot
=yes
16014 elif test x
$gcc_cv_ld != x
; then
16015 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
16016 gcc_cv_ld_sysroot
=yes
16020 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16021 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16022 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
16024 cat >>confdefs.h
<<\_ACEOF
16025 #define HAVE_LD_SYSROOT 1
16030 if test x
$with_sysroot = x
&& test x
$host = x
$target \
16031 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
16033 cat >>confdefs.h
<<_ACEOF
16034 #define PREFIX_INCLUDE_DIR "$prefix/include"
16039 # Test for stack protector support in target C library.
16042 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
16043 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
16044 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 gcc_cv_libc_provides_ssp
=no
16048 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16049 if test "x$with_sysroot" = x
; then
16050 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16051 elif test "x$with_sysroot" = xyes
; then
16052 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16054 glibc_header_dir
="${with_sysroot}/usr/include"
16057 glibc_header_dir
=/usr
/include
16059 # glibc 2.4 and later provides __stack_chk_fail and
16060 # either __stack_chk_guard, or TLS access to stack guard canary.
16061 if test -f $glibc_header_dir/features.h \
16062 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16063 $glibc_header_dir/features.h
> /dev
/null
; then
16064 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16065 $glibc_header_dir/features.h
> /dev
/null
; then
16066 gcc_cv_libc_provides_ssp
=yes
16067 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16068 $glibc_header_dir/features.h
> /dev
/null \
16069 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16070 $glibc_header_dir/features.h
> /dev
/null
; then
16071 gcc_cv_libc_provides_ssp
=yes
16075 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16076 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
16077 *) gcc_cv_libc_provides_ssp
=no
;;
16079 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
16081 cat >>confdefs.h
<<\_ACEOF
16082 #define TARGET_LIBC_PROVIDES_SSP 1
16087 # Check if TFmode long double should be used by default or not.
16088 # Some glibc targets used DFmode long double, but with glibc 2.4
16089 # and later they can use TFmode.
16091 powerpc
*-*-*gnu
* | \
16092 sparc
*-*-linux* | \
16096 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16097 if test "${with_long_double_128+set}" = set; then
16098 withval
="$with_long_double_128"
16099 gcc_cv_target_ldbl128
="$with_long_double_128"
16101 gcc_cv_target_ldbl128
=no
16102 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16103 if test "x$with_sysroot" = x
; then
16104 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16105 elif test "x$with_sysroot" = xyes
; then
16106 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16108 glibc_header_dir
="${with_sysroot}/usr/include"
16111 glibc_header_dir
=/usr
/include
16113 grep '^ *#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16114 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
16115 && gcc_cv_target_ldbl128
=yes
16119 if test x
$gcc_cv_target_ldbl128 = xyes
; then
16121 cat >>confdefs.h
<<\_ACEOF
16122 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16127 # Find out what GC implementation we want, or may, use.
16129 # Check whether --with-gc or --without-gc was given.
16130 if test "${with_gc+set}" = set; then
16139 cat >>confdefs.h
<<\_ACEOF
16145 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16146 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16147 { (exit 1); exit 1; }; }
16154 echo "Using $GGC for garbage collection."
16156 # Use the system's zlib library.
16158 zlibinc
="-I\$(srcdir)/../zlib"
16160 # Check whether --with-system-zlib or --without-system-zlib was given.
16161 if test "${with_system_zlib+set}" = set; then
16162 withval
="$with_system_zlib"
16171 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16172 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16173 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16174 if test "${enable_maintainer_mode+set}" = set; then
16175 enableval
="$enable_maintainer_mode"
16176 maintainer_mode
=$enableval
16181 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16182 echo "${ECHO_T}$maintainer_mode" >&6
16184 if test "$maintainer_mode" = "yes"; then
16194 # Make empty files to contain the specs and options for each language.
16195 # Then add #include lines to for a compiler that has specs and/or options.
16201 # These (without "all_") are set in each config-lang.in.
16202 # `language' must be a single word so is spelled singularly.
16204 all_boot_languages
=
16207 all_outputs
='Makefile gccbug mklibgcc libada-mk'
16208 # List of language makefile fragments.
16209 all_lang_makefrags
=
16210 # List of language subdirectory makefiles. Deprecated.
16211 all_lang_makefiles
=
16212 # Files for gengtype
16213 all_gtfiles
="$target_gtfiles"
16214 # Files for gengtype with language
16215 all_gtfiles_files_langs
=
16216 all_gtfiles_files_files
=
16218 # These are the languages that are set in --enable-languages,
16219 # and are available in the GCC tree.
16220 all_selected_languages
=
16222 # Add the language fragments.
16223 # Languages are added via two mechanisms. Some information must be
16224 # recorded in makefile variables, these are defined in config-lang.in.
16225 # We accumulate them and plug them into the main Makefile.
16226 # The other mechanism is a set of hooks for each of the main targets
16227 # like `clean', `install', etc.
16229 language_hooks
="Make-hooks"
16231 for lang
in ${srcdir}/*/config-lang.
in
16234 # The odd quoting in the next line works around
16235 # an apparent bug in bash 1.12 on linux.
16236 ${srcdir}/[*]/config-lang.
in)
16239 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16240 if test "x$lang_alias" = x
16242 echo "$lang doesn't set \$language." 1>&2
16245 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16246 subdirs
="$subdirs $subdir"
16247 case ",$enable_languages," in
16249 all_selected_languages
="$all_selected_languages $lang_alias"
16250 if test -f $srcdir/$subdir/lang-specs.h
; then
16251 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16256 if test -f $srcdir/$subdir/lang.opt
; then
16257 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16259 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16260 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16269 .
${srcdir}/$subdir/config-lang.
in
16270 if test "x$language" = x
16272 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16275 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16276 if test -f ${srcdir}/$subdir/Makefile.
in
16277 then all_lang_makefiles
="$subdir/Makefile"
16279 all_languages
="$all_languages $language"
16280 if test "x$boot_language" = xyes
16282 all_boot_languages
="$all_boot_languages $language"
16284 all_compilers
="$all_compilers $compilers"
16285 all_stagestuff
="$all_stagestuff $stagestuff"
16286 all_outputs
="$all_outputs $outputs"
16287 all_gtfiles
="$all_gtfiles $gtfiles"
16290 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16291 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16297 # Pick up gtfiles for c
16300 .
${srcdir}/c-config-lang.
in
16301 all_gtfiles
="$all_gtfiles $gtfiles"
16304 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16305 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16309 for language
in $all_selected_languages
16311 check_languages
="$check_languages check-$language"
16314 # We link each language in with a set of hooks, reached indirectly via
16315 # lang.${target}. Only do so for selected languages.
16319 target_list
="all.cross start.encap rest.encap tags \
16320 install-common install-man install-info dvi html \
16321 uninstall info man srcextra srcman srcinfo \
16322 mostlyclean clean distclean maintainer-clean \
16323 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16325 for t
in $target_list
16328 for lang
in $all_selected_languages
16332 echo "lang.$t: $x" >> Make-hooks
16341 echo "dir ." > .gdbinit
16342 echo "dir ${srcdir}" >> .gdbinit
16343 if test x
$gdb_needs_out_file_path = xyes
16345 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16347 if test "x$subdirs" != x
; then
16350 echo "dir ${srcdir}/$s" >> .gdbinit
16353 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16355 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16356 # absolute path for gcc_tooldir based on inserting the number of up-directory
16357 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16358 # $(libsubdir)/@(unlibsubdir) based path.
16359 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16360 # make and thus we'd get different behavior depending on where we built the
16362 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
16363 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16365 # An explanation of the sed strings:
16366 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16367 # -e 's|/$||' match a trailing forward slash and eliminates it
16368 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16369 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16371 # (*) Note this pattern overwrites the first character of the string
16372 # with a forward slash if one is not already present. This is not a
16373 # problem because the exact names of the sub-directories concerned is
16374 # unimportant, just the number of them matters.
16376 # The practical upshot of these patterns is like this:
16378 # prefix exec_prefix result
16379 # ------ ----------- ------
16380 # /foo /foo/bar ../
16381 # /foo/ /foo/bar ../
16382 # /foo /foo/bar/ ../
16383 # /foo/ /foo/bar/ ../
16384 # /foo /foo/bar/ugg ../../
16387 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16392 # Find a directory in which to install a shared libgcc.
16394 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16395 if test "${enable_version_specific_runtime_libs+set}" = set; then
16396 enableval
="$enable_version_specific_runtime_libs"
16401 # Check whether --with-slibdir or --without-slibdir was given.
16402 if test "${with_slibdir+set}" = set; then
16403 withval
="$with_slibdir"
16404 slibdir
="$with_slibdir"
16406 if test "${enable_version_specific_runtime_libs+set}" = set; then
16407 slibdir
='$(libsubdir)'
16408 elif test "$host" != "$target"; then
16409 slibdir
='$(build_tooldir)/lib'
16411 slibdir
='$(libdir)'
16416 objdir
=`${PWDCMD-pwd}`
16420 # Check whether --with-datarootdir or --without-datarootdir was given.
16421 if test "${with_datarootdir+set}" = set; then
16422 withval
="$with_datarootdir"
16423 datarootdir
="\${prefix}/$with_datarootdir"
16425 datarootdir
='$(prefix)/share'
16430 # Check whether --with-docdir or --without-docdir was given.
16431 if test "${with_docdir+set}" = set; then
16432 withval
="$with_docdir"
16433 docdir
="\${prefix}/$with_docdir"
16435 docdir
='$(datarootdir)'
16440 # Check whether --with-htmldir or --without-htmldir was given.
16441 if test "${with_htmldir+set}" = set; then
16442 withval
="$with_htmldir"
16443 htmldir
="\${prefix}/$with_htmldir"
16445 htmldir
='$(docdir)'
16449 # Substitute configuration variables
16514 if test x
${build} = x
${host} ; then
16515 if test x
${host} = x
${target} ; then
16516 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16518 echo "Links are now set up to build a cross-compiler" 1>&2
16519 echo " from ${host} to ${target}." 1>&2
16522 if test x
${host} = x
${target} ; then
16523 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16524 echo " for ${target}." 1>&2
16526 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16527 echo " from ${host} to ${target}." 1>&2
16534 # Configure the subdirectories
16535 # AC_CONFIG_SUBDIRS($subdirs)
16537 # Create the Makefile
16538 # and configure language subdirectories
16539 ac_config_files
="$ac_config_files $all_outputs"
16542 ac_config_commands
="$ac_config_commands default"
16544 cat >confcache
<<\_ACEOF
16545 # This file is a shell script that caches the results of configure
16546 # tests run on this system so they can be shared between configure
16547 # scripts and configure runs, see configure's option --config-cache.
16548 # It is not useful on other systems. If it contains results you don't
16549 # want to keep, you may remove or edit it.
16551 # config.status only pays attention to the cache file if you give it
16552 # the --recheck option to rerun configure.
16554 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16555 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16556 # following values.
16560 # The following way of writing the cache mishandles newlines in values,
16561 # but we know of no workaround that is simple, portable, and efficient.
16562 # So, don't put newlines in cache variables' values.
16563 # Ultrix sh set writes to stderr and can't be redirected directly,
16564 # and sets the high bit in the cache file unless we assign to the vars.
16567 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16569 # `set' does not quote correctly, so add quotes (double-quote
16570 # substitution turns \\\\ into \\, and sed turns \\ into \).
16573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16576 # `set' quotes correctly as required by POSIX, so do not add quotes.
16578 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16587 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16589 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16590 if test -w $cache_file; then
16591 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16592 cat confcache
>$cache_file
16594 echo "not updating unwritable cache $cache_file"
16599 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16600 # Let make expand exec_prefix.
16601 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16603 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16604 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16605 # trailing colons and then remove the whole line if VPATH becomes empty
16606 # (actually we leave an empty line to preserve line numbers).
16607 if test "x$srcdir" = x.
; then
16608 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16609 s/:*\$(srcdir):*/:/;
16610 s/:*\${srcdir}:*/:/;
16612 s/^\([^=]*=[ ]*\):*/\1/;
16618 DEFS
=-DHAVE_CONFIG_H
16622 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16623 # 1. Remove the extension, and $U if already installed.
16624 ac_i
=`echo "$ac_i" |
16625 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16627 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16628 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16630 LIBOBJS
=$ac_libobjs
16632 LTLIBOBJS
=$ac_ltlibobjs
16636 : ${CONFIG_STATUS=./config.status}
16637 ac_clean_files_save
=$ac_clean_files
16638 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16639 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16640 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16641 cat >$CONFIG_STATUS <<_ACEOF
16643 # Generated by $as_me.
16644 # Run this file to recreate the current configuration.
16645 # Compiler output produced by configure, useful for debugging
16646 # configure, is in config.log if it exists.
16649 ac_cs_recheck=false
16651 SHELL=\${CONFIG_SHELL-$SHELL}
16654 cat >>$CONFIG_STATUS <<\_ACEOF
16655 ## --------------------- ##
16656 ## M4sh Initialization. ##
16657 ## --------------------- ##
16659 # Be Bourne compatible
16660 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16663 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16664 # is contrary to our usage. Disable this feature.
16665 alias -g '${1+"$@"}'='"$@"'
16666 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16669 DUALCASE
=1; export DUALCASE
# for MKS sh
16671 # Support unset when possible.
16672 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16679 # Work around bugs in pre-3.0 UWIN ksh.
16680 $as_unset ENV MAIL MAILPATH
16687 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16688 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16689 LC_TELEPHONE LC_TIME
16691 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16692 eval $as_var=C
; export $as_var
16698 # Required to use basename.
16699 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16705 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16706 as_basename
=basename
16712 # Name of the executable.
16713 as_me
=`$as_basename "$0" ||
16714 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16715 X"$0" : 'X\(//\)$' \| \
16716 X"$0" : 'X\(/\)$' \| \
16717 . : '\(.\)' 2>/dev/null ||
16719 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16720 /^X\/\(\/\/\)$/{ s//\1/; q; }
16721 /^X\/\(\/\).*/{ s//\1/; q; }
16725 # PATH needs CR, and LINENO needs CR and PATH.
16726 # Avoid depending upon Character Ranges.
16727 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16728 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16729 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16730 as_cr_digits
='0123456789'
16731 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16733 # The user is always right.
16734 if test "${PATH_SEPARATOR+set}" != set; then
16735 echo "#! /bin/sh" >conf$$.sh
16736 echo "exit 0" >>conf$$.sh
16738 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16747 as_lineno_1
=$LINENO
16748 as_lineno_2
=$LINENO
16749 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16750 test "x$as_lineno_1" != "x$as_lineno_2" &&
16751 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16752 # Find who we are. Look in the path if we contain no path at all
16755 *[\\/]* ) as_myself
=$0 ;;
16756 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16757 for as_dir
in $PATH
16760 test -z "$as_dir" && as_dir
=.
16761 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16766 # We did not find ourselves, most probably we were run as `sh COMMAND'
16767 # in which case we are not to be found in the path.
16768 if test "x$as_myself" = x
; then
16771 if test ! -f "$as_myself"; then
16772 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16773 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16774 { (exit 1); exit 1; }; }
16776 case $CONFIG_SHELL in
16778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16779 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16782 test -z "$as_dir" && as_dir
=.
16783 for as_base
in sh bash ksh sh5
; do
16786 if ("$as_dir/$as_base" -c '
16787 as_lineno_1=$LINENO
16788 as_lineno_2=$LINENO
16789 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16790 test "x$as_lineno_1" != "x$as_lineno_2" &&
16791 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16792 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16793 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16794 CONFIG_SHELL
=$as_dir/$as_base
16795 export CONFIG_SHELL
16796 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16804 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16805 # uniformly replaced by the line number. The first 'sed' inserts a
16806 # line-number line before each line; the second 'sed' does the real
16807 # work. The second script uses 'N' to pair each line-number line
16808 # with the numbered line, and appends trailing '-' during
16809 # substitution so that $LINENO is not a special case at line end.
16810 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16811 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16812 sed '=' <$as_myself |
16817 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16820 s,^['$as_cr_digits']*\n,,
16821 ' >$as_me.lineno
&&
16822 chmod +x
$as_me.lineno ||
16823 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16824 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16825 { (exit 1); exit 1; }; }
16827 # Don't try to exec as it changes $[0], causing all sort of problems
16828 # (the dirname of $[0] is not the place where we might find the
16829 # original and so on. Autoconf is especially sensible to this).
16831 # Exit status is that of the last command.
16836 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16837 *c
*,-n*) ECHO_N
= ECHO_C
='
16839 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16840 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16843 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16849 rm -f conf$$ conf$$.exe conf$$.
file
16851 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16852 # We could just check for DJGPP; but this test a) works b) is more generic
16853 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16854 if test -f conf$$.exe
; then
16855 # Don't use ln at all; we don't have any links
16860 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16865 rm -f conf$$ conf$$.exe conf$$.
file
16867 if mkdir
-p .
2>/dev
/null
; then
16870 test -d .
/-p && rmdir .
/-p
16874 as_executable_p
="test -f"
16876 # Sed expression to map a string onto a valid CPP name.
16877 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16879 # Sed expression to map a string onto a valid variable name.
16880 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16884 # We need space, tab and new line, in precisely that order.
16894 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16895 # report actual input values of CONFIG_FILES etc. instead of their
16896 # values after options handling. Logging --version etc. is OK.
16900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16901 ## Running $as_me. ##
16906 This file was extended by $as_me, which was
16907 generated by GNU Autoconf 2.59. Invocation command line was
16909 CONFIG_FILES = $CONFIG_FILES
16910 CONFIG_HEADERS = $CONFIG_HEADERS
16911 CONFIG_LINKS = $CONFIG_LINKS
16912 CONFIG_COMMANDS = $CONFIG_COMMANDS
16916 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16920 # Files that config.status was made for.
16921 if test -n "$ac_config_files"; then
16922 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16925 if test -n "$ac_config_headers"; then
16926 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16929 if test -n "$ac_config_links"; then
16930 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16933 if test -n "$ac_config_commands"; then
16934 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16937 cat >>$CONFIG_STATUS <<\_ACEOF
16940 \`$as_me' instantiates files from templates according to the
16941 current configuration.
16943 Usage: $0 [OPTIONS] [FILE]...
16945 -h, --help print this help, then exit
16946 -V, --version print version number, then exit
16947 -q, --quiet do not print progress messages
16948 -d, --debug don't remove temporary files
16949 --recheck update $as_me by reconfiguring in the same conditions
16950 --file=FILE[:TEMPLATE]
16951 instantiate the configuration file FILE
16952 --header=FILE[:TEMPLATE]
16953 instantiate the configuration header FILE
16955 Configuration files:
16958 Configuration headers:
16961 Configuration commands:
16964 Report bugs to <bug-autoconf@gnu.org>."
16967 cat >>$CONFIG_STATUS <<_ACEOF
16970 configured by $0, generated by GNU Autoconf 2.59,
16971 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16973 Copyright (C) 2003 Free Software Foundation, Inc.
16974 This config.status script is free software; the Free Software Foundation
16975 gives unlimited permission to copy, distribute and modify it."
16979 cat >>$CONFIG_STATUS <<\_ACEOF
16980 # If no file are specified by the user, then we need to provide default
16981 # value. By we need to know if files were specified by the user.
16987 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16988 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16996 *) # This is not an option, so the user has probably given explicit
16999 ac_need_defaults
=false
;;
17003 # Handling of the options.
17005 cat >>$CONFIG_STATUS <<\_ACEOF
17006 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17008 --version |
--vers* |
-V )
17009 echo "$ac_cs_version"; exit 0 ;;
17011 # Conflict between --help and --header
17012 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17013 Try \`$0 --help' for more information." >&5
17014 echo "$as_me: error: ambiguous option: $1
17015 Try \`$0 --help' for more information." >&2;}
17016 { (exit 1); exit 1; }; };;
17017 --help |
--hel |
-h )
17018 echo "$ac_cs_usage"; exit 0 ;;
17019 --debug |
--d* |
-d )
17021 --file |
--fil |
--fi |
--f )
17023 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17024 ac_need_defaults
=false
;;
17025 --header |
--heade |
--head |
--hea )
17027 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17028 ac_need_defaults
=false
;;
17029 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17030 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17033 # This is an error.
17034 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17035 Try \`$0 --help' for more information." >&5
17036 echo "$as_me: error: unrecognized option: $1
17037 Try \`$0 --help' for more information." >&2;}
17038 { (exit 1); exit 1; }; } ;;
17040 *) ac_config_targets
="$ac_config_targets $1" ;;
17046 ac_configure_extra_args
=
17048 if $ac_cs_silent; then
17050 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17054 cat >>$CONFIG_STATUS <<_ACEOF
17055 if \$ac_cs_recheck; then
17056 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17057 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17062 cat >>$CONFIG_STATUS <<_ACEOF
17064 # INIT-COMMANDS section.
17073 cat >>$CONFIG_STATUS <<\_ACEOF
17074 for ac_config_target
in $ac_config_targets
17076 case "$ac_config_target" in
17077 # Handling of arguments.
17078 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
17079 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17080 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
17081 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17082 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17083 { (exit 1); exit 1; }; };;
17087 # If the user did not use the arguments to specify the items to instantiate,
17088 # then the envvar interface is used. Set only those that are not.
17089 # We use the long form for the default assignment because of an extremely
17090 # bizarre bug on SunOS 4.1.3.
17091 if $ac_need_defaults; then
17092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17094 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17097 # Have a temporary directory for convenience. Make it in the build tree
17098 # simply because there is no reason to put it here, and in addition,
17099 # creating and moving files from /tmp can sometimes cause problems.
17100 # Create a temporary directory, and hook for its removal unless debugging.
17103 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17104 trap '{ (exit 1); exit 1; }' 1 2 13 15
17107 # Create a (secure) tmp directory for tmp files.
17110 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17111 test -n "$tmp" && test -d "$tmp"
17114 tmp
=.
/confstat$$
-$RANDOM
17115 (umask 077 && mkdir
$tmp)
17118 echo "$me: cannot create a temporary directory in ." >&2
17119 { (exit 1); exit 1; }
17124 cat >>$CONFIG_STATUS <<_ACEOF
17127 # CONFIG_FILES section.
17130 # No need to generate the scripts if there are no CONFIG_FILES.
17131 # This happens for instance when ./config.status config.h
17132 if test -n "\$CONFIG_FILES"; then
17133 # Protect against being on the right side of a sed subst in config.status.
17134 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17135 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17136 s,@SHELL@,$SHELL,;t t
17137 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17138 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17139 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17140 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17141 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17142 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17143 s,@exec_prefix@,$exec_prefix,;t t
17144 s,@prefix@,$prefix,;t t
17145 s,@program_transform_name@,$program_transform_name,;t t
17146 s,@bindir@,$bindir,;t t
17147 s,@sbindir@,$sbindir,;t t
17148 s,@libexecdir@,$libexecdir,;t t
17149 s,@datadir@,$datadir,;t t
17150 s,@sysconfdir@,$sysconfdir,;t t
17151 s,@sharedstatedir@,$sharedstatedir,;t t
17152 s,@localstatedir@,$localstatedir,;t t
17153 s,@libdir@,$libdir,;t t
17154 s,@includedir@,$includedir,;t t
17155 s,@oldincludedir@,$oldincludedir,;t t
17156 s,@infodir@,$infodir,;t t
17157 s,@mandir@,$mandir,;t t
17158 s,@build_alias@,$build_alias,;t t
17159 s,@host_alias@,$host_alias,;t t
17160 s,@target_alias@,$target_alias,;t t
17161 s,@DEFS@,$DEFS,;t t
17162 s,@ECHO_C@,$ECHO_C,;t t
17163 s,@ECHO_N@,$ECHO_N,;t t
17164 s,@ECHO_T@,$ECHO_T,;t t
17165 s,@LIBS@,$LIBS,;t t
17166 s,@build@,$build,;t t
17167 s,@build_cpu@,$build_cpu,;t t
17168 s,@build_vendor@,$build_vendor,;t t
17169 s,@build_os@,$build_os,;t t
17170 s,@host@,$host,;t t
17171 s,@host_cpu@,$host_cpu,;t t
17172 s,@host_vendor@,$host_vendor,;t t
17173 s,@host_os@,$host_os,;t t
17174 s,@target@,$target,;t t
17175 s,@target_cpu@,$target_cpu,;t t
17176 s,@target_vendor@,$target_vendor,;t t
17177 s,@target_os@,$target_os,;t t
17178 s,@GENINSRC@,$GENINSRC,;t t
17180 s,@CFLAGS@,$CFLAGS,;t t
17181 s,@LDFLAGS@,$LDFLAGS,;t t
17182 s,@CPPFLAGS@,$CPPFLAGS,;t t
17183 s,@ac_ct_CC@,$ac_ct_CC,;t t
17184 s,@EXEEXT@,$EXEEXT,;t t
17185 s,@OBJEXT@,$OBJEXT,;t t
17186 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17187 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17189 s,@EGREP@,$EGREP,;t t
17190 s,@strict1_warn@,$strict1_warn,;t t
17191 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17192 s,@warn_cflags@,$warn_cflags,;t t
17193 s,@WERROR@,$WERROR,;t t
17194 s,@nocommon_flag@,$nocommon_flag,;t t
17195 s,@TREEBROWSER@,$TREEBROWSER,;t t
17196 s,@valgrind_path@,$valgrind_path,;t t
17197 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17198 s,@valgrind_command@,$valgrind_command,;t t
17199 s,@coverage_flags@,$coverage_flags,;t t
17200 s,@enable_multilib@,$enable_multilib,;t t
17201 s,@enable_decimal_float@,$enable_decimal_float,;t t
17202 s,@enable_shared@,$enable_shared,;t t
17203 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17204 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17205 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17206 s,@onestep@,$onestep,;t t
17207 s,@datarootdir@,$datarootdir,;t t
17208 s,@docdir@,$docdir,;t t
17209 s,@htmldir@,$htmldir,;t t
17210 s,@SET_MAKE@,$SET_MAKE,;t t
17212 s,@LN_S@,$LN_S,;t t
17213 s,@RANLIB@,$RANLIB,;t t
17214 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17215 s,@ranlib_flags@,$ranlib_flags,;t t
17216 s,@INSTALL@,$INSTALL,;t t
17217 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17218 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17219 s,@make_compare_target@,$make_compare_target,;t t
17220 s,@have_mktemp_command@,$have_mktemp_command,;t t
17221 s,@MAKEINFO@,$MAKEINFO,;t t
17222 s,@BUILD_INFO@,$BUILD_INFO,;t t
17223 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17224 s,@FLEX@,$FLEX,;t t
17225 s,@BISON@,$BISON,;t t
17228 s,@stage1_cflags@,$stage1_cflags,;t t
17229 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17230 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17231 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17232 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17233 s,@LIBICONV@,$LIBICONV,;t t
17234 s,@LTLIBICONV@,$LTLIBICONV,;t t
17235 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17236 s,@manext@,$manext,;t t
17237 s,@objext@,$objext,;t t
17238 s,@gthread_flags@,$gthread_flags,;t t
17239 s,@extra_modes_file@,$extra_modes_file,;t t
17240 s,@extra_opt_files@,$extra_opt_files,;t t
17241 s,@build_subdir@,$build_subdir,;t t
17242 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17243 s,@CROSS@,$CROSS,;t t
17245 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17246 s,@inhibit_libc@,$inhibit_libc,;t t
17247 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17248 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17249 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17250 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17251 s,@collect2@,$collect2,;t t
17252 s,@gcc_cv_as@,$gcc_cv_as,;t t
17253 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17254 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17255 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17256 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17257 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17258 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17259 s,@libgcc_visibility@,$libgcc_visibility,;t t
17261 s,@zlibdir@,$zlibdir,;t t
17262 s,@zlibinc@,$zlibinc,;t t
17263 s,@MAINT@,$MAINT,;t t
17264 s,@gcc_tooldir@,$gcc_tooldir,;t t
17265 s,@dollar@,$dollar,;t t
17266 s,@slibdir@,$slibdir,;t t
17267 s,@objdir@,$objdir,;t t
17268 s,@subdirs@,$subdirs,;t t
17269 s,@srcdir@,$srcdir,;t t
17270 s,@all_boot_languages@,$all_boot_languages,;t t
17271 s,@all_compilers@,$all_compilers,;t t
17272 s,@all_gtfiles@,$all_gtfiles,;t t
17273 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17274 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17275 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17276 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17277 s,@all_languages@,$all_languages,;t t
17278 s,@all_selected_languages@,$all_selected_languages,;t t
17279 s,@all_stagestuff@,$all_stagestuff,;t t
17280 s,@build_exeext@,$build_exeext,;t t
17281 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17282 s,@build_xm_file_list@,$build_xm_file_list,;t t
17283 s,@build_xm_include_list@,$build_xm_include_list,;t t
17284 s,@build_xm_defines@,$build_xm_defines,;t t
17285 s,@check_languages@,$check_languages,;t t
17286 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17287 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17288 s,@cpp_install_dir@,$cpp_install_dir,;t t
17289 s,@xmake_file@,$xmake_file,;t t
17290 s,@tmake_file@,$tmake_file,;t t
17291 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17292 s,@extra_headers_list@,$extra_headers_list,;t t
17293 s,@extra_objs@,$extra_objs,;t t
17294 s,@extra_parts@,$extra_parts,;t t
17295 s,@extra_passes@,$extra_passes,;t t
17296 s,@extra_programs@,$extra_programs,;t t
17297 s,@float_h_file@,$float_h_file,;t t
17298 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17299 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17300 s,@host_exeext@,$host_exeext,;t t
17301 s,@host_xm_file_list@,$host_xm_file_list,;t t
17302 s,@host_xm_include_list@,$host_xm_include_list,;t t
17303 s,@host_xm_defines@,$host_xm_defines,;t t
17304 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17305 s,@install@,$install,;t t
17306 s,@lang_opt_files@,$lang_opt_files,;t t
17307 s,@lang_specs_files@,$lang_specs_files,;t t
17308 s,@lang_tree_files@,$lang_tree_files,;t t
17309 s,@local_prefix@,$local_prefix,;t t
17310 s,@md_file@,$md_file,;t t
17311 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17312 s,@out_file@,$out_file,;t t
17313 s,@out_object_file@,$out_object_file,;t t
17314 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17315 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17316 s,@thread_file@,$thread_file,;t t
17317 s,@tm_file_list@,$tm_file_list,;t t
17318 s,@tm_include_list@,$tm_include_list,;t t
17319 s,@tm_defines@,$tm_defines,;t t
17320 s,@tm_p_file_list@,$tm_p_file_list,;t t
17321 s,@tm_p_include_list@,$tm_p_include_list,;t t
17322 s,@xm_file_list@,$xm_file_list,;t t
17323 s,@xm_include_list@,$xm_include_list,;t t
17324 s,@xm_defines@,$xm_defines,;t t
17325 s,@c_target_objs@,$c_target_objs,;t t
17326 s,@cxx_target_objs@,$cxx_target_objs,;t t
17327 s,@target_cpu_default@,$target_cpu_default,;t t
17328 s,@GMPLIBS@,$GMPLIBS,;t t
17329 s,@GMPINC@,$GMPINC,;t t
17330 s,@LIBOBJS@,$LIBOBJS,;t t
17331 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17332 /@language_hooks@/r $language_hooks
17333 s,@language_hooks@,,;t t
17338 cat >>$CONFIG_STATUS <<\_ACEOF
17339 # Split the substitutions into bite-sized pieces for seds with
17340 # small command number limits, like on Digital OSF/1 and HP-UX.
17341 ac_max_sed_lines
=48
17342 ac_sed_frag
=1 # Number of current file.
17343 ac_beg
=1 # First line for current file.
17344 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17347 while $ac_more_lines; do
17348 if test $ac_beg -gt 1; then
17349 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17351 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17353 if test ! -s $tmp/subs.frag
; then
17354 ac_more_lines
=false
17356 # The purpose of the label and of the branching condition is to
17357 # speed up the sed processing (if there are no `@' at all, there
17358 # is no need to browse any of the substitutions).
17359 # These are the two extra sed commands mentioned above.
17361 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17362 if test -z "$ac_sed_cmds"; then
17363 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17365 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17367 ac_sed_frag
=`expr $ac_sed_frag + 1`
17369 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17372 if test -z "$ac_sed_cmds"; then
17375 fi # test -n "$CONFIG_FILES"
17378 cat >>$CONFIG_STATUS <<\_ACEOF
17379 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17382 - |
*:- |
*:-:* ) # input from stdin
17384 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17385 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17386 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17387 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17388 * ) ac_file_in
=$ac_file.
in ;;
17391 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17392 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17394 X"$ac_file" : 'X\(//\)[^/]' \| \
17395 X"$ac_file" : 'X\(//\)$' \| \
17396 X"$ac_file" : 'X\(/\)' \| \
17397 . : '\(.\)' 2>/dev/null ||
17399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17401 /^X\(\/\/\)$/{ s//\1/; q; }
17402 /^X\(\/\).*/{ s//\1/; q; }
17404 { if $as_mkdir_p; then
17409 while test ! -d "$as_dir"; do
17410 as_dirs
="$as_dir $as_dirs"
17411 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17413 X"$as_dir" : 'X\(//\)[^/]' \| \
17414 X"$as_dir" : 'X\(//\)$' \| \
17415 X"$as_dir" : 'X\(/\)' \| \
17416 . : '\(.\)' 2>/dev/null ||
17418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17420 /^X\(\/\/\)$/{ s//\1/; q; }
17421 /^X\(\/\).*/{ s//\1/; q; }
17424 test ! -n "$as_dirs" || mkdir
$as_dirs
17425 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17426 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17427 { (exit 1); exit 1; }; }; }
17431 if test "$ac_dir" != .
; then
17432 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17433 # A "../" for each directory in $ac_dir_suffix.
17434 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17436 ac_dir_suffix
= ac_top_builddir
=
17440 .
) # No --srcdir option. We are building in place.
17442 if test -z "$ac_top_builddir"; then
17445 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17447 [\\/]* | ?
:[\\/]* ) # Absolute path.
17448 ac_srcdir
=$srcdir$ac_dir_suffix;
17449 ac_top_srcdir
=$srcdir ;;
17450 *) # Relative path.
17451 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17452 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17455 # Do not use `cd foo && pwd` to compute absolute paths, because
17456 # the directories may not exist.
17458 .
) ac_abs_builddir
="$ac_dir";;
17461 .
) ac_abs_builddir
=`pwd`;;
17462 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17463 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17466 case $ac_abs_builddir in
17467 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17469 case ${ac_top_builddir}.
in
17470 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17471 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17472 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17475 case $ac_abs_builddir in
17476 .
) ac_abs_srcdir
=$ac_srcdir;;
17479 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17480 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17481 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17484 case $ac_abs_builddir in
17485 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17487 case $ac_top_srcdir in
17488 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17489 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17490 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17496 if test x
"$ac_file" != x-
; then
17497 { echo "$as_me:$LINENO: creating $ac_file" >&5
17498 echo "$as_me: creating $ac_file" >&6;}
17501 # Let's still pretend it is `configure' which instantiates (i.e., don't
17502 # use $as_me), people would be surprised to read:
17503 # /* config.h. Generated by config.status. */
17504 if test x
"$ac_file" = x-
; then
17507 configure_input
="$ac_file. "
17509 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17510 sed 's,.*/,,'` by configure."
17512 # First look for the input files in the build tree, otherwise in the
17514 ac_file_inputs
=`IFS=:
17515 for f in $ac_file_in; do
17517 -) echo $tmp/stdin ;;
17519 # Absolute (can't be DOS-style, as IFS=:)
17520 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17521 echo "$as_me: error: cannot find input file: $f" >&2;}
17522 { (exit 1); exit 1; }; }
17525 if test -f "$f"; then
17528 elif test -f "$srcdir/$f"; then
17533 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17534 echo "$as_me: error: cannot find input file: $f" >&2;}
17535 { (exit 1); exit 1; }; }
17538 done` ||
{ (exit 1); exit 1; }
17540 cat >>$CONFIG_STATUS <<_ACEOF
17544 cat >>$CONFIG_STATUS <<\_ACEOF
17546 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17547 s
,@configure_input@
,$configure_input,;t t
17548 s
,@srcdir@
,$ac_srcdir,;t t
17549 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17550 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17551 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17552 s
,@builddir@
,$ac_builddir,;t t
17553 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17554 s
,@top_builddir@
,$ac_top_builddir,;t t
17555 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17556 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17558 if test x"$ac_file" != x-; then
17559 mv $tmp/out $ac_file
17567 cat >>$CONFIG_STATUS <<\_ACEOF
17570 # CONFIG_HEADER section.
17573 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17574 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17576 # ac_d sets the value in "#define NAME VALUE" lines.
17577 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17578 ac_dB
='[ ].*$,\1#\2'
17581 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17582 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17583 ac_uB
='$,\1#\2define\3'
17587 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17590 - |
*:- |
*:-:* ) # input from stdin
17592 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17593 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17594 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17595 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17596 * ) ac_file_in
=$ac_file.
in ;;
17599 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17600 echo "$as_me: creating $ac_file" >&6;}
17602 # First look for the input files in the build tree, otherwise in the
17604 ac_file_inputs
=`IFS=:
17605 for f in $ac_file_in; do
17607 -) echo $tmp/stdin ;;
17609 # Absolute (can't be DOS-style, as IFS=:)
17610 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17611 echo "$as_me: error: cannot find input file: $f" >&2;}
17612 { (exit 1); exit 1; }; }
17613 # Do quote $f, to prevent DOS paths from being IFS'd.
17616 if test -f "$f"; then
17619 elif test -f "$srcdir/$f"; then
17624 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17625 echo "$as_me: error: cannot find input file: $f" >&2;}
17626 { (exit 1); exit 1; }; }
17629 done` ||
{ (exit 1); exit 1; }
17630 # Remove the trailing spaces.
17631 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17635 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17636 # `conftest.undefs', that substitutes the proper values into
17637 # config.h.in to produce config.h. The first handles `#define'
17638 # templates, and the second `#undef' templates.
17639 # And first: Protect against being on the right side of a sed subst in
17640 # config.status. Protect against being in an unquoted here document
17641 # in config.status.
17642 rm -f conftest.defines conftest.undefs
17643 # Using a here document instead of a string reduces the quoting nightmare.
17644 # Putting comments in sed scripts is not portable.
17646 # `end' is used to avoid that the second main sed command (meant for
17647 # 0-ary CPP macros) applies to n-ary macro definitions.
17648 # See the Autoconf documentation for `clear'.
17649 cat >confdef2sed.
sed <<\_ACEOF
17654 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17656 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17659 # If some macros were called several times there might be several times
17660 # the same #defines, which is useless. Nevertheless, we may not want to
17661 # sort them, since we want the *last* AC-DEFINE to be honored.
17662 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17663 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17664 rm -f confdef2sed.sed
17666 # This sed command replaces #undef with comments. This is necessary, for
17667 # example, in the case of _POSIX_SOURCE, which is predefined and required
17668 # on some systems where configure will not decide to define it.
17669 cat >>conftest.undefs <<\_ACEOF
17670 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17673 # Break up conftest.defines because some shells have a limit on the size
17674 # of here documents, and old seds have small limits too (100 cmds).
17675 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17676 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17677 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17678 echo ' :' >>$CONFIG_STATUS
17679 rm -f conftest.tail
17680 while grep . conftest.defines >/dev/null
17682 # Write a limited-size here document to $tmp/defines.sed.
17683 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17684 # Speed up: don't consider the non `#define' lines.
17685 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17686 # Work around the forget-to-reset-the-flag bug.
17687 echo 't clr' >>$CONFIG_STATUS
17688 echo ': clr' >>$CONFIG_STATUS
17689 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17691 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17693 mv $tmp/out $tmp/in
17695 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17696 rm -f conftest.defines
17697 mv conftest.
tail conftest.defines
17699 rm -f conftest.defines
17700 echo ' fi # grep' >>$CONFIG_STATUS
17701 echo >>$CONFIG_STATUS
17703 # Break up conftest.undefs because some shells have a limit on the size
17704 # of here documents, and old seds have small limits too (100 cmds).
17705 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17706 rm -f conftest.
tail
17707 while grep . conftest.undefs
>/dev
/null
17709 # Write a limited-size here document to $tmp/undefs.sed.
17710 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17711 # Speed up: don't consider the non
`#undef'
17712 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17713 # Work around the forget-to-reset-the-flag bug.
17714 echo 't clr' >>$CONFIG_STATUS
17715 echo ': clr' >>$CONFIG_STATUS
17716 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17718 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17720 mv $tmp/out $tmp/in
17722 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17723 rm -f conftest.undefs
17724 mv conftest.tail conftest.undefs
17726 rm -f conftest.undefs
17728 cat >>$CONFIG_STATUS <<\_ACEOF
17729 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17730 # use $as_me), people would be surprised to read:
17731 # /* config.h. Generated by config.status. */
17732 if test x
"$ac_file" = x-
; then
17733 echo "/* Generated by configure. */" >$tmp/config.h
17735 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17737 cat $tmp/in >>$tmp/config.h
17739 if test x
"$ac_file" != x-
; then
17740 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17741 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17742 echo "$as_me: $ac_file is unchanged" >&6;}
17744 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17746 X"$ac_file" : 'X\(//\)[^/]' \| \
17747 X"$ac_file" : 'X\(//\)$' \| \
17748 X"$ac_file" : 'X\(/\)' \| \
17749 . : '\(.\)' 2>/dev/null ||
17751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17753 /^X\(\/\/\)$/{ s//\1/; q; }
17754 /^X\(\/\).*/{ s//\1/; q; }
17756 { if $as_mkdir_p; then
17761 while test ! -d "$as_dir"; do
17762 as_dirs
="$as_dir $as_dirs"
17763 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17765 X"$as_dir" : 'X\(//\)[^/]' \| \
17766 X"$as_dir" : 'X\(//\)$' \| \
17767 X"$as_dir" : 'X\(/\)' \| \
17768 . : '\(.\)' 2>/dev/null ||
17770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17772 /^X\(\/\/\)$/{ s//\1/; q; }
17773 /^X\(\/\).*/{ s//\1/; q; }
17776 test ! -n "$as_dirs" || mkdir
$as_dirs
17777 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17778 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17779 { (exit 1); exit 1; }; }; }
17782 mv $tmp/config.h
$ac_file
17786 rm -f $tmp/config.h
17790 cat >>$CONFIG_STATUS <<\_ACEOF
17793 # CONFIG_COMMANDS section.
17795 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17796 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17797 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17798 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17799 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17800 X"$ac_dest" : 'X\(//\)[^/]' \| \
17801 X"$ac_dest" : 'X\(//\)$' \| \
17802 X"$ac_dest" : 'X\(/\)' \| \
17803 . : '\(.\)' 2>/dev/null ||
17805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17807 /^X\(\/\/\)$/{ s//\1/; q; }
17808 /^X\(\/\).*/{ s//\1/; q; }
17810 { if $as_mkdir_p; then
17815 while test ! -d "$as_dir"; do
17816 as_dirs
="$as_dir $as_dirs"
17817 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17819 X"$as_dir" : 'X\(//\)[^/]' \| \
17820 X"$as_dir" : 'X\(//\)$' \| \
17821 X"$as_dir" : 'X\(/\)' \| \
17822 . : '\(.\)' 2>/dev/null ||
17824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17826 /^X\(\/\/\)$/{ s//\1/; q; }
17827 /^X\(\/\).*/{ s//\1/; q; }
17830 test ! -n "$as_dirs" || mkdir
$as_dirs
17831 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17832 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17833 { (exit 1); exit 1; }; }; }
17837 if test "$ac_dir" != .
; then
17838 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17839 # A "../" for each directory in $ac_dir_suffix.
17840 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17842 ac_dir_suffix
= ac_top_builddir
=
17846 .
) # No --srcdir option. We are building in place.
17848 if test -z "$ac_top_builddir"; then
17851 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17853 [\\/]* | ?
:[\\/]* ) # Absolute path.
17854 ac_srcdir
=$srcdir$ac_dir_suffix;
17855 ac_top_srcdir
=$srcdir ;;
17856 *) # Relative path.
17857 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17858 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17861 # Do not use `cd foo && pwd` to compute absolute paths, because
17862 # the directories may not exist.
17864 .
) ac_abs_builddir
="$ac_dir";;
17867 .
) ac_abs_builddir
=`pwd`;;
17868 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17869 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17872 case $ac_abs_builddir in
17873 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17875 case ${ac_top_builddir}.
in
17876 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17877 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17878 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17881 case $ac_abs_builddir in
17882 .
) ac_abs_srcdir
=$ac_srcdir;;
17885 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17886 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17887 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17890 case $ac_abs_builddir in
17891 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17893 case $ac_top_srcdir in
17894 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17895 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17896 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17901 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17902 echo "$as_me: executing $ac_dest commands" >&6;}
17905 case ${CONFIG_HEADERS} in
17906 *auto-host.h
:config.
in*)
17909 # Make sure all the subdirs exist.
17910 for d
in $subdirs doc build
17912 test -d $d || mkdir
$d
17914 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17915 # bootstrapping and the installation procedure can still use
17916 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17917 # FLAGS_TO_PASS has been modified to solve the problem there.
17918 # This is virtually a duplicate of what happens in configure.lang; we do
17919 # an extra check to make sure this only happens if ln -s can be used.
17922 for d
in ${subdirs} ; do
17923 STARTDIR
=`${PWDCMD-pwd}`
17925 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17928 $LN_S ..
/$t $t 2>/dev
/null
17939 cat >>$CONFIG_STATUS <<\_ACEOF
17941 { (exit 0); exit 0; }
17943 chmod +x
$CONFIG_STATUS
17944 ac_clean_files
=$ac_clean_files_save
17947 # configure is writing to config.log, and then calls config.status.
17948 # config.status does its own redirection, appending to config.log.
17949 # Unfortunately, on DOS this fails, as config.log is still kept open
17950 # by configure, so config.status won't be able to write to it; its
17951 # output is simply discarded. So we exec the FD to /dev/null,
17952 # effectively closing config.log, so it can be properly (re)opened and
17953 # appended to by config.status. When coming back to configure, we
17954 # need to make the FD available again.
17955 if test "$no_create" != yes; then
17957 ac_config_status_args
=
17958 test "$silent" = yes &&
17959 ac_config_status_args
="$ac_config_status_args --quiet"
17961 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17963 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17964 # would make configure fail if this is the last instruction.
17965 $ac_cs_success ||
{ (exit 1); exit 1; }