2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict_warn cxx_compat_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-checking=LIST
867 enable expensive run-time checks. With LIST
,
868 enable only specific categories of checks.
869 Categories are
: yes,no
,all
,none
,release.
870 Flags are
: assert
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,runtime
,tree
,valgrind.
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler
's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-decimal-float={no,yes,bid,dpd}
883 enable decimal float extension to C. Selecting 'bid
'
884 or 'dpd
' choses which decimal floating point format
886 --enable-threads enable thread usage for target GCC
887 --enable-threads=LIB use LIB thread package for target GCC
888 --enable-tls enable or disable generation of tls code
889 overriding the assembler check for tls support
890 --enable-objc-gc enable the use of Boehm's garbage collector with
891 the GNU Objective-C runtime
892 --disable-shared don
't provide a shared libgcc
893 --enable-intermodule build the compiler in one step
894 --enable-languages=LIST specify which front-ends to build
895 --disable-rpath do not hardcode runtime library paths
896 --enable-initfini-array use .init_array/.fini_array sections
897 --enable-sjlj-exceptions
898 arrange to use setjmp/longjmp exception handling
899 --enable-secureplt enable -msecure-plt by default for PowerPC
900 --disable-win32-registry
901 disable lookup of installation paths in the
902 Registry on Windows hosts
903 --enable-win32-registry enable registry lookup (default)
904 --enable-win32-registry=KEY
905 use KEY instead of GCC version as the last portion
907 --enable-maintainer-mode
908 enable make rules and dependencies not useful
909 (and sometimes confusing) to the casual installer
910 --enable-version-specific-runtime-libs
911 specify that runtime libraries should be
912 installed in a compiler-specific directory
915 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
916 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
917 --with-build-libsubdir=DIR Directory where to find libraries for build system
918 --with-local-prefix=DIR specifies directory to put local include
919 --with-gxx-include-dir=DIR
920 specifies directory to put g++ header files
921 --with-cpp-install-dir=DIR
922 install the user visible C preprocessor in DIR
923 (relative to PREFIX) as well as PREFIX/bin
924 --with-gnu-ld arrange to work with GNU ld.
925 --with-ld arrange to use the specified ld (full pathname)
926 --with-demangler-in-ld try to use demangler in GNU ld.
927 --with-gnu-as arrange to work with GNU as
928 --with-as arrange to use the specified as (full pathname)
929 --with-stabs arrange to use stabs instead of host debug format
930 --with-dwarf2 force the default debug format to be DWARF 2
931 --with-build-sysroot=sysroot
932 use sysroot as the system root during the build
933 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934 --with-gnu-ld assume the C compiler uses GNU ld default=no
935 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
936 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
937 --with-system-libunwind use installed libunwind
938 --with-long-double-128 Use
128-bit long double by default.
939 --with-gc={page
,zone
} choose the garbage collection mechanism to use
941 --with-system-zlib use installed libz
942 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
943 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
944 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
945 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
947 Some influential environment variables
:
948 CC C compiler
command
949 CFLAGS C compiler flags
950 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
951 nonstandard directory
<lib dir
>
952 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
953 headers
in a nonstandard directory
<include dir
>
955 GMPLIBS How to link GMP
956 GMPINC How to
find GMP include files
958 Use these variables to override the choices made by
`configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
964 if test "$ac_init_help" = "recursive"; then
965 # If there are subdirs, report their specific --help.
967 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968 test -d $ac_dir || continue
971 if test "$ac_dir" != .; then
972 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
973 # A "../" for each directory in $ac_dir_suffix.
974 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
976 ac_dir_suffix= ac_top_builddir=
980 .) # No --srcdir option. We are building in place.
982 if test -z "$ac_top_builddir"; then
985 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
987 [\\/]* | ?:[\\/]* ) # Absolute path.
988 ac_srcdir=$srcdir$ac_dir_suffix;
989 ac_top_srcdir=$srcdir ;;
991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 # Do not use `cd foo
&& pwd` to compute absolute paths, because
996 # the directories may not exist.
998 .) ac_abs_builddir="$ac_dir";;
1001 .) ac_abs_builddir=`pwd`;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 case ${ac_top_builddir}. in
1010 .) ac_abs_top_builddir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1019 .) ac_abs_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 case $ac_top_srcdir in
1028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1035 # Check for guested configure; otherwise get Cygnus style configure.
1036 if test -f $ac_srcdir/configure.gnu; then
1038 $SHELL $ac_srcdir/configure.gnu --help=recursive
1039 elif test -f $ac_srcdir/configure; then
1041 $SHELL $ac_srcdir/configure --help=recursive
1042 elif test -f $ac_srcdir/configure.ac ||
1043 test -f $ac_srcdir/configure.in; then
1045 $ac_configure --help
1047 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59. Invocation command line was
1080 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1081 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1082 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1083 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1084 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1086 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1087 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1089 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1090 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1091 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1092 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1093 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1094 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1095 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1103 test -z "$as_dir" && as_dir=.
1104 echo "PATH: $as_dir"
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1128 ac_must_keep_next=false
1134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1142 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145 if test $ac_must_keep_next = true; then
1146 ac_must_keep_next=false # Got value, back to normal.
1149 *=* | --config-cache | -C | -disable-* | --disable-* \
1150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152 | -with-* | --with-* | -without-* | --without-* | --x)
1153 case "$ac_configure_args0 " in
1154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157 -* ) ac_must_keep_next=true ;;
1160 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161 # Get rid of the leading space.
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log. We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close
' the trap.
1175 trap 'exit_status
=$?
1176 # Save into config.log some information that might help in debugging.
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1186 # The following way of writing the cache mishandles newlines in values,
1189 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1209 for ac_var
in $ac_subst_vars
1211 eval ac_val
=$
`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1216 if test -n "$ac_subst_files"; then
1223 for ac_var
in $ac_subst_files
1225 eval ac_val
=$
`echo $ac_var`
1226 echo "$ac_var='"'"'$ac_val'"'"'"
1231 if test -s confdefs.h
; then
1238 sed "/^$/d" confdefs.h |
sort
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1245 rm -f core
*.core
&&
1246 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1249 for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 # Predefined preprocessor variables.
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295 for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's
/^
/|
/' "$ac_site_file" >&5
1304 if test -r "$cache_file"; then
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1321 # Check that the precious variables saved in the cache have kept the same
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1334 ac_cache_corrupted=: ;;
1336 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1343 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345 echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347 echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1364 if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1368 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1375 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1400 gcc_version=`cat $srcdir/BASE-VER`
1402 # Determine the host, build, and target systems
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1409 elif test -f $ac_dir/install.sh; then
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1413 elif test -f $ac_dir/shtool; then
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1455 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1457 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1477 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1479 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1501 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1509 program_prefix=${target_alias}-
1511 # Determine the noncanonical target name, for directory use.
1512 case ${build_alias} in
1513 "") build_noncanonical=${build} ;;
1514 *) build_noncanonical=${build_alias} ;;
1517 case ${host_alias} in
1518 "") host_noncanonical=${build_noncanonical} ;;
1519 *) host_noncanonical=${host_alias} ;;
1522 case ${target_alias} in
1523 "") target_noncanonical=${host_noncanonical} ;;
1524 *) target_noncanonical=${target_alias} ;;
1530 # Determine the target- and build-specific subdirectories
1532 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1533 # have matching libraries, they should use host libraries: Makefile.tpl
1534 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1535 # However, they still use the build modules, because the corresponding
1536 # host modules (e.g. bison) are only built for the host when bootstrap
1538 # - build_subdir is where we find build modules, and never changes.
1539 # - build_libsubdir is where we find build libraries, and can be overridden.
1541 # Prefix 'build-
' so this never conflicts with target_subdir.
1542 build_subdir="build-${build_noncanonical}"
1544 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1545 if test "${with_build_libsubdir+set}" = set; then
1546 withval="$with_build_libsubdir"
1547 build_libsubdir="$withval"
1549 build_libsubdir="$build_subdir"
1551 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1552 if ( test $srcdir = . && test -d gcc ) \
1553 || test -d $srcdir/../host-${host_noncanonical}; then
1554 host_subdir="host-${host_noncanonical}"
1559 target_subdir=${target_noncanonical}
1562 # Set program_transform_name
1563 test "$program_prefix" != NONE &&
1564 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1565 # Use a double $ so make ignores it.
1566 test "$program_suffix" != NONE &&
1567 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1568 # Double any \ or $. echo might interpret backslashes.
1569 # By default was `s,x,x', remove it
if useless.
1570 cat <<\_ACEOF
>conftest.
sed
1571 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1573 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1577 # Check for bogus environment variables.
1578 # Test if LIBRARY_PATH contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # LIBRARY_PATH contains the current directory if one of the following
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1586 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1587 case ${LIBRARY_PATH} in
1588 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1589 library_path_setting
="contains current directory"
1592 library_path_setting
="ok"
1595 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1596 echo "${ECHO_T}$library_path_setting" >&6
1597 if test "$library_path_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** LIBRARY_PATH shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** LIBRARY_PATH shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1609 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1610 # since this would lead to problems installing/building glibc.
1611 # GCC_EXEC_PREFIX contains the current directory if one of the following
1613 # - one of the terminals (":" and ";") is the first or last sign
1614 # - two terminals occur directly after each other
1615 # - the path contains an element with a dot in it
1616 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1617 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1618 case ${GCC_EXEC_PREFIX} in
1619 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1620 gcc_exec_prefix_setting
="contains current directory"
1623 gcc_exec_prefix_setting
="ok"
1626 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1627 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1628 if test "$gcc_exec_prefix_setting" != "ok"; then
1629 { { echo "$as_me:$LINENO: error:
1630 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1631 *** building gcc. Please change the environment variable
1632 *** and run configure again." >&5
1633 echo "$as_me: error:
1634 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1635 *** building gcc. Please change the environment variable
1636 *** and run configure again." >&2;}
1637 { (exit 1); exit 1; }; }
1644 # Specify the local prefix
1647 # Check whether --with-local-prefix or --without-local-prefix was given.
1648 if test "${with_local_prefix+set}" = set; then
1649 withval
="$with_local_prefix"
1650 case "${withval}" in
1651 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1652 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1653 { (exit 1); exit 1; }; } ;;
1655 *) local_prefix
=$with_local_prefix ;;
1659 # Default local prefix if it is empty
1660 if test x
$local_prefix = x
; then
1661 local_prefix
=/usr
/local
1664 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1665 # passed in by the toplevel make and thus we'd get different behavior
1666 # depending on where we built the sources.
1667 gcc_gxx_include_dir
=
1668 # Specify the g++ header file directory
1670 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1671 if test "${with_gxx_include_dir+set}" = set; then
1672 withval
="$with_gxx_include_dir"
1673 case "${withval}" in
1674 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1675 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1676 { (exit 1); exit 1; }; } ;;
1678 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1682 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1683 if test x
${gcc_gxx_include_dir} = x
; then
1684 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1685 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1687 libstdcxx_incdir
='include/c++/$(version)'
1688 if test x
$host != x
$target; then
1689 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1691 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1696 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1697 if test "${with_cpp_install_dir+set}" = set; then
1698 withval
="$with_cpp_install_dir"
1699 if test x
$withval = xyes
; then
1700 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1701 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1702 { (exit 1); exit 1; }; }
1703 elif test x
$withval != xno
; then
1704 cpp_install_dir
=$withval
1708 # We would like to our source tree to be readonly. However when releases or
1709 # pre-releases are generated, the flex/bison generated files as well as the
1710 # various formats of manuals need to be included along with the rest of the
1711 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1714 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1715 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1716 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1717 if test "${enable_generated_files_in_srcdir+set}" = set; then
1718 enableval
="$enable_generated_files_in_srcdir"
1719 generated_files_in_srcdir
=$enableval
1721 generated_files_in_srcdir
=no
1724 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1725 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1727 if test "$generated_files_in_srcdir" = "yes"; then
1734 # -------------------
1735 # Find default linker
1736 # -------------------
1740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1741 if test "${with_gnu_ld+set}" = set; then
1742 withval
="$with_gnu_ld"
1743 gnu_ld_flag
="$with_gnu_ld"
1748 # With pre-defined ld
1750 # Check whether --with-ld or --without-ld was given.
1751 if test "${with_ld+set}" = set; then
1753 DEFAULT_LINKER
="$with_ld"
1755 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1756 if test ! -x "$DEFAULT_LINKER"; then
1757 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1758 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1759 { (exit 1); exit 1; }; }
1760 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1764 cat >>confdefs.h
<<_ACEOF
1765 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1770 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1771 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1772 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1773 if test x
"$gnu_ld_flag" = x
"no"; then
1774 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1775 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1777 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1778 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1785 # With demangler in GNU ld
1787 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1788 if test "${with_demangler_in_ld+set}" = set; then
1789 withval
="$with_demangler_in_ld"
1790 demangler_in_ld
="$with_demangler_in_ld"
1795 # ----------------------
1796 # Find default assembler
1797 # ----------------------
1801 # Check whether --with-gnu-as or --without-gnu-as was given.
1802 if test "${with_gnu_as+set}" = set; then
1803 withval
="$with_gnu_as"
1804 gas_flag
="$with_gnu_as"
1810 # Check whether --with-as or --without-as was given.
1811 if test "${with_as+set}" = set; then
1813 DEFAULT_ASSEMBLER
="$with_as"
1815 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1816 if test ! -x "$DEFAULT_ASSEMBLER"; then
1817 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1818 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1819 { (exit 1); exit 1; }; }
1820 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1824 cat >>confdefs.h
<<_ACEOF
1825 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1830 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1831 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1832 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1833 if test x
"$gas_flag" = x
"no"; then
1834 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1835 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1837 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1838 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1849 # If a non-executable a.out is present (e.g. created by GNU as above even if
1850 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1851 # file, even when creating an executable, so an execution test fails.
1852 # Remove possible default executable files to avoid this.
1854 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1855 # Autoconf includes it.
1856 rm -f a.out a.exe b.out
1858 # Find the native compiler
1860 ac_cpp
='$CPP $CPPFLAGS'
1861 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1864 if test -n "$ac_tool_prefix"; then
1865 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1866 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 if test -n "$CC"; then
1873 ac_cv_prog_CC
="$CC" # Let the user override the test.
1875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir
=.
1880 for ac_exec_ext
in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 if test -n "$CC"; then
1893 echo "$as_me:$LINENO: result: $CC" >&5
1894 echo "${ECHO_T}$CC" >&6
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1901 if test -z "$ac_cv_prog_CC"; then
1903 # Extract the first word of "gcc", so it can be a program name with args.
1904 set dummy gcc
; ac_word
=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$ac_ct_CC"; then
1911 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir
=.
1918 for ac_exec_ext
in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_ac_ct_CC
="gcc"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1930 if test -n "$ac_ct_CC"; then
1931 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1932 echo "${ECHO_T}$ac_ct_CC" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1943 if test -z "$CC"; then
1944 if test -n "$ac_tool_prefix"; then
1945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1946 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 if test -n "$CC"; then
1953 ac_cv_prog_CC
="$CC" # Let the user override the test.
1955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1959 test -z "$as_dir" && as_dir
=.
1960 for ac_exec_ext
in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 if test -n "$CC"; then
1973 echo "$as_me:$LINENO: result: $CC" >&5
1974 echo "${ECHO_T}$CC" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1981 if test -z "$ac_cv_prog_CC"; then
1983 # Extract the first word of "cc", so it can be a program name with args.
1984 set dummy cc
; ac_word
=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test -n "$ac_ct_CC"; then
1991 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir
=.
1998 for ac_exec_ext
in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_ac_ct_CC
="cc"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2010 if test -n "$ac_ct_CC"; then
2011 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2012 echo "${ECHO_T}$ac_ct_CC" >&6
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2024 if test -z "$CC"; then
2025 # Extract the first word of "cc", so it can be a program name with args.
2026 set dummy cc
; ac_word
=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 if test -n "$CC"; then
2033 ac_cv_prog_CC
="$CC" # Let the user override the test.
2036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir
=.
2041 for ac_exec_ext
in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2044 ac_prog_rejected
=yes
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 if test $ac_prog_rejected = yes; then
2055 # We found a bogon in the path, so make sure we never use it.
2056 set dummy
$ac_cv_prog_CC
2058 if test $# != 0; then
2059 # We chose a different compiler from the bogus one.
2060 # However, it has the same basename, so the bogon will be chosen
2061 # first if we set CC to just the basename; use the full file name.
2063 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2069 if test -n "$CC"; then
2070 echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6
2073 echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2078 if test -z "$CC"; then
2079 if test -n "$ac_tool_prefix"; then
2082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2083 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_CC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 if test -n "$CC"; then
2090 ac_cv_prog_CC
="$CC" # Let the user override the test.
2092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir
=.
2097 for ac_exec_ext
in '' $ac_executable_extensions; do
2098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 if test -n "$CC"; then
2110 echo "$as_me:$LINENO: result: $CC" >&5
2111 echo "${ECHO_T}$CC" >&6
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2117 test -n "$CC" && break
2120 if test -z "$CC"; then
2124 # Extract the first word of "$ac_prog", so it can be a program name with args.
2125 set dummy
$ac_prog; ac_word
=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 if test -n "$ac_ct_CC"; then
2132 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir
=.
2139 for ac_exec_ext
in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_CC
="$ac_prog"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 echo "${ECHO_T}$ac_ct_CC" >&6
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2159 test -n "$ac_ct_CC" && break
2168 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: no acceptable C compiler found in \$PATH
2171 See \`config.log' for more details." >&2;}
2172 { (exit 1); exit 1; }; }
2174 # Provide some information about the compiler.
2175 echo "$as_me:$LINENO:" \
2176 "checking for C compiler version" >&5
2177 ac_compiler
=`set X $ac_compile; echo $2`
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2179 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2184 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2188 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2189 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }
2194 cat >conftest.
$ac_ext <<_ACEOF
2197 cat confdefs.h
>>conftest.
$ac_ext
2198 cat >>conftest.
$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2209 ac_clean_files_save
=$ac_clean_files
2210 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2211 # Try to create an executable without -o first, disregard a.out.
2212 # It will help us diagnose broken compilers, and finding out an intuition
2214 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2215 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2216 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2217 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2218 (eval $ac_link_default) 2>&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 # Find the output, starting from the most likely. This scheme is
2223 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2226 # Be careful to initialize this variable, since it used to be cached.
2227 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2229 # b.out is created by i960 compilers.
2230 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2232 test -f "$ac_file" ||
continue
2234 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2237 # This is the source file.
2240 # We found the default executable, but exeext='' is most
2244 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2245 # FIXME: I believe we export ac_cv_exeext for Libtool,
2246 # but it would be cool to find out if it's true. Does anybody
2247 # maintain Libtool? --akim.
2255 echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.
$ac_ext >&5
2258 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: C compiler cannot create executables
2261 See \`config.log' for more details." >&2;}
2262 { (exit 77); exit 77; }; }
2265 ac_exeext
=$ac_cv_exeext
2266 echo "$as_me:$LINENO: result: $ac_file" >&5
2267 echo "${ECHO_T}$ac_file" >&6
2269 # Check the compiler produces executables we can run. If not, either
2270 # the compiler is broken, or we cross compile.
2271 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2272 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2273 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2274 # If not cross compiling, check that we can run a simple program.
2275 if test "$cross_compiling" != yes; then
2276 if { ac_try
='./$ac_file'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2284 if test "$cross_compiling" = maybe
; then
2287 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2288 If you meant to cross compile, use \`--host'.
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot run C compiled programs.
2291 If you meant to cross compile, use \`--host'.
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2297 echo "$as_me:$LINENO: result: yes" >&5
2298 echo "${ECHO_T}yes" >&6
2300 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2301 ac_clean_files
=$ac_clean_files_save
2302 # Check the compiler produces executables we can run. If not, either
2303 # the compiler is broken, or we cross compile.
2304 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2305 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2306 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2307 echo "${ECHO_T}$cross_compiling" >&6
2309 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2310 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2312 (eval $ac_link) 2>&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; then
2316 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2317 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2318 # work properly (i.e., refer to `conftest.exe'), while it won't with
2320 for ac_file
in conftest.exe conftest conftest.
*; do
2321 test -f "$ac_file" ||
continue
2323 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2324 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2331 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2334 See \`config.log' for more details." >&2;}
2335 { (exit 1); exit 1; }; }
2338 rm -f conftest
$ac_cv_exeext
2339 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2340 echo "${ECHO_T}$ac_cv_exeext" >&6
2342 rm -f conftest.
$ac_ext
2343 EXEEXT
=$ac_cv_exeext
2345 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2346 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2347 if test "${ac_cv_objext+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 cat >conftest.
$ac_ext <<_ACEOF
2353 cat confdefs.h
>>conftest.
$ac_ext
2354 cat >>conftest.
$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2365 rm -f conftest.o conftest.obj
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; then
2371 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2373 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2374 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.
$ac_ext >&5
2382 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2383 See \`config.log' for more details." >&5
2384 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2385 See \`config.log' for more details." >&2;}
2386 { (exit 1); exit 1; }; }
2389 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2391 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2392 echo "${ECHO_T}$ac_cv_objext" >&6
2393 OBJEXT
=$ac_cv_objext
2395 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2396 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2397 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 cat >conftest.
$ac_ext <<_ACEOF
2403 cat confdefs.h
>>conftest.
$ac_ext
2404 cat >>conftest.
$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2418 rm -f conftest.
$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>conftest.er1
2422 grep -v '^ *+' conftest.er1
>conftest.err
2424 cat conftest.err
>&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try
='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try
='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.
$ac_ext >&5
2447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2448 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2451 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2453 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS
=${CFLAGS+set}
2455 ac_save_CFLAGS
=$CFLAGS
2457 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2459 if test "${ac_cv_prog_cc_g+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 cat >conftest.
$ac_ext <<_ACEOF
2465 cat confdefs.h
>>conftest.
$ac_ext
2466 cat >>conftest.
$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2477 rm -f conftest.
$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>conftest.er1
2481 grep -v '^ *+' conftest.er1
>conftest.err
2483 cat conftest.err
>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try
='test -z "$ac_c_werror_flag"
2487 || test ! -s conftest.err'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try
='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.
$ac_ext >&5
2506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2508 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2509 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2510 if test "$ac_test_CFLAGS" = set; then
2511 CFLAGS
=$ac_save_CFLAGS
2512 elif test $ac_cv_prog_cc_g = yes; then
2513 if test "$GCC" = yes; then
2519 if test "$GCC" = yes; then
2525 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2526 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2527 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 ac_cv_prog_cc_stdc
=no
2532 cat >conftest.
$ac_ext <<_ACEOF
2535 cat confdefs.h
>>conftest.
$ac_ext
2536 cat >>conftest.
$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2540 #include <sys/types.h>
2541 #include <sys/stat.h>
2542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2543 struct buf { int x; };
2544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2545 static char *e (p, i)
2551 static char *f (char * (*g) (char **, int), char **p, ...)
2556 s = g (p, va_arg (v,int));
2561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2562 function prototypes and stuff, but not '\xHH' hex character constants.
2563 These don't provoke an error unfortunately, instead are silently treated
2564 as 'x'. The following induces an error, until -std1 is added to get
2565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2566 array size at least. It's necessary to write '\x00'==0 to get something
2567 that's true only with -std1. */
2568 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2570 int test (int i, double x);
2571 struct s1 {int (*f) (int a);};
2572 struct s2 {int (*f) (double a);};
2573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2579 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2584 # Don't try gcc -ansi; that turns off useful extensions and
2585 # breaks some systems' header files.
2586 # AIX -qlanglvl=ansi
2587 # Ultrix and OSF/1 -std1
2588 # HP-UX 10.20 and later -Ae
2589 # HP-UX older versions -Aa -D_HPUX_SOURCE
2590 # SVR4 -Xc -D__EXTENSIONS__
2591 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2593 CC
="$ac_save_CC $ac_arg"
2594 rm -f conftest.
$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2598 grep -v '^ *+' conftest.er1
>conftest.err
2600 cat conftest.err
>&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try
='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try
='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 ac_cv_prog_cc_stdc
=$ac_arg
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.
$ac_ext >&5
2623 rm -f conftest.err conftest.
$ac_objext
2625 rm -f conftest.
$ac_ext conftest.
$ac_objext
2630 case "x$ac_cv_prog_cc_stdc" in
2632 echo "$as_me:$LINENO: result: none needed" >&5
2633 echo "${ECHO_T}none needed" >&6 ;;
2635 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2636 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2637 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2640 # Some people use a C++ compiler to compile C. Since we use `exit',
2641 # in C++ we need to declare it. In case someone uses the same compiler
2642 # for both compiling C and C++ we need to have the C++ compiler decide
2643 # the declaration of exit, since it's the most demanding environment.
2644 cat >conftest.
$ac_ext <<_ACEOF
2649 rm -f conftest.
$ac_objext
2650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2651 (eval $ac_compile) 2>conftest.er1
2653 grep -v '^ *+' conftest.er1
>conftest.err
2655 cat conftest.err
>&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try
='test -z "$ac_c_werror_flag"
2659 || test ! -s conftest.err'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; } &&
2665 { ac_try
='test -s conftest.$ac_objext'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 for ac_declaration
in \
2673 'extern "C" void std::exit (int) throw (); using std::exit;' \
2674 'extern "C" void std::exit (int); using std::exit;' \
2675 'extern "C" void exit (int) throw ();' \
2676 'extern "C" void exit (int);' \
2679 cat >conftest.
$ac_ext <<_ACEOF
2682 cat confdefs.h
>>conftest.
$ac_ext
2683 cat >>conftest.
$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2695 rm -f conftest.
$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1
>conftest.err
2701 cat conftest.err
>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try
='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try
='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.
$ac_ext >&5
2724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2725 cat >conftest.
$ac_ext <<_ACEOF
2728 cat confdefs.h
>>conftest.
$ac_ext
2729 cat >>conftest.
$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2740 rm -f conftest.
$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2744 grep -v '^ *+' conftest.er1
>conftest.err
2746 cat conftest.err
>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try
='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try
='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.
$ac_ext >&5
2768 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2771 if test -n "$ac_declaration"; then
2772 echo '#ifdef __cplusplus' >>confdefs.h
2773 echo $ac_declaration >>confdefs.h
2774 echo '#endif' >>confdefs.h
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.
$ac_ext >&5
2782 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2784 ac_cpp
='$CPP $CPPFLAGS'
2785 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2789 if test "x$CC" != xcc
; then
2790 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2791 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2793 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2794 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2796 set dummy
$CC; ac_cc
=`echo $2 |
2797 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2798 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 cat >conftest.
$ac_ext <<_ACEOF
2804 cat confdefs.h
>>conftest.
$ac_ext
2805 cat >>conftest.
$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2816 # Make sure it works both with $CC and with simple cc.
2817 # We do the test twice because some compilers refuse to overwrite an
2818 # existing .o file with -o, though they will create one.
2819 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2820 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); };
2831 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2832 if test "x$CC" != xcc
; then
2833 # Test first that cc exists at all.
2834 if { ac_try
='cc -c conftest.$ac_ext >&5'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2841 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); };
2855 # cc exists but doesn't like -o.
2856 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2861 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2866 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2867 echo "$as_me:$LINENO: result: yes" >&5
2868 echo "${ECHO_T}yes" >&6
2870 echo "$as_me:$LINENO: result: no" >&5
2871 echo "${ECHO_T}no" >&6
2873 cat >>confdefs.h
<<\_ACEOF
2874 #define NO_MINUS_C_MINUS_O 1
2879 # expand $ac_aux_dir to an absolute path
2880 am_aux_dir
=`cd $ac_aux_dir && pwd`
2882 # FIXME: we rely on the cache variable name because
2883 # there is no other way.
2885 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2886 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2887 # Losing compiler, so override with the script.
2888 # FIXME: It is wrong to rewrite CC.
2889 # But if we don't then we get into trouble of one sort or another.
2890 # A longer-term fix would be to have automake use am__CC in this case,
2891 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2892 CC
="$am_aux_dir/compile $CC"
2895 # autoconf is lame and doesn't give us any substitution variable for this.
2896 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2897 NO_MINUS_C_MINUS_O
=yes
2899 OUTPUT_OPTION
='-o $@'
2904 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2905 # optimizations to be activated explicitly by the toplevel.
2907 */prev-gcc
/xgcc
*) ;;
2908 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2912 # -------------------------
2913 # Check C compiler features
2914 # -------------------------
2917 ac_cpp
='$CPP $CPPFLAGS'
2918 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2921 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2923 # On Suns, sometimes $CPP names a directory.
2924 if test -n "$CPP" && test -d "$CPP"; then
2927 if test -z "$CPP"; then
2928 if test "${ac_cv_prog_CPP+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 # Double quotes because CPP needs to be expanded
2932 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2935 for ac_c_preproc_warn_flag
in '' yes
2937 # Use a header file that comes with gcc, so configuring glibc
2938 # with a fresh cross-compiler works.
2939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2940 # <limits.h> exists even on freestanding compilers.
2941 # On the NeXT, cc -E runs the code through the compiler's parser,
2942 # not just through cpp. "Syntax error" is here to catch this case.
2943 cat >conftest.
$ac_ext <<_ACEOF
2946 cat confdefs.h
>>conftest.
$ac_ext
2947 cat >>conftest.
$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2950 # include <limits.h>
2952 # include <assert.h>
2956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2957 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2959 grep -v '^ *+' conftest.er1
>conftest.err
2961 cat conftest.err
>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } >/dev
/null
; then
2964 if test -s conftest.err
; then
2965 ac_cpp_err
=$ac_c_preproc_warn_flag
2966 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2973 if test -z "$ac_cpp_err"; then
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.
$ac_ext >&5
2979 # Broken: fails on valid input.
2982 rm -f conftest.err conftest.
$ac_ext
2984 # OK, works on sane cases. Now check whether non-existent headers
2985 # can be detected and how.
2986 cat >conftest.
$ac_ext <<_ACEOF
2989 cat confdefs.h
>>conftest.
$ac_ext
2990 cat >>conftest.
$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2992 #include <ac_nonexistent.h>
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1
>conftest.err
2999 cat conftest.err
>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev
/null
; then
3002 if test -s conftest.err
; then
3003 ac_cpp_err
=$ac_c_preproc_warn_flag
3004 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3011 if test -z "$ac_cpp_err"; then
3012 # Broken: success on invalid input.
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.
$ac_ext >&5
3018 # Passes both tests.
3022 rm -f conftest.err conftest.
$ac_ext
3025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3026 rm -f conftest.err conftest.
$ac_ext
3027 if $ac_preproc_ok; then
3039 echo "$as_me:$LINENO: result: $CPP" >&5
3040 echo "${ECHO_T}$CPP" >&6
3042 for ac_c_preproc_warn_flag
in '' yes
3044 # Use a header file that comes with gcc, so configuring glibc
3045 # with a fresh cross-compiler works.
3046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3047 # <limits.h> exists even on freestanding compilers.
3048 # On the NeXT, cc -E runs the code through the compiler's parser,
3049 # not just through cpp. "Syntax error" is here to catch this case.
3050 cat >conftest.
$ac_ext <<_ACEOF
3053 cat confdefs.h
>>conftest.
$ac_ext
3054 cat >>conftest.
$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3057 # include <limits.h>
3059 # include <assert.h>
3063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1
>conftest.err
3068 cat conftest.err
>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } >/dev
/null
; then
3071 if test -s conftest.err
; then
3072 ac_cpp_err
=$ac_c_preproc_warn_flag
3073 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3080 if test -z "$ac_cpp_err"; then
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.
$ac_ext >&5
3086 # Broken: fails on valid input.
3089 rm -f conftest.err conftest.
$ac_ext
3091 # OK, works on sane cases. Now check whether non-existent headers
3092 # can be detected and how.
3093 cat >conftest.
$ac_ext <<_ACEOF
3096 cat confdefs.h
>>conftest.
$ac_ext
3097 cat >>conftest.
$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3099 #include <ac_nonexistent.h>
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1
>conftest.err
3106 cat conftest.err
>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev
/null
; then
3109 if test -s conftest.err
; then
3110 ac_cpp_err
=$ac_c_preproc_warn_flag
3111 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3118 if test -z "$ac_cpp_err"; then
3119 # Broken: success on invalid input.
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.
$ac_ext >&5
3125 # Passes both tests.
3129 rm -f conftest.err conftest.
$ac_ext
3132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3133 rm -f conftest.err conftest.
$ac_ext
3134 if $ac_preproc_ok; then
3137 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&5
3139 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3140 See \`config.log' for more details." >&2;}
3141 { (exit 1); exit 1; }; }
3145 ac_cpp
='$CPP $CPPFLAGS'
3146 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3151 echo "$as_me:$LINENO: checking for inline" >&5
3152 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3153 if test "${ac_cv_c_inline+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 for ac_kw
in inline __inline__ __inline
; do
3158 cat >conftest.
$ac_ext <<_ACEOF
3161 cat confdefs.h
>>conftest.
$ac_ext
3162 cat >>conftest.
$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3166 static $ac_kw foo_t static_foo () {return 0; }
3167 $ac_kw foo_t foo () {return 0; }
3171 rm -f conftest.
$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>conftest.er1
3175 grep -v '^ *+' conftest.er1
>conftest.err
3177 cat conftest.err
>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } &&
3180 { ac_try
='test -z "$ac_c_werror_flag"
3181 || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try
='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_c_inline
=$ac_kw; break
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.
$ac_ext >&5
3199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3203 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3204 echo "${ECHO_T}$ac_cv_c_inline" >&6
3207 case $ac_cv_c_inline in
3210 case $ac_cv_c_inline in
3212 *) ac_val
=$ac_cv_c_inline;;
3214 cat >>confdefs.h
<<_ACEOF
3216 #define inline $ac_val
3223 # sizeof(char) is 1 by definition.
3225 echo "$as_me:$LINENO: checking for egrep" >&5
3226 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3227 if test "${ac_cv_prog_egrep+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3231 then ac_cv_prog_egrep
='grep -E'
3232 else ac_cv_prog_egrep
='egrep'
3235 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3236 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3237 EGREP
=$ac_cv_prog_egrep
3240 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3241 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3242 if test "${ac_cv_header_stdc+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 cat >conftest.
$ac_ext <<_ACEOF
3248 cat confdefs.h
>>conftest.
$ac_ext
3249 cat >>conftest.
$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3264 rm -f conftest.
$ac_objext
3265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266 (eval $ac_compile) 2>conftest.er1
3268 grep -v '^ *+' conftest.er1
>conftest.err
3270 cat conftest.err
>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try
='test -z "$ac_c_werror_flag"
3274 || test ! -s conftest.err'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; } &&
3280 { ac_try
='test -s conftest.$ac_objext'
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 ac_cv_header_stdc
=yes
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.
$ac_ext >&5
3291 ac_cv_header_stdc
=no
3293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3295 if test $ac_cv_header_stdc = yes; then
3296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3297 cat >conftest.
$ac_ext <<_ACEOF
3300 cat confdefs.h
>>conftest.
$ac_ext
3301 cat >>conftest.
$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3307 $EGREP "memchr" >/dev
/null
2>&1; then
3310 ac_cv_header_stdc
=no
3316 if test $ac_cv_header_stdc = yes; then
3317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3318 cat >conftest.
$ac_ext <<_ACEOF
3321 cat confdefs.h
>>conftest.
$ac_ext
3322 cat >>conftest.
$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3328 $EGREP "free" >/dev
/null
2>&1; then
3331 ac_cv_header_stdc
=no
3337 if test $ac_cv_header_stdc = yes; then
3338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3339 if test "$cross_compiling" = yes; then
3342 cat >conftest.
$ac_ext <<_ACEOF
3345 cat confdefs.h
>>conftest.
$ac_ext
3346 cat >>conftest.
$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3349 #if ((' ' & 0x0FF) == 0x020)
3350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3353 # define ISLOWER(c) \
3354 (('a' <= (c) && (c) <= 'i') \
3355 || ('j' <= (c) && (c) <= 'r') \
3356 || ('s' <= (c) && (c) <= 'z'))
3357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3365 for (i = 0; i < 256; i++)
3366 if (XOR (islower (i), ISLOWER (i))
3367 || toupper (i) != TOUPPER (i))
3372 rm -f conftest
$ac_exeext
3373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3374 (eval $ac_link) 2>&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3385 echo "$as_me: program exited with status $ac_status" >&5
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.
$ac_ext >&5
3390 ac_cv_header_stdc
=no
3392 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3396 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3397 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3398 if test $ac_cv_header_stdc = yes; then
3400 cat >>confdefs.h
<<\_ACEOF
3401 #define STDC_HEADERS 1
3406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3416 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3417 inttypes.h stdint.h unistd.h
3419 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3420 echo "$as_me:$LINENO: checking for $ac_header" >&5
3421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 cat >conftest.
$ac_ext <<_ACEOF
3428 cat confdefs.h
>>conftest.
$ac_ext
3429 cat >>conftest.
$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 $ac_includes_default
3433 #include <$ac_header>
3435 rm -f conftest.
$ac_objext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437 (eval $ac_compile) 2>conftest.er1
3439 grep -v '^ *+' conftest.er1
>conftest.err
3441 cat conftest.err
>&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try
='test -z "$ac_c_werror_flag"
3445 || test ! -s conftest.err'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try
='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 eval "$as_ac_Header=yes"
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.
$ac_ext >&5
3462 eval "$as_ac_Header=no"
3464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3469 cat >>confdefs.h
<<_ACEOF
3470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3478 echo "$as_me:$LINENO: checking for void *" >&5
3479 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3480 if test "${ac_cv_type_void_p+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 cat >conftest.
$ac_ext <<_ACEOF
3486 cat confdefs.h
>>conftest.
$ac_ext
3487 cat >>conftest.
$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 $ac_includes_default
3495 if (sizeof (void *))
3501 rm -f conftest.
$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>conftest.er1
3505 grep -v '^ *+' conftest.er1
>conftest.err
3507 cat conftest.err
>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try
='test -z "$ac_c_werror_flag"
3511 || test ! -s conftest.err'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; } &&
3517 { ac_try
='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 ac_cv_type_void_p
=yes
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.
$ac_ext >&5
3528 ac_cv_type_void_p
=no
3530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3532 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3533 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3535 echo "$as_me:$LINENO: checking size of void *" >&5
3536 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3537 if test "${ac_cv_sizeof_void_p+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 if test "$ac_cv_type_void_p" = yes; then
3541 # The cast to unsigned long works around a bug in the HP C Compiler
3542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3544 # This bug is HP SR number 8606223364.
3545 if test "$cross_compiling" = yes; then
3546 # Depending upon the size, compute the lo and hi bounds.
3547 cat >conftest.
$ac_ext <<_ACEOF
3550 cat confdefs.h
>>conftest.
$ac_ext
3551 cat >>conftest.
$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 $ac_includes_default
3557 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3564 rm -f conftest.
$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3568 grep -v '^ *+' conftest.er1
>conftest.err
3570 cat conftest.err
>&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try
='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try
='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3588 cat >conftest.
$ac_ext <<_ACEOF
3591 cat confdefs.h
>>conftest.
$ac_ext
3592 cat >>conftest.
$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 $ac_includes_default
3598 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3605 rm -f conftest.
$ac_objext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3607 (eval $ac_compile) 2>conftest.er1
3609 grep -v '^ *+' conftest.er1
>conftest.err
3611 cat conftest.err
>&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try
='test -z "$ac_c_werror_flag"
3615 || test ! -s conftest.err'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try
='test -s conftest.$ac_objext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_hi
=$ac_mid; break
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.
$ac_ext >&5
3632 ac_lo
=`expr $ac_mid + 1`
3633 if test $ac_lo -le $ac_mid; then
3637 ac_mid
=`expr 2 '*' $ac_mid + 1`
3639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.
$ac_ext >&5
3645 cat >conftest.
$ac_ext <<_ACEOF
3648 cat confdefs.h
>>conftest.
$ac_ext
3649 cat >>conftest.
$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651 $ac_includes_default
3655 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3662 rm -f conftest.
$ac_objext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>conftest.er1
3666 grep -v '^ *+' conftest.er1
>conftest.err
3668 cat conftest.err
>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try
='test -z "$ac_c_werror_flag"
3672 || test ! -s conftest.err'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; } &&
3678 { ac_try
='test -s conftest.$ac_objext'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3686 cat >conftest.
$ac_ext <<_ACEOF
3689 cat confdefs.h
>>conftest.
$ac_ext
3690 cat >>conftest.
$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 $ac_includes_default
3696 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3703 rm -f conftest.
$ac_objext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1
>conftest.err
3709 cat conftest.err
>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try
='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try
='test -s conftest.$ac_objext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_lo
=$ac_mid; break
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.
$ac_ext >&5
3730 ac_hi
=`expr '(' $ac_mid ')' - 1`
3731 if test $ac_mid -le $ac_hi; then
3735 ac_mid
=`expr 2 '*' $ac_mid`
3737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3740 echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.
$ac_ext >&5
3745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3748 # Binary search between lo and hi bounds.
3749 while test "x$ac_lo" != "x$ac_hi"; do
3750 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3751 cat >conftest.
$ac_ext <<_ACEOF
3754 cat confdefs.h
>>conftest.
$ac_ext
3755 cat >>conftest.
$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 $ac_includes_default
3761 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3768 rm -f conftest.
$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>conftest.er1
3772 grep -v '^ *+' conftest.er1
>conftest.err
3774 cat conftest.err
>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try
='test -z "$ac_c_werror_flag"
3778 || test ! -s conftest.err'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; } &&
3784 { ac_try
='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.
$ac_ext >&5
3795 ac_lo
=`expr '(' $ac_mid ')' + 1`
3797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3800 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3801 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3802 See \`config.log' for more details." >&5
3803 echo "$as_me: error: cannot compute sizeof (void *), 77
3804 See \`config.log' for more details." >&2;}
3805 { (exit 1); exit 1; }; } ;;
3808 if test "$cross_compiling" = yes; then
3809 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3810 See \`config.log' for more details." >&5
3811 echo "$as_me: error: cannot run test program while cross compiling
3812 See \`config.log' for more details." >&2;}
3813 { (exit 1); exit 1; }; }
3815 cat >conftest.
$ac_ext <<_ACEOF
3818 cat confdefs.h
>>conftest.
$ac_ext
3819 cat >>conftest.
$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 $ac_includes_default
3822 long longval () { return (long) (sizeof (void *)); }
3823 unsigned long ulongval () { return (long) (sizeof (void *)); }
3830 FILE *f = fopen ("conftest.val", "w");
3833 if (((long) (sizeof (void *))) < 0)
3835 long i = longval ();
3836 if (i != ((long) (sizeof (void *))))
3838 fprintf (f, "%ld\n", i);
3842 unsigned long i = ulongval ();
3843 if (i != ((long) (sizeof (void *))))
3845 fprintf (f, "%lu\n", i);
3847 exit (ferror (f) || fclose (f) != 0);
3853 rm -f conftest
$ac_exeext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_sizeof_void_p
=`cat conftest.val`
3866 echo "$as_me: program exited with status $ac_status" >&5
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3872 See \`config.log' for more details." >&5
3873 echo "$as_me: error: cannot compute sizeof (void *), 77
3874 See \`config.log' for more details." >&2;}
3875 { (exit 1); exit 1; }; }
3877 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3882 ac_cv_sizeof_void_p
=0
3885 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3886 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3887 cat >>confdefs.h
<<_ACEOF
3888 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3892 echo "$as_me:$LINENO: checking for short" >&5
3893 echo $ECHO_N "checking for short... $ECHO_C" >&6
3894 if test "${ac_cv_type_short+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 cat >conftest.
$ac_ext <<_ACEOF
3900 cat confdefs.h
>>conftest.
$ac_ext
3901 cat >>conftest.
$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3903 $ac_includes_default
3915 rm -f conftest.
$ac_objext
3916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3917 (eval $ac_compile) 2>conftest.er1
3919 grep -v '^ *+' conftest.er1
>conftest.err
3921 cat conftest.err
>&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } &&
3924 { ac_try
='test -z "$ac_c_werror_flag"
3925 || test ! -s conftest.err'
3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; } &&
3931 { ac_try
='test -s conftest.$ac_objext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_type_short
=yes
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.
$ac_ext >&5
3944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3946 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3947 echo "${ECHO_T}$ac_cv_type_short" >&6
3949 echo "$as_me:$LINENO: checking size of short" >&5
3950 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3951 if test "${ac_cv_sizeof_short+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 if test "$ac_cv_type_short" = yes; then
3955 # The cast to unsigned long works around a bug in the HP C Compiler
3956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3958 # This bug is HP SR number 8606223364.
3959 if test "$cross_compiling" = yes; then
3960 # Depending upon the size, compute the lo and hi bounds.
3961 cat >conftest.
$ac_ext <<_ACEOF
3964 cat confdefs.h
>>conftest.
$ac_ext
3965 cat >>conftest.
$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 $ac_includes_default
3971 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3978 rm -f conftest.
$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3982 grep -v '^ *+' conftest.er1
>conftest.err
3984 cat conftest.err
>&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try
='test -z "$ac_c_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try
='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4002 cat >conftest.
$ac_ext <<_ACEOF
4005 cat confdefs.h
>>conftest.
$ac_ext
4006 cat >>conftest.
$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 $ac_includes_default
4012 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4019 rm -f conftest.
$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
4023 grep -v '^ *+' conftest.er1
>conftest.err
4025 cat conftest.err
>&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try
='test -z "$ac_c_werror_flag"
4029 || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try
='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_hi
=$ac_mid; break
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.
$ac_ext >&5
4046 ac_lo
=`expr $ac_mid + 1`
4047 if test $ac_lo -le $ac_mid; then
4051 ac_mid
=`expr 2 '*' $ac_mid + 1`
4053 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.
$ac_ext >&5
4059 cat >conftest.
$ac_ext <<_ACEOF
4062 cat confdefs.h
>>conftest.
$ac_ext
4063 cat >>conftest.
$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 $ac_includes_default
4069 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4076 rm -f conftest.
$ac_objext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>conftest.er1
4080 grep -v '^ *+' conftest.er1
>conftest.err
4082 cat conftest.err
>&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try
='test -z "$ac_c_werror_flag"
4086 || test ! -s conftest.err'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try
='test -s conftest.$ac_objext'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4100 cat >conftest.
$ac_ext <<_ACEOF
4103 cat confdefs.h
>>conftest.
$ac_ext
4104 cat >>conftest.
$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 $ac_includes_default
4110 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4117 rm -f conftest.
$ac_objext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>conftest.er1
4121 grep -v '^ *+' conftest.er1
>conftest.err
4123 cat conftest.err
>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try
='test -z "$ac_c_werror_flag"
4127 || test ! -s conftest.err'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try
='test -s conftest.$ac_objext'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 ac_lo
=$ac_mid; break
4141 echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.
$ac_ext >&5
4144 ac_hi
=`expr '(' $ac_mid ')' - 1`
4145 if test $ac_mid -le $ac_hi; then
4149 ac_mid
=`expr 2 '*' $ac_mid`
4151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.
$ac_ext >&5
4159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4162 # Binary search between lo and hi bounds.
4163 while test "x$ac_lo" != "x$ac_hi"; do
4164 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4165 cat >conftest.
$ac_ext <<_ACEOF
4168 cat confdefs.h
>>conftest.
$ac_ext
4169 cat >>conftest.
$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 $ac_includes_default
4175 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4182 rm -f conftest.
$ac_objext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4184 (eval $ac_compile) 2>conftest.er1
4186 grep -v '^ *+' conftest.er1
>conftest.err
4188 cat conftest.err
>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } &&
4191 { ac_try
='test -z "$ac_c_werror_flag"
4192 || test ! -s conftest.err'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; } &&
4198 { ac_try
='test -s conftest.$ac_objext'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.
$ac_ext >&5
4209 ac_lo
=`expr '(' $ac_mid ')' + 1`
4211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4214 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4215 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4216 See \`config.log' for more details." >&5
4217 echo "$as_me: error: cannot compute sizeof (short), 77
4218 See \`config.log' for more details." >&2;}
4219 { (exit 1); exit 1; }; } ;;
4222 if test "$cross_compiling" = yes; then
4223 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4224 See \`config.log' for more details." >&5
4225 echo "$as_me: error: cannot run test program while cross compiling
4226 See \`config.log' for more details." >&2;}
4227 { (exit 1); exit 1; }; }
4229 cat >conftest.
$ac_ext <<_ACEOF
4232 cat confdefs.h
>>conftest.
$ac_ext
4233 cat >>conftest.
$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 $ac_includes_default
4236 long longval () { return (long) (sizeof (short)); }
4237 unsigned long ulongval () { return (long) (sizeof (short)); }
4244 FILE *f = fopen ("conftest.val", "w");
4247 if (((long) (sizeof (short))) < 0)
4249 long i = longval ();
4250 if (i != ((long) (sizeof (short))))
4252 fprintf (f, "%ld\n", i);
4256 unsigned long i = ulongval ();
4257 if (i != ((long) (sizeof (short))))
4259 fprintf (f, "%lu\n", i);
4261 exit (ferror (f) || fclose (f) != 0);
4267 rm -f conftest
$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 ac_cv_sizeof_short
=`cat conftest.val`
4280 echo "$as_me: program exited with status $ac_status" >&5
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.
$ac_ext >&5
4285 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4286 See \`config.log' for more details." >&5
4287 echo "$as_me: error: cannot compute sizeof (short), 77
4288 See \`config.log' for more details." >&2;}
4289 { (exit 1); exit 1; }; }
4291 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4296 ac_cv_sizeof_short
=0
4299 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4300 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4301 cat >>confdefs.h
<<_ACEOF
4302 #define SIZEOF_SHORT $ac_cv_sizeof_short
4306 echo "$as_me:$LINENO: checking for int" >&5
4307 echo $ECHO_N "checking for int... $ECHO_C" >&6
4308 if test "${ac_cv_type_int+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 cat >conftest.
$ac_ext <<_ACEOF
4314 cat confdefs.h
>>conftest.
$ac_ext
4315 cat >>conftest.
$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 $ac_includes_default
4329 rm -f conftest.
$ac_objext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331 (eval $ac_compile) 2>conftest.er1
4333 grep -v '^ *+' conftest.er1
>conftest.err
4335 cat conftest.err
>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try
='test -z "$ac_c_werror_flag"
4339 || test ! -s conftest.err'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; } &&
4345 { ac_try
='test -s conftest.$ac_objext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.
$ac_ext >&5
4358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4360 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4361 echo "${ECHO_T}$ac_cv_type_int" >&6
4363 echo "$as_me:$LINENO: checking size of int" >&5
4364 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4365 if test "${ac_cv_sizeof_int+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 if test "$ac_cv_type_int" = yes; then
4369 # The cast to unsigned long works around a bug in the HP C Compiler
4370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4372 # This bug is HP SR number 8606223364.
4373 if test "$cross_compiling" = yes; then
4374 # Depending upon the size, compute the lo and hi bounds.
4375 cat >conftest.
$ac_ext <<_ACEOF
4378 cat confdefs.h
>>conftest.
$ac_ext
4379 cat >>conftest.
$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 $ac_includes_default
4385 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4392 rm -f conftest.
$ac_objext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>conftest.er1
4396 grep -v '^ *+' conftest.er1
>conftest.err
4398 cat conftest.err
>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try
='test -z "$ac_c_werror_flag"
4402 || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try
='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4416 cat >conftest.
$ac_ext <<_ACEOF
4419 cat confdefs.h
>>conftest.
$ac_ext
4420 cat >>conftest.
$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 $ac_includes_default
4426 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4433 rm -f conftest.
$ac_objext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>conftest.er1
4437 grep -v '^ *+' conftest.er1
>conftest.err
4439 cat conftest.err
>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try
='test -z "$ac_c_werror_flag"
4443 || test ! -s conftest.err'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; } &&
4449 { ac_try
='test -s conftest.$ac_objext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 ac_hi
=$ac_mid; break
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.
$ac_ext >&5
4460 ac_lo
=`expr $ac_mid + 1`
4461 if test $ac_lo -le $ac_mid; then
4465 ac_mid
=`expr 2 '*' $ac_mid + 1`
4467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.
$ac_ext >&5
4473 cat >conftest.
$ac_ext <<_ACEOF
4476 cat confdefs.h
>>conftest.
$ac_ext
4477 cat >>conftest.
$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 $ac_includes_default
4483 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4490 rm -f conftest.
$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>conftest.er1
4494 grep -v '^ *+' conftest.er1
>conftest.err
4496 cat conftest.err
>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try
='test -z "$ac_c_werror_flag"
4500 || test ! -s conftest.err'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try
='test -s conftest.$ac_objext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4514 cat >conftest.
$ac_ext <<_ACEOF
4517 cat confdefs.h
>>conftest.
$ac_ext
4518 cat >>conftest.
$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 $ac_includes_default
4524 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4531 rm -f conftest.
$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>conftest.er1
4535 grep -v '^ *+' conftest.er1
>conftest.err
4537 cat conftest.err
>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try
='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try
='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_lo
=$ac_mid; break
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4558 ac_hi
=`expr '(' $ac_mid ')' - 1`
4559 if test $ac_mid -le $ac_hi; then
4563 ac_mid
=`expr 2 '*' $ac_mid`
4565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.
$ac_ext >&5
4573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4576 # Binary search between lo and hi bounds.
4577 while test "x$ac_lo" != "x$ac_hi"; do
4578 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4579 cat >conftest.
$ac_ext <<_ACEOF
4582 cat confdefs.h
>>conftest.
$ac_ext
4583 cat >>conftest.
$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 $ac_includes_default
4589 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4596 rm -f conftest.
$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1
>conftest.err
4602 cat conftest.err
>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try
='test -z "$ac_c_werror_flag"
4606 || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try
='test -s conftest.$ac_objext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.
$ac_ext >&5
4623 ac_lo
=`expr '(' $ac_mid ')' + 1`
4625 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4628 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4629 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4630 See \`config.log' for more details." >&5
4631 echo "$as_me: error: cannot compute sizeof (int), 77
4632 See \`config.log' for more details." >&2;}
4633 { (exit 1); exit 1; }; } ;;
4636 if test "$cross_compiling" = yes; then
4637 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4638 See \`config.log' for more details." >&5
4639 echo "$as_me: error: cannot run test program while cross compiling
4640 See \`config.log' for more details." >&2;}
4641 { (exit 1); exit 1; }; }
4643 cat >conftest.
$ac_ext <<_ACEOF
4646 cat confdefs.h
>>conftest.
$ac_ext
4647 cat >>conftest.
$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4650 long longval () { return (long) (sizeof (int)); }
4651 unsigned long ulongval () { return (long) (sizeof (int)); }
4658 FILE *f = fopen ("conftest.val", "w");
4661 if (((long) (sizeof (int))) < 0)
4663 long i = longval ();
4664 if (i != ((long) (sizeof (int))))
4666 fprintf (f, "%ld\n", i);
4670 unsigned long i = ulongval ();
4671 if (i != ((long) (sizeof (int))))
4673 fprintf (f, "%lu\n", i);
4675 exit (ferror (f) || fclose (f) != 0);
4681 rm -f conftest
$ac_exeext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683 (eval $ac_link) 2>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 ac_cv_sizeof_int
=`cat conftest.val`
4694 echo "$as_me: program exited with status $ac_status" >&5
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.
$ac_ext >&5
4699 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4700 See \`config.log' for more details." >&5
4701 echo "$as_me: error: cannot compute sizeof (int), 77
4702 See \`config.log' for more details." >&2;}
4703 { (exit 1); exit 1; }; }
4705 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4714 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4715 cat >>confdefs.h
<<_ACEOF
4716 #define SIZEOF_INT $ac_cv_sizeof_int
4720 echo "$as_me:$LINENO: checking for long" >&5
4721 echo $ECHO_N "checking for long... $ECHO_C" >&6
4722 if test "${ac_cv_type_long+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 cat >conftest.
$ac_ext <<_ACEOF
4728 cat confdefs.h
>>conftest.
$ac_ext
4729 cat >>conftest.
$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4731 $ac_includes_default
4743 rm -f conftest.
$ac_objext
4744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4745 (eval $ac_compile) 2>conftest.er1
4747 grep -v '^ *+' conftest.er1
>conftest.err
4749 cat conftest.err
>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } &&
4752 { ac_try
='test -z "$ac_c_werror_flag"
4753 || test ! -s conftest.err'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try
='test -s conftest.$ac_objext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.
$ac_ext >&5
4772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4774 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4775 echo "${ECHO_T}$ac_cv_type_long" >&6
4777 echo "$as_me:$LINENO: checking size of long" >&5
4778 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4779 if test "${ac_cv_sizeof_long+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 if test "$ac_cv_type_long" = yes; then
4783 # The cast to unsigned long works around a bug in the HP C Compiler
4784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4786 # This bug is HP SR number 8606223364.
4787 if test "$cross_compiling" = yes; then
4788 # Depending upon the size, compute the lo and hi bounds.
4789 cat >conftest.
$ac_ext <<_ACEOF
4792 cat confdefs.h
>>conftest.
$ac_ext
4793 cat >>conftest.
$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 $ac_includes_default
4799 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4806 rm -f conftest.
$ac_objext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808 (eval $ac_compile) 2>conftest.er1
4810 grep -v '^ *+' conftest.er1
>conftest.err
4812 cat conftest.err
>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try
='test -z "$ac_c_werror_flag"
4816 || test ! -s conftest.err'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; } &&
4822 { ac_try
='test -s conftest.$ac_objext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4830 cat >conftest.
$ac_ext <<_ACEOF
4833 cat confdefs.h
>>conftest.
$ac_ext
4834 cat >>conftest.
$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 $ac_includes_default
4840 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4847 rm -f conftest.
$ac_objext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>conftest.er1
4851 grep -v '^ *+' conftest.er1
>conftest.err
4853 cat conftest.err
>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try
='test -z "$ac_c_werror_flag"
4857 || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try
='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_hi
=$ac_mid; break
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.
$ac_ext >&5
4874 ac_lo
=`expr $ac_mid + 1`
4875 if test $ac_lo -le $ac_mid; then
4879 ac_mid
=`expr 2 '*' $ac_mid + 1`
4881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.
$ac_ext >&5
4887 cat >conftest.
$ac_ext <<_ACEOF
4890 cat confdefs.h
>>conftest.
$ac_ext
4891 cat >>conftest.
$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 $ac_includes_default
4897 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4904 rm -f conftest.
$ac_objext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>conftest.er1
4908 grep -v '^ *+' conftest.er1
>conftest.err
4910 cat conftest.err
>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try
='test -z "$ac_c_werror_flag"
4914 || test ! -s conftest.err'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; } &&
4920 { ac_try
='test -s conftest.$ac_objext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4928 cat >conftest.
$ac_ext <<_ACEOF
4931 cat confdefs.h
>>conftest.
$ac_ext
4932 cat >>conftest.
$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934 $ac_includes_default
4938 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4949 grep -v '^ *+' conftest.er1
>conftest.err
4951 cat conftest.err
>&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try
='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try
='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_lo
=$ac_mid; break
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.
$ac_ext >&5
4972 ac_hi
=`expr '(' $ac_mid ')' - 1`
4973 if test $ac_mid -le $ac_hi; then
4977 ac_mid
=`expr 2 '*' $ac_mid`
4979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.
$ac_ext >&5
4987 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4990 # Binary search between lo and hi bounds.
4991 while test "x$ac_lo" != "x$ac_hi"; do
4992 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4993 cat >conftest.
$ac_ext <<_ACEOF
4996 cat confdefs.h
>>conftest.
$ac_ext
4997 cat >>conftest.
$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 $ac_includes_default
5003 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5010 rm -f conftest.
$ac_objext
5011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>conftest.er1
5014 grep -v '^ *+' conftest.er1
>conftest.err
5016 cat conftest.err
>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try
='test -z "$ac_c_werror_flag"
5020 || test ! -s conftest.err'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try
='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.
$ac_ext >&5
5037 ac_lo
=`expr '(' $ac_mid ')' + 1`
5039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5042 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5043 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5044 See \`config.log' for more details." >&5
5045 echo "$as_me: error: cannot compute sizeof (long), 77
5046 See \`config.log' for more details." >&2;}
5047 { (exit 1); exit 1; }; } ;;
5050 if test "$cross_compiling" = yes; then
5051 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5052 See \`config.log' for more details." >&5
5053 echo "$as_me: error: cannot run test program while cross compiling
5054 See \`config.log' for more details." >&2;}
5055 { (exit 1); exit 1; }; }
5057 cat >conftest.
$ac_ext <<_ACEOF
5060 cat confdefs.h
>>conftest.
$ac_ext
5061 cat >>conftest.
$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5063 $ac_includes_default
5064 long longval () { return (long) (sizeof (long)); }
5065 unsigned long ulongval () { return (long) (sizeof (long)); }
5072 FILE *f = fopen ("conftest.val", "w");
5075 if (((long) (sizeof (long))) < 0)
5077 long i = longval ();
5078 if (i != ((long) (sizeof (long))))
5080 fprintf (f, "%ld\n", i);
5084 unsigned long i = ulongval ();
5085 if (i != ((long) (sizeof (long))))
5087 fprintf (f, "%lu\n", i);
5089 exit (ferror (f) || fclose (f) != 0);
5095 rm -f conftest
$ac_exeext
5096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5097 (eval $ac_link) 2>&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 ac_cv_sizeof_long
=`cat conftest.val`
5108 echo "$as_me: program exited with status $ac_status" >&5
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.
$ac_ext >&5
5113 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5114 See \`config.log' for more details." >&5
5115 echo "$as_me: error: cannot compute sizeof (long), 77
5116 See \`config.log' for more details." >&2;}
5117 { (exit 1); exit 1; }; }
5119 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5127 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5128 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5129 cat >>confdefs.h
<<_ACEOF
5130 #define SIZEOF_LONG $ac_cv_sizeof_long
5134 echo "$as_me:$LINENO: checking for long long" >&5
5135 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5136 if test "${ac_cv_type_long_long+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 cat >conftest.
$ac_ext <<_ACEOF
5142 cat confdefs.h
>>conftest.
$ac_ext
5143 cat >>conftest.
$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 $ac_includes_default
5149 if ((long long *) 0)
5151 if (sizeof (long long))
5157 rm -f conftest.
$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159 (eval $ac_compile) 2>conftest.er1
5161 grep -v '^ *+' conftest.er1
>conftest.err
5163 cat conftest.err
>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try
='test -z "$ac_c_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try
='test -s conftest.$ac_objext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 ac_cv_type_long_long
=yes
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.
$ac_ext >&5
5184 ac_cv_type_long_long
=no
5186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5188 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5189 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5190 if test $ac_cv_type_long_long = yes; then
5192 cat >>confdefs.h
<<_ACEOF
5193 #define HAVE_LONG_LONG 1
5196 echo "$as_me:$LINENO: checking for long long" >&5
5197 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5198 if test "${ac_cv_type_long_long+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 cat >conftest.
$ac_ext <<_ACEOF
5204 cat confdefs.h
>>conftest.
$ac_ext
5205 cat >>conftest.
$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 $ac_includes_default
5211 if ((long long *) 0)
5213 if (sizeof (long long))
5219 rm -f conftest.
$ac_objext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>conftest.er1
5223 grep -v '^ *+' conftest.er1
>conftest.err
5225 cat conftest.err
>&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try
='test -z "$ac_c_werror_flag"
5229 || test ! -s conftest.err'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; } &&
5235 { ac_try
='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 ac_cv_type_long_long
=yes
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.
$ac_ext >&5
5246 ac_cv_type_long_long
=no
5248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5250 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5251 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5253 echo "$as_me:$LINENO: checking size of long long" >&5
5254 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5255 if test "${ac_cv_sizeof_long_long+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 if test "$ac_cv_type_long_long" = yes; then
5259 # The cast to unsigned long works around a bug in the HP C Compiler
5260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5262 # This bug is HP SR number 8606223364.
5263 if test "$cross_compiling" = yes; then
5264 # Depending upon the size, compute the lo and hi bounds.
5265 cat >conftest.
$ac_ext <<_ACEOF
5268 cat confdefs.h
>>conftest.
$ac_ext
5269 cat >>conftest.
$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 $ac_includes_default
5275 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5282 rm -f conftest.
$ac_objext
5283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5284 (eval $ac_compile) 2>conftest.er1
5286 grep -v '^ *+' conftest.er1
>conftest.err
5288 cat conftest.err
>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } &&
5291 { ac_try
='test -z "$ac_c_werror_flag"
5292 || test ! -s conftest.err'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; } &&
5298 { ac_try
='test -s conftest.$ac_objext'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; }; then
5306 cat >conftest.
$ac_ext <<_ACEOF
5309 cat confdefs.h
>>conftest.
$ac_ext
5310 cat >>conftest.
$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5312 $ac_includes_default
5316 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5323 rm -f conftest.
$ac_objext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>conftest.er1
5327 grep -v '^ *+' conftest.er1
>conftest.err
5329 cat conftest.err
>&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try
='test -z "$ac_c_werror_flag"
5333 || test ! -s conftest.err'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; } &&
5339 { ac_try
='test -s conftest.$ac_objext'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 ac_hi
=$ac_mid; break
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.
$ac_ext >&5
5350 ac_lo
=`expr $ac_mid + 1`
5351 if test $ac_lo -le $ac_mid; then
5355 ac_mid
=`expr 2 '*' $ac_mid + 1`
5357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.
$ac_ext >&5
5363 cat >conftest.
$ac_ext <<_ACEOF
5366 cat confdefs.h
>>conftest.
$ac_ext
5367 cat >>conftest.
$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 $ac_includes_default
5373 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5380 rm -f conftest.
$ac_objext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382 (eval $ac_compile) 2>conftest.er1
5384 grep -v '^ *+' conftest.er1
>conftest.err
5386 cat conftest.err
>&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try
='test -z "$ac_c_werror_flag"
5390 || test ! -s conftest.err'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; } &&
5396 { ac_try
='test -s conftest.$ac_objext'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5404 cat >conftest.
$ac_ext <<_ACEOF
5407 cat confdefs.h
>>conftest.
$ac_ext
5408 cat >>conftest.
$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 $ac_includes_default
5414 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5421 rm -f conftest.
$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5425 grep -v '^ *+' conftest.er1
>conftest.err
5427 cat conftest.err
>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try
='test -z "$ac_c_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try
='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_lo
=$ac_mid; break
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.
$ac_ext >&5
5448 ac_hi
=`expr '(' $ac_mid ')' - 1`
5449 if test $ac_mid -le $ac_hi; then
5453 ac_mid
=`expr 2 '*' $ac_mid`
5455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.
$ac_ext >&5
5463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5465 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5466 # Binary search between lo and hi bounds.
5467 while test "x$ac_lo" != "x$ac_hi"; do
5468 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5469 cat >conftest.
$ac_ext <<_ACEOF
5472 cat confdefs.h
>>conftest.
$ac_ext
5473 cat >>conftest.
$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 $ac_includes_default
5479 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5486 rm -f conftest.
$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>conftest.er1
5490 grep -v '^ *+' conftest.er1
>conftest.err
5492 cat conftest.err
>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try
='test -z "$ac_c_werror_flag"
5496 || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try
='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.
$ac_ext >&5
5513 ac_lo
=`expr '(' $ac_mid ')' + 1`
5515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5518 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5519 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5520 See \`config.log' for more details." >&5
5521 echo "$as_me: error: cannot compute sizeof (long long), 77
5522 See \`config.log' for more details." >&2;}
5523 { (exit 1); exit 1; }; } ;;
5526 if test "$cross_compiling" = yes; then
5527 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5528 See \`config.log' for more details." >&5
5529 echo "$as_me: error: cannot run test program while cross compiling
5530 See \`config.log' for more details." >&2;}
5531 { (exit 1); exit 1; }; }
5533 cat >conftest.
$ac_ext <<_ACEOF
5536 cat confdefs.h
>>conftest.
$ac_ext
5537 cat >>conftest.
$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 $ac_includes_default
5540 long longval () { return (long) (sizeof (long long)); }
5541 unsigned long ulongval () { return (long) (sizeof (long long)); }
5548 FILE *f = fopen ("conftest.val", "w");
5551 if (((long) (sizeof (long long))) < 0)
5553 long i = longval ();
5554 if (i != ((long) (sizeof (long long))))
5556 fprintf (f, "%ld\n", i);
5560 unsigned long i = ulongval ();
5561 if (i != ((long) (sizeof (long long))))
5563 fprintf (f, "%lu\n", i);
5565 exit (ferror (f) || fclose (f) != 0);
5571 rm -f conftest
$ac_exeext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5573 (eval $ac_link) 2>&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; }; then
5582 ac_cv_sizeof_long_long
=`cat conftest.val`
5584 echo "$as_me: program exited with status $ac_status" >&5
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.
$ac_ext >&5
5589 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5590 See \`config.log' for more details." >&5
5591 echo "$as_me: error: cannot compute sizeof (long long), 77
5592 See \`config.log' for more details." >&2;}
5593 { (exit 1); exit 1; }; }
5595 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5600 ac_cv_sizeof_long_long
=0
5603 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5604 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5605 cat >>confdefs.h
<<_ACEOF
5606 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5612 echo "$as_me:$LINENO: checking for __int64" >&5
5613 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5614 if test "${ac_cv_type___int64+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 cat >conftest.
$ac_ext <<_ACEOF
5620 cat confdefs.h
>>conftest.
$ac_ext
5621 cat >>conftest.
$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 $ac_includes_default
5629 if (sizeof (__int64))
5635 rm -f conftest.
$ac_objext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>conftest.er1
5639 grep -v '^ *+' conftest.er1
>conftest.err
5641 cat conftest.err
>&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try
='test -z "$ac_c_werror_flag"
5645 || test ! -s conftest.err'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; } &&
5651 { ac_try
='test -s conftest.$ac_objext'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; }; then
5657 ac_cv_type___int64
=yes
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.
$ac_ext >&5
5662 ac_cv_type___int64
=no
5664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5666 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5667 echo "${ECHO_T}$ac_cv_type___int64" >&6
5668 if test $ac_cv_type___int64 = yes; then
5670 cat >>confdefs.h
<<_ACEOF
5671 #define HAVE___INT64 1
5674 echo "$as_me:$LINENO: checking for __int64" >&5
5675 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5676 if test "${ac_cv_type___int64+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 cat >conftest.
$ac_ext <<_ACEOF
5682 cat confdefs.h
>>conftest.
$ac_ext
5683 cat >>conftest.
$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 $ac_includes_default
5691 if (sizeof (__int64))
5697 rm -f conftest.
$ac_objext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>conftest.er1
5701 grep -v '^ *+' conftest.er1
>conftest.err
5703 cat conftest.err
>&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } &&
5706 { ac_try
='test -z "$ac_c_werror_flag"
5707 || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try
='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_cv_type___int64
=yes
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.
$ac_ext >&5
5724 ac_cv_type___int64
=no
5726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5728 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5729 echo "${ECHO_T}$ac_cv_type___int64" >&6
5731 echo "$as_me:$LINENO: checking size of __int64" >&5
5732 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5733 if test "${ac_cv_sizeof___int64+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 if test "$ac_cv_type___int64" = yes; then
5737 # The cast to unsigned long works around a bug in the HP C Compiler
5738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5740 # This bug is HP SR number 8606223364.
5741 if test "$cross_compiling" = yes; then
5742 # Depending upon the size, compute the lo and hi bounds.
5743 cat >conftest.
$ac_ext <<_ACEOF
5746 cat confdefs.h
>>conftest.
$ac_ext
5747 cat >>conftest.
$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 $ac_includes_default
5753 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5760 rm -f conftest.
$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>conftest.er1
5764 grep -v '^ *+' conftest.er1
>conftest.err
5766 cat conftest.err
>&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try
='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try
='test -s conftest.$ac_objext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5784 cat >conftest.
$ac_ext <<_ACEOF
5787 cat confdefs.h
>>conftest.
$ac_ext
5788 cat >>conftest.
$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 $ac_includes_default
5794 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5801 rm -f conftest.
$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>conftest.er1
5805 grep -v '^ *+' conftest.er1
>conftest.err
5807 cat conftest.err
>&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } &&
5810 { ac_try
='test -z "$ac_c_werror_flag"
5811 || test ! -s conftest.err'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try
='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_hi
=$ac_mid; break
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.
$ac_ext >&5
5828 ac_lo
=`expr $ac_mid + 1`
5829 if test $ac_lo -le $ac_mid; then
5833 ac_mid
=`expr 2 '*' $ac_mid + 1`
5835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.
$ac_ext >&5
5841 cat >conftest.
$ac_ext <<_ACEOF
5844 cat confdefs.h
>>conftest.
$ac_ext
5845 cat >>conftest.
$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 $ac_includes_default
5851 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5858 rm -f conftest.
$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1
>conftest.err
5864 cat conftest.err
>&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try
='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try
='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5882 cat >conftest.
$ac_ext <<_ACEOF
5885 cat confdefs.h
>>conftest.
$ac_ext
5886 cat >>conftest.
$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 $ac_includes_default
5892 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5899 rm -f conftest.
$ac_objext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>conftest.er1
5903 grep -v '^ *+' conftest.er1
>conftest.err
5905 cat conftest.err
>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try
='test -z "$ac_c_werror_flag"
5909 || test ! -s conftest.err'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try
='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_lo
=$ac_mid; break
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.
$ac_ext >&5
5926 ac_hi
=`expr '(' $ac_mid ')' - 1`
5927 if test $ac_mid -le $ac_hi; then
5931 ac_mid
=`expr 2 '*' $ac_mid`
5933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.
$ac_ext >&5
5941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5943 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5944 # Binary search between lo and hi bounds.
5945 while test "x$ac_lo" != "x$ac_hi"; do
5946 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5947 cat >conftest.
$ac_ext <<_ACEOF
5950 cat confdefs.h
>>conftest.
$ac_ext
5951 cat >>conftest.
$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5957 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5964 rm -f conftest.
$ac_objext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5966 (eval $ac_compile) 2>conftest.er1
5968 grep -v '^ *+' conftest.er1
>conftest.err
5970 cat conftest.err
>&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try
='test -z "$ac_c_werror_flag"
5974 || test ! -s conftest.err'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; } &&
5980 { ac_try
='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.
$ac_ext >&5
5991 ac_lo
=`expr '(' $ac_mid ')' + 1`
5993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5996 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5997 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5998 See \`config.log' for more details." >&5
5999 echo "$as_me: error: cannot compute sizeof (__int64), 77
6000 See \`config.log' for more details." >&2;}
6001 { (exit 1); exit 1; }; } ;;
6004 if test "$cross_compiling" = yes; then
6005 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6006 See \`config.log' for more details." >&5
6007 echo "$as_me: error: cannot run test program while cross compiling
6008 See \`config.log' for more details." >&2;}
6009 { (exit 1); exit 1; }; }
6011 cat >conftest.
$ac_ext <<_ACEOF
6014 cat confdefs.h
>>conftest.
$ac_ext
6015 cat >>conftest.
$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 $ac_includes_default
6018 long longval () { return (long) (sizeof (__int64)); }
6019 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6026 FILE *f = fopen ("conftest.val", "w");
6029 if (((long) (sizeof (__int64))) < 0)
6031 long i = longval ();
6032 if (i != ((long) (sizeof (__int64))))
6034 fprintf (f, "%ld\n", i);
6038 unsigned long i = ulongval ();
6039 if (i != ((long) (sizeof (__int64))))
6041 fprintf (f, "%lu\n", i);
6043 exit (ferror (f) || fclose (f) != 0);
6049 rm -f conftest
$ac_exeext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051 (eval $ac_link) 2>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 ac_cv_sizeof___int64
=`cat conftest.val`
6062 echo "$as_me: program exited with status $ac_status" >&5
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.
$ac_ext >&5
6067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6068 See \`config.log' for more details." >&5
6069 echo "$as_me: error: cannot compute sizeof (__int64), 77
6070 See \`config.log' for more details." >&2;}
6071 { (exit 1); exit 1; }; }
6073 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6078 ac_cv_sizeof___int64
=0
6081 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6082 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6083 cat >>confdefs.h
<<_ACEOF
6084 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6091 # ---------------------
6092 # Warnings and checking
6093 # ---------------------
6095 # Check $CC warning features (if it's GCC).
6096 # We want to use -pedantic, but we don't want warnings about
6099 # * overlong strings
6100 # So, we only use -pedantic if we can disable those warnings.
6102 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6103 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6104 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 save_CFLAGS
="$CFLAGS"
6108 CFLAGS
="-Wno-long-long"
6109 cat >conftest.
$ac_ext <<_ACEOF
6112 cat confdefs.h
>>conftest.
$ac_ext
6113 cat >>conftest.
$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6117 rm -f conftest.
$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>conftest.er1
6121 grep -v '^ *+' conftest.er1
>conftest.err
6123 cat conftest.err
>&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try
='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try
='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_prog_cc_w_no_long_long
=yes
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.
$ac_ext >&5
6144 ac_cv_prog_cc_w_no_long_long
=no
6146 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6147 CFLAGS
="$save_CFLAGS"
6150 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6151 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6153 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6154 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6155 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 save_CFLAGS
="$CFLAGS"
6159 CFLAGS
="-Wno-variadic-macros"
6160 cat >conftest.
$ac_ext <<_ACEOF
6163 cat confdefs.h
>>conftest.
$ac_ext
6164 cat >>conftest.
$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6168 rm -f conftest.
$ac_objext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170 (eval $ac_compile) 2>conftest.er1
6172 grep -v '^ *+' conftest.er1
>conftest.err
6174 cat conftest.err
>&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try
='test -z "$ac_c_werror_flag"
6178 || test ! -s conftest.err'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; } &&
6184 { ac_try
='test -s conftest.$ac_objext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_prog_cc_w_no_variadic_macros
=yes
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.
$ac_ext >&5
6195 ac_cv_prog_cc_w_no_variadic_macros
=no
6197 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6198 CFLAGS
="$save_CFLAGS"
6201 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6202 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6204 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6205 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6206 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 save_CFLAGS
="$CFLAGS"
6210 CFLAGS
="-Wno-overlength-strings"
6211 cat >conftest.
$ac_ext <<_ACEOF
6214 cat confdefs.h
>>conftest.
$ac_ext
6215 cat >>conftest.
$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6219 rm -f conftest.
$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221 (eval $ac_compile) 2>conftest.er1
6223 grep -v '^ *+' conftest.er1
>conftest.err
6225 cat conftest.err
>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try
='test -z "$ac_c_werror_flag"
6229 || test ! -s conftest.err'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; } &&
6235 { ac_try
='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_prog_cc_w_no_overlength_strings
=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.
$ac_ext >&5
6246 ac_cv_prog_cc_w_no_overlength_strings
=no
6248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6249 CFLAGS
="$save_CFLAGS"
6252 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6253 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6256 if test $ac_cv_prog_cc_w_no_long_long = yes \
6257 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6258 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6259 strict_warn
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6262 # Add -Wold-style-definition if it's accepted
6263 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6264 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6265 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 save_CFLAGS
="$CFLAGS"
6269 CFLAGS
="-Wold-style-definition"
6270 cat >conftest.
$ac_ext <<_ACEOF
6273 cat confdefs.h
>>conftest.
$ac_ext
6274 cat >>conftest.
$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6278 rm -f conftest.
$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1
>conftest.err
6284 cat conftest.err
>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try
='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try
='test -s conftest.$ac_objext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_cv_prog_cc_w_old_style_definition
=yes
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.
$ac_ext >&5
6305 ac_cv_prog_cc_w_old_style_definition
=no
6307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6308 CFLAGS
="$save_CFLAGS"
6311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6312 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6313 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6314 strict_warn
="${strict_warn} -Wold-style-definition"
6317 # Add -Wmissing-format-attribute if it's accepted
6318 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6319 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6320 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 save_CFLAGS
="$CFLAGS"
6324 CFLAGS
="-Wmissing-format-attribute"
6325 cat >conftest.
$ac_ext <<_ACEOF
6328 cat confdefs.h
>>conftest.
$ac_ext
6329 cat >>conftest.
$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6333 rm -f conftest.
$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1
>conftest.err
6339 cat conftest.err
>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try
='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try
='test -s conftest.$ac_objext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_prog_cc_w_missing_format_attribute
=yes
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.
$ac_ext >&5
6360 ac_cv_prog_cc_w_missing_format_attribute
=no
6362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6363 CFLAGS
="$save_CFLAGS"
6366 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6367 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6368 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6369 strict_warn
="${strict_warn} -Wmissing-format-attribute"
6372 # Enable -Werror, period.
6373 # Check whether --enable-werror_always or --disable-werror_always was given.
6374 if test "${enable_werror_always+set}" = set; then
6375 enableval
="$enable_werror_always"
6378 enable_werror_always
=no
6380 if test x
${enable_werror_always} = xyes
; then
6381 strict_warn
="${strict_warn} -Werror"
6385 # Get C++ compatibility warning flag, if supported.
6386 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6387 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6388 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 save_CFLAGS
="$CFLAGS"
6392 CFLAGS
="-Wc++-compat"
6393 cat >conftest.
$ac_ext <<_ACEOF
6396 cat confdefs.h
>>conftest.
$ac_ext
6397 cat >>conftest.
$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6401 rm -f conftest.
$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6405 grep -v '^ *+' conftest.er1
>conftest.err
6407 cat conftest.err
>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try
='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try
='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_cv_prog_cc_w_cxx_compat
=yes
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.
$ac_ext >&5
6428 ac_cv_prog_cc_w_cxx_compat
=no
6430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6431 CFLAGS
="$save_CFLAGS"
6434 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6435 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6436 if test x
${ac_cv_prog_cc_w_cxx_compat} = xyes
; then
6437 cxx_compat_warn
="-Wc++-compat"
6442 # If the native compiler is GCC, we can enable warnings even in stage1.
6443 # That's useful for people building cross-compilers, or just running a
6446 if test "x$GCC" = "xyes"; then
6447 warn_cflags
='$(GCC_WARN_CFLAGS)'
6451 # Enable expensive internal checks
6453 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6457 # Check whether --enable-checking or --disable-checking was given.
6458 if test "${enable_checking+set}" = set; then
6459 enableval
="$enable_checking"
6460 ac_checking_flags
="${enableval}"
6463 # Determine the default checks.
6464 if test x
$is_release = x
; then
6465 ac_checking_flags
=yes
6467 ac_checking_flags
=release
6470 ac_assert_checking
=1
6474 ac_gc_always_collect
=
6476 ac_rtlflag_checking
=
6477 ac_runtime_checking
=1
6479 ac_valgrind_checking
=
6480 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6481 for check
in $ac_checking_flags
6484 # these set all the flags to specific states
6485 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6486 ac_fold_checking
= ; ac_gc_checking
=1 ;
6487 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6488 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6489 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6490 no|none
) ac_assert_checking
= ; ac_checking
= ;
6491 ac_fold_checking
= ; ac_gc_checking
= ;
6492 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6493 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6494 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6495 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6496 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6497 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6498 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6499 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6500 release
) ac_assert_checking
=1 ; ac_checking
= ;
6501 ac_fold_checking
= ; ac_gc_checking
= ;
6502 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6503 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6504 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6505 # these enable particular checks
6506 assert
) ac_assert_checking
=1 ;;
6507 fold) ac_fold_checking
=1 ;;
6508 gc
) ac_gc_checking
=1 ;;
6509 gcac
) ac_gc_always_collect
=1 ;;
6510 misc
) ac_checking
=1 ;;
6511 rtl
) ac_rtl_checking
=1 ;;
6512 rtlflag
) ac_rtlflag_checking
=1 ;;
6513 runtime
) ac_runtime_checking
=1 ;;
6514 tree
) ac_tree_checking
=1 ;;
6515 valgrind
) ac_valgrind_checking
=1 ;;
6516 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6517 echo "$as_me: error: unknown check category $check" >&2;}
6518 { (exit 1); exit 1; }; } ;;
6524 if test x
$ac_checking != x
; then
6526 cat >>confdefs.h
<<\_ACEOF
6527 #define ENABLE_CHECKING 1
6530 nocommon_flag
=-fno-common
6533 if test x
$ac_assert_checking != x
; then
6535 cat >>confdefs.h
<<\_ACEOF
6536 #define ENABLE_ASSERT_CHECKING 1
6541 if test x
$ac_runtime_checking != x
; then
6543 cat >>confdefs.h
<<\_ACEOF
6544 #define ENABLE_RUNTIME_CHECKING 1
6548 if test x
$ac_tree_checking != x
; then
6550 cat >>confdefs.h
<<\_ACEOF
6551 #define ENABLE_TREE_CHECKING 1
6554 TREEBROWSER
=tree-browser.o
6557 if test x
$ac_rtl_checking != x
; then
6559 cat >>confdefs.h
<<\_ACEOF
6560 #define ENABLE_RTL_CHECKING 1
6564 if test x
$ac_rtlflag_checking != x
; then
6566 cat >>confdefs.h
<<\_ACEOF
6567 #define ENABLE_RTL_FLAG_CHECKING 1
6571 if test x
$ac_gc_checking != x
; then
6573 cat >>confdefs.h
<<\_ACEOF
6574 #define ENABLE_GC_CHECKING 1
6578 if test x
$ac_gc_always_collect != x
; then
6580 cat >>confdefs.h
<<\_ACEOF
6581 #define ENABLE_GC_ALWAYS_COLLECT 1
6585 if test x
$ac_fold_checking != x
; then
6587 cat >>confdefs.h
<<\_ACEOF
6588 #define ENABLE_FOLD_CHECKING 1
6592 valgrind_path_defines
=
6595 if test "${ac_cv_header_valgrind_h+set}" = set; then
6596 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6597 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6598 if test "${ac_cv_header_valgrind_h+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6602 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6604 # Is the header compilable?
6605 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6606 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6607 cat >conftest.
$ac_ext <<_ACEOF
6610 cat confdefs.h
>>conftest.
$ac_ext
6611 cat >>conftest.
$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 $ac_includes_default
6614 #include <valgrind.h>
6616 rm -f conftest.
$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>conftest.er1
6620 grep -v '^ *+' conftest.er1
>conftest.err
6622 cat conftest.err
>&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try
='test -z "$ac_c_werror_flag"
6626 || test ! -s conftest.err'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; } &&
6632 { ac_try
='test -s conftest.$ac_objext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_header_compiler
=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.
$ac_ext >&5
6643 ac_header_compiler
=no
6645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6647 echo "${ECHO_T}$ac_header_compiler" >&6
6649 # Is the header present?
6650 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6651 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6652 cat >conftest.
$ac_ext <<_ACEOF
6655 cat confdefs.h
>>conftest.
$ac_ext
6656 cat >>conftest.
$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 #include <valgrind.h>
6660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6661 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6663 grep -v '^ *+' conftest.er1
>conftest.err
6665 cat conftest.err
>&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } >/dev
/null
; then
6668 if test -s conftest.err
; then
6669 ac_cpp_err
=$ac_c_preproc_warn_flag
6670 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6677 if test -z "$ac_cpp_err"; then
6678 ac_header_preproc
=yes
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.
$ac_ext >&5
6683 ac_header_preproc
=no
6685 rm -f conftest.err conftest.
$ac_ext
6686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6687 echo "${ECHO_T}$ac_header_preproc" >&6
6689 # So? What about this header?
6690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6692 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6693 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6694 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6695 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6696 ac_header_preproc
=yes
6699 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6700 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6702 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6704 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6706 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6708 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6710 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6713 ## ------------------------------------------ ##
6714 ## Report this to the AC_PACKAGE_NAME lists. ##
6715 ## ------------------------------------------ ##
6718 sed "s/^/$as_me: WARNING: /" >&2
6721 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6722 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6723 if test "${ac_cv_header_valgrind_h+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 ac_cv_header_valgrind_h
=$ac_header_preproc
6728 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6729 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6732 if test $ac_cv_header_valgrind_h = yes; then
6740 if test x
$ac_valgrind_checking != x
; then
6741 # It is certainly possible that there's valgrind but no valgrind.h.
6742 # GCC relies on making annotations so we must have both.
6743 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6744 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6745 cat >conftest.
$ac_ext <<_ACEOF
6748 cat confdefs.h
>>conftest.
$ac_ext
6749 cat >>conftest.
$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 #include <valgrind/memcheck.h>
6752 #ifndef VALGRIND_DISCARD
6753 #error VALGRIND_DISCARD not defined
6756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6757 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6759 grep -v '^ *+' conftest.er1
>conftest.err
6761 cat conftest.err
>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } >/dev
/null
; then
6764 if test -s conftest.err
; then
6765 ac_cpp_err
=$ac_c_preproc_warn_flag
6766 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6773 if test -z "$ac_cpp_err"; then
6774 gcc_cv_header_valgrind_memcheck_h
=yes
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.
$ac_ext >&5
6779 gcc_cv_header_valgrind_memcheck_h
=no
6781 rm -f conftest.err conftest.
$ac_ext
6782 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6783 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6784 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6785 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6786 cat >conftest.
$ac_ext <<_ACEOF
6789 cat confdefs.h
>>conftest.
$ac_ext
6790 cat >>conftest.
$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 #include <memcheck.h>
6793 #ifndef VALGRIND_DISCARD
6794 #error VALGRIND_DISCARD not defined
6797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6798 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6800 grep -v '^ *+' conftest.er1
>conftest.err
6802 cat conftest.err
>&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } >/dev
/null
; then
6805 if test -s conftest.err
; then
6806 ac_cpp_err
=$ac_c_preproc_warn_flag
6807 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6814 if test -z "$ac_cpp_err"; then
6815 gcc_cv_header_memcheck_h
=yes
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.
$ac_ext >&5
6820 gcc_cv_header_memcheck_h
=no
6822 rm -f conftest.err conftest.
$ac_ext
6823 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6824 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6826 # Prepare PATH_SEPARATOR.
6827 # The user is always right.
6828 if test "${PATH_SEPARATOR+set}" != set; then
6829 echo "#! /bin/sh" >conf$$.sh
6830 echo "exit 0" >>conf$$.sh
6832 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6840 # Find out how to test for executable files. Don't use a zero-byte file,
6841 # as systems may use methods other than mode bits to determine executability.
6842 cat >conf$$.
file <<_ASEOF
6846 chmod +x conf$$.
file
6847 if test -x conf$$.
file >/dev
/null
2>&1; then
6848 ac_executable_p
="test -x"
6850 ac_executable_p
="test -f"
6854 # Extract the first word of "valgrind", so it can be a program name with args.
6855 set dummy valgrind
; ac_word
=$2
6856 echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6858 if test "${ac_cv_path_valgrind_path+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 case "$valgrind_path" in
6863 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6866 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6867 for ac_dir
in $PATH; do
6869 test -z "$ac_dir" && ac_dir
=.
6870 for ac_exec_ext
in '' $ac_executable_extensions; do
6871 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6872 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6873 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6883 valgrind_path
="$ac_cv_path_valgrind_path"
6884 if test -n "$valgrind_path"; then
6885 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6886 echo "${ECHO_T}$valgrind_path" >&6
6888 echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6
6892 if test "x$valgrind_path" = "x" \
6893 ||
(test $have_valgrind_h = no \
6894 && test $gcc_cv_header_memcheck_h = no \
6895 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6896 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6897 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6898 { (exit 1); exit 1; }; }
6900 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6901 valgrind_command
="$valgrind_path -q"
6903 cat >>confdefs.h
<<\_ACEOF
6904 #define ENABLE_VALGRIND_CHECKING 1
6907 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6909 cat >>confdefs.h
<<\_ACEOF
6910 #define HAVE_VALGRIND_MEMCHECK_H 1
6914 if test $gcc_cv_header_memcheck_h = yes; then
6916 cat >>confdefs.h
<<\_ACEOF
6917 #define HAVE_MEMCHECK_H 1
6925 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6926 if test "${enable_mapped_location+set}" = set; then
6927 enableval
="$enable_mapped_location"
6930 enable_mapped_location
=no
6933 if test "$enable_mapped_location" = yes ; then
6935 cat >>confdefs.h
<<\_ACEOF
6936 #define USE_MAPPED_LOCATION 1
6941 # Enable code coverage collection
6942 # Check whether --enable-coverage or --disable-coverage was given.
6943 if test "${enable_coverage+set}" = set; then
6944 enableval
="$enable_coverage"
6945 case "${enableval}" in
6947 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6950 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6953 # a.k.a. --disable-coverage
6957 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6958 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6959 { (exit 1); exit 1; }; }
6967 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6968 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6969 enableval
="$enable_gather_detailed_mem_stats"
6972 enable_gather_detailed_mem_stats
=no
6974 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6976 cat >>confdefs.h
<<\_ACEOF
6977 #define GATHER_STATISTICS 1
6982 # -------------------------------
6983 # Miscenalleous configure options
6984 # -------------------------------
6988 # Check whether --with-stabs or --without-stabs was given.
6989 if test "${with_stabs+set}" = set; then
6990 withval
="$with_stabs"
6996 # Determine whether or not multilibs are enabled.
6997 # Check whether --enable-multilib or --disable-multilib was given.
6998 if test "${enable_multilib+set}" = set; then
6999 enableval
="$enable_multilib"
7006 # Enable __cxa_atexit for C++.
7007 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7008 if test "${enable___cxa_atexit+set}" = set; then
7009 enableval
="$enable___cxa_atexit"
7013 # Enable C extension for decimal float if target supports it.
7014 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7015 if test "${enable_decimal_float+set}" = set; then
7016 enableval
="$enable_decimal_float"
7018 case $enable_decimal_float in
7019 yes | no | bid | dpd
) ;;
7020 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7021 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7022 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7023 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7024 { (exit 1); exit 1; }; } ;;
7030 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7031 enable_decimal_float
=yes
7034 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7035 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7036 enable_decimal_float
=no
7042 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7044 cat >>confdefs.h
<<_ACEOF
7045 #define ENABLE_DECIMAL_FLOAT $dfp
7049 # x86's use BID format instead of DPD
7050 case x
$enable_decimal_float in
7053 i?
86*-*-linux* | x86_64
*-*-linux*)
7054 enable_decimal_float
=bid
7057 enable_decimal_float
=dpd
7062 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7063 # dependency on libdecnumber.
7064 enable_decimal_float
=dpd
7069 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7071 cat >>confdefs.h
<<_ACEOF
7072 #define ENABLE_DECIMAL_BID_FORMAT $bid
7077 # Pass with no value to take the default
7078 # Pass with a value to specify a thread package
7079 # Check whether --enable-threads or --disable-threads was given.
7080 if test "${enable_threads+set}" = set; then
7081 enableval
="$enable_threads"
7087 # Check whether --enable-tls or --disable-tls was given.
7088 if test "${enable_tls+set}" = set; then
7089 enableval
="$enable_tls"
7093 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7094 Valid choices are 'yes' and 'no'." >&5
7095 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7096 Valid choices are 'yes' and 'no'." >&2;}
7097 { (exit 1); exit 1; }; } ;;
7104 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7105 if test "${enable_objc_gc+set}" = set; then
7106 enableval
="$enable_objc_gc"
7107 if test x
$enable_objc_gc = xno
; then
7117 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7118 if test "${with_dwarf2+set}" = set; then
7119 withval
="$with_dwarf2"
7120 dwarf2
="$with_dwarf2"
7125 # Check whether --enable-shared or --disable-shared was given.
7126 if test "${enable_shared+set}" = set; then
7127 enableval
="$enable_shared"
7129 case $enable_shared in
7133 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7134 for pkg
in $enableval; do
7135 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7149 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7150 if test "${with_build_sysroot+set}" = set; then
7151 withval
="$with_build_sysroot"
7156 # Check whether --with-sysroot or --without-sysroot was given.
7157 if test "${with_sysroot+set}" = set; then
7158 withval
="$with_sysroot"
7160 case ${with_sysroot} in
7161 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7162 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7165 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7166 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7168 if test "x$exec_prefix" = xNONE
; then
7169 if test "x$prefix" = xNONE
; then
7170 test_prefix
=/usr
/local
7175 test_prefix
=$exec_prefix
7177 case ${TARGET_SYSTEM_ROOT} in
7178 "${test_prefix}"|
"${test_prefix}/"*|\
7179 '${exec_prefix}'|
'${exec_prefix}/'*)
7180 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7181 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7188 TARGET_SYSTEM_ROOT_DEFINE
=
7189 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7196 # Build with intermodule optimisations
7197 # Check whether --enable-intermodule or --disable-intermodule was given.
7198 if test "${enable_intermodule+set}" = set; then
7199 enableval
="$enable_intermodule"
7200 case ${enable_intermodule} in
7201 yes) onestep
="-onestep";;
7209 # Sanity check enable_languages in case someone does not run the toplevel
7210 # configure # script.
7211 # Check whether --enable-languages or --disable-languages was given.
7212 if test "${enable_languages+set}" = set; then
7213 enableval
="$enable_languages"
7214 case ,${enable_languages}, in
7216 # go safe -- we cannot be much sure without the toplevel
7218 # analysis of which target libs are present and usable
7222 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7223 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7224 { (exit 1); exit 1; }; }
7229 enable_languages
=c
,${enable_languages}
7236 # Used by documentation targets
7241 # -------------------------
7242 # Checks for other programs
7243 # -------------------------
7245 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7247 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7248 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 cat >conftest.
make <<\_ACEOF
7253 @
echo 'ac_maketemp="$(MAKE)"'
7255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7256 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7257 if test -n "$ac_maketemp"; then
7258 eval ac_cv_prog_make_
${ac_make}_set
=yes
7260 eval ac_cv_prog_make_
${ac_make}_set
=no
7264 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7265 echo "$as_me:$LINENO: result: yes" >&5
7266 echo "${ECHO_T}yes" >&6
7269 echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6
7271 SET_MAKE
="MAKE=${MAKE-make}"
7275 # Find some useful tools
7276 for ac_prog
in gawk mawk nawk
awk
7278 # Extract the first word of "$ac_prog", so it can be a program name with args.
7279 set dummy
$ac_prog; ac_word
=$2
7280 echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282 if test "${ac_cv_prog_AWK+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 if test -n "$AWK"; then
7286 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir
=.
7293 for ac_exec_ext
in '' $ac_executable_extensions; do
7294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_AWK
="$ac_prog"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 if test -n "$AWK"; then
7306 echo "$as_me:$LINENO: result: $AWK" >&5
7307 echo "${ECHO_T}$AWK" >&6
7309 echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6
7313 test -n "$AWK" && break
7316 # We need awk to create options.c and options.h.
7317 # Bail out if it's missing.
7319 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7320 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7321 { (exit 1); exit 1; }; } ;;
7324 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7325 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7326 if test "${gcc_cv_prog_LN_S+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 rm -f conftestdata_t
7330 echo >conftestdata_f
7331 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7333 gcc_cv_prog_LN_S
="ln -s"
7335 if ln conftestdata_f conftestdata_t
2>/dev
/null
7339 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7341 gcc_cv_prog_LN_S
="cp -p"
7347 rm -f conftestdata_f conftestdata_t
7350 LN_S
="$gcc_cv_prog_LN_S"
7351 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7352 echo "$as_me:$LINENO: result: yes" >&5
7353 echo "${ECHO_T}yes" >&6
7355 if test "$gcc_cv_prog_LN_S" = "ln"; then
7356 echo "$as_me:$LINENO: result: no, using ln" >&5
7357 echo "${ECHO_T}no, using ln" >&6
7359 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7360 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7364 echo "$as_me:$LINENO: checking whether ln works" >&5
7365 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7366 if test "${acx_cv_prog_LN+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 rm -f conftestdata_t
7370 echo >conftestdata_f
7371 if ln conftestdata_f conftestdata_t
2>/dev
/null
7377 rm -f conftestdata_f conftestdata_t
7380 if test $acx_cv_prog_LN = no
; then
7382 echo "$as_me:$LINENO: result: no, using $LN" >&5
7383 echo "${ECHO_T}no, using $LN" >&6
7385 LN
="$acx_cv_prog_LN"
7386 echo "$as_me:$LINENO: result: yes" >&5
7387 echo "${ECHO_T}yes" >&6
7390 if test -n "$ac_tool_prefix"; then
7391 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7392 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7393 echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7395 if test "${ac_cv_prog_RANLIB+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 if test -n "$RANLIB"; then
7399 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir
=.
7406 for ac_exec_ext
in '' $ac_executable_extensions; do
7407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 RANLIB
=$ac_cv_prog_RANLIB
7418 if test -n "$RANLIB"; then
7419 echo "$as_me:$LINENO: result: $RANLIB" >&5
7420 echo "${ECHO_T}$RANLIB" >&6
7422 echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6
7427 if test -z "$ac_cv_prog_RANLIB"; then
7428 ac_ct_RANLIB
=$RANLIB
7429 # Extract the first word of "ranlib", so it can be a program name with args.
7430 set dummy ranlib
; ac_word
=$2
7431 echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7433 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 if test -n "$ac_ct_RANLIB"; then
7437 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir
=.
7444 for ac_exec_ext
in '' $ac_executable_extensions; do
7445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7456 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7457 if test -n "$ac_ct_RANLIB"; then
7458 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7459 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7461 echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6
7465 RANLIB
=$ac_ct_RANLIB
7467 RANLIB
="$ac_cv_prog_RANLIB"
7472 # By default, the Darwin ranlib will not treat common symbols as
7473 # definitions when building the archive table of contents. Other
7474 # ranlibs do that; pass an option to the Darwin ranlib that makes
7475 # it behave similarly.
7483 # Find a good install program. We prefer a C program (faster),
7484 # so one script is as good as another. But avoid the broken or
7485 # incompatible versions:
7486 # SysV /etc/install, /usr/sbin/install
7487 # SunOS /usr/etc/install
7488 # IRIX /sbin/install
7490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7492 # ./install, which can be erroneously created by make from ./install.sh.
7493 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7494 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7495 if test -z "$INSTALL"; then
7496 if test "${ac_cv_path_install+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7500 for ac_dir
in $PATH; do
7501 # Account for people who put trailing slashes in PATH elements.
7503 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7505 # OSF1 and SCO ODT 3.0 have their own names for install.
7506 for ac_prog
in ginstall scoinst
install; do
7507 if test -f $ac_dir/$ac_prog; then
7508 if test $ac_prog = install &&
7509 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7510 # AIX install. It has an incompatible calling convention.
7511 # OSF/1 installbsd also uses dspmsg, but is usable.
7514 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7525 if test "${ac_cv_path_install+set}" = set; then
7526 INSTALL
="$ac_cv_path_install"
7528 # As a last resort, use the slow shell script. We don't cache a
7529 # path for INSTALL within a source directory, because that will
7530 # break other packages using the cache if that directory is
7531 # removed, or if the path is relative.
7532 INSTALL
="$ac_install_sh"
7535 echo "$as_me:$LINENO: result: $INSTALL" >&5
7536 echo "${ECHO_T}$INSTALL" >&6
7538 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7539 # It thinks the first close brace ends the variable substitution.
7540 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7542 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7545 # See if cmp has --ignore-initial.
7546 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7547 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7548 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 gcc_cv_prog_cmp_skip
=slowcompare
7554 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7555 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7558 gcc_cv_prog_cmp_skip
=gnucompare
7561 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7562 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7563 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7566 gcc_cv_prog_cmp_skip
=fastcompare
7573 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7574 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7575 make_compare_target
=$gcc_cv_prog_cmp_skip
7579 # See if we have the mktemp command.
7580 # Extract the first word of "mktemp", so it can be a program name with args.
7581 set dummy mktemp
; ac_word
=$2
7582 echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7584 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 if test -n "$have_mktemp_command"; then
7588 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir
=.
7595 for ac_exec_ext
in '' $ac_executable_extensions; do
7596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7597 ac_cv_prog_have_mktemp_command
="yes"
7598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7607 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7608 if test -n "$have_mktemp_command"; then
7609 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7610 echo "${ECHO_T}$have_mktemp_command" >&6
7612 echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6
7617 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7619 # See if makeinfo has been installed and is modern enough
7620 # that we can use it.
7622 ac_executable_extensions
="$build_exeext"
7624 # Extract the first word of "makeinfo", so it can be a program name with args.
7625 set dummy makeinfo
; ac_word
=$2
7626 echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7628 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 if test -n "$MAKEINFO"; then
7632 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir
=.
7639 for ac_exec_ext
in '' $ac_executable_extensions; do
7640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641 ac_cv_prog_MAKEINFO
="makeinfo"
7642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 MAKEINFO
=$ac_cv_prog_MAKEINFO
7651 if test -n "$MAKEINFO"; then
7652 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7653 echo "${ECHO_T}$MAKEINFO" >&6
7655 echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6
7659 if test -n "$MAKEINFO"; then
7660 # Found it, now check the version.
7661 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7662 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7663 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7667 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7668 echo "configure:7668: version of makeinfo is $ac_prog_version" >&5
7669 case $ac_prog_version in
7670 '') gcc_cv_prog_makeinfo_modern
=no
;;
7672 gcc_cv_prog_makeinfo_modern
=yes;;
7673 *) gcc_cv_prog_makeinfo_modern
=no
;;
7677 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7678 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7680 gcc_cv_prog_makeinfo_modern
=no
7683 if test $gcc_cv_prog_makeinfo_modern = no
; then
7684 MAKEINFO
="$MISSING makeinfo"
7685 { echo "$as_me:$LINENO: WARNING:
7686 *** Makeinfo is missing or too old.
7687 *** Info documentation will not be built." >&5
7688 echo "$as_me: WARNING:
7689 *** Makeinfo is missing or too old.
7690 *** Info documentation will not be built." >&2;}
7697 # Is pod2man recent enough to regenerate manpages?
7698 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7699 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7700 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7701 echo "$as_me:$LINENO: result: yes" >&5
7702 echo "${ECHO_T}yes" >&6
7703 GENERATED_MANPAGES
=generated-manpages
7705 echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy
$ac_prog; ac_word
=$2
7716 echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7718 if test "${ac_cv_prog_FLEX+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 if test -n "$FLEX"; then
7722 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir
=.
7729 for ac_exec_ext
in '' $ac_executable_extensions; do
7730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731 ac_cv_prog_FLEX
="$ac_prog"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 FLEX
=$ac_cv_prog_FLEX
7741 if test -n "$FLEX"; then
7742 echo "$as_me:$LINENO: result: $FLEX" >&5
7743 echo "${ECHO_T}$FLEX" >&6
7745 echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6
7749 test -n "$FLEX" && break
7751 test -n "$FLEX" || FLEX
="$MISSING flex"
7755 for ac_prog
in bison
7757 # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy
$ac_prog; ac_word
=$2
7759 echo "$as_me:$LINENO: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7761 if test "${ac_cv_prog_BISON+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 if test -n "$BISON"; then
7765 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7771 test -z "$as_dir" && as_dir
=.
7772 for ac_exec_ext
in '' $ac_executable_extensions; do
7773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_BISON
="$ac_prog"
7775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 BISON
=$ac_cv_prog_BISON
7784 if test -n "$BISON"; then
7785 echo "$as_me:$LINENO: result: $BISON" >&5
7786 echo "${ECHO_T}$BISON" >&6
7788 echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6
7792 test -n "$BISON" && break
7794 test -n "$BISON" || BISON
="$MISSING bison"
7797 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7798 # check for build == host before using them.
7801 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7802 && test -d ..
/binutils
; then
7803 NM
='$(objdir)/../binutils/nm-new'
7805 # Extract the first word of "nm", so it can be a program name with args.
7806 set dummy nm
; ac_word
=$2
7807 echo "$as_me:$LINENO: checking for $ac_word" >&5
7808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7809 if test "${ac_cv_prog_NM+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 if test -n "$NM"; then
7813 ac_cv_prog_NM
="$NM" # Let the user override the test.
7815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir
=.
7820 for ac_exec_ext
in '' $ac_executable_extensions; do
7821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7833 if test -n "$NM"; then
7834 echo "$as_me:$LINENO: result: $NM" >&5
7835 echo "${ECHO_T}$NM" >&6
7837 echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6
7844 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7845 && test -d ..
/binutils
; then
7846 AR
='$(objdir)/../binutils/ar'
7848 # Extract the first word of "ar", so it can be a program name with args.
7849 set dummy
ar; ac_word
=$2
7850 echo "$as_me:$LINENO: checking for $ac_word" >&5
7851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7852 if test "${ac_cv_prog_AR+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 if test -n "$AR"; then
7856 ac_cv_prog_AR
="$AR" # Let the user override the test.
7858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7862 test -z "$as_dir" && as_dir
=.
7863 for ac_exec_ext
in '' $ac_executable_extensions; do
7864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7876 if test -n "$AR"; then
7877 echo "$as_me:$LINENO: result: $AR" >&5
7878 echo "${ECHO_T}$AR" >&6
7880 echo "$as_me:$LINENO: result: no" >&5
7881 echo "${ECHO_T}no" >&6
7887 # --------------------
7888 # Checks for C headers
7889 # --------------------
7891 echo "$as_me:$LINENO: checking for GNU C library" >&5
7892 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7893 if test "${gcc_cv_glibc+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 cat >conftest.
$ac_ext <<_ACEOF
7899 cat confdefs.h
>>conftest.
$ac_ext
7900 cat >>conftest.
$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 #include <features.h>
7907 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7908 #error Not a GNU C library system
7914 rm -f conftest.
$ac_objext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916 (eval $ac_compile) 2>conftest.er1
7918 grep -v '^ *+' conftest.er1
>conftest.err
7920 cat conftest.err
>&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try
='test -z "$ac_c_werror_flag"
7924 || test ! -s conftest.err'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try
='test -s conftest.$ac_objext'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; }; then
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.
$ac_ext >&5
7943 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7946 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7947 echo "${ECHO_T}$gcc_cv_glibc" >&6
7948 if test $gcc_cv_glibc = yes; then
7950 cat >>confdefs.h
<<\_ACEOF
7951 #define _GNU_SOURCE 1
7956 # Need to reject headers which give warnings, so that the -Werror bootstrap
7957 # works later. *sigh* This needs to come before all header checks.
7959 ac_c_preproc_warn_flag
=yes
7961 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7963 if test "${ac_cv_header_stdc+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 cat >conftest.
$ac_ext <<_ACEOF
7969 cat confdefs.h
>>conftest.
$ac_ext
7970 cat >>conftest.
$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7985 rm -f conftest.
$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987 (eval $ac_compile) 2>conftest.er1
7989 grep -v '^ *+' conftest.er1
>conftest.err
7991 cat conftest.err
>&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try
='test -z "$ac_c_werror_flag"
7995 || test ! -s conftest.err'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try
='test -s conftest.$ac_objext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 ac_cv_header_stdc
=yes
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.
$ac_ext >&5
8012 ac_cv_header_stdc
=no
8014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8016 if test $ac_cv_header_stdc = yes; then
8017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8018 cat >conftest.
$ac_ext <<_ACEOF
8021 cat confdefs.h
>>conftest.
$ac_ext
8022 cat >>conftest.
$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8028 $EGREP "memchr" >/dev
/null
2>&1; then
8031 ac_cv_header_stdc
=no
8037 if test $ac_cv_header_stdc = yes; then
8038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8039 cat >conftest.
$ac_ext <<_ACEOF
8042 cat confdefs.h
>>conftest.
$ac_ext
8043 cat >>conftest.
$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8049 $EGREP "free" >/dev
/null
2>&1; then
8052 ac_cv_header_stdc
=no
8058 if test $ac_cv_header_stdc = yes; then
8059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8060 if test "$cross_compiling" = yes; then
8063 cat >conftest.
$ac_ext <<_ACEOF
8066 cat confdefs.h
>>conftest.
$ac_ext
8067 cat >>conftest.
$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8070 #if ((' ' & 0x0FF) == 0x020)
8071 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8072 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8074 # define ISLOWER(c) \
8075 (('a' <= (c) && (c) <= 'i') \
8076 || ('j' <= (c) && (c) <= 'r') \
8077 || ('s' <= (c) && (c) <= 'z'))
8078 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8086 for (i = 0; i < 256; i++)
8087 if (XOR (islower (i), ISLOWER (i))
8088 || toupper (i) != TOUPPER (i))
8093 rm -f conftest
$ac_exeext
8094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095 (eval $ac_link) 2>&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8106 echo "$as_me: program exited with status $ac_status" >&5
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.
$ac_ext >&5
8111 ac_cv_header_stdc
=no
8113 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8117 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8118 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8119 if test $ac_cv_header_stdc = yes; then
8121 cat >>confdefs.h
<<\_ACEOF
8122 #define STDC_HEADERS 1
8127 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8128 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8129 if test "${ac_cv_header_time+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 cat >conftest.
$ac_ext <<_ACEOF
8135 cat confdefs.h
>>conftest.
$ac_ext
8136 cat >>conftest.
$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 #include <sys/types.h>
8139 #include <sys/time.h>
8145 if ((struct tm *) 0)
8151 rm -f conftest.
$ac_objext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153 (eval $ac_compile) 2>conftest.er1
8155 grep -v '^ *+' conftest.er1
>conftest.err
8157 cat conftest.err
>&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try
='test -z "$ac_c_werror_flag"
8161 || test ! -s conftest.err'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; } &&
8167 { ac_try
='test -s conftest.$ac_objext'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 ac_cv_header_time
=yes
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.
$ac_ext >&5
8178 ac_cv_header_time
=no
8180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8183 echo "${ECHO_T}$ac_cv_header_time" >&6
8184 if test $ac_cv_header_time = yes; then
8186 cat >>confdefs.h
<<\_ACEOF
8187 #define TIME_WITH_SYS_TIME 1
8192 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8193 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8194 if test "${gcc_cv_header_string+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 cat >conftest.
$ac_ext <<_ACEOF
8200 cat confdefs.h
>>conftest.
$ac_ext
8201 cat >>conftest.
$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8204 #include <strings.h>
8213 rm -f conftest.
$ac_objext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8215 (eval $ac_compile) 2>conftest.er1
8217 grep -v '^ *+' conftest.er1
>conftest.err
8219 cat conftest.err
>&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try
='test -z "$ac_c_werror_flag"
8223 || test ! -s conftest.err'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try
='test -s conftest.$ac_objext'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8235 gcc_cv_header_string
=yes
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.
$ac_ext >&5
8240 gcc_cv_header_string
=no
8242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8244 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8245 echo "${ECHO_T}$gcc_cv_header_string" >&6
8246 if test $gcc_cv_header_string = yes; then
8248 cat >>confdefs.h
<<\_ACEOF
8249 #define STRING_WITH_STRINGS 1
8254 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8255 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8256 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 cat >conftest.
$ac_ext <<_ACEOF
8262 cat confdefs.h
>>conftest.
$ac_ext
8263 cat >>conftest.
$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 #include <sys/types.h>
8266 #include <sys/wait.h>
8268 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8271 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8279 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8284 rm -f conftest.
$ac_objext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286 (eval $ac_compile) 2>conftest.er1
8288 grep -v '^ *+' conftest.er1
>conftest.err
8290 cat conftest.err
>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try
='test -z "$ac_c_werror_flag"
8294 || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try
='test -s conftest.$ac_objext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_header_sys_wait_h
=yes
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.
$ac_ext >&5
8311 ac_cv_header_sys_wait_h
=no
8313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8315 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8316 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8317 if test $ac_cv_header_sys_wait_h = yes; then
8319 cat >>confdefs.h
<<\_ACEOF
8320 #define HAVE_SYS_WAIT_H 1
8347 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8348 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8349 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8350 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8352 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8353 echo "$as_me:$LINENO: checking for $ac_header" >&5
8354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 cat >conftest.
$ac_ext <<_ACEOF
8361 cat confdefs.h
>>conftest.
$ac_ext
8362 cat >>conftest.
$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <$ac_header>
8366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8367 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8369 grep -v '^ *+' conftest.er1
>conftest.err
8371 cat conftest.err
>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } >/dev
/null
; then
8374 if test -s conftest.err
; then
8375 ac_cpp_err
=$ac_c_preproc_warn_flag
8376 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8383 if test -z "$ac_cpp_err"; then
8384 eval "$as_ac_Header=yes"
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.
$ac_ext >&5
8389 eval "$as_ac_Header=no"
8391 rm -f conftest.err conftest.
$ac_ext
8393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8396 cat >>confdefs.h
<<_ACEOF
8397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8404 # Check for thread headers.
8405 echo "$as_me:$LINENO: checking for thread.h" >&5
8406 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8407 if test "${ac_cv_header_thread_h+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 cat >conftest.
$ac_ext <<_ACEOF
8413 cat confdefs.h
>>conftest.
$ac_ext
8414 cat >>conftest.
$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8419 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8421 grep -v '^ *+' conftest.er1
>conftest.err
8423 cat conftest.err
>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } >/dev
/null
; then
8426 if test -s conftest.err
; then
8427 ac_cpp_err
=$ac_c_preproc_warn_flag
8428 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8435 if test -z "$ac_cpp_err"; then
8436 ac_cv_header_thread_h
=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.
$ac_ext >&5
8441 ac_cv_header_thread_h
=no
8443 rm -f conftest.err conftest.
$ac_ext
8445 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8446 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8447 if test $ac_cv_header_thread_h = yes; then
8453 echo "$as_me:$LINENO: checking for pthread.h" >&5
8454 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8455 if test "${ac_cv_header_pthread_h+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 cat >conftest.
$ac_ext <<_ACEOF
8461 cat confdefs.h
>>conftest.
$ac_ext
8462 cat >>conftest.
$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 #include <pthread.h>
8466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8467 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8469 grep -v '^ *+' conftest.er1
>conftest.err
8471 cat conftest.err
>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } >/dev
/null
; then
8474 if test -s conftest.err
; then
8475 ac_cpp_err
=$ac_c_preproc_warn_flag
8476 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8483 if test -z "$ac_cpp_err"; then
8484 ac_cv_header_pthread_h
=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.
$ac_ext >&5
8489 ac_cv_header_pthread_h
=no
8491 rm -f conftest.err conftest.
$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8494 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8495 if test $ac_cv_header_pthread_h = yes; then
8502 # These tests can't be done till we know if we have limits.h.
8503 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8504 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8505 if test "${gcc_cv_decl_char_bit+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 cat >conftest.
$ac_ext <<_ACEOF
8511 cat confdefs.h
>>conftest.
$ac_ext
8512 cat >>conftest.
$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 #ifdef HAVE_LIMITS_H
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522 $EGREP "found" >/dev
/null
2>&1; then
8523 gcc_cv_decl_char_bit
=yes
8525 gcc_cv_decl_char_bit
=no
8531 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8532 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8533 if test $gcc_cv_decl_char_bit = no
; then
8534 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8535 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8536 if test "${gcc_cv_c_nbby+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 while test $i -lt 65; do
8542 cat >conftest.
$ac_ext <<_ACEOF
8545 cat confdefs.h
>>conftest.
$ac_ext
8546 cat >>conftest.
$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8553 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8554 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8560 rm -f conftest.
$ac_objext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8562 (eval $ac_compile) 2>conftest.er1
8564 grep -v '^ *+' conftest.er1
>conftest.err
8566 cat conftest.err
>&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try
='test -z "$ac_c_werror_flag"
8570 || test ! -s conftest.err'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; } &&
8576 { ac_try
='test -s conftest.$ac_objext'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 gcc_cv_c_nbby
=$i; break
8584 echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.
$ac_ext >&5
8588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8591 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8594 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8595 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8596 if test $gcc_cv_c_nbby = failed
; then
8597 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8598 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8599 { (exit 1); exit 1; }; }
8602 cat >>confdefs.h
<<_ACEOF
8603 #define CHAR_BIT $gcc_cv_c_nbby
8608 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8609 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8610 if test "${ac_cv_c_bigendian+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 # See if sys/param.h defines the BYTE_ORDER macro.
8614 cat >conftest.
$ac_ext <<_ACEOF
8617 cat confdefs.h
>>conftest.
$ac_ext
8618 cat >>conftest.
$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 #include <sys/types.h>
8621 #include <sys/param.h>
8626 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8634 rm -f conftest.
$ac_objext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8636 (eval $ac_compile) 2>conftest.er1
8638 grep -v '^ *+' conftest.er1
>conftest.err
8640 cat conftest.err
>&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try
='test -z "$ac_c_werror_flag"
8644 || test ! -s conftest.err'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; } &&
8650 { ac_try
='test -s conftest.$ac_objext'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 # It does; now see whether it defined to BIG_ENDIAN or not.
8657 cat >conftest.
$ac_ext <<_ACEOF
8660 cat confdefs.h
>>conftest.
$ac_ext
8661 cat >>conftest.
$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 #include <sys/types.h>
8664 #include <sys/param.h>
8669 #if BYTE_ORDER != BIG_ENDIAN
8677 rm -f conftest.
$ac_objext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8679 (eval $ac_compile) 2>conftest.er1
8681 grep -v '^ *+' conftest.er1
>conftest.err
8683 cat conftest.err
>&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try
='test -z "$ac_c_werror_flag"
8687 || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try
='test -s conftest.$ac_objext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_c_bigendian
=yes
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.
$ac_ext >&5
8704 ac_cv_c_bigendian
=no
8706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.
$ac_ext >&5
8711 # It does not; compile a test program.
8712 if test "$cross_compiling" = yes; then
8713 # try to guess the endianness by grepping values into an object file
8714 ac_cv_c_bigendian
=unknown
8715 cat >conftest.
$ac_ext <<_ACEOF
8718 cat confdefs.h
>>conftest.
$ac_ext
8719 cat >>conftest.
$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8722 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8723 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8724 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8725 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8726 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8730 _ascii (); _ebcdic ();
8735 rm -f conftest.
$ac_objext
8736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8737 (eval $ac_compile) 2>conftest.er1
8739 grep -v '^ *+' conftest.er1
>conftest.err
8741 cat conftest.err
>&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } &&
8744 { ac_try
='test -z "$ac_c_werror_flag"
8745 || test ! -s conftest.err'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; } &&
8751 { ac_try
='test -s conftest.$ac_objext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8758 ac_cv_c_bigendian
=yes
8760 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8761 if test "$ac_cv_c_bigendian" = unknown
; then
8762 ac_cv_c_bigendian
=no
8764 # finding both strings is unlikely to happen, but who knows?
8765 ac_cv_c_bigendian
=unknown
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.
$ac_ext >&5
8773 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8775 cat >conftest.
$ac_ext <<_ACEOF
8778 cat confdefs.h
>>conftest.
$ac_ext
8779 cat >>conftest.
$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8784 /* Are we little or big endian? From Harbison&Steele. */
8788 char c[sizeof (long)];
8791 exit (u.c[sizeof (long) - 1] == 1);
8794 rm -f conftest
$ac_exeext
8795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8796 (eval $ac_link) 2>&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_cv_c_bigendian
=no
8807 echo "$as_me: program exited with status $ac_status" >&5
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.
$ac_ext >&5
8812 ac_cv_c_bigendian
=yes
8814 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8820 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8821 case $ac_cv_c_bigendian in
8824 cat >>confdefs.h
<<\_ACEOF
8825 #define WORDS_BIGENDIAN 1
8831 { { echo "$as_me:$LINENO: error: unknown endianness
8832 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8833 echo "$as_me: error: unknown endianness
8834 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8835 { (exit 1); exit 1; }; } ;;
8844 # These libraries may be used by collect2.
8845 # We may need a special search path to get them linked.
8846 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8847 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8848 if test "${gcc_cv_collect2_libs+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 for libs
in '' -lld -lmld \
8853 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8854 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8857 cat >conftest.
$ac_ext <<_ACEOF
8860 cat confdefs.h
>>conftest.
$ac_ext
8861 cat >>conftest.
$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8864 /* Override any gcc2 internal prototype to avoid an error. */
8868 /* We use char because int might match the return type of a gcc2
8869 builtin and then its argument prototype would still apply. */
8879 rm -f conftest.
$ac_objext conftest
$ac_exeext
8880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8881 (eval $ac_link) 2>conftest.er1
8883 grep -v '^ *+' conftest.er1
>conftest.err
8885 cat conftest.err
>&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } &&
8888 { ac_try
='test -z "$ac_c_werror_flag"
8889 || test ! -s conftest.err'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; } &&
8895 { ac_try
='test -s conftest$ac_exeext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 gcc_cv_collect2_libs
="$libs"; break
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.
$ac_ext >&5
8907 rm -f conftest.err conftest.
$ac_objext \
8908 conftest
$ac_exeext conftest.
$ac_ext
8911 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8913 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8914 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8915 case $gcc_cv_collect2_libs in
8917 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8921 # When building Ada code on Alpha, we need exc_resume which is usually in
8922 # -lexc. So test for it.
8925 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8926 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8927 if test "${ac_cv_search_exc_resume+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 ac_func_search_save_LIBS
=$LIBS
8931 ac_cv_search_exc_resume
=no
8932 cat >conftest.
$ac_ext <<_ACEOF
8935 cat confdefs.h
>>conftest.
$ac_ext
8936 cat >>conftest.
$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8939 /* Override any gcc2 internal prototype to avoid an error. */
8943 /* We use char because int might match the return type of a gcc2
8944 builtin and then its argument prototype would still apply. */
8954 rm -f conftest.
$ac_objext conftest
$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>conftest.er1
8958 grep -v '^ *+' conftest.er1
>conftest.err
8960 cat conftest.err
>&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try
='test -z "$ac_c_werror_flag"
8964 || test ! -s conftest.err'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try
='test -s conftest$ac_exeext'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 ac_cv_search_exc_resume
="none required"
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.
$ac_ext >&5
8982 rm -f conftest.err conftest.
$ac_objext \
8983 conftest
$ac_exeext conftest.
$ac_ext
8984 if test "$ac_cv_search_exc_resume" = no
; then
8985 for ac_lib
in exc
; do
8986 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8987 cat >conftest.
$ac_ext <<_ACEOF
8990 cat confdefs.h
>>conftest.
$ac_ext
8991 cat >>conftest.
$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8994 /* Override any gcc2 internal prototype to avoid an error. */
8998 /* We use char because int might match the return type of a gcc2
8999 builtin and then its argument prototype would still apply. */
9009 rm -f conftest.
$ac_objext conftest
$ac_exeext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9011 (eval $ac_link) 2>conftest.er1
9013 grep -v '^ *+' conftest.er1
>conftest.err
9015 cat conftest.err
>&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try
='test -z "$ac_c_werror_flag"
9019 || test ! -s conftest.err'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; } &&
9025 { ac_try
='test -s conftest$ac_exeext'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 ac_cv_search_exc_resume
="-l$ac_lib"
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.
$ac_ext >&5
9038 rm -f conftest.err conftest.
$ac_objext \
9039 conftest
$ac_exeext conftest.
$ac_ext
9042 LIBS
=$ac_func_search_save_LIBS
9044 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9045 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9046 if test "$ac_cv_search_exc_resume" != no
; then
9047 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9055 # Some systems put ldexp and frexp in libm instead of libc; assume
9056 # they're both in the same place. jcf-dump needs them.
9059 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9060 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9061 if test "${ac_cv_search_ldexp+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 ac_func_search_save_LIBS
=$LIBS
9065 ac_cv_search_ldexp
=no
9066 cat >conftest.
$ac_ext <<_ACEOF
9069 cat confdefs.h
>>conftest.
$ac_ext
9070 cat >>conftest.
$ac_ext <<_ACEOF
9071 /* end confdefs.h. */
9073 /* Override any gcc2 internal prototype to avoid an error. */
9077 /* We use char because int might match the return type of a gcc2
9078 builtin and then its argument prototype would still apply. */
9088 rm -f conftest.
$ac_objext conftest
$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>conftest.er1
9092 grep -v '^ *+' conftest.er1
>conftest.err
9094 cat conftest.err
>&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try
='test -z "$ac_c_werror_flag"
9098 || test ! -s conftest.err'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; } &&
9104 { ac_try
='test -s conftest$ac_exeext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 ac_cv_search_ldexp
="none required"
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.
$ac_ext >&5
9116 rm -f conftest.err conftest.
$ac_objext \
9117 conftest
$ac_exeext conftest.
$ac_ext
9118 if test "$ac_cv_search_ldexp" = no
; then
9120 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9121 cat >conftest.
$ac_ext <<_ACEOF
9124 cat confdefs.h
>>conftest.
$ac_ext
9125 cat >>conftest.
$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9128 /* Override any gcc2 internal prototype to avoid an error. */
9132 /* We use char because int might match the return type of a gcc2
9133 builtin and then its argument prototype would still apply. */
9143 rm -f conftest.
$ac_objext conftest
$ac_exeext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>conftest.er1
9147 grep -v '^ *+' conftest.er1
>conftest.err
9149 cat conftest.err
>&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try
='test -z "$ac_c_werror_flag"
9153 || test ! -s conftest.err'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; } &&
9159 { ac_try
='test -s conftest$ac_exeext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_cv_search_ldexp
="-l$ac_lib"
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.
$ac_ext >&5
9172 rm -f conftest.err conftest.
$ac_objext \
9173 conftest
$ac_exeext conftest.
$ac_ext
9176 LIBS
=$ac_func_search_save_LIBS
9178 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9179 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9180 if test "$ac_cv_search_ldexp" != no
; then
9181 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9189 # Use <inttypes.h> only if it exists,
9190 # doesn't clash with <sys/types.h>, and declares intmax_t.
9191 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9192 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9193 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 cat >conftest.
$ac_ext <<_ACEOF
9199 cat confdefs.h
>>conftest.
$ac_ext
9200 cat >>conftest.
$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 #include <sys/types.h>
9203 #include <inttypes.h>
9212 rm -f conftest.
$ac_objext
9213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9214 (eval $ac_compile) 2>conftest.er1
9216 grep -v '^ *+' conftest.er1
>conftest.err
9218 cat conftest.err
>&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } &&
9221 { ac_try
='test -z "$ac_c_werror_flag"
9222 || test ! -s conftest.err'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; } &&
9228 { ac_try
='test -s conftest.$ac_objext'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; }; then
9234 gcc_cv_header_inttypes_h
=yes
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.
$ac_ext >&5
9239 gcc_cv_header_inttypes_h
=no
9241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9244 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9245 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9246 if test $gcc_cv_header_inttypes_h = yes; then
9248 cat >>confdefs.h
<<\_ACEOF
9249 #define HAVE_INTTYPES_H 1
9291 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9292 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9293 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9294 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
9296 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9297 echo "$as_me:$LINENO: checking for $ac_func" >&5
9298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9299 if eval "test \"\${$as_ac_var+set}\" = set"; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 cat >conftest.
$ac_ext <<_ACEOF
9305 cat confdefs.h
>>conftest.
$ac_ext
9306 cat >>conftest.
$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9310 #define $ac_func innocuous_$ac_func
9312 /* System header to define __stub macros and hopefully few prototypes,
9313 which can conflict with char $ac_func (); below.
9314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9315 <limits.h> exists even on freestanding compilers. */
9318 # include <limits.h>
9320 # include <assert.h>
9325 /* Override any gcc2 internal prototype to avoid an error. */
9330 /* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9333 /* The GNU C library defines this for functions which it implements
9334 to always fail with ENOSYS. Some functions are actually named
9335 something starting with __ and the normal name is an alias. */
9336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9339 char (*f) () = $ac_func;
9348 return f != $ac_func;
9353 rm -f conftest.
$ac_objext conftest
$ac_exeext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355 (eval $ac_link) 2>conftest.er1
9357 grep -v '^ *+' conftest.er1
>conftest.err
9359 cat conftest.err
>&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } &&
9362 { ac_try
='test -z "$ac_c_werror_flag"
9363 || test ! -s conftest.err'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try
='test -s conftest$ac_exeext'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 eval "$as_ac_var=yes"
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.
$ac_ext >&5
9380 eval "$as_ac_var=no"
9382 rm -f conftest.err conftest.
$ac_objext \
9383 conftest
$ac_exeext conftest.
$ac_ext
9385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9387 if test `eval echo '${'$as_ac_var'}'` = yes; then
9388 cat >>confdefs.h
<<_ACEOF
9389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9396 if test x
$ac_cv_func_mbstowcs = xyes
; then
9397 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9398 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9399 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 if test "$cross_compiling" = yes; then
9403 gcc_cv_func_mbstowcs_works
=yes
9405 cat >conftest.
$ac_ext <<_ACEOF
9408 cat confdefs.h
>>conftest.
$ac_ext
9409 cat >>conftest.
$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9418 rm -f conftest
$ac_exeext
9419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9420 (eval $ac_link) 2>&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9429 gcc_cv_func_mbstowcs_works
=yes
9431 echo "$as_me: program exited with status $ac_status" >&5
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.
$ac_ext >&5
9436 gcc_cv_func_mbstowcs_works
=no
9438 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9441 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9442 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9443 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9445 cat >>confdefs.h
<<\_ACEOF
9446 #define HAVE_WORKING_MBSTOWCS 1
9452 echo "$as_me:$LINENO: checking for ssize_t" >&5
9453 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9454 if test "${ac_cv_type_ssize_t+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 cat >conftest.
$ac_ext <<_ACEOF
9460 cat confdefs.h
>>conftest.
$ac_ext
9461 cat >>conftest.
$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 $ac_includes_default
9469 if (sizeof (ssize_t))
9475 rm -f conftest.
$ac_objext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9477 (eval $ac_compile) 2>conftest.er1
9479 grep -v '^ *+' conftest.er1
>conftest.err
9481 cat conftest.err
>&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try
='test -z "$ac_c_werror_flag"
9485 || test ! -s conftest.err'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; } &&
9491 { ac_try
='test -s conftest.$ac_objext'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9497 ac_cv_type_ssize_t
=yes
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.
$ac_ext >&5
9502 ac_cv_type_ssize_t
=no
9504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9506 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9507 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9508 if test $ac_cv_type_ssize_t = yes; then
9512 cat >>confdefs.h
<<_ACEOF
9519 # Try to determine the array type of the second argument of getgroups
9520 # for the target system (int or gid_t).
9521 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9522 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9523 if test "${ac_cv_type_uid_t+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 cat >conftest.
$ac_ext <<_ACEOF
9529 cat confdefs.h
>>conftest.
$ac_ext
9530 cat >>conftest.
$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532 #include <sys/types.h>
9535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9536 $EGREP "uid_t" >/dev
/null
2>&1; then
9537 ac_cv_type_uid_t
=yes
9544 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9545 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9546 if test $ac_cv_type_uid_t = no
; then
9548 cat >>confdefs.h
<<\_ACEOF
9553 cat >>confdefs.h
<<\_ACEOF
9559 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9560 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9561 if test "${ac_cv_type_getgroups+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 if test "$cross_compiling" = yes; then
9565 ac_cv_type_getgroups
=cross
9567 cat >conftest.
$ac_ext <<_ACEOF
9570 cat confdefs.h
>>conftest.
$ac_ext
9571 cat >>conftest.
$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 /* Thanks to Mike Rendell for this test. */
9574 #include <sys/types.h>
9577 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9584 union { gid_t gval; long lval; } val;
9587 for (i = 0; i < NGID; i++)
9588 gidset[i] = val.gval;
9589 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9591 /* Exit non-zero if getgroups seems to require an array of ints. This
9592 happens when gid_t is short but getgroups modifies an array of ints. */
9593 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9596 rm -f conftest
$ac_exeext
9597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598 (eval $ac_link) 2>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_type_getgroups
=gid_t
9609 echo "$as_me: program exited with status $ac_status" >&5
9610 echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.
$ac_ext >&5
9614 ac_cv_type_getgroups
=int
9616 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9618 if test $ac_cv_type_getgroups = cross
; then
9619 cat >conftest.
$ac_ext <<_ACEOF
9622 cat confdefs.h
>>conftest.
$ac_ext
9623 cat >>conftest.
$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9629 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9630 ac_cv_type_getgroups
=gid_t
9632 ac_cv_type_getgroups
=int
9638 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9639 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9641 cat >>confdefs.h
<<_ACEOF
9642 #define GETGROUPS_T $ac_cv_type_getgroups
9646 if test "${target}" = "${build}"; then
9647 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9650 # This condition may need some tweaking. It should include all
9651 # targets where the array type of the second argument of getgroups
9652 # is int and the type of gid_t is not equivalent to int.
9653 *-*-sunos* |
*-*-ultrix*)
9654 TARGET_GETGROUPS_T
=int
9657 TARGET_GETGROUPS_T
=gid_t
9664 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9665 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9666 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 cat >conftest.
$ac_ext <<_ACEOF
9672 cat confdefs.h
>>conftest.
$ac_ext
9673 cat >>conftest.
$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9675 #include <sys/mman.h>
9677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9678 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9680 grep -v '^ *+' conftest.er1
>conftest.err
9682 cat conftest.err
>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } >/dev
/null
; then
9685 if test -s conftest.err
; then
9686 ac_cpp_err
=$ac_c_preproc_warn_flag
9687 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9694 if test -z "$ac_cpp_err"; then
9695 ac_cv_header_sys_mman_h
=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.
$ac_ext >&5
9700 ac_cv_header_sys_mman_h
=no
9702 rm -f conftest.err conftest.
$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9705 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9706 if test $ac_cv_header_sys_mman_h = yes; then
9707 gcc_header_sys_mman_h
=yes
9709 gcc_header_sys_mman_h
=no
9712 echo "$as_me:$LINENO: checking for mmap" >&5
9713 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9714 if test "${ac_cv_func_mmap+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 cat >conftest.
$ac_ext <<_ACEOF
9720 cat confdefs.h
>>conftest.
$ac_ext
9721 cat >>conftest.
$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9723 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9725 #define mmap innocuous_mmap
9727 /* System header to define __stub macros and hopefully few prototypes,
9728 which can conflict with char mmap (); below.
9729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9730 <limits.h> exists even on freestanding compilers. */
9733 # include <limits.h>
9735 # include <assert.h>
9740 /* Override any gcc2 internal prototype to avoid an error. */
9745 /* We use char because int might match the return type of a gcc2
9746 builtin and then its argument prototype would still apply. */
9748 /* The GNU C library defines this for functions which it implements
9749 to always fail with ENOSYS. Some functions are actually named
9750 something starting with __ and the normal name is an alias. */
9751 #if defined (__stub_mmap) || defined (__stub___mmap)
9754 char (*f) () = mmap;
9768 rm -f conftest.
$ac_objext conftest
$ac_exeext
9769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9770 (eval $ac_link) 2>conftest.er1
9772 grep -v '^ *+' conftest.er1
>conftest.err
9774 cat conftest.err
>&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 { ac_try
='test -z "$ac_c_werror_flag"
9778 || test ! -s conftest.err'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; } &&
9784 { ac_try
='test -s conftest$ac_exeext'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.
$ac_ext >&5
9797 rm -f conftest.err conftest.
$ac_objext \
9798 conftest
$ac_exeext conftest.
$ac_ext
9800 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9801 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9802 if test $ac_cv_func_mmap = yes; then
9808 if test "$gcc_header_sys_mman_h" != yes \
9809 ||
test "$gcc_func_mmap" != yes; then
9810 gcc_cv_func_mmap_file
=no
9811 gcc_cv_func_mmap_dev_zero
=no
9812 gcc_cv_func_mmap_anon
=no
9814 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9815 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9816 if test "${gcc_cv_func_mmap_file+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 # Add a system to this blacklist if
9820 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9821 # memory area containing the same data that you'd get if you applied
9822 # read() to the same fd. The only system known to have a problem here
9823 # is VMS, where text files have record structure.
9826 gcc_cv_func_mmap_file
=no
;;
9828 gcc_cv_func_mmap_file
=yes;;
9831 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9832 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9833 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9834 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9835 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 # Add a system to this blacklist if it has mmap() but /dev/zero
9839 # does not exist, or if mmapping /dev/zero does not give anonymous
9840 # zeroed pages with both the following properties:
9841 # 1. If you map N consecutive pages in with one call, and then
9842 # unmap any subset of those pages, the pages that were not
9843 # explicitly unmapped remain accessible.
9844 # 2. If you map two adjacent blocks of memory and then unmap them
9845 # both at once, they must both go away.
9846 # Systems known to be in this category are Windows (all variants),
9849 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9850 gcc_cv_func_mmap_dev_zero
=no
;;
9852 gcc_cv_func_mmap_dev_zero
=yes;;
9855 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9856 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9858 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9859 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9860 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9861 if test "${gcc_cv_decl_map_anon+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 cat >conftest.
$ac_ext <<_ACEOF
9867 cat confdefs.h
>>conftest.
$ac_ext
9868 cat >>conftest.
$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 #include <sys/types.h>
9871 #include <sys/mman.h>
9874 #ifndef MAP_ANONYMOUS
9875 #define MAP_ANONYMOUS MAP_ANON
9881 int n = MAP_ANONYMOUS;
9886 rm -f conftest.
$ac_objext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9888 (eval $ac_compile) 2>conftest.er1
9890 grep -v '^ *+' conftest.er1
>conftest.err
9892 cat conftest.err
>&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try
='test -z "$ac_c_werror_flag"
9896 || test ! -s conftest.err'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try
='test -s conftest.$ac_objext'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
9908 gcc_cv_decl_map_anon
=yes
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.
$ac_ext >&5
9913 gcc_cv_decl_map_anon
=no
9915 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9917 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9918 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9920 if test $gcc_cv_decl_map_anon = no
; then
9921 gcc_cv_func_mmap_anon
=no
9923 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9924 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9925 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9929 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9930 # doesn't give anonymous zeroed pages with the same properties listed
9931 # above for use of /dev/zero.
9932 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9934 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9935 gcc_cv_func_mmap_anon
=no
;;
9937 gcc_cv_func_mmap_anon
=yes;;
9940 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9941 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9945 if test $gcc_cv_func_mmap_file = yes; then
9947 cat >>confdefs.h
<<\_ACEOF
9948 #define HAVE_MMAP_FILE 1
9952 if test $gcc_cv_func_mmap_dev_zero = yes; then
9954 cat >>confdefs.h
<<\_ACEOF
9955 #define HAVE_MMAP_DEV_ZERO 1
9959 if test $gcc_cv_func_mmap_anon = yes; then
9961 cat >>confdefs.h
<<\_ACEOF
9962 #define HAVE_MMAP_ANON 1
9970 # Under VMS, vfork works very differently than on Unix. The standard test
9971 # won't work, and it isn't easily adaptable. It makes more sense to
9973 ac_cv_func_vfork_works
=yes
9976 echo "$as_me:$LINENO: checking for pid_t" >&5
9977 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9978 if test "${ac_cv_type_pid_t+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 cat >conftest.
$ac_ext <<_ACEOF
9984 cat confdefs.h
>>conftest.
$ac_ext
9985 cat >>conftest.
$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 $ac_includes_default
9999 rm -f conftest.
$ac_objext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10001 (eval $ac_compile) 2>conftest.er1
10003 grep -v '^ *+' conftest.er1
>conftest.err
10005 cat conftest.err
>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try
='test -z "$ac_c_werror_flag"
10009 || test ! -s conftest.err'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try
='test -s conftest.$ac_objext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_type_pid_t
=yes
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.
$ac_ext >&5
10026 ac_cv_type_pid_t
=no
10028 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10030 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10031 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10032 if test $ac_cv_type_pid_t = yes; then
10036 cat >>confdefs.h
<<_ACEOF
10044 for ac_header
in unistd.h vfork.h
10046 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10047 echo "$as_me:$LINENO: checking for $ac_header" >&5
10048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 cat >conftest.
$ac_ext <<_ACEOF
10055 cat confdefs.h
>>conftest.
$ac_ext
10056 cat >>conftest.
$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 #include <$ac_header>
10060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10061 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10063 grep -v '^ *+' conftest.er1
>conftest.err
10065 cat conftest.err
>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } >/dev
/null
; then
10068 if test -s conftest.err
; then
10069 ac_cpp_err
=$ac_c_preproc_warn_flag
10070 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10077 if test -z "$ac_cpp_err"; then
10078 eval "$as_ac_Header=yes"
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.
$ac_ext >&5
10083 eval "$as_ac_Header=no"
10085 rm -f conftest.err conftest.
$ac_ext
10087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10090 cat >>confdefs.h
<<_ACEOF
10091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10099 for ac_func
in fork vfork
10101 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10102 echo "$as_me:$LINENO: checking for $ac_func" >&5
10103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10104 if eval "test \"\${$as_ac_var+set}\" = set"; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 cat >conftest.
$ac_ext <<_ACEOF
10110 cat confdefs.h
>>conftest.
$ac_ext
10111 cat >>conftest.
$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10115 #define $ac_func innocuous_$ac_func
10117 /* System header to define __stub macros and hopefully few prototypes,
10118 which can conflict with char $ac_func (); below.
10119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10120 <limits.h> exists even on freestanding compilers. */
10123 # include <limits.h>
10125 # include <assert.h>
10130 /* Override any gcc2 internal prototype to avoid an error. */
10135 /* We use char because int might match the return type of a gcc2
10136 builtin and then its argument prototype would still apply. */
10138 /* The GNU C library defines this for functions which it implements
10139 to always fail with ENOSYS. Some functions are actually named
10140 something starting with __ and the normal name is an alias. */
10141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10144 char (*f) () = $ac_func;
10153 return f != $ac_func;
10158 rm -f conftest.
$ac_objext conftest
$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160 (eval $ac_link) 2>conftest.er1
10162 grep -v '^ *+' conftest.er1
>conftest.err
10164 cat conftest.err
>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try
='test -z "$ac_c_werror_flag"
10168 || test ! -s conftest.err'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try
='test -s conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 eval "$as_ac_var=yes"
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.
$ac_ext >&5
10185 eval "$as_ac_var=no"
10187 rm -f conftest.err conftest.
$ac_objext \
10188 conftest
$ac_exeext conftest.
$ac_ext
10190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10192 if test `eval echo '${'$as_ac_var'}'` = yes; then
10193 cat >>confdefs.h
<<_ACEOF
10194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10200 if test "x$ac_cv_func_fork" = xyes
; then
10201 echo "$as_me:$LINENO: checking for working fork" >&5
10202 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10203 if test "${ac_cv_func_fork_works+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 if test "$cross_compiling" = yes; then
10207 ac_cv_func_fork_works
=cross
10209 cat >conftest.
$ac_ext <<_ACEOF
10210 /* By Ruediger Kuhlmann. */
10211 #include <sys/types.h>
10213 # include <unistd.h>
10215 /* Some systems only have a dummy stub for fork() */
10223 rm -f conftest
$ac_exeext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10225 (eval $ac_link) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 ac_cv_func_fork_works
=yes
10236 echo "$as_me: program exited with status $ac_status" >&5
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.
$ac_ext >&5
10240 ( exit $ac_status )
10241 ac_cv_func_fork_works
=no
10243 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10246 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10247 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10250 ac_cv_func_fork_works
=$ac_cv_func_fork
10252 if test "x$ac_cv_func_fork_works" = xcross
; then
10254 *-*-amigaos* |
*-*-msdosdjgpp*)
10255 # Override, as these systems have only a dummy fork() stub
10256 ac_cv_func_fork_works
=no
10259 ac_cv_func_fork_works
=yes
10262 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10263 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10265 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10266 if test "x$ac_cv_func_vfork" = xyes
; then
10267 echo "$as_me:$LINENO: checking for working vfork" >&5
10268 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10269 if test "${ac_cv_func_vfork_works+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 if test "$cross_compiling" = yes; then
10273 ac_cv_func_vfork_works
=cross
10275 cat >conftest.
$ac_ext <<_ACEOF
10278 cat confdefs.h
>>conftest.
$ac_ext
10279 cat >>conftest.
$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 /* Thanks to Paul Eggert for this test. */
10283 #include <stdlib.h>
10284 #include <sys/types.h>
10285 #include <sys/stat.h>
10286 #include <sys/wait.h>
10288 # include <unistd.h>
10291 # include <vfork.h>
10293 /* On some sparc systems, changes by the child to local and incoming
10294 argument registers are propagated back to the parent. The compiler
10295 is told about this with #include <vfork.h>, but some compilers
10296 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10297 static variable whose address is put into a register that is
10298 clobbered by the vfork. */
10301 sparc_address_test (int arg)
10303 sparc_address_test (arg) int arg;
10306 static pid_t child;
10324 pid_t parent = getpid ();
10327 sparc_address_test (0);
10332 /* Here is another test for sparc vfork register problems. This
10333 test uses lots of local variables, at least as many local
10334 variables as main has allocated so far including compiler
10335 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10336 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10337 reuse the register of parent for one of the local variables,
10338 since it will think that parent can't possibly be used any more
10339 in this routine. Assigning to the local variable will thus
10340 munge parent in the parent process. */
10342 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10343 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10344 /* Convince the compiler that p..p7 are live; otherwise, it might
10345 use the same hardware register for all 8 local variables. */
10346 if (p != p1 || p != p2 || p != p3 || p != p4
10347 || p != p5 || p != p6 || p != p7)
10350 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10351 from child file descriptors. If the child closes a descriptor
10352 before it execs or exits, this munges the parent's descriptor
10353 as well. Test for this by closing stdout in the child. */
10354 _exit(close(fileno(stdout)) != 0);
10359 while (wait(&status) != child)
10362 /* Was there some problem with vforking? */
10365 /* Did the child fail? (This shouldn't happen.) */
10368 /* Did the vfork/compiler bug occur? */
10369 || parent != getpid()
10371 /* Did the file descriptor bug occur? */
10372 || fstat(fileno(stdout), &st) != 0
10377 rm -f conftest
$ac_exeext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379 (eval $ac_link) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 ac_cv_func_vfork_works
=yes
10390 echo "$as_me: program exited with status $ac_status" >&5
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.
$ac_ext >&5
10394 ( exit $ac_status )
10395 ac_cv_func_vfork_works
=no
10397 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10400 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10401 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10404 if test "x$ac_cv_func_fork_works" = xcross
; then
10405 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10406 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10407 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10410 if test "x$ac_cv_func_vfork_works" = xyes
; then
10412 cat >>confdefs.h
<<\_ACEOF
10413 #define HAVE_WORKING_VFORK 1
10418 cat >>confdefs.h
<<\_ACEOF
10423 if test "x$ac_cv_func_fork_works" = xyes
; then
10425 cat >>confdefs.h
<<\_ACEOF
10426 #define HAVE_WORKING_FORK 1
10433 if test "X$prefix" = "XNONE"; then
10434 acl_final_prefix
="$ac_default_prefix"
10436 acl_final_prefix
="$prefix"
10438 if test "X$exec_prefix" = "XNONE"; then
10439 acl_final_exec_prefix
='${prefix}'
10441 acl_final_exec_prefix
="$exec_prefix"
10443 acl_save_prefix
="$prefix"
10444 prefix
="$acl_final_prefix"
10445 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10446 prefix
="$acl_save_prefix"
10449 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10450 if test "${with_gnu_ld+set}" = set; then
10451 withval
="$with_gnu_ld"
10452 test "$withval" = no || with_gnu_ld
=yes
10456 # Prepare PATH_SEPARATOR.
10457 # The user is always right.
10458 if test "${PATH_SEPARATOR+set}" != set; then
10459 echo "#! /bin/sh" >conf$$.sh
10460 echo "exit 0" >>conf$$.sh
10462 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10470 if test "$GCC" = yes; then
10471 # Check if gcc -print-prog-name=ld gives a path.
10472 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10473 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10476 # gcc leaves a trailing carriage return which upsets mingw
10477 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10479 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10482 # Accept absolute paths.
10483 [\\/]* |
[A-Za-z
]:[\\/]*)
10484 re_direlt
='/[^/][^/]*/\.\./'
10485 # Canonicalize the path of ld
10486 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10487 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10488 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10490 test -z "$LD" && LD
="$ac_prog"
10493 # If it fails, then pretend we aren't using GCC.
10497 # If it is relative, then search for the first ld in PATH.
10498 with_gnu_ld
=unknown
10501 elif test "$with_gnu_ld" = yes; then
10502 echo "$as_me:$LINENO: checking for GNU ld" >&5
10503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10505 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10508 if test "${acl_cv_path_LD+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 if test -z "$LD"; then
10512 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10513 for ac_dir
in $PATH; do
10514 test -z "$ac_dir" && ac_dir
=.
10515 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10516 acl_cv_path_LD
="$ac_dir/$ac_prog"
10517 # Check to see if the program is GNU ld. I'd rather use --version,
10518 # but apparently some GNU ld's only accept -v.
10519 # Break only if it was the GNU/non-GNU ld that we prefer.
10520 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10521 test "$with_gnu_ld" != no
&& break
10523 test "$with_gnu_ld" != yes && break
10529 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10533 LD
="$acl_cv_path_LD"
10534 if test -n "$LD"; then
10535 echo "$as_me:$LINENO: result: $LD" >&5
10536 echo "${ECHO_T}$LD" >&6
10538 echo "$as_me:$LINENO: result: no" >&5
10539 echo "${ECHO_T}no" >&6
10541 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10542 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10543 { (exit 1); exit 1; }; }
10544 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10545 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10546 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10550 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10551 acl_cv_prog_gnu_ld
=yes
10553 acl_cv_prog_gnu_ld
=no
10556 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10557 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10558 with_gnu_ld
=$acl_cv_prog_gnu_ld
10562 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10563 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10564 if test "${acl_cv_rpath+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10569 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10571 rm -f .
/conftest.sh
10575 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10576 echo "${ECHO_T}$acl_cv_rpath" >&6
10578 libext
="$acl_cv_libext"
10579 shlibext
="$acl_cv_shlibext"
10580 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10581 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10582 hardcode_direct
="$acl_cv_hardcode_direct"
10583 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10584 # Check whether --enable-rpath or --disable-rpath was given.
10585 if test "${enable_rpath+set}" = set; then
10586 enableval
="$enable_rpath"
10600 acl_save_prefix
="$prefix"
10601 prefix
="$acl_final_prefix"
10602 acl_save_exec_prefix
="$exec_prefix"
10603 exec_prefix
="$acl_final_exec_prefix"
10605 eval additional_includedir
=\"$includedir\"
10606 eval additional_libdir
=\"$libdir\"
10608 exec_prefix
="$acl_save_exec_prefix"
10609 prefix
="$acl_save_prefix"
10612 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10613 if test "${with_libiconv_prefix+set}" = set; then
10614 withval
="$with_libiconv_prefix"
10616 if test "X$withval" = "Xno"; then
10619 if test "X$withval" = "X"; then
10621 acl_save_prefix
="$prefix"
10622 prefix
="$acl_final_prefix"
10623 acl_save_exec_prefix
="$exec_prefix"
10624 exec_prefix
="$acl_final_exec_prefix"
10626 eval additional_includedir
=\"$includedir\"
10627 eval additional_libdir
=\"$libdir\"
10629 exec_prefix
="$acl_save_exec_prefix"
10630 prefix
="$acl_save_prefix"
10633 additional_includedir
="$withval/include"
10634 additional_libdir
="$withval/lib"
10644 names_already_handled
=
10645 names_next_round
='iconv '
10646 while test -n "$names_next_round"; do
10647 names_this_round
="$names_next_round"
10649 for name
in $names_this_round; do
10651 for n
in $names_already_handled; do
10652 if test "$n" = "$name"; then
10653 already_handled
=yes
10657 if test -z "$already_handled"; then
10658 names_already_handled
="$names_already_handled $name"
10659 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10660 eval value
=\"\
$HAVE_LIB$uppername\"
10661 if test -n "$value"; then
10662 if test "$value" = yes; then
10663 eval value
=\"\
$LIB$uppername\"
10664 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10665 eval value
=\"\
$LTLIB$uppername\"
10666 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10675 if test $use_additional = yes; then
10676 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10677 found_dir
="$additional_libdir"
10678 found_so
="$additional_libdir/lib$name.$shlibext"
10679 if test -f "$additional_libdir/lib$name.la"; then
10680 found_la
="$additional_libdir/lib$name.la"
10683 if test -f "$additional_libdir/lib$name.$libext"; then
10684 found_dir
="$additional_libdir"
10685 found_a
="$additional_libdir/lib$name.$libext"
10686 if test -f "$additional_libdir/lib$name.la"; then
10687 found_la
="$additional_libdir/lib$name.la"
10692 if test "X$found_dir" = "X"; then
10693 for x
in $LDFLAGS $LTLIBICONV; do
10695 acl_save_prefix
="$prefix"
10696 prefix
="$acl_final_prefix"
10697 acl_save_exec_prefix
="$exec_prefix"
10698 exec_prefix
="$acl_final_exec_prefix"
10700 exec_prefix
="$acl_save_exec_prefix"
10701 prefix
="$acl_save_prefix"
10705 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10706 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10708 found_so
="$dir/lib$name.$shlibext"
10709 if test -f "$dir/lib$name.la"; then
10710 found_la
="$dir/lib$name.la"
10713 if test -f "$dir/lib$name.$libext"; then
10715 found_a
="$dir/lib$name.$libext"
10716 if test -f "$dir/lib$name.la"; then
10717 found_la
="$dir/lib$name.la"
10723 if test "X$found_dir" != "X"; then
10728 if test "X$found_dir" != "X"; then
10729 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10730 if test "X$found_so" != "X"; then
10731 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10732 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10735 for x
in $ltrpathdirs; do
10736 if test "X$x" = "X$found_dir"; then
10741 if test -z "$haveit"; then
10742 ltrpathdirs
="$ltrpathdirs $found_dir"
10744 if test "$hardcode_direct" = yes; then
10745 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10747 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10748 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10750 for x
in $rpathdirs; do
10751 if test "X$x" = "X$found_dir"; then
10756 if test -z "$haveit"; then
10757 rpathdirs
="$rpathdirs $found_dir"
10761 for x
in $LDFLAGS $LIBICONV; do
10763 acl_save_prefix
="$prefix"
10764 prefix
="$acl_final_prefix"
10765 acl_save_exec_prefix
="$exec_prefix"
10766 exec_prefix
="$acl_final_exec_prefix"
10768 exec_prefix
="$acl_save_exec_prefix"
10769 prefix
="$acl_save_prefix"
10771 if test "X$x" = "X-L$found_dir"; then
10776 if test -z "$haveit"; then
10777 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10779 if test "$hardcode_minus_L" != no
; then
10780 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10782 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10788 if test "X$found_a" != "X"; then
10789 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10791 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10794 additional_includedir
=
10795 case "$found_dir" in
10797 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10798 additional_includedir
="$basedir/include"
10801 if test "X$additional_includedir" != "X"; then
10802 if test "X$additional_includedir" != "X/usr/include"; then
10804 if test "X$additional_includedir" = "X/usr/local/include"; then
10805 if test -n "$GCC"; then
10807 linux
*) haveit
=yes;;
10811 if test -z "$haveit"; then
10812 for x
in $CPPFLAGS $INCICONV; do
10814 acl_save_prefix
="$prefix"
10815 prefix
="$acl_final_prefix"
10816 acl_save_exec_prefix
="$exec_prefix"
10817 exec_prefix
="$acl_final_exec_prefix"
10819 exec_prefix
="$acl_save_exec_prefix"
10820 prefix
="$acl_save_prefix"
10822 if test "X$x" = "X-I$additional_includedir"; then
10827 if test -z "$haveit"; then
10828 if test -d "$additional_includedir"; then
10829 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10835 if test -n "$found_la"; then
10836 save_libdir
="$libdir"
10837 case "$found_la" in
10838 */* |
*\\*) .
"$found_la" ;;
10839 *) .
"./$found_la" ;;
10841 libdir
="$save_libdir"
10842 for dep
in $dependency_libs; do
10845 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10846 if test "X$additional_libdir" != "X/usr/lib"; then
10848 if test "X$additional_libdir" = "X/usr/local/lib"; then
10849 if test -n "$GCC"; then
10851 linux
*) haveit
=yes;;
10855 if test -z "$haveit"; then
10857 for x
in $LDFLAGS $LIBICONV; do
10859 acl_save_prefix
="$prefix"
10860 prefix
="$acl_final_prefix"
10861 acl_save_exec_prefix
="$exec_prefix"
10862 exec_prefix
="$acl_final_exec_prefix"
10864 exec_prefix
="$acl_save_exec_prefix"
10865 prefix
="$acl_save_prefix"
10867 if test "X$x" = "X-L$additional_libdir"; then
10872 if test -z "$haveit"; then
10873 if test -d "$additional_libdir"; then
10874 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10878 for x
in $LDFLAGS $LTLIBICONV; do
10880 acl_save_prefix
="$prefix"
10881 prefix
="$acl_final_prefix"
10882 acl_save_exec_prefix
="$exec_prefix"
10883 exec_prefix
="$acl_final_exec_prefix"
10885 exec_prefix
="$acl_save_exec_prefix"
10886 prefix
="$acl_save_prefix"
10888 if test "X$x" = "X-L$additional_libdir"; then
10893 if test -z "$haveit"; then
10894 if test -d "$additional_libdir"; then
10895 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10902 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10903 if test "$enable_rpath" != no
; then
10905 for x
in $rpathdirs; do
10906 if test "X$x" = "X$dir"; then
10911 if test -z "$haveit"; then
10912 rpathdirs
="$rpathdirs $dir"
10915 for x
in $ltrpathdirs; do
10916 if test "X$x" = "X$dir"; then
10921 if test -z "$haveit"; then
10922 ltrpathdirs
="$ltrpathdirs $dir"
10927 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10930 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10933 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10934 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10940 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10941 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10947 if test "X$rpathdirs" != "X"; then
10948 if test -n "$hardcode_libdir_separator"; then
10950 for found_dir
in $rpathdirs; do
10951 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10953 acl_save_libdir
="$libdir"
10955 eval flag
=\"$hardcode_libdir_flag_spec\"
10956 libdir
="$acl_save_libdir"
10957 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10959 for found_dir
in $rpathdirs; do
10960 acl_save_libdir
="$libdir"
10961 libdir
="$found_dir"
10962 eval flag
=\"$hardcode_libdir_flag_spec\"
10963 libdir
="$acl_save_libdir"
10964 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10968 if test "X$ltrpathdirs" != "X"; then
10969 for found_dir
in $ltrpathdirs; do
10970 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10980 am_save_CPPFLAGS
="$CPPFLAGS"
10982 for element
in $INCICONV; do
10984 for x
in $CPPFLAGS; do
10986 acl_save_prefix
="$prefix"
10987 prefix
="$acl_final_prefix"
10988 acl_save_exec_prefix
="$exec_prefix"
10989 exec_prefix
="$acl_final_exec_prefix"
10991 exec_prefix
="$acl_save_exec_prefix"
10992 prefix
="$acl_save_prefix"
10994 if test "X$x" = "X$element"; then
10999 if test -z "$haveit"; then
11000 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11005 echo "$as_me:$LINENO: checking for iconv" >&5
11006 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11007 if test "${am_cv_func_iconv+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 am_cv_func_iconv
="no, consider installing GNU libiconv"
11013 cat >conftest.
$ac_ext <<_ACEOF
11016 cat confdefs.h
>>conftest.
$ac_ext
11017 cat >>conftest.
$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11019 #include <stdlib.h>
11024 iconv_t cd = iconv_open("","");
11025 iconv(cd,NULL,NULL,NULL,NULL);
11031 rm -f conftest.
$ac_objext conftest
$ac_exeext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11033 (eval $ac_link) 2>conftest.er1
11035 grep -v '^ *+' conftest.er1
>conftest.err
11037 cat conftest.err
>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try
='test -z "$ac_c_werror_flag"
11041 || test ! -s conftest.err'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try
='test -s conftest$ac_exeext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 am_cv_func_iconv
=yes
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.
$ac_ext >&5
11059 rm -f conftest.err conftest.
$ac_objext \
11060 conftest
$ac_exeext conftest.
$ac_ext
11061 if test "$am_cv_func_iconv" != yes; then
11062 am_save_LIBS
="$LIBS"
11063 LIBS
="$LIBS $LIBICONV"
11064 cat >conftest.
$ac_ext <<_ACEOF
11067 cat confdefs.h
>>conftest.
$ac_ext
11068 cat >>conftest.
$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #include <stdlib.h>
11075 iconv_t cd = iconv_open("","");
11076 iconv(cd,NULL,NULL,NULL,NULL);
11082 rm -f conftest.
$ac_objext conftest
$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>conftest.er1
11086 grep -v '^ *+' conftest.er1
>conftest.err
11088 cat conftest.err
>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try
='test -z "$ac_c_werror_flag"
11092 || test ! -s conftest.err'
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try
='test -s conftest$ac_exeext'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 am_cv_lib_iconv
=yes
11105 am_cv_func_iconv
=yes
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.
$ac_ext >&5
11111 rm -f conftest.err conftest.
$ac_objext \
11112 conftest
$ac_exeext conftest.
$ac_ext
11113 LIBS
="$am_save_LIBS"
11117 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11118 echo "${ECHO_T}$am_cv_func_iconv" >&6
11119 if test "$am_cv_func_iconv" = yes; then
11121 cat >>confdefs.h
<<\_ACEOF
11122 #define HAVE_ICONV 1
11126 if test "$am_cv_lib_iconv" = yes; then
11127 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11128 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11129 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11130 echo "${ECHO_T}$LIBICONV" >&6
11132 CPPFLAGS
="$am_save_CPPFLAGS"
11139 if test "$am_cv_func_iconv" = yes; then
11140 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11141 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11142 if test "${am_cv_proto_iconv+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 cat >conftest.
$ac_ext <<_ACEOF
11149 cat confdefs.h
>>conftest.
$ac_ext
11150 cat >>conftest.
$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11153 #include <stdlib.h>
11159 #if defined(__STDC__) || defined(__cplusplus)
11160 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11173 rm -f conftest.
$ac_objext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11175 (eval $ac_compile) 2>conftest.er1
11177 grep -v '^ *+' conftest.er1
>conftest.err
11179 cat conftest.err
>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try
='test -z "$ac_c_werror_flag"
11183 || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try
='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 am_cv_proto_iconv_arg1
=""
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.
$ac_ext >&5
11200 am_cv_proto_iconv_arg1
="const"
11202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11203 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);"
11206 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11207 echo "$as_me:$LINENO: result: ${ac_t:-
11208 }$am_cv_proto_iconv" >&5
11209 echo "${ECHO_T}${ac_t:-
11210 }$am_cv_proto_iconv" >&6
11212 cat >>confdefs.h
<<_ACEOF
11213 #define ICONV_CONST $am_cv_proto_iconv_arg1
11218 # Until we have in-tree GNU iconv:
11223 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11224 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11225 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 cat >conftest.
$ac_ext <<_ACEOF
11231 cat confdefs.h
>>conftest.
$ac_ext
11232 cat >>conftest.
$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 #include <locale.h>
11243 rm -f conftest.
$ac_objext conftest
$ac_exeext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245 (eval $ac_link) 2>conftest.er1
11247 grep -v '^ *+' conftest.er1
>conftest.err
11249 cat conftest.err
>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try
='test -z "$ac_c_werror_flag"
11253 || test ! -s conftest.err'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; } &&
11259 { ac_try
='test -s conftest$ac_exeext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 am_cv_val_LC_MESSAGES
=yes
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.
$ac_ext >&5
11270 am_cv_val_LC_MESSAGES
=no
11272 rm -f conftest.err conftest.
$ac_objext \
11273 conftest
$ac_exeext conftest.
$ac_ext
11275 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11276 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11277 if test $am_cv_val_LC_MESSAGES = yes; then
11279 cat >>confdefs.h
<<\_ACEOF
11280 #define HAVE_LC_MESSAGES 1
11287 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11288 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11289 if test "${am_cv_langinfo_codeset+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 cat >conftest.
$ac_ext <<_ACEOF
11295 cat confdefs.h
>>conftest.
$ac_ext
11296 cat >>conftest.
$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 #include <langinfo.h>
11302 char* cs = nl_langinfo(CODESET);
11307 rm -f conftest.
$ac_objext conftest
$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>conftest.er1
11311 grep -v '^ *+' conftest.er1
>conftest.err
11313 cat conftest.err
>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try
='test -z "$ac_c_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try
='test -s conftest$ac_exeext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 am_cv_langinfo_codeset
=yes
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.
$ac_ext >&5
11334 am_cv_langinfo_codeset
=no
11336 rm -f conftest.err conftest.
$ac_objext \
11337 conftest
$ac_exeext conftest.
$ac_ext
11340 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11341 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11342 if test $am_cv_langinfo_codeset = yes; then
11344 cat >>confdefs.h
<<\_ACEOF
11345 #define HAVE_LANGINFO_CODESET 1
11351 # We will need to find libiberty.h and ansidecl.h
11352 saved_CFLAGS
="$CFLAGS"
11353 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11393 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11394 strsignal strstr strverscmp \
11395 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11396 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
11398 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11399 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11400 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11401 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 cat >conftest.
$ac_ext <<_ACEOF
11407 cat confdefs.h
>>conftest.
$ac_ext
11408 cat >>conftest.
$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11411 #define $ac_tr_decl 1
11413 #include "ansidecl.h"
11414 #include "system.h"
11420 char *(*pfn) = (char *(*)) $ac_func ;
11426 rm -f conftest.
$ac_objext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11428 (eval $ac_compile) 2>conftest.er1
11430 grep -v '^ *+' conftest.er1
>conftest.err
11432 cat conftest.err
>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try
='test -z "$ac_c_werror_flag"
11436 || test ! -s conftest.err'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try
='test -s conftest.$ac_objext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 eval "gcc_cv_have_decl_$ac_func=yes"
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.
$ac_ext >&5
11453 eval "gcc_cv_have_decl_$ac_func=no"
11455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11458 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11459 echo "$as_me:$LINENO: result: yes" >&5
11460 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11461 #define $ac_tr_decl 1
11465 echo "$as_me:$LINENO: result: no" >&5
11466 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11467 #define $ac_tr_decl 0
11478 for ac_func
in getrlimit setrlimit getrusage
11480 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11481 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11482 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11483 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 cat >conftest.
$ac_ext <<_ACEOF
11489 cat confdefs.h
>>conftest.
$ac_ext
11490 cat >>conftest.
$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11493 #define $ac_tr_decl 1
11495 #include "ansidecl.h"
11496 #include "system.h"
11497 #ifdef HAVE_SYS_RESOURCE_H
11498 #include <sys/resource.h>
11506 char *(*pfn) = (char *(*)) $ac_func ;
11512 rm -f conftest.
$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>conftest.er1
11516 grep -v '^ *+' conftest.er1
>conftest.err
11518 cat conftest.err
>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try
='test -z "$ac_c_werror_flag"
11522 || test ! -s conftest.err'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try
='test -s conftest.$ac_objext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 eval "gcc_cv_have_decl_$ac_func=yes"
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.
$ac_ext >&5
11539 eval "gcc_cv_have_decl_$ac_func=no"
11541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11544 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11545 echo "$as_me:$LINENO: result: yes" >&5
11546 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11547 #define $ac_tr_decl 1
11551 echo "$as_me:$LINENO: result: no" >&5
11552 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11553 #define $ac_tr_decl 0
11561 cat >conftest.
$ac_ext <<_ACEOF
11564 cat confdefs.h
>>conftest.
$ac_ext
11565 cat >>conftest.
$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11568 #include "ansidecl.h"
11569 #include "system.h"
11570 #ifdef HAVE_SYS_RESOURCE_H
11571 #include <sys/resource.h>
11582 rm -f conftest.
$ac_objext
11583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11584 (eval $ac_compile) 2>conftest.er1
11586 grep -v '^ *+' conftest.er1
>conftest.err
11588 cat conftest.err
>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } &&
11591 { ac_try
='test -z "$ac_c_werror_flag"
11592 || test ! -s conftest.err'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; } &&
11598 { ac_try
='test -s conftest.$ac_objext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.
$ac_ext >&5
11610 cat >>confdefs.h
<<\_ACEOF
11611 #define rlim_t long
11615 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11617 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11618 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11619 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11620 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11622 for ac_func
in ldgetname
11624 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11625 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11626 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11627 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 cat >conftest.
$ac_ext <<_ACEOF
11633 cat confdefs.h
>>conftest.
$ac_ext
11634 cat >>conftest.
$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11637 #define $ac_tr_decl 1
11639 #include "ansidecl.h"
11640 #include "system.h"
11641 #ifdef HAVE_LDFCN_H
11652 char *(*pfn) = (char *(*)) $ac_func ;
11658 rm -f conftest.
$ac_objext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11660 (eval $ac_compile) 2>conftest.er1
11662 grep -v '^ *+' conftest.er1
>conftest.err
11664 cat conftest.err
>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try
='test -z "$ac_c_werror_flag"
11668 || test ! -s conftest.err'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try
='test -s conftest.$ac_objext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 eval "gcc_cv_have_decl_$ac_func=yes"
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.
$ac_ext >&5
11685 eval "gcc_cv_have_decl_$ac_func=no"
11687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11690 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11691 echo "$as_me:$LINENO: result: yes" >&5
11692 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11693 #define $ac_tr_decl 1
11697 echo "$as_me:$LINENO: result: no" >&5
11698 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11699 #define $ac_tr_decl 0
11708 for ac_func
in times
11710 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11711 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11712 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11713 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 cat >conftest.
$ac_ext <<_ACEOF
11719 cat confdefs.h
>>conftest.
$ac_ext
11720 cat >>conftest.
$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11723 #define $ac_tr_decl 1
11725 #include "ansidecl.h"
11726 #include "system.h"
11727 #ifdef HAVE_SYS_TIMES_H
11728 #include <sys/times.h>
11736 char *(*pfn) = (char *(*)) $ac_func ;
11742 rm -f conftest.
$ac_objext
11743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11744 (eval $ac_compile) 2>conftest.er1
11746 grep -v '^ *+' conftest.er1
>conftest.err
11748 cat conftest.err
>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try
='test -z "$ac_c_werror_flag"
11752 || test ! -s conftest.err'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try
='test -s conftest.$ac_objext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 eval "gcc_cv_have_decl_$ac_func=yes"
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.
$ac_ext >&5
11769 eval "gcc_cv_have_decl_$ac_func=no"
11771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11774 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11775 echo "$as_me:$LINENO: result: yes" >&5
11776 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11777 #define $ac_tr_decl 1
11781 echo "$as_me:$LINENO: result: no" >&5
11782 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11783 #define $ac_tr_decl 0
11792 for ac_func
in sigaltstack
11794 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11795 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11796 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11797 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 cat >conftest.
$ac_ext <<_ACEOF
11803 cat confdefs.h
>>conftest.
$ac_ext
11804 cat >>conftest.
$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11807 #define $ac_tr_decl 1
11809 #include "ansidecl.h"
11810 #include "system.h"
11811 #include <signal.h>
11818 char *(*pfn) = (char *(*)) $ac_func ;
11824 rm -f conftest.
$ac_objext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11826 (eval $ac_compile) 2>conftest.er1
11828 grep -v '^ *+' conftest.er1
>conftest.err
11830 cat conftest.err
>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try
='test -z "$ac_c_werror_flag"
11834 || test ! -s conftest.err'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try
='test -s conftest.$ac_objext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 eval "gcc_cv_have_decl_$ac_func=yes"
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.
$ac_ext >&5
11851 eval "gcc_cv_have_decl_$ac_func=no"
11853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11856 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11857 echo "$as_me:$LINENO: result: yes" >&5
11858 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11859 #define $ac_tr_decl 1
11863 echo "$as_me:$LINENO: result: no" >&5
11864 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11865 #define $ac_tr_decl 0
11873 # More time-related stuff.
11874 echo "$as_me:$LINENO: checking for struct tms" >&5
11875 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11876 if test "${ac_cv_struct_tms+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 cat >conftest.
$ac_ext <<_ACEOF
11883 cat confdefs.h
>>conftest.
$ac_ext
11884 cat >>conftest.
$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11887 #include "ansidecl.h"
11888 #include "system.h"
11889 #ifdef HAVE_SYS_TIMES_H
11890 #include <sys/times.h>
11901 rm -f conftest.
$ac_objext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11903 (eval $ac_compile) 2>conftest.er1
11905 grep -v '^ *+' conftest.er1
>conftest.err
11907 cat conftest.err
>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try
='test -z "$ac_c_werror_flag"
11911 || test ! -s conftest.err'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try
='test -s conftest.$ac_objext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 ac_cv_struct_tms
=yes
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.
$ac_ext >&5
11928 ac_cv_struct_tms
=no
11930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11932 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11933 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11934 if test $ac_cv_struct_tms = yes; then
11936 cat >>confdefs.h
<<\_ACEOF
11937 #define HAVE_STRUCT_TMS 1
11942 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11943 # revisit after autoconf 2.50.
11944 echo "$as_me:$LINENO: checking for clock_t" >&5
11945 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11946 if test "${gcc_cv_type_clock_t+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 cat >conftest.
$ac_ext <<_ACEOF
11953 cat confdefs.h
>>conftest.
$ac_ext
11954 cat >>conftest.
$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11957 #include "ansidecl.h"
11958 #include "system.h"
11968 rm -f conftest.
$ac_objext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970 (eval $ac_compile) 2>conftest.er1
11972 grep -v '^ *+' conftest.er1
>conftest.err
11974 cat conftest.err
>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try
='test -z "$ac_c_werror_flag"
11978 || test ! -s conftest.err'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try
='test -s conftest.$ac_objext'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 gcc_cv_type_clock_t
=yes
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.
$ac_ext >&5
11995 gcc_cv_type_clock_t
=no
11997 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11999 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12000 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12001 if test $gcc_cv_type_clock_t = yes; then
12003 cat >>confdefs.h
<<\_ACEOF
12004 #define HAVE_CLOCK_T 1
12009 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12010 CFLAGS
="$saved_CFLAGS"
12012 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12013 if test "${enable_initfini_array+set}" = set; then
12014 enableval
="$enable_initfini_array"
12018 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12019 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12020 if test "${gcc_cv_initfini_array+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 if test "$cross_compiling" = yes; then
12024 gcc_cv_initfini_array
=no
12026 cat >conftest.
$ac_ext <<_ACEOF
12029 cat confdefs.h
>>conftest.
$ac_ext
12030 cat >>conftest.
$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12034 int main (void) { return x; }
12035 int foo (void) { x = 0; }
12036 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12038 rm -f conftest
$ac_exeext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12040 (eval $ac_link) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 gcc_cv_initfini_array
=yes
12051 echo "$as_me: program exited with status $ac_status" >&5
12052 echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.
$ac_ext >&5
12055 ( exit $ac_status )
12056 gcc_cv_initfini_array
=no
12058 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12061 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12062 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12063 enable_initfini_array
=$gcc_cv_initfini_array
12066 if test $enable_initfini_array = yes; then
12068 cat >>confdefs.h
<<\_ACEOF
12069 #define HAVE_INITFINI_ARRAY 1
12074 # mkdir takes a single argument on some systems.
12075 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12076 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12077 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 cat >conftest.
$ac_ext <<_ACEOF
12083 cat confdefs.h
>>conftest.
$ac_ext
12084 cat >>conftest.
$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12087 #include <sys/types.h>
12088 #ifdef HAVE_SYS_STAT_H
12089 # include <sys/stat.h>
12091 #ifdef HAVE_UNISTD_H
12092 # include <unistd.h>
12094 #ifdef HAVE_DIRECT_H
12095 # include <direct.h>
12105 rm -f conftest.
$ac_objext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12107 (eval $ac_compile) 2>conftest.er1
12109 grep -v '^ *+' conftest.er1
>conftest.err
12111 cat conftest.err
>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try
='test -z "$ac_c_werror_flag"
12115 || test ! -s conftest.err'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try
='test -s conftest.$ac_objext'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 gcc_cv_mkdir_takes_one_arg
=no
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.
$ac_ext >&5
12132 gcc_cv_mkdir_takes_one_arg
=yes
12134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12136 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12137 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12138 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12140 cat >>confdefs.h
<<\_ACEOF
12141 #define MKDIR_TAKES_ONE_ARG 1
12153 # With Setjmp/Longjmp based exception handling.
12154 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12155 if test "${enable_sjlj_exceptions+set}" = set; then
12156 enableval
="$enable_sjlj_exceptions"
12157 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12159 cat >>confdefs.h
<<_ACEOF
12160 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12165 # For platforms with the unwind ABI which includes an unwind library,
12166 # libunwind, we can choose to use the system libunwind.
12168 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12169 if test "${with_system_libunwind+set}" = set; then
12170 withval
="$with_system_libunwind"
12174 # config.gcc also contains tests of with_system_libunwind.
12175 if test x
$with_system_libunwind = xyes
; then
12177 cat >>confdefs.h
<<\_ACEOF
12178 #define HAVE_GETIPINFO 1
12183 # --------------------------------------------------------
12184 # Build, host, and target specific configuration fragments
12185 # --------------------------------------------------------
12187 # Collect build-machine-specific information.
12188 .
${srcdir}/config.build
12190 # Collect host-machine-specific information.
12191 .
${srcdir}/config.
host
12195 # Collect target-machine-specific information.
12196 .
${srcdir}/config.gcc
12198 extra_objs
="${host_extra_objs} ${extra_objs}"
12199 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12201 # Default the target-machine variables that were not explicitly set.
12202 if test x
"$tm_file" = x
12203 then tm_file
=$cpu_type/$cpu_type.h
; fi
12205 if test x
"$extra_headers" = x
12206 then extra_headers
=; fi
12208 if test x
$md_file = x
12209 then md_file
=$cpu_type/$cpu_type.md
; fi
12211 if test x
$out_file = x
12212 then out_file
=$cpu_type/$cpu_type.c
; fi
12214 if test x
"$tmake_file" = x
12215 then tmake_file
=$cpu_type/t-
$cpu_type
12218 if test x
"$dwarf2" = xyes
12219 then tm_file
="$tm_file tm-dwarf2.h"
12222 # Say what files are being used for the output code and MD file.
12223 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12224 echo "Using \`$srcdir/config/$md_file' as machine description file."
12226 # If any of the xm_file variables contain nonexistent files, warn
12227 # about them and drop them.
12230 for x
in $build_xm_file; do
12231 if test -f $srcdir/config
/$x
12233 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12234 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12237 build_xm_file
="$bx"
12240 for x
in $host_xm_file; do
12241 if test -f $srcdir/config
/$x
12243 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12244 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12250 for x
in $xm_file; do
12251 if test -f $srcdir/config
/$x
12253 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12254 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12260 for f
in $tm_file; do
12263 if test $count = ax
; then
12264 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12266 echo "Using the following target machine macro files:"
12267 for f
in $tm_file; do
12268 echo " $srcdir/config/$f"
12272 if test x
$need_64bit_hwint = xyes
; then
12274 cat >>confdefs.h
<<\_ACEOF
12275 #define NEED_64BIT_HOST_WIDE_INT 1
12280 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12282 cat >>confdefs.h
<<\_ACEOF
12283 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12289 for f
in $host_xm_file; do
12292 if test $count = a
; then
12294 elif test $count = ax
; then
12295 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12297 echo "Using the following host machine macro files:"
12298 for f
in $host_xm_file; do
12299 echo " $srcdir/config/$f"
12302 echo "Using ${out_host_hook_obj} for host machine hooks."
12304 if test "$host_xm_file" != "$build_xm_file"; then
12306 for f
in $build_xm_file; do
12309 if test $count = a
; then
12311 elif test $count = ax
; then
12312 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12314 echo "Using the following build machine macro files:"
12315 for f
in $build_xm_file; do
12316 echo " $srcdir/config/$f"
12322 powerpc
*-*-darwin*)
12323 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12324 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12325 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 cat >conftest.
$ac_ext <<_ACEOF
12330 #include <sys/cdefs.h>
12331 #include <sys/signal.h>
12332 #include <ucontext.h>
12333 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12336 rm -f conftest.
$ac_objext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12338 (eval $ac_compile) 2>conftest.er1
12340 grep -v '^ *+' conftest.er1
>conftest.err
12342 cat conftest.err
>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try
='test -z "$ac_c_werror_flag"
12346 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try
='test -s conftest.$ac_objext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 gcc_cv_mcontext_underscores
=no
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.
$ac_ext >&5
12363 gcc_cv_mcontext_underscores
=yes
12365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12367 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12368 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12369 if test $gcc_cv_mcontext_underscores = yes; then
12371 cat >>confdefs.h
<<\_ACEOF
12372 #define HAS_MCONTEXT_T_UNDERSCORES
12383 # Check if a valid thread package
12384 case ${enable_threads} in
12387 target_thread_file
='single'
12391 target_thread_file
='single'
12393 aix | dce | gnat | irix | posix | posix95 | rtems | \
12394 single | solaris | vxworks | win32
)
12395 target_thread_file
=${enable_threads}
12398 echo "${enable_threads} is an unknown thread package" 1>&2
12403 if test x
${thread_file} = x
; then
12404 # No thread file set by target-specific clauses in config.gcc,
12405 # so use file chosen by default logic above
12406 thread_file
=${target_thread_file}
12409 # Make gthr-default.h if we have a thread file.
12411 if test $thread_file != single
; then
12412 rm -f gthr-default.h
12413 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12414 gthread_flags
=-DHAVE_GTHR_DEFAULT
12423 if test x
$enable___cxa_atexit = xyes || \
12424 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12425 if test x
$host = x
$target; then
12427 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12428 # keyed to flag_use_cxa_atexit
12433 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12434 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12435 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 cat >conftest.
$ac_ext <<_ACEOF
12441 cat confdefs.h
>>conftest.
$ac_ext
12442 cat >>conftest.
$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12446 #define __cxa_atexit innocuous___cxa_atexit
12448 /* System header to define __stub macros and hopefully few prototypes,
12449 which can conflict with char __cxa_atexit (); below.
12450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12451 <limits.h> exists even on freestanding compilers. */
12454 # include <limits.h>
12456 # include <assert.h>
12459 #undef __cxa_atexit
12461 /* Override any gcc2 internal prototype to avoid an error. */
12466 /* We use char because int might match the return type of a gcc2
12467 builtin and then its argument prototype would still apply. */
12468 char __cxa_atexit ();
12469 /* The GNU C library defines this for functions which it implements
12470 to always fail with ENOSYS. Some functions are actually named
12471 something starting with __ and the normal name is an alias. */
12472 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12475 char (*f) () = __cxa_atexit;
12484 return f != __cxa_atexit;
12489 rm -f conftest.
$ac_objext conftest
$ac_exeext
12490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12491 (eval $ac_link) 2>conftest.er1
12493 grep -v '^ *+' conftest.er1
>conftest.err
12495 cat conftest.err
>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } &&
12498 { ac_try
='test -z "$ac_c_werror_flag"
12499 || test ! -s conftest.err'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; } &&
12505 { ac_try
='test -s conftest$ac_exeext'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; }; then
12511 ac_cv_func___cxa_atexit
=yes
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.
$ac_ext >&5
12516 ac_cv_func___cxa_atexit
=no
12518 rm -f conftest.err conftest.
$ac_objext \
12519 conftest
$ac_exeext conftest.
$ac_ext
12521 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12522 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12523 if test $ac_cv_func___cxa_atexit = yes; then
12526 echo "__cxa_atexit can't be enabled on this target"
12532 # We can't check for __cxa_atexit when building a cross, so assume
12536 if test x
$use_cxa_atexit = xyes
; then
12538 cat >>confdefs.h
<<\_ACEOF
12539 #define DEFAULT_USE_CXA_ATEXIT 2
12546 if test x
$with_system_libunwind = xyes
; then
12547 if test x
$host = x
$target; then
12548 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12549 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12550 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 ac_func_search_save_LIBS
=$LIBS
12554 ac_cv_search__Unwind_GetIPInfo
=no
12555 cat >conftest.
$ac_ext <<_ACEOF
12558 cat confdefs.h
>>conftest.
$ac_ext
12559 cat >>conftest.
$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12562 /* Override any gcc2 internal prototype to avoid an error. */
12566 /* We use char because int might match the return type of a gcc2
12567 builtin and then its argument prototype would still apply. */
12568 char _Unwind_GetIPInfo ();
12572 _Unwind_GetIPInfo ();
12577 rm -f conftest.
$ac_objext conftest
$ac_exeext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579 (eval $ac_link) 2>conftest.er1
12581 grep -v '^ *+' conftest.er1
>conftest.err
12583 cat conftest.err
>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try
='test -z "$ac_c_werror_flag"
12587 || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try
='test -s conftest$ac_exeext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 ac_cv_search__Unwind_GetIPInfo
="none required"
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.
$ac_ext >&5
12605 rm -f conftest.err conftest.
$ac_objext \
12606 conftest
$ac_exeext conftest.
$ac_ext
12607 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
12608 for ac_lib
in unwind
; do
12609 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12610 cat >conftest.
$ac_ext <<_ACEOF
12613 cat confdefs.h
>>conftest.
$ac_ext
12614 cat >>conftest.
$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12617 /* Override any gcc2 internal prototype to avoid an error. */
12621 /* We use char because int might match the return type of a gcc2
12622 builtin and then its argument prototype would still apply. */
12623 char _Unwind_GetIPInfo ();
12627 _Unwind_GetIPInfo ();
12632 rm -f conftest.
$ac_objext conftest
$ac_exeext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634 (eval $ac_link) 2>conftest.er1
12636 grep -v '^ *+' conftest.er1
>conftest.err
12638 cat conftest.err
>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try
='test -z "$ac_c_werror_flag"
12642 || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try
='test -s conftest$ac_exeext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.
$ac_ext >&5
12661 rm -f conftest.err conftest.
$ac_objext \
12662 conftest
$ac_exeext conftest.
$ac_ext
12665 LIBS
=$ac_func_search_save_LIBS
12667 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12668 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12669 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
12670 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12679 if test x
$use_getipinfo = xyes
; then
12681 cat >>confdefs.h
<<\_ACEOF
12682 #define HAVE_GETIPINFO 1
12686 echo "The system unwind library does not support _Unwind_GetIPInfo."
12689 # Look for a file containing extra machine modes.
12690 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12691 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12694 cat >>confdefs.h
<<_ACEOF
12695 #define EXTRA_MODES_FILE "config/$extra_modes"
12700 # Convert extra_options into a form suitable for Makefile use.
12702 for f
in $extra_options; do
12703 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12707 # auto-host.h is the file containing items generated by autoconf and is
12708 # the first file included by config.h.
12709 # If host=build, it is correct to have bconfig include auto-host.h
12710 # as well. If host!=build, we are in error and need to do more
12711 # work to find out the build config parameters.
12712 if test x
$host = x
$build
12714 build_auto
=auto-host.h
12716 # We create a subdir, then run autoconf in the subdir.
12717 # To prevent recursion we set host and build for the new
12718 # invocation of configure to the build for this invocation
12725 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12726 *) realsrcdir
=..
/${srcdir};;
12728 saved_CFLAGS
="${CFLAGS}"
12729 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12730 ${realsrcdir}/configure \
12731 --enable-languages=${enable_languages-all} \
12732 --target=$target_alias --host=$build_alias --build=$build_alias
12733 CFLAGS
="${saved_CFLAGS}"
12735 # We just finished tests for the build machine, so rename
12736 # the file auto-build.h in the gcc directory.
12737 mv auto-host.h ..
/auto-build.h
12740 build_auto
=auto-build.h
12744 tm_file
="${tm_file} defaults.h"
12745 tm_p_file
="${tm_p_file} tm-preds.h"
12746 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12747 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12748 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12749 # put this back in temporarily.
12750 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12756 # Compile in configure arguments.
12757 if test -f configargs.h
; then
12758 # Being re-configured.
12759 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12760 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12762 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12765 # Double all backslashes and backslash all quotes to turn
12766 # gcc_config_arguments into a C string.
12767 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12768 $gcc_config_arguments
12770 gcc_config_arguments_str
=`cat conftest.out`
12773 cat > configargs.h
<<EOF
12774 /* Generated automatically. */
12775 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12776 static const char thread_model[] = "$thread_file";
12778 static const struct {
12779 const char *name, *value;
12780 } configure_default_options[] = $configure_default_options;
12783 # Internationalization
12784 # If we haven't got the data from the intl directory,
12785 # assume NLS is disabled.
12794 if test -f ..
/intl
/config.intl
; then
12795 . ..
/intl
/config.intl
12797 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12798 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12799 if test x
"$USE_NLS" != xyes
; then
12800 echo "$as_me:$LINENO: result: no" >&5
12801 echo "${ECHO_T}no" >&6
12803 echo "$as_me:$LINENO: result: yes" >&5
12804 echo "${ECHO_T}yes" >&6
12806 cat >>confdefs.h
<<\_ACEOF
12807 #define ENABLE_NLS 1
12811 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12812 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12813 # Look for .po and .gmo files in the source directory.
12816 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12817 # If there aren't any .gmo files the shell will give us the
12818 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12820 case "$cat" in *\
**)
12823 # The quadruple backslash is collapsed to a double backslash
12824 # by the backticks, then collapsed again by the double quotes,
12825 # leaving us with one backslash in the sed expression (right
12826 # before the dot that mustn't act as a wildcard).
12827 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12828 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12829 # The user is allowed to set LINGUAS to a list of languages to
12830 # install catalogs for. If it's empty that means "all of them."
12831 if test "x$LINGUAS" = x
; then
12832 CATALOGS
="$CATALOGS $cat"
12833 XLINGUAS
="$XLINGUAS $lang"
12835 case "$LINGUAS" in *$lang*)
12836 CATALOGS
="$CATALOGS $cat"
12837 XLINGUAS
="$XLINGUAS $lang"
12842 LINGUAS
="$XLINGUAS"
12843 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12844 echo "${ECHO_T}$LINGUAS" >&6
12857 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12858 # -liconv on the link line twice.
12859 case "$LIBINTL" in *$LIBICONV*)
12863 # Check whether --enable-secureplt or --disable-secureplt was given.
12864 if test "${enable_secureplt+set}" = set; then
12865 enableval
="$enable_secureplt"
12869 # Windows32 Registry support for specifying GCC installation paths.
12870 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12871 if test "${enable_win32_registry+set}" = set; then
12872 enableval
="$enable_win32_registry"
12877 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12878 if test "x$enable_win32_registry" != xno
; then
12879 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12880 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12881 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 ac_func_search_save_LIBS
=$LIBS
12885 ac_cv_search_RegOpenKeyExA
=no
12886 cat >conftest.
$ac_ext <<_ACEOF
12889 cat confdefs.h
>>conftest.
$ac_ext
12890 cat >>conftest.
$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12893 /* Override any gcc2 internal prototype to avoid an error. */
12897 /* We use char because int might match the return type of a gcc2
12898 builtin and then its argument prototype would still apply. */
12899 char RegOpenKeyExA ();
12908 rm -f conftest.
$ac_objext conftest
$ac_exeext
12909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12910 (eval $ac_link) 2>conftest.er1
12912 grep -v '^ *+' conftest.er1
>conftest.err
12914 cat conftest.err
>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } &&
12917 { ac_try
='test -z "$ac_c_werror_flag"
12918 || test ! -s conftest.err'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; } &&
12924 { ac_try
='test -s conftest$ac_exeext'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; }; then
12930 ac_cv_search_RegOpenKeyExA
="none required"
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.
$ac_ext >&5
12936 rm -f conftest.err conftest.
$ac_objext \
12937 conftest
$ac_exeext conftest.
$ac_ext
12938 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12939 for ac_lib
in advapi32
; do
12940 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12941 cat >conftest.
$ac_ext <<_ACEOF
12944 cat confdefs.h
>>conftest.
$ac_ext
12945 cat >>conftest.
$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12948 /* Override any gcc2 internal prototype to avoid an error. */
12952 /* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */
12954 char RegOpenKeyExA ();
12963 rm -f conftest.
$ac_objext conftest
$ac_exeext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12965 (eval $ac_link) 2>conftest.er1
12967 grep -v '^ *+' conftest.er1
>conftest.err
12969 cat conftest.err
>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
12972 { ac_try
='test -z "$ac_c_werror_flag"
12973 || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
12985 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.
$ac_ext >&5
12992 rm -f conftest.err conftest.
$ac_objext \
12993 conftest
$ac_exeext conftest.
$ac_ext
12996 LIBS
=$ac_func_search_save_LIBS
12998 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12999 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13000 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13001 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13004 enable_win32_registry
=no
13009 if test "x$enable_win32_registry" != xno
; then
13011 cat >>confdefs.h
<<\_ACEOF
13012 #define ENABLE_WIN32_REGISTRY 1
13016 if test "x$enable_win32_registry" != xyes \
13017 && test "x$enable_win32_registry" != x
; then
13019 cat >>confdefs.h
<<_ACEOF
13020 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13028 # Get an absolute path to the GCC top-level source directory
13029 holddir
=`${PWDCMD-pwd}`
13031 topdir
=`${PWDCMD-pwd}`
13034 # Conditionalize the makefile for this host machine.
13036 for f
in ${host_xmake_file}
13038 if test -f ${srcdir}/config
/$f
13040 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13044 # Conditionalize the makefile for this target machine.
13046 for f
in ${tmake_file}
13048 if test -f ${srcdir}/config
/$f
13050 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13053 tmake_file
="${tmake_file_}"
13055 # This is a terrible hack which will go away some day.
13056 host_cc_for_libada
=${CC}
13059 out_object_file
=`basename $out_file .c`.o
13061 tm_file_list
="options.h"
13062 tm_include_list
="options.h"
13063 for f
in $tm_file; do
13066 f
=`echo $f | sed 's/^..//'`
13067 tm_file_list
="${tm_file_list} $f"
13068 tm_include_list
="${tm_include_list} $f"
13071 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13072 tm_include_list
="${tm_include_list} $f"
13075 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13076 tm_include_list
="${tm_include_list} config/$f"
13083 for f
in $tm_p_file; do
13086 tm_p_file_list
="${tm_p_file_list} $f"
13087 tm_p_include_list
="${tm_p_include_list} $f"
13090 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13091 tm_p_include_list
="${tm_p_include_list} config/$f"
13097 for f
in $xm_file; do
13100 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13101 xm_include_list
="${xm_include_list} $f"
13104 xm_file_list
="${xm_file_list} $f"
13105 xm_include_list
="${xm_include_list} $f"
13108 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13109 xm_include_list
="${xm_include_list} config/$f"
13115 host_xm_include_list
=
13116 for f
in $host_xm_file; do
13119 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13120 host_xm_include_list
="${host_xm_include_list} $f"
13123 host_xm_file_list
="${host_xm_file_list} $f"
13124 host_xm_include_list
="${host_xm_include_list} $f"
13127 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13128 host_xm_include_list
="${host_xm_include_list} config/$f"
13133 build_xm_file_list
=
13134 for f
in $build_xm_file; do
13137 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13138 build_xm_include_list
="${build_xm_include_list} $f"
13140 auto-build.h | auto-host.h
)
13141 build_xm_file_list
="${build_xm_file_list} $f"
13142 build_xm_include_list
="${build_xm_include_list} $f"
13145 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13146 build_xm_include_list
="${build_xm_include_list} config/$f"
13151 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13152 # cross-compiler which does not use the native headers and libraries.
13153 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13156 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13158 if test "x$with_build_sysroot" != x
; then
13159 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13161 # This value is used, even on a native system, because
13162 # CROSS_SYSTEM_HEADER_DIR is just
13163 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13164 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13167 if test x
$host != x
$target
13169 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13171 SYSTEM_HEADER_DIR
=$build_system_header_dir
13172 case "$host","$target" in
13173 # Darwin crosses can use the host system's libraries and headers,
13174 # because of the fat library support. Of course, it must be the
13175 # same version of Darwin on both sides. Allow the user to
13176 # just say --target=foo-darwin without a version number to mean
13177 # "the version on this system".
13178 *-*-darwin*,*-*-darwin*)
13179 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13180 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13181 if test $hostos = $targetos -o $targetos = darwin
; then
13183 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13188 i?
86-*-*,x86_64-
*-* \
13189 | powerpc
*-*-*,powerpc64
*-*-*)
13190 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13192 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13193 SYSTEM_HEADER_DIR
=$build_system_header_dir
13196 # If this is a cross-compiler that does not
13197 # have its own set of headers then define
13200 # If this is using newlib, without having the headers available now,
13201 # then define inhibit_libc in LIBGCC2_CFLAGS.
13202 # This prevents libgcc2 from containing any code which requires libc
13205 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13206 test x
$with_newlib = xyes
; } &&
13207 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13212 # When building gcc with a cross-compiler, we need to adjust things so
13213 # that the generator programs are still built with the native compiler.
13214 # Also, we cannot run fixincludes or fix-header.
13216 # These are the normal (build=host) settings:
13217 CC_FOR_BUILD
='$(CC)'
13218 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13219 STMP_FIXINC
=stmp-fixinc
13221 # Possibly disable fixproto, on a per-target basis.
13222 case ${use_fixproto} in
13227 STMP_FIXPROTO
=stmp-fixproto
13232 # And these apply if build != host, or we are generating coverage data
13233 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13235 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13237 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13238 if test "x$STMP_FIXPROTO" != x
; then
13239 STMP_FIXPROTO
=stmp-install-fixproto
13244 # Expand extra_headers to include complete path.
13245 # This substitutes for lots of t-* files.
13246 extra_headers_list
=
13247 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13248 for file in ${extra_headers} ; do
13249 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13252 # Define collect2 in Makefile.
13253 case $host_can_use_collect2 in
13255 *) collect2
='collect2$(exeext)' ;;
13259 # Add a definition of USE_COLLECT2 if system wants one.
13260 case $use_collect2 in
13261 no
) use_collect2
= ;;
13264 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13265 xm_defines
="${xm_defines} USE_COLLECT2"
13266 case $host_can_use_collect2 in
13268 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13269 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13270 { (exit 1); exit 1; }; }
13276 # ---------------------------
13277 # Assembler & linker features
13278 # ---------------------------
13280 # Identify the assembler which will work hand-in-glove with the newly
13281 # built GCC, so that we can examine its features. This is the assembler
13282 # which will be driven by the driver program.
13284 # If build != host, and we aren't building gas in-tree, we identify a
13285 # build->target assembler and hope that it will have the same features
13286 # as the host->target assembler we'll be using.
13287 gcc_cv_gas_major_version
=
13288 gcc_cv_gas_minor_version
=
13289 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13291 if test "${gcc_cv_as+set}" = set; then
13295 if test -x "$DEFAULT_ASSEMBLER"; then
13296 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13297 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13298 && test -f ..
/gas
/Makefile \
13299 && test x
$build = x
$host; then
13300 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13301 elif test -x as
$build_exeext; then
13302 # Build using assembler in the current directory.
13303 gcc_cv_as
=.
/as
$build_exeext
13304 elif test -x $AS_FOR_TARGET; then
13305 gcc_cv_as
="$AS_FOR_TARGET"
13307 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13308 set dummy
$AS_FOR_TARGET; ac_word
=$2
13309 echo "$as_me:$LINENO: checking for $ac_word" >&5
13310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13311 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13320 for as_dir
in $PATH
13323 test -z "$as_dir" && as_dir
=.
13324 for ac_exec_ext
in '' $ac_executable_extensions; do
13325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13326 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13336 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13338 if test -n "$gcc_cv_as"; then
13339 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13340 echo "${ECHO_T}$gcc_cv_as" >&6
13342 echo "$as_me:$LINENO: result: no" >&5
13343 echo "${ECHO_T}no" >&6
13350 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13352 case "$ORIGINAL_AS_FOR_TARGET" in
13353 .
/as | .
/as
$build_exeext) ;;
13354 *) ac_config_files
="$ac_config_files as:exec-tool.in"
13358 echo "$as_me:$LINENO: checking what assembler to use" >&5
13359 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13360 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13361 # Single tree build which includes gas. We want to prefer it
13362 # over whatever linker top-level may have detected, since
13363 # we'll use what we're building after installation anyway.
13364 echo "$as_me:$LINENO: result: newly built gas" >&5
13365 echo "${ECHO_T}newly built gas" >&6
13367 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13368 for f
in $gcc_cv_as_bfd_srcdir/configure \
13369 $gcc_cv_as_gas_srcdir/configure \
13370 $gcc_cv_as_gas_srcdir/configure.
in \
13371 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13372 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13373 if test x
$gcc_cv_gas_version != x
; then
13377 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13378 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13379 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13380 case $gcc_cv_gas_patch_version in
13381 "") gcc_cv_gas_patch_version
="0" ;;
13383 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13384 + $gcc_cv_gas_minor_version \) \* 1000 \
13385 + $gcc_cv_gas_patch_version`
13387 in_tree_gas_is_elf
=no
13388 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13389 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13390 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13392 in_tree_gas_is_elf
=yes
13395 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13396 echo "${ECHO_T}$gcc_cv_as" >&6
13400 # Identify the linker which will work hand-in-glove with the newly
13401 # built GCC, so that we can examine its features. This is the linker
13402 # which will be driven by the driver program.
13404 # If build != host, and we aren't building gas in-tree, we identify a
13405 # build->target linker and hope that it will have the same features
13406 # as the host->target linker we'll be using.
13407 gcc_cv_gld_major_version
=
13408 gcc_cv_gld_minor_version
=
13409 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13410 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13412 if test "${gcc_cv_ld+set}" = set; then
13416 if test -x "$DEFAULT_LINKER"; then
13417 gcc_cv_ld
="$DEFAULT_LINKER"
13418 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13419 && test -f ..
/ld
/Makefile \
13420 && test x
$build = x
$host; then
13421 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13422 elif test -x collect-ld
$build_exeext; then
13423 # Build using linker in the current directory.
13424 gcc_cv_ld
=.
/collect-ld
$build_exeext
13425 elif test -x $LD_FOR_TARGET; then
13426 gcc_cv_ld
="$LD_FOR_TARGET"
13428 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13429 set dummy
$LD_FOR_TARGET; ac_word
=$2
13430 echo "$as_me:$LINENO: checking for $ac_word" >&5
13431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13432 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13441 for as_dir
in $PATH
13444 test -z "$as_dir" && as_dir
=.
13445 for ac_exec_ext
in '' $ac_executable_extensions; do
13446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13447 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13459 if test -n "$gcc_cv_ld"; then
13460 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13461 echo "${ECHO_T}$gcc_cv_ld" >&6
13463 echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6
13471 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13473 case "$ORIGINAL_LD_FOR_TARGET" in
13474 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
13475 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
13479 echo "$as_me:$LINENO: checking what linker to use" >&5
13480 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13481 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13482 # Single tree build which includes ld. We want to prefer it
13483 # over whatever linker top-level may have detected, since
13484 # we'll use what we're building after installation anyway.
13485 echo "$as_me:$LINENO: result: newly built ld" >&5
13486 echo "${ECHO_T}newly built ld" >&6
13488 in_tree_ld_is_elf
=no
13489 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13490 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13491 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13492 in_tree_ld_is_elf
=yes
13494 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
13496 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13497 if test x
$gcc_cv_gld_version != x
; then
13501 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13502 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13504 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13505 echo "${ECHO_T}$gcc_cv_ld" >&6
13509 # Figure out what nm we will be using.
13510 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13511 if test "${gcc_cv_nm+set}" = set; then
13515 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13516 && test -f ..
/binutils
/Makefile \
13517 && test x
$build = x
$host; then
13518 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13519 elif test -x nm
$build_exeext; then
13520 gcc_cv_nm
=.
/nm
$build_exeext
13521 elif test -x $NM_FOR_TARGET; then
13522 gcc_cv_nm
="$NM_FOR_TARGET"
13524 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13525 set dummy
$NM_FOR_TARGET; ac_word
=$2
13526 echo "$as_me:$LINENO: checking for $ac_word" >&5
13527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13528 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13533 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13537 for as_dir
in $PATH
13540 test -z "$as_dir" && as_dir
=.
13541 for ac_exec_ext
in '' $ac_executable_extensions; do
13542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13555 if test -n "$gcc_cv_nm"; then
13556 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13557 echo "${ECHO_T}$gcc_cv_nm" >&6
13559 echo "$as_me:$LINENO: result: no" >&5
13560 echo "${ECHO_T}no" >&6
13567 echo "$as_me:$LINENO: checking what nm to use" >&5
13568 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13569 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13570 # Single tree build which includes binutils.
13571 echo "$as_me:$LINENO: result: newly built nm" >&5
13572 echo "${ECHO_T}newly built nm" >&6
13575 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13576 echo "${ECHO_T}$gcc_cv_nm" >&6
13580 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13582 case "$ORIGINAL_NM_FOR_TARGET" in
13583 .
/nm | .
/nm
$build_exeext) ;;
13584 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
13589 # Figure out what objdump we will be using.
13590 if test "${gcc_cv_objdump+set}" = set; then
13594 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13595 && test -f ..
/binutils
/Makefile \
13596 && test x
$build = x
$host; then
13597 # Single tree build which includes binutils.
13598 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13599 elif test -x objdump
$build_exeext; then
13600 gcc_cv_objdump
=.
/objdump
$build_exeext
13601 elif test -x $OBJDUMP_FOR_TARGET; then
13602 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13604 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13605 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13606 echo "$as_me:$LINENO: checking for $ac_word" >&5
13607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13608 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 case $gcc_cv_objdump in
13613 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13617 for as_dir
in $PATH
13620 test -z "$as_dir" && as_dir
=.
13621 for ac_exec_ext
in '' $ac_executable_extensions; do
13622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13623 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13635 if test -n "$gcc_cv_objdump"; then
13636 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13637 echo "${ECHO_T}$gcc_cv_objdump" >&6
13639 echo "$as_me:$LINENO: result: no" >&5
13640 echo "${ECHO_T}no" >&6
13647 echo "$as_me:$LINENO: checking what objdump to use" >&5
13648 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13649 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13650 # Single tree build which includes binutils.
13651 echo "$as_me:$LINENO: result: newly built objdump" >&5
13652 echo "${ECHO_T}newly built objdump" >&6
13653 elif test x
$gcc_cv_objdump = x
; then
13654 echo "$as_me:$LINENO: result: not found" >&5
13655 echo "${ECHO_T}not found" >&6
13657 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13658 echo "${ECHO_T}$gcc_cv_objdump" >&6
13661 # Figure out what assembler alignment features are present.
13662 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13663 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13664 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 gcc_cv_as_balign_and_p2align
=no
13668 if test $in_tree_gas = yes; then
13669 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13670 then gcc_cv_as_balign_and_p2align
=yes
13672 elif test x
$gcc_cv_as != x
; then
13674 .p2align 2' > conftest.s
13675 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }
13682 gcc_cv_as_balign_and_p2align
=yes
13684 echo "configure: failed program was" >&5
13687 rm -f conftest.o conftest.s
13690 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13691 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13692 if test $gcc_cv_as_balign_and_p2align = yes; then
13694 cat >>confdefs.h
<<\_ACEOF
13695 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13700 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13701 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13702 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 gcc_cv_as_max_skip_p2align
=no
13706 if test $in_tree_gas = yes; then
13707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13708 then gcc_cv_as_max_skip_p2align
=yes
13710 elif test x
$gcc_cv_as != x
; then
13711 echo '.p2align 4,,7' > conftest.s
13712 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }
13719 gcc_cv_as_max_skip_p2align
=yes
13721 echo "configure: failed program was" >&5
13724 rm -f conftest.o conftest.s
13727 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13728 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13729 if test $gcc_cv_as_max_skip_p2align = yes; then
13731 cat >>confdefs.h
<<\_ACEOF
13732 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13737 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13738 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13739 if test "${gcc_cv_as_literal16+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 gcc_cv_as_literal16
=no
13743 if test $in_tree_gas = yes; then
13744 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13745 then gcc_cv_as_literal16
=yes
13747 elif test x
$gcc_cv_as != x
; then
13748 echo '.literal16' > conftest.s
13749 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }
13756 gcc_cv_as_literal16
=yes
13758 echo "configure: failed program was" >&5
13761 rm -f conftest.o conftest.s
13764 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13765 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13766 if test $gcc_cv_as_literal16 = yes; then
13768 cat >>confdefs.h
<<\_ACEOF
13769 #define HAVE_GAS_LITERAL16 1
13774 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13775 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13776 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 gcc_cv_as_subsection_m1
=no
13780 if test $in_tree_gas = yes; then
13781 if test $in_tree_gas_is_elf = yes \
13782 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13783 then gcc_cv_as_subsection_m1
=yes
13785 elif test x
$gcc_cv_as != x
; then
13786 echo 'conftest_label1: .word 0
13788 conftest_label2: .word 0
13789 .previous' > conftest.s
13790 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }
13797 if test x
$gcc_cv_nm != x
; then
13798 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13799 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13800 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13802 else gcc_cv_as_subsection_m1
=yes
13804 rm -f conftest.nm1 conftest.nm2
13807 echo "configure: failed program was" >&5
13810 rm -f conftest.o conftest.s
13813 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13814 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13815 if test $gcc_cv_as_subsection_m1 = yes; then
13817 cat >>confdefs.h
<<\_ACEOF
13818 #define HAVE_GAS_SUBSECTION_ORDERING 1
13823 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13824 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13825 if test "${gcc_cv_as_weak+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 if test $in_tree_gas = yes; then
13830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13831 then gcc_cv_as_weak
=yes
13833 elif test x
$gcc_cv_as != x
; then
13834 echo ' .weak foobar' > conftest.s
13835 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }
13844 echo "configure: failed program was" >&5
13847 rm -f conftest.o conftest.s
13850 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13851 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13852 if test $gcc_cv_as_weak = yes; then
13854 cat >>confdefs.h
<<\_ACEOF
13855 #define HAVE_GAS_WEAK 1
13860 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13861 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13862 if test "${gcc_cv_as_weakref+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 gcc_cv_as_weakref
=no
13866 if test $in_tree_gas = yes; then
13867 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13868 then gcc_cv_as_weakref
=yes
13870 elif test x
$gcc_cv_as != x
; then
13871 echo ' .weakref foobar, barfnot' > conftest.s
13872 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }
13879 gcc_cv_as_weakref
=yes
13881 echo "configure: failed program was" >&5
13884 rm -f conftest.o conftest.s
13887 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13888 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13889 if test $gcc_cv_as_weakref = yes; then
13891 cat >>confdefs.h
<<\_ACEOF
13892 #define HAVE_GAS_WEAKREF 1
13897 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13898 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13899 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 gcc_cv_as_nsubspa_comdat
=no
13903 if test $in_tree_gas = yes; then
13904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13905 then gcc_cv_as_nsubspa_comdat
=yes
13907 elif test x
$gcc_cv_as != x
; then
13908 echo ' .SPACE $TEXT$
13909 .NSUBSPA $CODE$,COMDAT' > conftest.s
13910 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; }
13917 gcc_cv_as_nsubspa_comdat
=yes
13919 echo "configure: failed program was" >&5
13922 rm -f conftest.o conftest.s
13925 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13926 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13927 if test $gcc_cv_as_nsubspa_comdat = yes; then
13929 cat >>confdefs.h
<<\_ACEOF
13930 #define HAVE_GAS_NSUBSPA_COMDAT 1
13935 # .hidden needs to be supported in both the assembler and the linker,
13936 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13937 # This is irritatingly difficult to feature test for; we have to check the
13938 # date string after the version number. If we've got an in-tree
13939 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13941 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13942 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13943 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13944 if test "${gcc_cv_as_hidden+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 gcc_cv_as_hidden
=no
13948 if test $in_tree_gas = yes; then
13949 if test $in_tree_gas_is_elf = yes \
13950 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13951 then gcc_cv_as_hidden
=yes
13953 elif test x
$gcc_cv_as != x
; then
13954 echo ' .hidden foobar
13955 foobar:' > conftest.s
13956 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }
13963 gcc_cv_as_hidden
=yes
13965 echo "configure: failed program was" >&5
13968 rm -f conftest.o conftest.s
13971 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13972 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13975 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13976 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13977 if test "${gcc_cv_ld_hidden+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 if test $in_tree_ld = yes ; then
13981 gcc_cv_ld_hidden
=no
13982 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 \
13983 && test $in_tree_ld_is_elf = yes; then
13984 gcc_cv_ld_hidden
=yes
13987 gcc_cv_ld_hidden
=yes
13988 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13989 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13990 ld_vers
=`echo $ld_ver | sed -n \
13991 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13992 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13993 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13994 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13995 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13996 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13997 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
13998 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'`
13999 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
14000 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14001 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14002 if test 0"$ld_date" -lt 20020404; then
14003 if test -n "$ld_date"; then
14004 # If there was date string, but was earlier than 2002-04-04, fail
14005 gcc_cv_ld_hidden
=no
14006 elif test -z "$ld_vers"; then
14007 # If there was no date string nor ld version number, something is wrong
14008 gcc_cv_ld_hidden
=no
14010 test -z "$ld_vers_patch" && ld_vers_patch
=0
14011 if test "$ld_vers_major" -lt 2; then
14012 gcc_cv_ld_hidden
=no
14013 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14014 gcc_cv_ld_hidden
="no"
14015 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14016 gcc_cv_ld_hidden
=no
14021 case "${target}" in
14022 hppa64
*-*-hpux* | ia64
*-*-hpux*)
14023 gcc_cv_ld_hidden
=yes
14026 gcc_cv_ld_hidden
=no
14032 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14033 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14034 libgcc_visibility
=no
14037 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14038 libgcc_visibility
=yes
14040 cat >>confdefs.h
<<\_ACEOF
14041 #define HAVE_GAS_HIDDEN 1
14046 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14047 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14048 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14049 if test "${gcc_cv_as_leb128+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 gcc_cv_as_leb128
=no
14053 if test $in_tree_gas = yes; then
14054 if test $in_tree_gas_is_elf = yes \
14055 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14056 then gcc_cv_as_leb128
=yes
14058 elif test x
$gcc_cv_as != x
; then
14065 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }
14072 # GAS versions before 2.11 do not support uleb128,
14073 # despite appearing to.
14074 # ??? There exists an elf-specific test that will crash
14075 # the assembler. Perhaps it's better to figure out whether
14076 # arbitrary sections are supported and try the test.
14077 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14078 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
14079 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14080 as_major
=`echo $as_ver | sed 's/\..*//'`
14081 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14082 if test $as_major -eq 2 && test $as_minor -lt 11
14084 else gcc_cv_as_leb128
=yes
14088 echo "configure: failed program was" >&5
14091 rm -f conftest.o conftest.s
14094 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14095 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14096 if test $gcc_cv_as_leb128 = yes; then
14098 cat >>confdefs.h
<<\_ACEOF
14099 #define HAVE_AS_LEB128 1
14104 # GAS versions up to and including 2.11.0 may mis-optimize
14106 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14107 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14108 if test "${gcc_cv_as_eh_frame+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 gcc_cv_as_eh_frame
=no
14112 if test $in_tree_gas = yes; then
14113 if test $in_tree_gas_is_elf = yes \
14114 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14115 then gcc_cv_as_eh_frame
=yes
14117 elif test x
$gcc_cv_as != x
; then
14124 .section .eh_frame,"aw",@progbits
14126 .4byte .LECIE1-.LSCIE1
14140 .4byte .LEFDE1-.LASFDE1
14142 .4byte .LASFDE1-__FRAME_BEGIN__
14149 .LEFDE1:' > conftest.s
14150 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }
14157 cat > conftest.lit
<<EOF
14158 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14159 0010 01000000 12000000 18000000 00000000 ................
14160 0020 08000000 04080000 0044 .........D
14162 cat > conftest.big
<<EOF
14163 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14164 0010 00000001 00000012 00000018 00000000 ................
14165 0020 00000008 04000000 0844 .........D
14167 # If the assembler didn't choke, and we can objdump,
14168 # and we got the correct data, then succeed.
14169 # The text in the here-document typically retains its unix-style line
14170 # endings, while the output of objdump will use host line endings.
14171 # Therefore, use diff -b for the comparisons.
14172 if test x
$gcc_cv_objdump != x \
14173 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
14174 |
tail -3 > conftest.got \
14175 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
14176 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
14178 gcc_cv_as_eh_frame
=yes
14179 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 gcc_cv_as_eh_frame
=buggy
14187 # Uh oh, what do we do now?
14188 gcc_cv_as_eh_frame
=no
14191 echo "configure: failed program was" >&5
14194 rm -f conftest.o conftest.s
14197 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14198 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14201 if test $gcc_cv_as_eh_frame = buggy
; then
14203 cat >>confdefs.h
<<\_ACEOF
14204 #define USE_AS_TRADITIONAL_FORMAT 1
14209 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14210 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14211 if test "${gcc_cv_as_shf_merge+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 gcc_cv_as_shf_merge
=no
14215 if test $in_tree_gas = yes; then
14216 if test $in_tree_gas_is_elf = yes \
14217 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14218 then gcc_cv_as_shf_merge
=yes
14220 elif test x
$gcc_cv_as != x
; then
14221 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14222 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }
14229 gcc_cv_as_shf_merge
=yes
14231 echo "configure: failed program was" >&5
14234 rm -f conftest.o conftest.s
14237 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14238 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14240 if test $gcc_cv_as_shf_merge = no
; then
14241 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14242 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14243 if test "${gcc_cv_as_shf_merge+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 gcc_cv_as_shf_merge
=no
14247 if test $in_tree_gas = yes; then
14248 if test $in_tree_gas_is_elf = yes \
14249 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14250 then gcc_cv_as_shf_merge
=yes
14252 elif test x
$gcc_cv_as != x
; then
14253 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14254 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }
14261 gcc_cv_as_shf_merge
=yes
14263 echo "configure: failed program was" >&5
14266 rm -f conftest.o conftest.s
14269 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14270 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14274 cat >>confdefs.h
<<_ACEOF
14275 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14279 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14280 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14281 if test "${gcc_cv_as_comdat_group+set}" = set; then
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 gcc_cv_as_comdat_group
=no
14285 if test $in_tree_gas = yes; then
14286 if test $in_tree_gas_is_elf = yes \
14287 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14288 then gcc_cv_as_comdat_group
=yes
14290 elif test x
$gcc_cv_as != x
; then
14291 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14292 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }
14299 gcc_cv_as_comdat_group
=yes
14301 echo "configure: failed program was" >&5
14304 rm -f conftest.o conftest.s
14307 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14308 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14310 if test $gcc_cv_as_comdat_group = yes; then
14311 gcc_cv_as_comdat_group_percent
=no
14313 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14314 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14315 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 gcc_cv_as_comdat_group_percent
=no
14319 if test $in_tree_gas = yes; then
14320 if test $in_tree_gas_is_elf = yes \
14321 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14322 then gcc_cv_as_comdat_group_percent
=yes
14324 elif test x
$gcc_cv_as != x
; then
14325 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14326 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }
14333 gcc_cv_as_comdat_group_percent
=yes
14335 echo "configure: failed program was" >&5
14338 rm -f conftest.o conftest.s
14341 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14342 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14345 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14347 if test 0"$ld_date" -lt 20050308; then
14348 if test -n "$ld_date"; then
14349 # If there was date string, but was earlier than 2005-03-08, fail
14351 elif test "$ld_vers_major" -lt 2; then
14353 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14358 # assume linkers other than GNU ld don't support COMDAT group
14361 if test $comdat_group = no
; then
14362 gcc_cv_as_comdat_group
=no
14363 gcc_cv_as_comdat_group_percent
=no
14366 cat >>confdefs.h
<<_ACEOF
14367 #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`
14371 # Thread-local storage - the check is heavily parametrized.
14379 .section ".tdata","awT",@progbits
14382 ldq $27,__tls_get_addr($29) !literal!1
14383 lda $16,foo($29) !tlsgd!1
14384 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14385 ldq $27,__tls_get_addr($29) !literal!2
14386 lda $16,foo($29) !tlsldm!2
14387 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14388 ldq $1,foo($29) !gotdtprel
14389 ldah $2,foo($29) !dtprelhi
14390 lda $3,foo($2) !dtprello
14391 lda $4,foo($29) !dtprel
14392 ldq $1,foo($29) !gottprel
14393 ldah $2,foo($29) !tprelhi
14394 lda $3,foo($2) !tprello
14395 lda $4,foo($29) !tprel'
14398 tls_as_opt
=--fatal-warnings
14402 .section ".tdata","awT",@progbits
14405 call #gettlsoff(x)'
14414 .section ".tdata","awT",@progbits
14418 addil LT%foo-$tls_gdidx$,gp
14419 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14422 addil LT%foo-$tls_ldidx$,gp
14424 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14425 addil LR%foo-$tls_dtpoff$,%ret0
14426 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14428 addil LT%foo-$tls_ieoff$,gp
14429 ldw RT%foo-$tls_ieoff$(%r1),%t2
14432 addil LR%foo-$tls_leoff$,%t1
14433 ldo RR%foo-$tls_leoff$(%r1),%t2'
14436 tls_as_opt
=--fatal-warnings
14440 .section ".tdata","awT",%progbits
14443 .word foo(gottpoff)
14453 .section ".tdata","awT",@progbits
14457 leal foo@TLSGD(,%ebx,1), %eax
14458 leal foo@TLSLDM(%ebx), %eax
14459 leal foo@DTPOFF(%eax), %edx
14460 movl foo@GOTTPOFF(%ebx), %eax
14461 subl foo@GOTTPOFF(%ebx), %eax
14462 addl foo@GOTNTPOFF(%ebx), %eax
14463 movl foo@INDNTPOFF, %eax
14464 movl $foo@TPOFF, %eax
14465 subl $foo@TPOFF, %eax
14466 leal foo@NTPOFF(%ecx), %eax'
14469 tls_as_opt
=--fatal-warnings
14473 .section ".tdata","awT",@progbits
14477 leaq foo@TLSGD(%rip), %rdi
14478 leaq foo@TLSLD(%rip), %rdi
14479 leaq foo@DTPOFF(%rax), %rdx
14480 movq foo@GOTTPOFF(%rip), %rax
14481 movq $foo@TPOFF, %rax'
14484 tls_as_opt
=--fatal-warnings
14488 .section ".tdata","awT",@progbits
14491 addl r16 = @ltoff(@dtpmod(foo#)), gp
14492 addl r17 = @ltoff(@dtprel(foo#)), gp
14493 addl r18 = @ltoff(@tprel(foo#)), gp
14494 addl r19 = @dtprel(foo#), gp
14495 adds r21 = @dtprel(foo#), r13
14496 movl r23 = @dtprel(foo#)
14497 addl r20 = @tprel(foo#), gp
14498 adds r22 = @tprel(foo#), r13
14499 movl r24 = @tprel(foo#)'
14502 tls_as_opt
=--fatal-warnings
14506 .section .tdata,"awT",@progbits
14510 addiu $4, $28, %tlsgd(x)
14511 addiu $4, $28, %tlsldm(x)
14512 lui $4, %dtprel_hi(x)
14513 addiu $4, $4, %dtprel_lo(x)
14514 lw $4, %gottprel(x)($28)
14515 lui $4, %tprel_hi(x)
14516 addiu $4, $4, %tprel_lo(x)'
14519 tls_as_opt
='-32 --fatal-warnings'
14523 .section ".tdata","awT",@progbits
14531 addi 3,31,ld0@got@tlsgd
14533 addi 3,31,x1@got@tlsld
14536 addis 9,3,x2@dtprel@ha
14537 addi 9,9,x2@dtprel@l
14538 lwz 9,x3@got@tprel(31)
14541 addis 9,2,x2@tprel@ha
14542 addi 9,9,x2@tprel@l'
14545 tls_as_opt
="-a32 --fatal-warnings"
14549 .section ".tdata","awT",@progbits
14557 addi 3,2,ld0@got@tlsgd
14563 addi 3,2,x1@got@tlsld
14569 addis 9,3,x2@dtprel@ha
14570 addi 9,9,x2@dtprel@l
14573 ld 9,x3@got@dtprel(2)
14579 tls_as_opt
="-a64 --fatal-warnings"
14583 .section ".tdata","awT",@progbits
14590 .long foo@GOTNTPOFF
14591 .long foo@INDNTPOFF
14592 l %r1,foo@GOTNTPOFF(%r12)
14593 l %r1,0(%r1):tls_load:foo
14594 bas %r14,0(%r1,%r13):tls_gdcall:foo
14595 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14598 tls_as_opt
="-m31 --fatal-warnings"
14602 .section ".tdata","awT",@progbits
14609 .quad foo@GOTNTPOFF
14610 lg %r1,foo@GOTNTPOFF(%r12)
14611 larl %r1,foo@INDNTPOFF
14612 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14613 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14616 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14618 sh-
*-* | sh
[34]-*-*)
14620 .section ".tdata","awT",@progbits
14630 tls_as_opt
=--fatal-warnings
14634 sparc
*-sun-solaris2.
[56789]*)
14635 # TLS was introduced in the Solaris 9 4/04 release but
14636 # we do not enable it by default on Solaris 9 either.
14637 if test "x$enable_tls" = xyes
; then
14643 sparc
*-sun-solaris2.
*)
14650 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14652 .section ".tdata",#alloc,#write,#tls
14655 sethi %tgd_hi22(foo), %o0
14656 add %o0, %tgd_lo10(foo), %o1
14657 add %l7, %o1, %o0, %tgd_add(foo)
14658 call __tls_get_addr, %tgd_call(foo)
14659 sethi %tldm_hi22(foo), %l1
14660 add %l1, %tldm_lo10(foo), %l2
14661 add %l7, %l2, %o0, %tldm_add(foo)
14662 call __tls_get_addr, %tldm_call(foo)
14663 sethi %tldo_hix22(foo), %l3
14664 xor %l3, %tldo_lox10(foo), %l4
14665 add %o0, %l4, %l5, %tldo_add(foo)
14666 sethi %tie_hi22(foo), %o3
14667 add %o3, %tie_lo10(foo), %o3
14668 ld [%l7 + %o3], %o2, %tie_ld(foo)
14669 add %g7, %o2, %o4, %tie_add(foo)
14670 sethi %tle_hix22(foo), %l1
14671 xor %l1, %tle_lox10(foo), %o5
14672 ld [%g7 + %o5], %o1'
14677 .section ".tdata","awT",@progbits
14680 sethi %tgd_hi22(foo), %o0
14681 add %o0, %tgd_lo10(foo), %o1
14682 add %l7, %o1, %o0, %tgd_add(foo)
14683 call __tls_get_addr, %tgd_call(foo)
14684 sethi %tldm_hi22(foo), %l1
14685 add %l1, %tldm_lo10(foo), %l2
14686 add %l7, %l2, %o0, %tldm_add(foo)
14687 call __tls_get_addr, %tldm_call(foo)
14688 sethi %tldo_hix22(foo), %l3
14689 xor %l3, %tldo_lox10(foo), %l4
14690 add %o0, %l4, %l5, %tldo_add(foo)
14691 sethi %tie_hi22(foo), %o3
14692 add %o3, %tie_lo10(foo), %o3
14693 ld [%l7 + %o3], %o2, %tie_ld(foo)
14694 add %g7, %o2, %o4, %tie_add(foo)
14695 sethi %tle_hix22(foo), %l1
14696 xor %l1, %tle_lox10(foo), %o5
14697 ld [%g7 + %o5], %o1'
14700 tls_as_opt
="-32 --fatal-warnings"
14705 if test "x$enable_tls" = xno
; then
14706 : # TLS explicitly disabled.
14707 elif test "x$enable_tls" = xyes
; then
14708 set_have_as_tls
=yes # TLS explicitly enabled.
14709 elif test -z "$tls_first_major"; then
14710 : # If we don't have a check, assume no support.
14712 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14713 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14714 if test "${gcc_cv_as_tls+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 if test $in_tree_gas = yes; then
14719 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14720 then gcc_cv_as_tls
=yes
14722 elif test x
$gcc_cv_as != x
; then
14723 echo "$conftest_s" > conftest.s
14724 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }
14733 echo "configure: failed program was" >&5
14736 rm -f conftest.o conftest.s
14739 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14740 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14741 if test $gcc_cv_as_tls = yes; then
14742 set_have_as_tls
=yes
14745 if test $set_have_as_tls = yes ; then
14747 cat >>confdefs.h
<<\_ACEOF
14748 #define HAVE_AS_TLS 1
14753 # Target-specific assembler checks.
14755 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14756 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14757 gcc_cv_ld_static_dynamic
=no
14758 if test $in_tree_ld = yes ; then
14759 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14760 gcc_cv_ld_static_dynamic
=yes
14762 elif test x
$gcc_cv_ld != x
; then
14763 # Check if linker supports -Bstatic/-Bdynamic option
14764 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14765 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14766 gcc_cv_ld_static_dynamic
=yes
14769 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14771 cat >>confdefs.h
<<\_ACEOF
14772 #define HAVE_LD_STATIC_DYNAMIC 1
14776 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14777 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14779 if test x
"$demangler_in_ld" = xyes
; then
14780 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14781 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14782 gcc_cv_ld_demangle
=no
14783 if test $in_tree_ld = yes; then
14784 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 \
14785 gcc_cv_ld_demangle
=yes
14787 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14788 # Check if the GNU linker supports --demangle option
14789 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14790 gcc_cv_ld_demangle
=yes
14793 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14795 cat >>confdefs.h
<<\_ACEOF
14796 #define HAVE_LD_DEMANGLE 1
14800 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14801 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14805 # All TARGET_ABI_OSF targets.
14806 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14807 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14808 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14809 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 gcc_cv_as_alpha_explicit_relocs
=no
14813 if test $in_tree_gas = yes; then
14814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14815 then gcc_cv_as_alpha_explicit_relocs
=yes
14817 elif test x
$gcc_cv_as != x
; then
14818 echo ' .set nomacro
14820 extbl $3, $2, $3 !lituse_bytoff!1
14821 ldq $2, a($29) !literal!1
14822 ldq $4, b($29) !literal!2
14823 ldq_u $3, 0($2) !lituse_base!1
14824 ldq $27, f($29) !literal!5
14825 jsr $26, ($27), f !lituse_jsr!5
14826 ldah $29, 0($26) !gpdisp!3
14827 lda $0, c($29) !gprel
14828 ldah $1, d($29) !gprelhigh
14829 lda $1, d($1) !gprellow
14830 lda $29, 0($29) !gpdisp!3' > conftest.s
14831 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }
14838 gcc_cv_as_alpha_explicit_relocs
=yes
14840 echo "configure: failed program was" >&5
14843 rm -f conftest.o conftest.s
14846 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14847 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14848 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14850 cat >>confdefs.h
<<\_ACEOF
14851 #define HAVE_AS_EXPLICIT_RELOCS 1
14855 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14856 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14857 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 gcc_cv_as_alpha_jsrdirect_relocs
=no
14861 if test $in_tree_gas = yes; then
14862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14863 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14865 elif test x
$gcc_cv_as != x
; then
14866 echo ' .set nomacro
14868 ldq $27, a($29) !literal!1
14869 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14870 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }
14877 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14879 echo "configure: failed program was" >&5
14882 rm -f conftest.o conftest.s
14885 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14886 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14887 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14889 cat >>confdefs.h
<<\_ACEOF
14890 #define HAVE_AS_JSRDIRECT_RELOCS 1
14897 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14898 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14899 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 gcc_cv_as_cris_no_mul_bug
=no
14903 if test $in_tree_gas = yes; then
14904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14905 then gcc_cv_as_cris_no_mul_bug
=yes
14907 elif test x
$gcc_cv_as != x
; then
14908 echo '.text' > conftest.s
14909 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }
14916 gcc_cv_as_cris_no_mul_bug
=yes
14918 echo "configure: failed program was" >&5
14921 rm -f conftest.o conftest.s
14924 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14925 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14926 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14928 cat >>confdefs.h
<<\_ACEOF
14929 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14936 echo "$as_me:$LINENO: checking assembler for .register" >&5
14937 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14938 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 gcc_cv_as_sparc_register_op
=no
14942 if test x
$gcc_cv_as != x
; then
14943 echo '.register %g2, #scratch' > conftest.s
14944 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }
14951 gcc_cv_as_sparc_register_op
=yes
14953 echo "configure: failed program was" >&5
14956 rm -f conftest.o conftest.s
14959 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14960 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14961 if test $gcc_cv_as_sparc_register_op = yes; then
14963 cat >>confdefs.h
<<\_ACEOF
14964 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14969 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14970 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14971 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 gcc_cv_as_sparc_relax
=no
14975 if test x
$gcc_cv_as != x
; then
14976 echo '.text' > conftest.s
14977 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }
14984 gcc_cv_as_sparc_relax
=yes
14986 echo "configure: failed program was" >&5
14989 rm -f conftest.o conftest.s
14992 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14993 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14994 if test $gcc_cv_as_sparc_relax = yes; then
14996 cat >>confdefs.h
<<\_ACEOF
14997 #define HAVE_AS_RELAX_OPTION 1
15002 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15003 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15004 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 gcc_cv_as_sparc_ua_pcrel
=no
15008 if test x
$gcc_cv_as != x
; then
15015 .uaword %r_disp32(foo)' > conftest.s
15016 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }
15023 if test x
$gcc_cv_ld != x \
15024 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
15025 gcc_cv_as_sparc_ua_pcrel
=yes
15029 echo "configure: failed program was" >&5
15032 rm -f conftest.o conftest.s
15035 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15036 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15037 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15039 cat >>confdefs.h
<<\_ACEOF
15040 #define HAVE_AS_SPARC_UA_PCREL 1
15044 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15045 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15046 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 gcc_cv_as_sparc_ua_pcrel_hidden
=no
15050 if test x
$gcc_cv_as != x
; then
15054 .uaword %r_disp32(foo)
15055 .byte 0x32, 0x33, 0x34
15059 .skip 4' > conftest.s
15060 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062 (eval $ac_try) 2>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }
15067 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
15068 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
15069 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
15070 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
15071 if $gcc_cv_objdump -R conftest
2> /dev
/null \
15072 |
grep 'DISP32' > /dev
/null
2>&1; then
15075 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
15080 echo "configure: failed program was" >&5
15083 rm -f conftest.o conftest.s
15086 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15087 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15088 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15090 cat >>confdefs.h
<<\_ACEOF
15091 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15096 fi # unaligned pcrel relocs
15098 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15099 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15100 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 gcc_cv_as_sparc_offsetable_lo10
=no
15104 if test x
$gcc_cv_as != x
; then
15106 or %g1, %lo(ab) + 12, %g1
15107 or %g1, %lo(ab + 12), %g1' > conftest.s
15108 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }
15115 if test x
$gcc_cv_objdump != x \
15116 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
15117 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
15118 gcc_cv_as_sparc_offsetable_lo10
=yes
15121 echo "configure: failed program was" >&5
15124 rm -f conftest.o conftest.s
15127 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15128 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15129 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15131 cat >>confdefs.h
<<\_ACEOF
15132 #define HAVE_AS_OFFSETABLE_LO10 1
15138 i
[34567]86-*-* | x86_64-
*-*)
15140 cygwin
* | pe | mingw32
*)
15141 # Used for DWARF 2 in PE
15142 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15143 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15144 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 gcc_cv_as_ix86_pe_secrel32
=no
15148 if test $in_tree_gas = yes; then
15149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15150 then gcc_cv_as_ix86_pe_secrel32
=yes
15152 elif test x
$gcc_cv_as != x
; then
15156 .secrel32 foo' > conftest.s
15157 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }
15164 if test x
$gcc_cv_ld != x \
15165 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
15166 gcc_cv_as_ix86_pe_secrel32
=yes
15170 echo "configure: failed program was" >&5
15173 rm -f conftest.o conftest.s
15176 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15177 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15178 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15180 cat >>confdefs.h
<<\_ACEOF
15181 #define HAVE_GAS_PE_SECREL32_RELOC 1
15188 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15189 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15190 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 gcc_cv_as_ix86_filds_fists
=no
15194 if test $in_tree_gas = yes; then
15195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15196 then gcc_cv_as_ix86_filds_fists
=yes
15198 elif test x
$gcc_cv_as != x
; then
15199 echo 'filds mem; fists mem' > conftest.s
15200 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }
15207 gcc_cv_as_ix86_filds_fists
=yes
15209 echo "configure: failed program was" >&5
15212 rm -f conftest.o conftest.s
15215 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15216 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15217 if test $gcc_cv_as_ix86_filds_fists = yes; then
15219 cat >>confdefs.h
<<\_ACEOF
15220 #define HAVE_GAS_FILDS_FISTS 1
15225 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15226 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15227 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15230 gcc_cv_as_ix86_cmov_sun_syntax
=no
15231 if test x
$gcc_cv_as != x
; then
15232 echo 'cmovl.l %edx, %eax' > conftest.s
15233 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }
15240 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15242 echo "configure: failed program was" >&5
15245 rm -f conftest.o conftest.s
15248 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15249 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15250 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15252 cat >>confdefs.h
<<\_ACEOF
15253 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15258 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15259 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15260 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15263 gcc_cv_as_ix86_ffreep
=no
15264 if test x
$gcc_cv_as != x
; then
15265 echo 'ffreep %st(1)' > conftest.s
15266 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }
15273 gcc_cv_as_ix86_ffreep
=yes
15275 echo "configure: failed program was" >&5
15278 rm -f conftest.o conftest.s
15281 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15282 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15283 if test $gcc_cv_as_ix86_ffreep = yes; then
15285 cat >>confdefs.h
<<\_ACEOF
15286 #define HAVE_AS_IX86_FFREEP 1
15291 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15292 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15293 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 gcc_cv_as_ix86_sahf
=no
15297 if test x
$gcc_cv_as != x
; then
15298 echo 'sahf' > conftest.s
15299 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301 (eval $ac_try) 2>&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; }
15306 gcc_cv_as_ix86_sahf
=yes
15308 echo "configure: failed program was" >&5
15311 rm -f conftest.o conftest.s
15314 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15315 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15316 if test $gcc_cv_as_ix86_sahf = yes; then
15318 cat >>confdefs.h
<<\_ACEOF
15319 #define HAVE_AS_IX86_SAHF 1
15324 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15325 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15326 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15329 gcc_cv_as_ix86_diff_sect_delta
=no
15330 if test x
$gcc_cv_as != x
; then
15331 echo '.section .rodata
15337 .L2: nop' > conftest.s
15338 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }
15345 gcc_cv_as_ix86_diff_sect_delta
=yes
15347 echo "configure: failed program was" >&5
15350 rm -f conftest.o conftest.s
15353 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15354 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15355 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15357 cat >>confdefs.h
<<\_ACEOF
15358 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15363 # This one is used unconditionally by i386.[ch]; it is to be defined
15364 # to 1 if the feature is present, 0 otherwise.
15365 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15366 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15367 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 gcc_cv_as_ix86_gotoff_in_data
=no
15371 if test $in_tree_gas = yes; then
15372 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15373 then gcc_cv_as_ix86_gotoff_in_data
=yes
15375 elif test x
$gcc_cv_as != x
; then
15380 .long .L0@GOTOFF' > conftest.s
15381 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }
15388 gcc_cv_as_ix86_gotoff_in_data
=yes
15390 echo "configure: failed program was" >&5
15393 rm -f conftest.o conftest.s
15396 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15397 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15400 cat >>confdefs.h
<<_ACEOF
15401 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15407 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15408 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15409 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15413 if test $in_tree_gas = yes; then
15414 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15415 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15417 elif test x
$gcc_cv_as != x
; then
15419 addl r15 = @ltoffx(x#), gp
15421 ld8.mov r16 = [r15], x#' > conftest.s
15422 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }
15429 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15431 echo "configure: failed program was" >&5
15434 rm -f conftest.o conftest.s
15437 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15438 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15439 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15441 cat >>confdefs.h
<<\_ACEOF
15442 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15451 *-*-aix*) conftest_s
=' .machine "pwr5"
15455 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15456 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15457 if test "${gcc_cv_as_machine_directive+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 gcc_cv_as_machine_directive
=no
15461 if test x
$gcc_cv_as != x
; then
15462 echo ' .machine ppc7400' > conftest.s
15463 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }
15470 gcc_cv_as_machine_directive
=yes
15472 echo "configure: failed program was" >&5
15475 rm -f conftest.o conftest.s
15478 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15479 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15481 if test x
$gcc_cv_as_machine_directive != xyes
; then
15482 echo "*** This target requires an assembler supporting \".machine\"" >&2
15483 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15484 test x
$build = x
$target && exit 1
15488 *) conftest_s
=' .machine power4
15493 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15494 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15495 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 gcc_cv_as_powerpc_mfcrf
=no
15499 if test $in_tree_gas = yes; then
15500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15501 then gcc_cv_as_powerpc_mfcrf
=yes
15503 elif test x
$gcc_cv_as != x
; then
15504 echo "$conftest_s" > conftest.s
15505 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }
15512 gcc_cv_as_powerpc_mfcrf
=yes
15514 echo "configure: failed program was" >&5
15517 rm -f conftest.o conftest.s
15520 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15521 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15522 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15524 cat >>confdefs.h
<<\_ACEOF
15525 #define HAVE_AS_MFCRF 1
15531 *-*-aix*) conftest_s
=' .machine "pwr5"
15534 *) conftest_s
=' .machine power5
15539 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15540 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15541 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15544 gcc_cv_as_powerpc_popcntb
=no
15545 if test $in_tree_gas = yes; then
15546 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15547 then gcc_cv_as_powerpc_popcntb
=yes
15549 elif test x
$gcc_cv_as != x
; then
15550 echo "$conftest_s" > conftest.s
15551 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }
15558 gcc_cv_as_powerpc_popcntb
=yes
15560 echo "configure: failed program was" >&5
15563 rm -f conftest.o conftest.s
15566 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15567 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15568 if test $gcc_cv_as_powerpc_popcntb = yes; then
15570 cat >>confdefs.h
<<\_ACEOF
15571 #define HAVE_AS_POPCNTB 1
15577 *-*-aix*) conftest_s
=' .machine "pwr5x"
15580 *) conftest_s
=' .machine power5
15585 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15586 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15587 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 gcc_cv_as_powerpc_fprnd
=no
15591 if test $in_tree_gas = yes; then
15592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15593 then gcc_cv_as_powerpc_fprnd
=yes
15595 elif test x
$gcc_cv_as != x
; then
15596 echo "$conftest_s" > conftest.s
15597 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }
15604 gcc_cv_as_powerpc_fprnd
=yes
15606 echo "configure: failed program was" >&5
15609 rm -f conftest.o conftest.s
15612 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15613 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15614 if test $gcc_cv_as_powerpc_fprnd = yes; then
15616 cat >>confdefs.h
<<\_ACEOF
15617 #define HAVE_AS_FPRND 1
15623 *-*-aix*) conftest_s
=' .machine "pwr6"
15626 *) conftest_s
=' .machine power6
15631 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15632 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15633 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 gcc_cv_as_powerpc_mfpgpr
=no
15637 if test $in_tree_gas = yes; then
15638 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15639 then gcc_cv_as_powerpc_mfpgpr
=yes
15641 elif test x
$gcc_cv_as != x
; then
15642 echo "$conftest_s" > conftest.s
15643 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }
15650 gcc_cv_as_powerpc_mfpgpr
=yes
15652 echo "configure: failed program was" >&5
15655 rm -f conftest.o conftest.s
15658 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15659 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15660 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15662 cat >>confdefs.h
<<\_ACEOF
15663 #define HAVE_AS_MFPGPR 1
15669 *-*-aix*) conftest_s
=' .csect .text[PR]
15671 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15675 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15676 *) conftest_s
=' .text
15678 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15681 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15682 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15683 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15686 gcc_cv_as_powerpc_rel16
=no
15687 if test $in_tree_gas = yes; then
15688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15689 then gcc_cv_as_powerpc_rel16
=yes
15691 elif test x
$gcc_cv_as != x
; then
15692 echo "$conftest_s" > conftest.s
15693 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }
15700 gcc_cv_as_powerpc_rel16
=yes
15702 echo "configure: failed program was" >&5
15705 rm -f conftest.o conftest.s
15708 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15709 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15710 if test $gcc_cv_as_powerpc_rel16 = yes; then
15712 cat >>confdefs.h
<<\_ACEOF
15713 #define HAVE_AS_REL16 1
15719 *-*-aix*) conftest_s
=' .machine "pwr6"
15722 *) conftest_s
=' .machine power6
15727 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15728 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15729 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 gcc_cv_as_powerpc_cmpb
=no
15733 if test $in_tree_gas = yes; then
15734 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15735 then gcc_cv_as_powerpc_cmpb
=yes
15737 elif test x
$gcc_cv_as != x
; then
15738 echo "$conftest_s" > conftest.s
15739 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }
15746 gcc_cv_as_powerpc_cmpb
=yes
15748 echo "configure: failed program was" >&5
15751 rm -f conftest.o conftest.s
15754 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15755 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15756 if test $gcc_cv_as_powerpc_cmpb = yes; then
15758 cat >>confdefs.h
<<\_ACEOF
15759 #define HAVE_AS_CMPB 1
15765 *-*-aix*) conftest_s
=' .machine "pwr6"
15768 *) conftest_s
=' .machine power6
15773 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15774 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15775 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 gcc_cv_as_powerpc_dfp
=no
15779 if test $in_tree_gas = yes; then
15780 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15781 then gcc_cv_as_powerpc_dfp
=yes
15783 elif test x
$gcc_cv_as != x
; then
15784 echo "$conftest_s" > conftest.s
15785 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }
15792 gcc_cv_as_powerpc_dfp
=yes
15794 echo "configure: failed program was" >&5
15797 rm -f conftest.o conftest.s
15800 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15801 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15802 if test $gcc_cv_as_powerpc_dfp = yes; then
15804 cat >>confdefs.h
<<\_ACEOF
15805 #define HAVE_AS_DFP 1
15812 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15813 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15814 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 gcc_cv_as_mips_explicit_relocs
=no
15818 if test $in_tree_gas = yes; then
15819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15820 then gcc_cv_as_mips_explicit_relocs
=yes
15822 elif test x
$gcc_cv_as != x
; then
15823 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15824 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }
15831 gcc_cv_as_mips_explicit_relocs
=yes
15833 echo "configure: failed program was" >&5
15836 rm -f conftest.o conftest.s
15839 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15840 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15841 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15842 if test x
$target_cpu_default = x
15843 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15844 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15847 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15848 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15849 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 gcc_cv_as_mips_no_shared
=no
15853 if test $in_tree_gas = yes; then
15854 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15855 then gcc_cv_as_mips_no_shared
=yes
15857 elif test x
$gcc_cv_as != x
; then
15858 echo 'nop' > conftest.s
15859 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }
15866 gcc_cv_as_mips_no_shared
=yes
15868 echo "configure: failed program was" >&5
15871 rm -f conftest.o conftest.s
15874 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15875 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15876 if test $gcc_cv_as_mips_no_shared = yes; then
15878 cat >>confdefs.h
<<\_ACEOF
15879 #define HAVE_AS_NO_SHARED 1
15886 # Mips and HP-UX need the GNU assembler.
15887 # Linux on IA64 might be able to use the Intel assembler.
15890 mips
*-*-* |
*-*-hpux* )
15891 if test x
$gas_flag = xyes \
15892 ||
test x
"$host" != x
"$build" \
15893 ||
test ! -x "$gcc_cv_as" \
15894 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15897 echo "*** This configuration requires the GNU assembler" >&2
15903 # ??? Not all targets support dwarf2 debug_line, even within a version
15904 # of gas. Moreover, we need to emit a valid instruction to trigger any
15905 # info to the output file. So, as supported targets are added to gas 2.11,
15906 # add some instruction here to (also) show we expect this might work.
15907 # ??? Once 2.11 is released, probably need to add first known working
15908 # version to the per-target configury.
15910 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15911 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15912 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* | spu-
*-*)
15915 ia64
*-*-* | s390
*-*-*)
15922 if test x
"$insn" != x
; then
15924 .file 1 \"conftest.s\"
15927 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15928 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15929 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 gcc_cv_as_dwarf2_debug_line
=no
15933 if test $in_tree_gas = yes; then
15934 if test $in_tree_gas_is_elf = yes \
15935 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15936 then gcc_cv_as_dwarf2_debug_line
=yes
15938 elif test x
$gcc_cv_as != x
; then
15939 echo "$conftest_s" > conftest.s
15940 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }
15947 if test x
$gcc_cv_objdump != x \
15948 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15949 |
grep debug_line
> /dev
/null
2>&1; then
15950 gcc_cv_as_dwarf2_debug_line
=yes
15953 echo "configure: failed program was" >&5
15956 rm -f conftest.o conftest.s
15959 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15960 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15963 # The .debug_line file table must be in the exact order that
15964 # we specified the files, since these indices are also used
15965 # by DW_AT_decl_file. Approximate this test by testing if
15966 # the assembler bitches if the same index is assigned twice.
15967 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15968 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15969 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 gcc_cv_as_dwarf2_file_buggy
=no
15973 if test x
$gcc_cv_as != x
; then
15974 echo ' .file 1 "foo.s"
15975 .file 1 "bar.s"' > conftest.s
15976 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }
15983 gcc_cv_as_dwarf2_file_buggy
=yes
15985 echo "configure: failed program was" >&5
15988 rm -f conftest.o conftest.s
15991 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15992 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15995 if test $gcc_cv_as_dwarf2_debug_line = yes \
15996 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15998 cat >>confdefs.h
<<\_ACEOF
15999 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16004 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16005 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16006 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 gcc_cv_as_gdwarf2_flag
=no
16010 if test $in_tree_gas = yes; then
16011 if test $in_tree_gas_is_elf = yes \
16012 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16013 then gcc_cv_as_gdwarf2_flag
=yes
16015 elif test x
$gcc_cv_as != x
; then
16016 echo "$insn" > conftest.s
16017 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }
16024 gcc_cv_as_gdwarf2_flag
=yes
16026 echo "configure: failed program was" >&5
16029 rm -f conftest.o conftest.s
16032 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16033 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16034 if test $gcc_cv_as_gdwarf2_flag = yes; then
16036 cat >>confdefs.h
<<\_ACEOF
16037 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16042 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16043 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16044 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 gcc_cv_as_gstabs_flag
=no
16048 if test $in_tree_gas = yes; then
16049 if test $in_tree_gas_is_elf = yes \
16050 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16051 then gcc_cv_as_gstabs_flag
=yes
16053 elif test x
$gcc_cv_as != x
; then
16054 echo "$insn" > conftest.s
16055 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }
16062 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16063 # and warns about it, but still exits successfully. So check for
16065 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }
16072 else gcc_cv_as_gstabs_flag
=yes
16075 echo "configure: failed program was" >&5
16078 rm -f conftest.o conftest.s
16081 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16082 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16083 if test $gcc_cv_as_gstabs_flag = yes; then
16085 cat >>confdefs.h
<<\_ACEOF
16086 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16092 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16093 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16094 if test "${gcc_cv_as_line_zero+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16097 gcc_cv_as_line_zero
=no
16098 if test $in_tree_gas = yes; then
16099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16100 then gcc_cv_as_line_zero
=yes
16102 elif test "x$gcc_cv_as" != x
; then
16103 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16104 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 test "x`cat conftest.out`" = x
16112 gcc_cv_as_line_zero
=yes
16114 echo "configure: failed program was" >&5
16116 echo "configure: error output was" >&5
16117 cat conftest.out
>&5
16119 rm -f conftest.o conftest.s conftest.out
16122 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16123 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16124 if test "x$gcc_cv_as_line_zero" = xyes
; then
16126 cat >>confdefs.h
<<\_ACEOF
16127 #define HAVE_AS_LINE_ZERO 1
16132 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16133 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16134 gcc_cv_ld_ro_rw_mix
=unknown
16135 if test $in_tree_ld = yes ; then
16136 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 \
16137 && test $in_tree_ld_is_elf = yes; then
16138 gcc_cv_ld_ro_rw_mix
=read-write
16140 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16141 echo '.section myfoosect, "a"' > conftest1.s
16142 echo '.section myfoosect, "aw"' > conftest2.s
16143 echo '.byte 1' >> conftest2.s
16144 echo '.section myfoosect, "a"' > conftest3.s
16145 echo '.byte 0' >> conftest3.s
16146 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16147 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16148 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
16149 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16150 conftest2.o conftest3.o
> /dev
/null
2>&1; then
16151 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
16152 | sed -e '/myfoosect/!d' -e N`
16153 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
16154 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
16155 gcc_cv_ld_ro_rw_mix
=read-only
16157 gcc_cv_ld_ro_rw_mix
=read-write
16161 rm -f conftest.
* conftest
[123].
*
16163 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
16165 cat >>confdefs.h
<<\_ACEOF
16166 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16170 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16171 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16173 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16174 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16175 gcc_cv_ld_eh_frame_hdr
=no
16176 if test $in_tree_ld = yes ; then
16177 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 \
16178 && test $in_tree_ld_is_elf = yes; then
16179 gcc_cv_ld_eh_frame_hdr
=yes
16181 elif test x
$gcc_cv_ld != x
; then
16182 # Check if linker supports --eh-frame-hdr option
16183 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
16184 gcc_cv_ld_eh_frame_hdr
=yes
16188 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
16190 cat >>confdefs.h
<<\_ACEOF
16191 #define HAVE_LD_EH_FRAME_HDR 1
16195 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16196 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16198 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16199 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16201 if test $in_tree_ld = yes ; then
16202 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 \
16203 && test $in_tree_ld_is_elf = yes; then
16206 elif test x
$gcc_cv_ld != x
; then
16207 # Check if linker supports -pie option
16208 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
16212 if test x
"$gcc_cv_ld_pie" = xyes
; then
16214 cat >>confdefs.h
<<\_ACEOF
16215 #define HAVE_LD_PIE 1
16219 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16220 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16222 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16223 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16224 gcc_cv_ld_eh_gc_sections
=no
16225 if test $in_tree_ld = yes ; then
16226 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16227 && test $in_tree_ld_is_elf = yes; then
16228 gcc_cv_ld_eh_gc_sections
=yes
16230 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16231 cat > conftest.s
<<EOF
16234 .type _start, @function
16237 .size _start, .-_start
16238 .section .text.foo,"ax",@progbits
16239 .type foo, @function
16243 .section .gcc_except_table.foo,"a",@progbits
16246 .section .eh_frame,"a",@progbits
16249 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
16250 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
16251 |
grep "gc-sections option ignored" > /dev
/null
; then
16252 gcc_cv_ld_eh_gc_sections
=no
16253 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
16254 gcc_cv_ld_eh_gc_sections
=yes
16255 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16256 if test x
$gcc_cv_as_comdat_group != xyes
; then
16257 gcc_cv_ld_eh_gc_sections
=no
16258 cat > conftest.s
<<EOF
16261 .type _start, @function
16264 .size _start, .-_start
16265 .section .gnu.linkonce.t.foo,"ax",@progbits
16266 .type foo, @function
16270 .section .gcc_except_table.foo,"a",@progbits
16273 .section .eh_frame,"a",@progbits
16276 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
16277 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
16278 |
grep "gc-sections option ignored" > /dev
/null
; then
16279 gcc_cv_ld_eh_gc_sections
=no
16280 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
16281 gcc_cv_ld_eh_gc_sections
=yes
16287 rm -f conftest.s conftest.o conftest
16291 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16292 gcc_cv_ld_eh_gc_sections
=no
16295 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
16297 cat >>confdefs.h
<<\_ACEOF
16298 #define HAVE_LD_EH_GC_SECTIONS 1
16302 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16303 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16309 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16310 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16311 if test "${gcc_cv_ld_as_needed+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 gcc_cv_ld_as_needed
=no
16315 if test $in_tree_ld = yes ; then
16316 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 \
16317 && test $in_tree_ld_is_elf = yes; then
16318 gcc_cv_ld_as_needed
=yes
16320 elif test x
$gcc_cv_ld != x
; then
16321 # Check if linker supports --as-needed and --no-as-needed options
16322 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
16323 gcc_cv_ld_as_needed
=yes
16328 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16329 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16330 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
16332 cat >>confdefs.h
<<\_ACEOF
16333 #define HAVE_LD_AS_NEEDED 1
16338 case "$target:$tm_file" in
16339 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
16340 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16341 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16342 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 gcc_cv_ld_no_dot_syms
=no
16346 if test $in_tree_ld = yes ; then
16347 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
16348 gcc_cv_ld_no_dot_syms
=yes
16350 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
16351 cat > conftest1.s
<<EOF
16355 cat > conftest2.s
<<EOF
16356 .section ".opd","aw"
16359 .type foo,@function
16361 .quad .LEfoo,.TOC.@tocbase,0
16367 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16368 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16369 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
16370 gcc_cv_ld_no_dot_syms
=yes
16372 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16376 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16377 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16378 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
16380 cat >>confdefs.h
<<\_ACEOF
16381 #define HAVE_LD_NO_DOT_SYMS 1
16388 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16389 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16390 if test "${gcc_cv_ld_sysroot+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 gcc_cv_ld_sysroot
=no
16394 if test $in_tree_ld = yes ; then
16395 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
16396 gcc_cv_ld_sysroot
=yes
16398 elif test x
$gcc_cv_ld != x
; then
16399 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
16400 gcc_cv_ld_sysroot
=yes
16404 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16405 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16406 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
16408 cat >>confdefs.h
<<\_ACEOF
16409 #define HAVE_LD_SYSROOT 1
16414 if test x
$with_sysroot = x
&& test x
$host = x
$target \
16415 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16416 && test "$prefix" != "NONE"; then
16418 cat >>confdefs.h
<<_ACEOF
16419 #define PREFIX_INCLUDE_DIR "$prefix/include"
16424 # Test for stack protector support in target C library.
16425 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16426 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16427 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 gcc_cv_libc_provides_ssp
=no
16433 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16434 if test "x$with_sysroot" = x
; then
16435 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16436 elif test "x$with_build_sysroot" != "x"; then
16437 glibc_header_dir
="${with_build_sysroot}/usr/include"
16438 elif test "x$with_sysroot" = xyes
; then
16439 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16441 glibc_header_dir
="${with_sysroot}/usr/include"
16444 glibc_header_dir
=/usr
/include
16446 # glibc 2.4 and later provides __stack_chk_fail and
16447 # either __stack_chk_guard, or TLS access to stack guard canary.
16448 if test -f $glibc_header_dir/features.h \
16449 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16450 $glibc_header_dir/features.h
> /dev
/null
; then
16451 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16452 $glibc_header_dir/features.h
> /dev
/null
; then
16453 gcc_cv_libc_provides_ssp
=yes
16454 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16455 $glibc_header_dir/features.h
> /dev
/null \
16456 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16457 $glibc_header_dir/features.h
> /dev
/null
; then
16458 gcc_cv_libc_provides_ssp
=yes
16463 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16464 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16465 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 cat >conftest.
$ac_ext <<_ACEOF
16471 cat confdefs.h
>>conftest.
$ac_ext
16472 cat >>conftest.
$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16476 #define __stack_chk_fail innocuous___stack_chk_fail
16478 /* System header to define __stub macros and hopefully few prototypes,
16479 which can conflict with char __stack_chk_fail (); below.
16480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16481 <limits.h> exists even on freestanding compilers. */
16484 # include <limits.h>
16486 # include <assert.h>
16489 #undef __stack_chk_fail
16491 /* Override any gcc2 internal prototype to avoid an error. */
16496 /* We use char because int might match the return type of a gcc2
16497 builtin and then its argument prototype would still apply. */
16498 char __stack_chk_fail ();
16499 /* The GNU C library defines this for functions which it implements
16500 to always fail with ENOSYS. Some functions are actually named
16501 something starting with __ and the normal name is an alias. */
16502 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16505 char (*f) () = __stack_chk_fail;
16514 return f != __stack_chk_fail;
16519 rm -f conftest.
$ac_objext conftest
$ac_exeext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16521 (eval $ac_link) 2>conftest.er1
16523 grep -v '^ *+' conftest.er1
>conftest.err
16525 cat conftest.err
>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try
='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try
='test -s conftest$ac_exeext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_cv_func___stack_chk_fail
=yes
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.
$ac_ext >&5
16546 ac_cv_func___stack_chk_fail
=no
16548 rm -f conftest.err conftest.
$ac_objext \
16549 conftest
$ac_exeext conftest.
$ac_ext
16551 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16552 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16553 if test $ac_cv_func___stack_chk_fail = yes; then
16554 gcc_cv_libc_provides_ssp
=yes
16556 echo "no __stack_chk_fail on this target"
16560 *) gcc_cv_libc_provides_ssp
=no
;;
16563 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16564 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16566 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
16568 cat >>confdefs.h
<<\_ACEOF
16569 #define TARGET_LIBC_PROVIDES_SSP 1
16574 # Check if TFmode long double should be used by default or not.
16575 # Some glibc targets used DFmode long double, but with glibc 2.4
16576 # and later they can use TFmode.
16578 powerpc
*-*-linux* | \
16579 powerpc
*-*-gnu* | \
16580 sparc
*-*-linux* | \
16584 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16585 if test "${with_long_double_128+set}" = set; then
16586 withval
="$with_long_double_128"
16587 gcc_cv_target_ldbl128
="$with_long_double_128"
16589 gcc_cv_target_ldbl128
=no
16590 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16591 if test "x$with_sysroot" = x
; then
16592 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16593 elif test "x$with_build_sysroot" != "x"; then
16594 glibc_header_dir
="${with_build_sysroot}/usr/include"
16595 elif test "x$with_sysroot" = xyes
; then
16596 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16598 glibc_header_dir
="${with_sysroot}/usr/include"
16601 glibc_header_dir
=/usr
/include
16603 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16604 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
16605 && gcc_cv_target_ldbl128
=yes
16610 if test x
$gcc_cv_target_ldbl128 = xyes
; then
16612 cat >>confdefs.h
<<\_ACEOF
16613 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16618 # Find out what GC implementation we want, or may, use.
16620 # Check whether --with-gc or --without-gc was given.
16621 if test "${with_gc+set}" = set; then
16630 cat >>confdefs.h
<<\_ACEOF
16636 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16637 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16638 { (exit 1); exit 1; }; }
16645 echo "Using $GGC for garbage collection."
16647 # Use the system's zlib library.
16649 zlibinc
="-I\$(srcdir)/../zlib"
16651 # Check whether --with-system-zlib or --without-system-zlib was given.
16652 if test "${with_system_zlib+set}" = set; then
16653 withval
="$with_system_zlib"
16662 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16663 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16664 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16665 if test "${enable_maintainer_mode+set}" = set; then
16666 enableval
="$enable_maintainer_mode"
16667 maintainer_mode
=$enableval
16672 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16673 echo "${ECHO_T}$maintainer_mode" >&6
16675 if test "$maintainer_mode" = "yes"; then
16685 # Make empty files to contain the specs and options for each language.
16686 # Then add #include lines to for a compiler that has specs and/or options.
16692 # These (without "all_") are set in each config-lang.in.
16693 # `language' must be a single word so is spelled singularly.
16696 all_outputs
='Makefile gccbug libada-mk'
16697 # List of language makefile fragments.
16698 all_lang_makefrags
=
16699 # List of language subdirectory makefiles. Deprecated.
16700 all_lang_makefiles
=
16701 # Additional files for gengtype
16702 all_gtfiles
="$target_gtfiles"
16704 # These are the languages that are set in --enable-languages,
16705 # and are available in the GCC tree.
16706 all_selected_languages
=
16708 # Add the language fragments.
16709 # Languages are added via two mechanisms. Some information must be
16710 # recorded in makefile variables, these are defined in config-lang.in.
16711 # We accumulate them and plug them into the main Makefile.
16712 # The other mechanism is a set of hooks for each of the main targets
16713 # like `clean', `install', etc.
16715 language_hooks
="Make-hooks"
16717 for lang
in ${srcdir}/*/config-lang.
in
16719 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16721 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16722 if test "x$lang_alias" = x
16724 echo "$lang doesn't set \$language." 1>&2
16727 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16728 subdirs
="$subdirs $subdir"
16729 case ",$enable_languages," in
16731 all_selected_languages
="$all_selected_languages $lang_alias"
16732 if test -f $srcdir/$subdir/lang-specs.h
; then
16733 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16744 .
${srcdir}/$subdir/config-lang.
in
16745 if test "x$language" = x
16747 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16752 case ",$enable_languages," in
16753 *,$lang_alias,*) ;;
16755 for i
in $subdir_requires; do
16756 test -f "${srcdir}/$i/config-lang.in" && continue
16764 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16765 if test -f $srcdir/$subdir/lang.opt
; then
16766 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16768 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16769 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16771 if test -f ${srcdir}/$subdir/Makefile.
in
16772 then all_lang_makefiles
="$subdir/Makefile"
16774 all_languages
="$all_languages $language"
16775 all_compilers
="$all_compilers $compilers"
16776 all_outputs
="$all_outputs $outputs"
16777 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
16780 # Pick up gtfiles for c
16782 .
${srcdir}/c-config-lang.
in
16783 all_gtfiles
="$all_gtfiles [c] $gtfiles"
16786 for language
in $all_selected_languages
16788 check_languages
="$check_languages check-$language"
16791 # We link each language in with a set of hooks, reached indirectly via
16792 # lang.${target}. Only do so for selected languages.
16796 target_list
="all.cross start.encap rest.encap tags \
16797 install-common install-man install-info install-pdf dvi pdf \
16798 html uninstall info man srcextra srcman srcinfo \
16799 mostlyclean clean distclean maintainer-clean"
16801 for t
in $target_list
16804 for lang
in $all_selected_languages
16808 echo "lang.$t: $x" >> Make-hooks
16817 echo "dir ." > .gdbinit
16818 echo "dir ${srcdir}" >> .gdbinit
16819 if test x
$gdb_needs_out_file_path = xyes
16821 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16823 if test "x$subdirs" != x
; then
16826 echo "dir ${srcdir}/$s" >> .gdbinit
16829 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16831 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16832 # absolute path for gcc_tooldir based on inserting the number of up-directory
16833 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16834 # $(libsubdir)/@(unlibsubdir) based path.
16835 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16836 # make and thus we'd get different behavior depending on where we built the
16838 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
16839 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16841 # An explanation of the sed strings:
16842 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16843 # -e 's|/$||' match a trailing forward slash and eliminates it
16844 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16845 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16847 # (*) Note this pattern overwrites the first character of the string
16848 # with a forward slash if one is not already present. This is not a
16849 # problem because the exact names of the sub-directories concerned is
16850 # unimportant, just the number of them matters.
16852 # The practical upshot of these patterns is like this:
16854 # prefix exec_prefix result
16855 # ------ ----------- ------
16856 # /foo /foo/bar ../
16857 # /foo/ /foo/bar ../
16858 # /foo /foo/bar/ ../
16859 # /foo/ /foo/bar/ ../
16860 # /foo /foo/bar/ugg ../../
16863 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16868 # Find a directory in which to install a shared libgcc.
16870 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16871 if test "${enable_version_specific_runtime_libs+set}" = set; then
16872 enableval
="$enable_version_specific_runtime_libs"
16877 # Check whether --with-slibdir or --without-slibdir was given.
16878 if test "${with_slibdir+set}" = set; then
16879 withval
="$with_slibdir"
16880 slibdir
="$with_slibdir"
16882 if test "${enable_version_specific_runtime_libs+set}" = set; then
16883 slibdir
='$(libsubdir)'
16884 elif test "$host" != "$target"; then
16885 slibdir
='$(build_tooldir)/lib'
16887 slibdir
='$(libdir)'
16892 objdir
=`${PWDCMD-pwd}`
16896 # Check whether --with-datarootdir or --without-datarootdir was given.
16897 if test "${with_datarootdir+set}" = set; then
16898 withval
="$with_datarootdir"
16899 datarootdir
="\${prefix}/$with_datarootdir"
16901 datarootdir
='$(prefix)/share'
16906 # Check whether --with-docdir or --without-docdir was given.
16907 if test "${with_docdir+set}" = set; then
16908 withval
="$with_docdir"
16909 docdir
="\${prefix}/$with_docdir"
16911 docdir
='$(datarootdir)'
16916 # Check whether --with-htmldir or --without-htmldir was given.
16917 if test "${with_htmldir+set}" = set; then
16918 withval
="$with_htmldir"
16919 htmldir
="\${prefix}/$with_htmldir"
16921 htmldir
='$(docdir)'
16925 # Substitute configuration variables
16982 if test x
${build} = x
${host} ; then
16983 if test x
${host} = x
${target} ; then
16984 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16986 echo "Links are now set up to build a cross-compiler" 1>&2
16987 echo " from ${host} to ${target}." 1>&2
16990 if test x
${host} = x
${target} ; then
16991 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16992 echo " for ${target}." 1>&2
16994 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16995 echo " from ${host} to ${target}." 1>&2
17002 # Configure the subdirectories
17003 # AC_CONFIG_SUBDIRS($subdirs)
17005 # Create the Makefile
17006 # and configure language subdirectories
17007 ac_config_files
="$ac_config_files $all_outputs"
17010 ac_config_commands
="$ac_config_commands default"
17012 cat >confcache
<<\_ACEOF
17013 # This file is a shell script that caches the results of configure
17014 # tests run on this system so they can be shared between configure
17015 # scripts and configure runs, see configure's option --config-cache.
17016 # It is not useful on other systems. If it contains results you don't
17017 # want to keep, you may remove or edit it.
17019 # config.status only pays attention to the cache file if you give it
17020 # the --recheck option to rerun configure.
17022 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17023 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17024 # following values.
17028 # The following way of writing the cache mishandles newlines in values,
17029 # but we know of no workaround that is simple, portable, and efficient.
17030 # So, don't put newlines in cache variables' values.
17031 # Ultrix sh set writes to stderr and can't be redirected directly,
17032 # and sets the high bit in the cache file unless we assign to the vars.
17035 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17037 # `set' does not quote correctly, so add quotes (double-quote
17038 # substitution turns \\\\ into \\, and sed turns \\ into \).
17041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17044 # `set' quotes correctly as required by POSIX, so do not add quotes.
17046 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17053 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17055 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17057 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17058 if test -w $cache_file; then
17059 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17060 cat confcache
>$cache_file
17062 echo "not updating unwritable cache $cache_file"
17067 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17068 # Let make expand exec_prefix.
17069 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17071 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17072 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17073 # trailing colons and then remove the whole line if VPATH becomes empty
17074 # (actually we leave an empty line to preserve line numbers).
17075 if test "x$srcdir" = x.
; then
17076 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17077 s/:*\$(srcdir):*/:/;
17078 s/:*\${srcdir}:*/:/;
17080 s/^\([^=]*=[ ]*\):*/\1/;
17086 DEFS
=-DHAVE_CONFIG_H
17090 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17091 # 1. Remove the extension, and $U if already installed.
17092 ac_i
=`echo "$ac_i" |
17093 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17095 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
17096 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
17098 LIBOBJS
=$ac_libobjs
17100 LTLIBOBJS
=$ac_ltlibobjs
17104 : ${CONFIG_STATUS=./config.status}
17105 ac_clean_files_save
=$ac_clean_files
17106 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17107 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17108 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17109 cat >$CONFIG_STATUS <<_ACEOF
17111 # Generated by $as_me.
17112 # Run this file to recreate the current configuration.
17113 # Compiler output produced by configure, useful for debugging
17114 # configure, is in config.log if it exists.
17117 ac_cs_recheck=false
17119 SHELL=\${CONFIG_SHELL-$SHELL}
17122 cat >>$CONFIG_STATUS <<\_ACEOF
17123 ## --------------------- ##
17124 ## M4sh Initialization. ##
17125 ## --------------------- ##
17127 # Be Bourne compatible
17128 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17131 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17132 # is contrary to our usage. Disable this feature.
17133 alias -g '${1+"$@"}'='"$@"'
17134 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17137 DUALCASE
=1; export DUALCASE
# for MKS sh
17139 # Support unset when possible.
17140 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
17147 # Work around bugs in pre-3.0 UWIN ksh.
17148 $as_unset ENV MAIL MAILPATH
17155 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17156 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17157 LC_TELEPHONE LC_TIME
17159 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17160 eval $as_var=C
; export $as_var
17166 # Required to use basename.
17167 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17173 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
17174 as_basename
=basename
17180 # Name of the executable.
17181 as_me
=`$as_basename "$0" ||
17182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17183 X"$0" : 'X\(//\)$' \| \
17184 X"$0" : 'X\(/\)$' \| \
17185 . : '\(.\)' 2>/dev/null ||
17187 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17188 /^X\/\(\/\/\)$/{ s//\1/; q; }
17189 /^X\/\(\/\).*/{ s//\1/; q; }
17193 # PATH needs CR, and LINENO needs CR and PATH.
17194 # Avoid depending upon Character Ranges.
17195 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17196 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17197 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17198 as_cr_digits
='0123456789'
17199 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17201 # The user is always right.
17202 if test "${PATH_SEPARATOR+set}" != set; then
17203 echo "#! /bin/sh" >conf$$.sh
17204 echo "exit 0" >>conf$$.sh
17206 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
17215 as_lineno_1
=$LINENO
17216 as_lineno_2
=$LINENO
17217 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
17218 test "x$as_lineno_1" != "x$as_lineno_2" &&
17219 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
17220 # Find who we are. Look in the path if we contain no path at all
17223 *[\\/]* ) as_myself
=$0 ;;
17224 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17225 for as_dir
in $PATH
17228 test -z "$as_dir" && as_dir
=.
17229 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17234 # We did not find ourselves, most probably we were run as `sh COMMAND'
17235 # in which case we are not to be found in the path.
17236 if test "x$as_myself" = x
; then
17239 if test ! -f "$as_myself"; then
17240 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17241 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17242 { (exit 1); exit 1; }; }
17244 case $CONFIG_SHELL in
17246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17247 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17250 test -z "$as_dir" && as_dir
=.
17251 for as_base
in sh bash ksh sh5
; do
17254 if ("$as_dir/$as_base" -c '
17255 as_lineno_1=$LINENO
17256 as_lineno_2=$LINENO
17257 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17258 test "x$as_lineno_1" != "x$as_lineno_2" &&
17259 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17260 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
17261 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
17262 CONFIG_SHELL
=$as_dir/$as_base
17263 export CONFIG_SHELL
17264 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17272 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17273 # uniformly replaced by the line number. The first 'sed' inserts a
17274 # line-number line before each line; the second 'sed' does the real
17275 # work. The second script uses 'N' to pair each line-number line
17276 # with the numbered line, and appends trailing '-' during
17277 # substitution so that $LINENO is not a special case at line end.
17278 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17279 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17280 sed '=' <$as_myself |
17285 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17288 s,^['$as_cr_digits']*\n,,
17289 ' >$as_me.lineno
&&
17290 chmod +x
$as_me.lineno ||
17291 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17292 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17293 { (exit 1); exit 1; }; }
17295 # Don't try to exec as it changes $[0], causing all sort of problems
17296 # (the dirname of $[0] is not the place where we might find the
17297 # original and so on. Autoconf is especially sensible to this).
17299 # Exit status is that of the last command.
17304 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17305 *c
*,-n*) ECHO_N
= ECHO_C
='
17307 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17308 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17311 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17317 rm -f conf$$ conf$$.exe conf$$.
file
17319 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17320 # We could just check for DJGPP; but this test a) works b) is more generic
17321 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17322 if test -f conf$$.exe
; then
17323 # Don't use ln at all; we don't have any links
17328 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17333 rm -f conf$$ conf$$.exe conf$$.
file
17335 if mkdir
-p .
2>/dev
/null
; then
17338 test -d .
/-p && rmdir .
/-p
17342 as_executable_p
="test -f"
17344 # Sed expression to map a string onto a valid CPP name.
17345 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17347 # Sed expression to map a string onto a valid variable name.
17348 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17352 # We need space, tab and new line, in precisely that order.
17362 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17363 # report actual input values of CONFIG_FILES etc. instead of their
17364 # values after options handling. Logging --version etc. is OK.
17368 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17369 ## Running $as_me. ##
17374 This file was extended by $as_me, which was
17375 generated by GNU Autoconf 2.59. Invocation command line was
17377 CONFIG_FILES = $CONFIG_FILES
17378 CONFIG_HEADERS = $CONFIG_HEADERS
17379 CONFIG_LINKS = $CONFIG_LINKS
17380 CONFIG_COMMANDS = $CONFIG_COMMANDS
17384 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17388 # Files that config.status was made for.
17389 if test -n "$ac_config_files"; then
17390 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17393 if test -n "$ac_config_headers"; then
17394 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17397 if test -n "$ac_config_links"; then
17398 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17401 if test -n "$ac_config_commands"; then
17402 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17405 cat >>$CONFIG_STATUS <<\_ACEOF
17408 \`$as_me' instantiates files from templates according to the
17409 current configuration.
17411 Usage: $0 [OPTIONS] [FILE]...
17413 -h, --help print this help, then exit
17414 -V, --version print version number, then exit
17415 -q, --quiet do not print progress messages
17416 -d, --debug don't remove temporary files
17417 --recheck update $as_me by reconfiguring in the same conditions
17418 --file=FILE[:TEMPLATE]
17419 instantiate the configuration file FILE
17420 --header=FILE[:TEMPLATE]
17421 instantiate the configuration header FILE
17423 Configuration files:
17426 Configuration headers:
17429 Configuration commands:
17432 Report bugs to <bug-autoconf@gnu.org>."
17435 cat >>$CONFIG_STATUS <<_ACEOF
17438 configured by $0, generated by GNU Autoconf 2.59,
17439 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17441 Copyright (C) 2003 Free Software Foundation, Inc.
17442 This config.status script is free software; the Free Software Foundation
17443 gives unlimited permission to copy, distribute and modify it."
17447 cat >>$CONFIG_STATUS <<\_ACEOF
17448 # If no file are specified by the user, then we need to provide default
17449 # value. By we need to know if files were specified by the user.
17455 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17456 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17464 *) # This is not an option, so the user has probably given explicit
17467 ac_need_defaults
=false
;;
17471 # Handling of the options.
17473 cat >>$CONFIG_STATUS <<\_ACEOF
17474 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17476 --version |
--vers* |
-V )
17477 echo "$ac_cs_version"; exit 0 ;;
17479 # Conflict between --help and --header
17480 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17481 Try \`$0 --help' for more information." >&5
17482 echo "$as_me: error: ambiguous option: $1
17483 Try \`$0 --help' for more information." >&2;}
17484 { (exit 1); exit 1; }; };;
17485 --help |
--hel |
-h )
17486 echo "$ac_cs_usage"; exit 0 ;;
17487 --debug |
--d* |
-d )
17489 --file |
--fil |
--fi |
--f )
17491 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17492 ac_need_defaults
=false
;;
17493 --header |
--heade |
--head |
--hea )
17495 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17496 ac_need_defaults
=false
;;
17497 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17498 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17501 # This is an error.
17502 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17503 Try \`$0 --help' for more information." >&5
17504 echo "$as_me: error: unrecognized option: $1
17505 Try \`$0 --help' for more information." >&2;}
17506 { (exit 1); exit 1; }; } ;;
17508 *) ac_config_targets
="$ac_config_targets $1" ;;
17514 ac_configure_extra_args
=
17516 if $ac_cs_silent; then
17518 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17522 cat >>$CONFIG_STATUS <<_ACEOF
17523 if \$ac_cs_recheck; then
17524 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17525 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17530 cat >>$CONFIG_STATUS <<_ACEOF
17532 # INIT-COMMANDS section.
17541 cat >>$CONFIG_STATUS <<\_ACEOF
17542 for ac_config_target
in $ac_config_targets
17544 case "$ac_config_target" in
17545 # Handling of arguments.
17546 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
17547 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17548 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
17549 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
17550 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17551 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
17552 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17553 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17554 { (exit 1); exit 1; }; };;
17558 # If the user did not use the arguments to specify the items to instantiate,
17559 # then the envvar interface is used. Set only those that are not.
17560 # We use the long form for the default assignment because of an extremely
17561 # bizarre bug on SunOS 4.1.3.
17562 if $ac_need_defaults; then
17563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17565 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17568 # Have a temporary directory for convenience. Make it in the build tree
17569 # simply because there is no reason to put it here, and in addition,
17570 # creating and moving files from /tmp can sometimes cause problems.
17571 # Create a temporary directory, and hook for its removal unless debugging.
17574 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17575 trap '{ (exit 1); exit 1; }' 1 2 13 15
17578 # Create a (secure) tmp directory for tmp files.
17581 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17582 test -n "$tmp" && test -d "$tmp"
17585 tmp
=.
/confstat$$
-$RANDOM
17586 (umask 077 && mkdir
$tmp)
17589 echo "$me: cannot create a temporary directory in ." >&2
17590 { (exit 1); exit 1; }
17595 cat >>$CONFIG_STATUS <<_ACEOF
17598 # CONFIG_FILES section.
17601 # No need to generate the scripts if there are no CONFIG_FILES.
17602 # This happens for instance when ./config.status config.h
17603 if test -n "\$CONFIG_FILES"; then
17604 # Protect against being on the right side of a sed subst in config.status.
17605 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17606 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17607 s,@SHELL@,$SHELL,;t t
17608 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17609 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17610 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17611 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17612 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17613 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17614 s,@exec_prefix@,$exec_prefix,;t t
17615 s,@prefix@,$prefix,;t t
17616 s,@program_transform_name@,$program_transform_name,;t t
17617 s,@bindir@,$bindir,;t t
17618 s,@sbindir@,$sbindir,;t t
17619 s,@libexecdir@,$libexecdir,;t t
17620 s,@datadir@,$datadir,;t t
17621 s,@sysconfdir@,$sysconfdir,;t t
17622 s,@sharedstatedir@,$sharedstatedir,;t t
17623 s,@localstatedir@,$localstatedir,;t t
17624 s,@libdir@,$libdir,;t t
17625 s,@includedir@,$includedir,;t t
17626 s,@oldincludedir@,$oldincludedir,;t t
17627 s,@infodir@,$infodir,;t t
17628 s,@mandir@,$mandir,;t t
17629 s,@build_alias@,$build_alias,;t t
17630 s,@host_alias@,$host_alias,;t t
17631 s,@target_alias@,$target_alias,;t t
17632 s,@DEFS@,$DEFS,;t t
17633 s,@ECHO_C@,$ECHO_C,;t t
17634 s,@ECHO_N@,$ECHO_N,;t t
17635 s,@ECHO_T@,$ECHO_T,;t t
17636 s,@LIBS@,$LIBS,;t t
17637 s,@build@,$build,;t t
17638 s,@build_cpu@,$build_cpu,;t t
17639 s,@build_vendor@,$build_vendor,;t t
17640 s,@build_os@,$build_os,;t t
17641 s,@host@,$host,;t t
17642 s,@host_cpu@,$host_cpu,;t t
17643 s,@host_vendor@,$host_vendor,;t t
17644 s,@host_os@,$host_os,;t t
17645 s,@target@,$target,;t t
17646 s,@target_cpu@,$target_cpu,;t t
17647 s,@target_vendor@,$target_vendor,;t t
17648 s,@target_os@,$target_os,;t t
17649 s,@target_noncanonical@,$target_noncanonical,;t t
17650 s,@build_libsubdir@,$build_libsubdir,;t t
17651 s,@build_subdir@,$build_subdir,;t t
17652 s,@host_subdir@,$host_subdir,;t t
17653 s,@target_subdir@,$target_subdir,;t t
17654 s,@GENINSRC@,$GENINSRC,;t t
17656 s,@CFLAGS@,$CFLAGS,;t t
17657 s,@LDFLAGS@,$LDFLAGS,;t t
17658 s,@CPPFLAGS@,$CPPFLAGS,;t t
17659 s,@ac_ct_CC@,$ac_ct_CC,;t t
17660 s,@EXEEXT@,$EXEEXT,;t t
17661 s,@OBJEXT@,$OBJEXT,;t t
17662 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17663 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17665 s,@EGREP@,$EGREP,;t t
17666 s,@strict_warn@,$strict_warn,;t t
17667 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17668 s,@warn_cflags@,$warn_cflags,;t t
17669 s,@nocommon_flag@,$nocommon_flag,;t t
17670 s,@TREEBROWSER@,$TREEBROWSER,;t t
17671 s,@valgrind_path@,$valgrind_path,;t t
17672 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17673 s,@valgrind_command@,$valgrind_command,;t t
17674 s,@coverage_flags@,$coverage_flags,;t t
17675 s,@enable_multilib@,$enable_multilib,;t t
17676 s,@enable_decimal_float@,$enable_decimal_float,;t t
17677 s,@enable_shared@,$enable_shared,;t t
17678 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17679 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17680 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17681 s,@onestep@,$onestep,;t t
17682 s,@datarootdir@,$datarootdir,;t t
17683 s,@docdir@,$docdir,;t t
17684 s,@htmldir@,$htmldir,;t t
17685 s,@SET_MAKE@,$SET_MAKE,;t t
17687 s,@LN_S@,$LN_S,;t t
17689 s,@RANLIB@,$RANLIB,;t t
17690 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17691 s,@ranlib_flags@,$ranlib_flags,;t t
17692 s,@INSTALL@,$INSTALL,;t t
17693 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17694 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17695 s,@make_compare_target@,$make_compare_target,;t t
17696 s,@have_mktemp_command@,$have_mktemp_command,;t t
17697 s,@MAKEINFO@,$MAKEINFO,;t t
17698 s,@BUILD_INFO@,$BUILD_INFO,;t t
17699 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17700 s,@FLEX@,$FLEX,;t t
17701 s,@BISON@,$BISON,;t t
17704 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17705 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17706 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17707 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17708 s,@LIBICONV@,$LIBICONV,;t t
17709 s,@LTLIBICONV@,$LTLIBICONV,;t t
17710 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17711 s,@manext@,$manext,;t t
17712 s,@objext@,$objext,;t t
17713 s,@gthread_flags@,$gthread_flags,;t t
17714 s,@extra_modes_file@,$extra_modes_file,;t t
17715 s,@extra_opt_files@,$extra_opt_files,;t t
17716 s,@USE_NLS@,$USE_NLS,;t t
17717 s,@LIBINTL@,$LIBINTL,;t t
17718 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17719 s,@INCINTL@,$INCINTL,;t t
17720 s,@XGETTEXT@,$XGETTEXT,;t t
17721 s,@GMSGFMT@,$GMSGFMT,;t t
17722 s,@POSUB@,$POSUB,;t t
17723 s,@CATALOGS@,$CATALOGS,;t t
17724 s,@DATADIRNAME@,$DATADIRNAME,;t t
17725 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17726 s,@GENCAT@,$GENCAT,;t t
17727 s,@CATOBJEXT@,$CATOBJEXT,;t t
17728 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17729 s,@CROSS@,$CROSS,;t t
17731 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17732 s,@inhibit_libc@,$inhibit_libc,;t t
17733 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17734 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17735 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17736 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17737 s,@collect2@,$collect2,;t t
17738 s,@gcc_cv_as@,$gcc_cv_as,;t t
17739 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17740 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17741 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17742 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17743 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17744 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17745 s,@libgcc_visibility@,$libgcc_visibility,;t t
17747 s,@zlibdir@,$zlibdir,;t t
17748 s,@zlibinc@,$zlibinc,;t t
17749 s,@MAINT@,$MAINT,;t t
17750 s,@gcc_tooldir@,$gcc_tooldir,;t t
17751 s,@dollar@,$dollar,;t t
17752 s,@slibdir@,$slibdir,;t t
17753 s,@objdir@,$objdir,;t t
17754 s,@subdirs@,$subdirs,;t t
17755 s,@srcdir@,$srcdir,;t t
17756 s,@all_compilers@,$all_compilers,;t t
17757 s,@all_gtfiles@,$all_gtfiles,;t t
17758 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17759 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17760 s,@all_languages@,$all_languages,;t t
17761 s,@all_selected_languages@,$all_selected_languages,;t t
17762 s,@build_exeext@,$build_exeext,;t t
17763 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17764 s,@build_xm_file_list@,$build_xm_file_list,;t t
17765 s,@build_xm_include_list@,$build_xm_include_list,;t t
17766 s,@build_xm_defines@,$build_xm_defines,;t t
17767 s,@check_languages@,$check_languages,;t t
17768 s,@cpp_install_dir@,$cpp_install_dir,;t t
17769 s,@xmake_file@,$xmake_file,;t t
17770 s,@tmake_file@,$tmake_file,;t t
17771 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17772 s,@extra_headers_list@,$extra_headers_list,;t t
17773 s,@extra_objs@,$extra_objs,;t t
17774 s,@extra_parts@,$extra_parts,;t t
17775 s,@extra_passes@,$extra_passes,;t t
17776 s,@extra_programs@,$extra_programs,;t t
17777 s,@float_h_file@,$float_h_file,;t t
17778 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17779 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17780 s,@host_exeext@,$host_exeext,;t t
17781 s,@host_xm_file_list@,$host_xm_file_list,;t t
17782 s,@host_xm_include_list@,$host_xm_include_list,;t t
17783 s,@host_xm_defines@,$host_xm_defines,;t t
17784 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17785 s,@install@,$install,;t t
17786 s,@lang_opt_files@,$lang_opt_files,;t t
17787 s,@lang_specs_files@,$lang_specs_files,;t t
17788 s,@lang_tree_files@,$lang_tree_files,;t t
17789 s,@local_prefix@,$local_prefix,;t t
17790 s,@md_file@,$md_file,;t t
17791 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17792 s,@out_file@,$out_file,;t t
17793 s,@out_object_file@,$out_object_file,;t t
17794 s,@thread_file@,$thread_file,;t t
17795 s,@tm_file_list@,$tm_file_list,;t t
17796 s,@tm_include_list@,$tm_include_list,;t t
17797 s,@tm_defines@,$tm_defines,;t t
17798 s,@tm_p_file_list@,$tm_p_file_list,;t t
17799 s,@tm_p_include_list@,$tm_p_include_list,;t t
17800 s,@xm_file_list@,$xm_file_list,;t t
17801 s,@xm_include_list@,$xm_include_list,;t t
17802 s,@xm_defines@,$xm_defines,;t t
17803 s,@c_target_objs@,$c_target_objs,;t t
17804 s,@cxx_target_objs@,$cxx_target_objs,;t t
17805 s,@target_cpu_default@,$target_cpu_default,;t t
17806 s,@GMPLIBS@,$GMPLIBS,;t t
17807 s,@GMPINC@,$GMPINC,;t t
17808 s,@LIBOBJS@,$LIBOBJS,;t t
17809 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17810 /@language_hooks@/r $language_hooks
17811 s,@language_hooks@,,;t t
17816 cat >>$CONFIG_STATUS <<\_ACEOF
17817 # Split the substitutions into bite-sized pieces for seds with
17818 # small command number limits, like on Digital OSF/1 and HP-UX.
17819 ac_max_sed_lines
=48
17820 ac_sed_frag
=1 # Number of current file.
17821 ac_beg
=1 # First line for current file.
17822 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17825 while $ac_more_lines; do
17826 if test $ac_beg -gt 1; then
17827 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17829 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17831 if test ! -s $tmp/subs.frag
; then
17832 ac_more_lines
=false
17834 # The purpose of the label and of the branching condition is to
17835 # speed up the sed processing (if there are no `@' at all, there
17836 # is no need to browse any of the substitutions).
17837 # These are the two extra sed commands mentioned above.
17839 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17840 if test -z "$ac_sed_cmds"; then
17841 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17843 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17845 ac_sed_frag
=`expr $ac_sed_frag + 1`
17847 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17850 if test -z "$ac_sed_cmds"; then
17853 fi # test -n "$CONFIG_FILES"
17856 cat >>$CONFIG_STATUS <<\_ACEOF
17857 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17858 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17860 - |
*:- |
*:-:* ) # input from stdin
17862 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17863 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17864 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17865 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17866 * ) ac_file_in
=$ac_file.
in ;;
17869 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17870 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17871 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17872 X"$ac_file" : 'X\(//\)[^/]' \| \
17873 X"$ac_file" : 'X\(//\)$' \| \
17874 X"$ac_file" : 'X\(/\)' \| \
17875 . : '\(.\)' 2>/dev/null ||
17877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17879 /^X\(\/\/\)$/{ s//\1/; q; }
17880 /^X\(\/\).*/{ s//\1/; q; }
17882 { if $as_mkdir_p; then
17887 while test ! -d "$as_dir"; do
17888 as_dirs
="$as_dir $as_dirs"
17889 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17891 X"$as_dir" : 'X\(//\)[^/]' \| \
17892 X"$as_dir" : 'X\(//\)$' \| \
17893 X"$as_dir" : 'X\(/\)' \| \
17894 . : '\(.\)' 2>/dev/null ||
17896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17898 /^X\(\/\/\)$/{ s//\1/; q; }
17899 /^X\(\/\).*/{ s//\1/; q; }
17902 test ! -n "$as_dirs" || mkdir
$as_dirs
17903 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17904 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17905 { (exit 1); exit 1; }; }; }
17909 if test "$ac_dir" != .
; then
17910 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17911 # A "../" for each directory in $ac_dir_suffix.
17912 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17914 ac_dir_suffix
= ac_top_builddir
=
17918 .
) # No --srcdir option. We are building in place.
17920 if test -z "$ac_top_builddir"; then
17923 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17925 [\\/]* | ?
:[\\/]* ) # Absolute path.
17926 ac_srcdir
=$srcdir$ac_dir_suffix;
17927 ac_top_srcdir
=$srcdir ;;
17928 *) # Relative path.
17929 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17930 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17933 # Do not use `cd foo && pwd` to compute absolute paths, because
17934 # the directories may not exist.
17936 .
) ac_abs_builddir
="$ac_dir";;
17939 .
) ac_abs_builddir
=`pwd`;;
17940 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17941 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17944 case $ac_abs_builddir in
17945 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17947 case ${ac_top_builddir}.
in
17948 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17949 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17950 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17953 case $ac_abs_builddir in
17954 .
) ac_abs_srcdir
=$ac_srcdir;;
17957 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17958 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17959 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17962 case $ac_abs_builddir in
17963 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17965 case $ac_top_srcdir in
17966 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17967 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17968 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17974 if test x
"$ac_file" != x-
; then
17975 { echo "$as_me:$LINENO: creating $ac_file" >&5
17976 echo "$as_me: creating $ac_file" >&6;}
17979 # Let's still pretend it is `configure' which instantiates (i.e., don't
17980 # use $as_me), people would be surprised to read:
17981 # /* config.h. Generated by config.status. */
17982 if test x
"$ac_file" = x-
; then
17985 configure_input
="$ac_file. "
17987 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17988 sed 's,.*/,,'` by configure."
17990 # First look for the input files in the build tree, otherwise in the
17992 ac_file_inputs
=`IFS=:
17993 for f in $ac_file_in; do
17995 -) echo $tmp/stdin ;;
17997 # Absolute (can't be DOS-style, as IFS=:)
17998 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17999 echo "$as_me: error: cannot find input file: $f" >&2;}
18000 { (exit 1); exit 1; }; }
18003 if test -f "$f"; then
18006 elif test -f "$srcdir/$f"; then
18011 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18012 echo "$as_me: error: cannot find input file: $f" >&2;}
18013 { (exit 1); exit 1; }; }
18016 done` ||
{ (exit 1); exit 1; }
18018 cat >>$CONFIG_STATUS <<_ACEOF
18022 cat >>$CONFIG_STATUS <<\_ACEOF
18024 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18025 s
,@configure_input@
,$configure_input,;t t
18026 s
,@srcdir@
,$ac_srcdir,;t t
18027 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18028 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18029 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18030 s
,@builddir@
,$ac_builddir,;t t
18031 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18032 s
,@top_builddir@
,$ac_top_builddir,;t t
18033 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18034 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18036 if test x"$ac_file" != x-; then
18037 mv $tmp/out $ac_file
18043 # Run the commands associated with the file.
18045 as ) chmod +x as ;;
18046 collect-ld ) chmod +x collect-ld ;;
18047 nm ) chmod +x nm ;;
18051 cat >>$CONFIG_STATUS <<\_ACEOF
18054 # CONFIG_HEADER section.
18057 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18058 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18060 # ac_d sets the value in "#define NAME VALUE" lines.
18061 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18062 ac_dB
='[ ].*$,\1#\2'
18065 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18066 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18067 ac_uB
='$,\1#\2define\3'
18071 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18072 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18074 - |
*:- |
*:-:* ) # input from stdin
18076 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18077 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18078 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18079 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18080 * ) ac_file_in
=$ac_file.
in ;;
18083 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
18084 echo "$as_me: creating $ac_file" >&6;}
18086 # First look for the input files in the build tree, otherwise in the
18088 ac_file_inputs
=`IFS=:
18089 for f in $ac_file_in; do
18091 -) echo $tmp/stdin ;;
18093 # Absolute (can't be DOS-style, as IFS=:)
18094 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18095 echo "$as_me: error: cannot find input file: $f" >&2;}
18096 { (exit 1); exit 1; }; }
18097 # Do quote $f, to prevent DOS paths from being IFS'd.
18100 if test -f "$f"; then
18103 elif test -f "$srcdir/$f"; then
18108 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18109 echo "$as_me: error: cannot find input file: $f" >&2;}
18110 { (exit 1); exit 1; }; }
18113 done` ||
{ (exit 1); exit 1; }
18114 # Remove the trailing spaces.
18115 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18119 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18120 # `conftest.undefs', that substitutes the proper values into
18121 # config.h.in to produce config.h. The first handles `#define'
18122 # templates, and the second `#undef' templates.
18123 # And first: Protect against being on the right side of a sed subst in
18124 # config.status. Protect against being in an unquoted here document
18125 # in config.status.
18126 rm -f conftest.defines conftest.undefs
18127 # Using a here document instead of a string reduces the quoting nightmare.
18128 # Putting comments in sed scripts is not portable.
18130 # `end' is used to avoid that the second main sed command (meant for
18131 # 0-ary CPP macros) applies to n-ary macro definitions.
18132 # See the Autoconf documentation for `clear'.
18133 cat >confdef2sed.
sed <<\_ACEOF
18138 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18140 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18143 # If some macros were called several times there might be several times
18144 # the same #defines, which is useless. Nevertheless, we may not want to
18145 # sort them, since we want the *last* AC-DEFINE to be honored.
18146 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18147 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18148 rm -f confdef2sed.sed
18150 # This sed command replaces #undef with comments. This is necessary, for
18151 # example, in the case of _POSIX_SOURCE, which is predefined and required
18152 # on some systems where configure will not decide to define it.
18153 cat >>conftest.undefs <<\_ACEOF
18154 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18157 # Break up conftest.defines because some shells have a limit on the size
18158 # of here documents, and old seds have small limits too (100 cmds).
18159 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18160 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18161 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18162 echo ' :' >>$CONFIG_STATUS
18163 rm -f conftest.tail
18164 while grep . conftest.defines >/dev/null
18166 # Write a limited-size here document to $tmp/defines.sed.
18167 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18168 # Speed up: don't consider the non `#define' lines.
18169 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18170 # Work around the forget-to-reset-the-flag bug.
18171 echo 't clr' >>$CONFIG_STATUS
18172 echo ': clr' >>$CONFIG_STATUS
18173 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18175 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18177 mv $tmp/out $tmp/in
18179 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18180 rm -f conftest.defines
18181 mv conftest.
tail conftest.defines
18183 rm -f conftest.defines
18184 echo ' fi # grep' >>$CONFIG_STATUS
18185 echo >>$CONFIG_STATUS
18187 # Break up conftest.undefs because some shells have a limit on the size
18188 # of here documents, and old seds have small limits too (100 cmds).
18189 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18190 rm -f conftest.
tail
18191 while grep . conftest.undefs
>/dev
/null
18193 # Write a limited-size here document to $tmp/undefs.sed.
18194 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18195 # Speed up: don't consider the non
`#undef'
18196 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18197 # Work around the forget-to-reset-the-flag bug.
18198 echo 't clr' >>$CONFIG_STATUS
18199 echo ': clr' >>$CONFIG_STATUS
18200 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18202 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18204 mv $tmp/out $tmp/in
18206 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18207 rm -f conftest.undefs
18208 mv conftest.tail conftest.undefs
18210 rm -f conftest.undefs
18212 cat >>$CONFIG_STATUS <<\_ACEOF
18213 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18214 # use $as_me), people would be surprised to read:
18215 # /* config.h. Generated by config.status. */
18216 if test x
"$ac_file" = x-
; then
18217 echo "/* Generated by configure. */" >$tmp/config.h
18219 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18221 cat $tmp/in >>$tmp/config.h
18223 if test x
"$ac_file" != x-
; then
18224 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18225 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18226 echo "$as_me: $ac_file is unchanged" >&6;}
18228 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18230 X"$ac_file" : 'X\(//\)[^/]' \| \
18231 X"$ac_file" : 'X\(//\)$' \| \
18232 X"$ac_file" : 'X\(/\)' \| \
18233 . : '\(.\)' 2>/dev/null ||
18235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18237 /^X\(\/\/\)$/{ s//\1/; q; }
18238 /^X\(\/\).*/{ s//\1/; q; }
18240 { if $as_mkdir_p; then
18245 while test ! -d "$as_dir"; do
18246 as_dirs
="$as_dir $as_dirs"
18247 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18249 X"$as_dir" : 'X\(//\)[^/]' \| \
18250 X"$as_dir" : 'X\(//\)$' \| \
18251 X"$as_dir" : 'X\(/\)' \| \
18252 . : '\(.\)' 2>/dev/null ||
18254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18256 /^X\(\/\/\)$/{ s//\1/; q; }
18257 /^X\(\/\).*/{ s//\1/; q; }
18260 test ! -n "$as_dirs" || mkdir
$as_dirs
18261 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18262 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18263 { (exit 1); exit 1; }; }; }
18266 mv $tmp/config.h
$ac_file
18270 rm -f $tmp/config.h
18274 cat >>$CONFIG_STATUS <<\_ACEOF
18277 # CONFIG_COMMANDS section.
18279 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18280 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18281 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18282 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18283 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18284 X"$ac_dest" : 'X\(//\)[^/]' \| \
18285 X"$ac_dest" : 'X\(//\)$' \| \
18286 X"$ac_dest" : 'X\(/\)' \| \
18287 . : '\(.\)' 2>/dev/null ||
18289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18291 /^X\(\/\/\)$/{ s//\1/; q; }
18292 /^X\(\/\).*/{ s//\1/; q; }
18294 { if $as_mkdir_p; then
18299 while test ! -d "$as_dir"; do
18300 as_dirs
="$as_dir $as_dirs"
18301 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18303 X"$as_dir" : 'X\(//\)[^/]' \| \
18304 X"$as_dir" : 'X\(//\)$' \| \
18305 X"$as_dir" : 'X\(/\)' \| \
18306 . : '\(.\)' 2>/dev/null ||
18308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18310 /^X\(\/\/\)$/{ s//\1/; q; }
18311 /^X\(\/\).*/{ s//\1/; q; }
18314 test ! -n "$as_dirs" || mkdir
$as_dirs
18315 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18317 { (exit 1); exit 1; }; }; }
18321 if test "$ac_dir" != .
; then
18322 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18323 # A "../" for each directory in $ac_dir_suffix.
18324 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18326 ac_dir_suffix
= ac_top_builddir
=
18330 .
) # No --srcdir option. We are building in place.
18332 if test -z "$ac_top_builddir"; then
18335 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18337 [\\/]* | ?
:[\\/]* ) # Absolute path.
18338 ac_srcdir
=$srcdir$ac_dir_suffix;
18339 ac_top_srcdir
=$srcdir ;;
18340 *) # Relative path.
18341 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18342 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18345 # Do not use `cd foo && pwd` to compute absolute paths, because
18346 # the directories may not exist.
18348 .
) ac_abs_builddir
="$ac_dir";;
18351 .
) ac_abs_builddir
=`pwd`;;
18352 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18353 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18356 case $ac_abs_builddir in
18357 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18359 case ${ac_top_builddir}.
in
18360 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18361 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18362 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18365 case $ac_abs_builddir in
18366 .
) ac_abs_srcdir
=$ac_srcdir;;
18369 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18370 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18371 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18374 case $ac_abs_builddir in
18375 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18377 case $ac_top_srcdir in
18378 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18379 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18380 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18385 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18386 echo "$as_me: executing $ac_dest commands" >&6;}
18389 case ${CONFIG_HEADERS} in
18390 *auto-host.h
:config.
in*)
18393 # Make sure all the subdirs exist.
18394 for d
in $subdirs doc build
18396 test -d $d || mkdir
$d
18403 cat >>$CONFIG_STATUS <<\_ACEOF
18405 { (exit 0); exit 0; }
18407 chmod +x
$CONFIG_STATUS
18408 ac_clean_files
=$ac_clean_files_save
18411 # configure is writing to config.log, and then calls config.status.
18412 # config.status does its own redirection, appending to config.log.
18413 # Unfortunately, on DOS this fails, as config.log is still kept open
18414 # by configure, so config.status won't be able to write to it; its
18415 # output is simply discarded. So we exec the FD to /dev/null,
18416 # effectively closing config.log, so it can be properly (re)opened and
18417 # appended to by config.status. When coming back to configure, we
18418 # need to make the FD available again.
18419 if test "$no_create" != yes; then
18421 ac_config_status_args
=
18422 test "$silent" = yes &&
18423 ac_config_status_args
="$ac_config_status_args --quiet"
18425 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18427 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18428 # would make configure fail if this is the last instruction.
18429 $ac_cs_success ||
{ (exit 1); exit 1; }