2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir gcc_version_trigger gcc_version_full gcc_version GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS cc_for_cross_gnattools CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default set_gcc_lib_path GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: assert
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,tree
,valgrind
,release
,yes,all
;
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-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don
't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page
,zone
} choose the garbage collection mechanism to use
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries
in DIR LIBDIR
933 Some influential environment variables
:
934 CC C compiler
command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
937 nonstandard directory
<lib dir
>
938 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
939 headers
in a nonstandard directory
<include dir
>
941 GMPLIBS How to link GMP
942 GMPINC How to
find GMP include files
944 Use these variables to override the choices made by
`configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
962 ac_dir_suffix= ac_top_builddir=
966 .) # No --srcdir option. We are building in place.
968 if test -z "$ac_top_builddir"; then
971 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 # Do not use `cd foo
&& pwd` to compute absolute paths, because
982 # the directories may not exist.
984 .) ac_abs_builddir="$ac_dir";;
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1031 $ac_configure --help
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1066 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1067 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1068 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1069 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1070 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1072 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1073 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1075 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1076 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1077 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1078 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1079 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1080 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1081 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1114 ac_must_keep_next=false
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143 -* ) ac_must_keep_next=true ;;
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close
' the trap.
1161 trap 'exit_status
=$?
1162 # Save into config.log some information that might help in debugging.
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1172 # The following way of writing the cache mishandles newlines in values,
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1195 for ac_var
in $ac_subst_vars
1197 eval ac_val
=$
`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1202 if test -n "$ac_subst_files"; then
1209 for ac_var
in $ac_subst_files
1211 eval ac_val
=$
`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1217 if test -s confdefs.h
; then
1224 sed "/^$/d" confdefs.h |
sort
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1231 rm -f core
*.core
&&
1232 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's
/^
/|
/' "$ac_site_file" >&5
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1307 # Check that the precious variables saved in the cache have kept the same
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1320 ac_cache_corrupted=: ;;
1322 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1329 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1354 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1361 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386 #Set to 1 on a release branch
1389 # Determine the host, build, and target systems
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392 if test -f $ac_dir/install-sh; then
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1396 elif test -f $ac_dir/install.sh; then
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1400 elif test -f $ac_dir/shtool; then
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409 { (exit 1); exit 1; }; }
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428 ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432 { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1442 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1444 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454 ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1464 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1466 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476 ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1488 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494 test "$program_prefix$program_suffix$program_transform_name" = \
1496 program_prefix=${target_alias}-
1498 # Determine the noncanonical target name, for directory use.
1499 case ${build_alias} in
1500 "") build_noncanonical=${build} ;;
1501 *) build_noncanonical=${build_alias} ;;
1504 case ${host_alias} in
1505 "") host_noncanonical=${build_noncanonical} ;;
1506 *) host_noncanonical=${host_alias} ;;
1509 case ${target_alias} in
1510 "") target_noncanonical=${host_noncanonical} ;;
1511 *) target_noncanonical=${target_alias} ;;
1517 # Determine the target- and build-specific subdirectories
1518 # Prefix 'build-
' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # Not really a subdirectory, but here for completeness.
1523 target_subdir=${target_noncanonical}
1526 # Set program_transform_name
1527 test "$program_prefix" != NONE &&
1528 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1529 # Use a double $ so make ignores it.
1530 test "$program_suffix" != NONE &&
1531 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1532 # Double any \ or $. echo might interpret backslashes.
1533 # By default was `s,x,x', remove it
if useless.
1534 cat <<\_ACEOF
>conftest.
sed
1535 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1537 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1541 # Check for bogus environment variables.
1542 # Test if LIBRARY_PATH contains the notation for the current directory
1543 # since this would lead to problems installing/building glibc.
1544 # LIBRARY_PATH contains the current directory if one of the following
1546 # - one of the terminals (":" and ";") is the first or last sign
1547 # - two terminals occur directly after each other
1548 # - the path contains an element with a dot in it
1549 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1550 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1551 case ${LIBRARY_PATH} in
1552 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1553 library_path_setting
="contains current directory"
1556 library_path_setting
="ok"
1559 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1560 echo "${ECHO_T}$library_path_setting" >&6
1561 if test "$library_path_setting" != "ok"; then
1562 { { echo "$as_me:$LINENO: error:
1563 *** LIBRARY_PATH shouldn't contain the current directory when
1564 *** building gcc. Please change the environment variable
1565 *** and run configure again." >&5
1566 echo "$as_me: error:
1567 *** LIBRARY_PATH shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&2;}
1570 { (exit 1); exit 1; }; }
1573 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1574 # since this would lead to problems installing/building glibc.
1575 # GCC_EXEC_PREFIX contains the current directory if one of the following
1577 # - one of the terminals (":" and ";") is the first or last sign
1578 # - two terminals occur directly after each other
1579 # - the path contains an element with a dot in it
1580 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1581 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1582 case ${GCC_EXEC_PREFIX} in
1583 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1584 gcc_exec_prefix_setting
="contains current directory"
1587 gcc_exec_prefix_setting
="ok"
1590 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1591 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1592 if test "$gcc_exec_prefix_setting" != "ok"; then
1593 { { echo "$as_me:$LINENO: error:
1594 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1595 *** building gcc. Please change the environment variable
1596 *** and run configure again." >&5
1597 echo "$as_me: error:
1598 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1599 *** building gcc. Please change the environment variable
1600 *** and run configure again." >&2;}
1601 { (exit 1); exit 1; }; }
1605 if test "${with_gcc_version_trigger+set}" = set; then
1606 gcc_version_trigger
=$with_gcc_version_trigger
1608 gcc_version_trigger
=$srcdir/..
/gcc
/version.c
1610 if test -f "${gcc_version_trigger}"; then
1611 gcc_version_full
=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1613 gcc_version_full
=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1615 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1625 # Specify the local prefix
1628 # Check whether --with-local-prefix or --without-local-prefix was given.
1629 if test "${with_local_prefix+set}" = set; then
1630 withval
="$with_local_prefix"
1631 case "${withval}" in
1632 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1633 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1634 { (exit 1); exit 1; }; } ;;
1636 *) local_prefix
=$with_local_prefix ;;
1640 # Default local prefix if it is empty
1641 if test x
$local_prefix = x
; then
1642 local_prefix
=/usr
/local
1645 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1646 # passed in by the toplevel make and thus we'd get different behavior
1647 # depending on where we built the sources.
1648 gcc_gxx_include_dir
=
1649 # Specify the g++ header file directory
1651 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1652 if test "${with_gxx_include_dir+set}" = set; then
1653 withval
="$with_gxx_include_dir"
1654 case "${withval}" in
1655 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1656 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1657 { (exit 1); exit 1; }; } ;;
1659 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1663 if test x
${gcc_gxx_include_dir} = x
; then
1664 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1665 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1667 libstdcxx_incdir
=c
++/${gcc_version}
1668 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1673 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1674 if test "${with_cpp_install_dir+set}" = set; then
1675 withval
="$with_cpp_install_dir"
1676 if test x
$withval = xyes
; then
1677 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1678 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1679 { (exit 1); exit 1; }; }
1680 elif test x
$withval != xno
; then
1681 cpp_install_dir
=$withval
1685 # We would like to our source tree to be readonly. However when releases or
1686 # pre-releases are generated, the flex/bison generated files as well as the
1687 # various formats of manuals need to be included along with the rest of the
1688 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1691 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1692 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1693 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1694 if test "${enable_generated_files_in_srcdir+set}" = set; then
1695 enableval
="$enable_generated_files_in_srcdir"
1696 generated_files_in_srcdir
=$enableval
1698 generated_files_in_srcdir
=no
1701 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1702 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1704 if test "$generated_files_in_srcdir" = "yes"; then
1711 # -------------------
1712 # Find default linker
1713 # -------------------
1717 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1718 if test "${with_gnu_ld+set}" = set; then
1719 withval
="$with_gnu_ld"
1720 gnu_ld_flag
="$with_gnu_ld"
1725 # With pre-defined ld
1727 # Check whether --with-ld or --without-ld was given.
1728 if test "${with_ld+set}" = set; then
1730 DEFAULT_LINKER
="$with_ld"
1732 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1733 if test ! -x "$DEFAULT_LINKER"; then
1734 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1735 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1736 { (exit 1); exit 1; }; }
1737 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1741 cat >>confdefs.h
<<_ACEOF
1742 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1747 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1748 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1749 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1750 if test x
"$gnu_ld_flag" = x
"no"; then
1751 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1752 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1754 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1755 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1762 # With demangler in GNU ld
1764 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1765 if test "${with_demangler_in_ld+set}" = set; then
1766 withval
="$with_demangler_in_ld"
1767 demangler_in_ld
="$with_demangler_in_ld"
1772 # ----------------------
1773 # Find default assembler
1774 # ----------------------
1778 # Check whether --with-gnu-as or --without-gnu-as was given.
1779 if test "${with_gnu_as+set}" = set; then
1780 withval
="$with_gnu_as"
1781 gas_flag
="$with_gnu_as"
1787 # Check whether --with-as or --without-as was given.
1788 if test "${with_as+set}" = set; then
1790 DEFAULT_ASSEMBLER
="$with_as"
1792 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1793 if test ! -x "$DEFAULT_ASSEMBLER"; then
1794 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1795 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1796 { (exit 1); exit 1; }; }
1797 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1801 cat >>confdefs.h
<<_ACEOF
1802 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1807 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1808 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1809 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1810 if test x
"$gas_flag" = x
"no"; then
1811 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1812 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1814 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1815 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1826 # If a non-executable a.out is present (e.g. created by GNU as above even if
1827 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1828 # file, even when creating an executable, so an execution test fails.
1829 # Remove possible default executable files to avoid this.
1831 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1832 # Autoconf includes it.
1833 rm -f a.out a.exe b.out
1835 # Find the native compiler
1837 ac_cpp
='$CPP $CPPFLAGS'
1838 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1843 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC
="$CC" # Let the user override the test.
1852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1856 test -z "$as_dir" && as_dir
=.
1857 for ac_exec_ext
in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_CC"; then
1880 # Extract the first word of "gcc", so it can be a program name with args.
1881 set dummy gcc
; ac_word
=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir
=.
1895 for ac_exec_ext
in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_CC
="gcc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1907 if test -n "$ac_ct_CC"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909 echo "${ECHO_T}$ac_ct_CC" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1920 if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1923 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC
="$CC" # Let the user override the test.
1932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir
=.
1937 for ac_exec_ext
in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 if test -n "$CC"; then
1950 echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1958 if test -z "$ac_cv_prog_CC"; then
1960 # Extract the first word of "cc", so it can be a program name with args.
1961 set dummy cc
; ac_word
=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 if test -n "$ac_ct_CC"; then
1968 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1974 test -z "$as_dir" && as_dir
=.
1975 for ac_exec_ext
in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_ac_ct_CC
="cc"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1987 if test -n "$ac_ct_CC"; then
1988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989 echo "${ECHO_T}$ac_ct_CC" >&6
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
2001 if test -z "$CC"; then
2002 # Extract the first word of "cc", so it can be a program name with args.
2003 set dummy cc
; ac_word
=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC
="$CC" # Let the user override the test.
2013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir
=.
2018 for ac_exec_ext
in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2021 ac_prog_rejected
=yes
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 if test $ac_prog_rejected = yes; then
2032 # We found a bogon in the path, so make sure we never use it.
2033 set dummy
$ac_cv_prog_CC
2035 if test $# != 0; then
2036 # We chose a different compiler from the bogus one.
2037 # However, it has the same basename, so the bogon will be chosen
2038 # first if we set CC to just the basename; use the full file name.
2040 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2046 if test -n "$CC"; then
2047 echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2055 if test -z "$CC"; then
2056 if test -n "$ac_tool_prefix"; then
2059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC
="$CC" # Let the user override the test.
2069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2073 test -z "$as_dir" && as_dir
=.
2074 for ac_exec_ext
in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2094 test -n "$CC" && break
2097 if test -z "$CC"; then
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy
$ac_prog; ac_word
=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 if test -n "$ac_ct_CC"; then
2109 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir
=.
2116 for ac_exec_ext
in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_ac_ct_CC
="$ac_prog"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2128 if test -n "$ac_ct_CC"; then
2129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130 echo "${ECHO_T}$ac_ct_CC" >&6
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2136 test -n "$ac_ct_CC" && break
2145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&2;}
2149 { (exit 1); exit 1; }; }
2151 # Provide some information about the compiler.
2152 echo "$as_me:$LINENO:" \
2153 "checking for C compiler version" >&5
2154 ac_compiler
=`set X $ac_compile; echo $2`
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2156 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2161 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2166 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2171 cat >conftest.
$ac_ext <<_ACEOF
2174 cat confdefs.h
>>conftest.
$ac_ext
2175 cat >>conftest.
$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2186 ac_clean_files_save
=$ac_clean_files
2187 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2188 # Try to create an executable without -o first, disregard a.out.
2189 # It will help us diagnose broken compilers, and finding out an intuition
2191 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2192 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2193 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2195 (eval $ac_link_default) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # Find the output, starting from the most likely. This scheme is
2200 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2203 # Be careful to initialize this variable, since it used to be cached.
2204 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2206 # b.out is created by i960 compilers.
2207 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2209 test -f "$ac_file" ||
continue
2211 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2214 # This is the source file.
2217 # We found the default executable, but exeext='' is most
2221 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222 # FIXME: I believe we export ac_cv_exeext for Libtool,
2223 # but it would be cool to find out if it's true. Does anybody
2224 # maintain Libtool? --akim.
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.
$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239 { (exit 77); exit 77; }; }
2242 ac_exeext
=$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6
2246 # Check the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253 if { ac_try
='./$ac_file'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 if test "$cross_compiling" = maybe
; then
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2274 echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6
2277 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2278 ac_clean_files
=$ac_clean_files_save
2279 # Check the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2283 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6
2286 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2289 (eval $ac_link) 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; then
2293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2294 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2295 # work properly (i.e., refer to `conftest.exe'), while it won't with
2297 for ac_file
in conftest.exe conftest conftest.
*; do
2298 test -f "$ac_file" ||
continue
2300 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2301 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2315 rm -f conftest
$ac_cv_exeext
2316 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2317 echo "${ECHO_T}$ac_cv_exeext" >&6
2319 rm -f conftest.
$ac_ext
2320 EXEEXT
=$ac_cv_exeext
2322 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2324 if test "${ac_cv_objext+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.
$ac_ext <<_ACEOF
2330 cat confdefs.h
>>conftest.
$ac_ext
2331 cat >>conftest.
$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2342 rm -f conftest.o conftest.obj
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2350 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2351 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.
$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2368 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6
2370 OBJEXT
=$ac_cv_objext
2372 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 cat >conftest.
$ac_ext <<_ACEOF
2380 cat confdefs.h
>>conftest.
$ac_ext
2381 cat >>conftest.
$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2395 rm -f conftest.
$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2399 grep -v '^ *+' conftest.er1
>conftest.err
2401 cat conftest.err
>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try
='test -s conftest.$ac_objext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.
$ac_ext >&5
2423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2424 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2427 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2429 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2430 ac_test_CFLAGS
=${CFLAGS+set}
2431 ac_save_CFLAGS
=$CFLAGS
2433 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 cat >conftest.
$ac_ext <<_ACEOF
2441 cat confdefs.h
>>conftest.
$ac_ext
2442 cat >>conftest.
$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2453 rm -f conftest.
$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2457 grep -v '^ *+' conftest.er1
>conftest.err
2459 cat conftest.err
>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try
='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.
$ac_ext >&5
2481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2483 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2485 if test "$ac_test_CFLAGS" = set; then
2486 CFLAGS
=$ac_save_CFLAGS
2487 elif test $ac_cv_prog_cc_g = yes; then
2488 if test "$GCC" = yes; then
2494 if test "$GCC" = yes; then
2500 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2501 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2502 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 ac_cv_prog_cc_stdc
=no
2507 cat >conftest.
$ac_ext <<_ACEOF
2510 cat confdefs.h
>>conftest.
$ac_ext
2511 cat >>conftest.
$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2518 struct buf { int x; };
2519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (p, i)
2526 static char *f (char * (*g) (char **, int), char **p, ...)
2531 s = g (p, va_arg (v,int));
2536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2537 function prototypes and stuff, but not '\xHH' hex character constants.
2538 These don't provoke an error unfortunately, instead are silently treated
2539 as 'x'. The following induces an error, until -std1 is added to get
2540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2541 array size at least. It's necessary to write '\x00'==0 to get something
2542 that's true only with -std1. */
2543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2545 int test (int i, double x);
2546 struct s1 {int (*f) (int a);};
2547 struct s2 {int (*f) (double a);};
2548 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2554 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2559 # Don't try gcc -ansi; that turns off useful extensions and
2560 # breaks some systems' header files.
2561 # AIX -qlanglvl=ansi
2562 # Ultrix and OSF/1 -std1
2563 # HP-UX 10.20 and later -Ae
2564 # HP-UX older versions -Aa -D_HPUX_SOURCE
2565 # SVR4 -Xc -D__EXTENSIONS__
2566 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2568 CC
="$ac_save_CC $ac_arg"
2569 rm -f conftest.
$ac_objext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571 (eval $ac_compile) 2>conftest.er1
2573 grep -v '^ *+' conftest.er1
>conftest.err
2575 cat conftest.err
>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try
='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_cv_prog_cc_stdc
=$ac_arg
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.
$ac_ext >&5
2597 rm -f conftest.err conftest.
$ac_objext
2599 rm -f conftest.
$ac_ext conftest.
$ac_objext
2604 case "x$ac_cv_prog_cc_stdc" in
2606 echo "$as_me:$LINENO: result: none needed" >&5
2607 echo "${ECHO_T}none needed" >&6 ;;
2609 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2610 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2611 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2614 # Some people use a C++ compiler to compile C. Since we use `exit',
2615 # in C++ we need to declare it. In case someone uses the same compiler
2616 # for both compiling C and C++ we need to have the C++ compiler decide
2617 # the declaration of exit, since it's the most demanding environment.
2618 cat >conftest.
$ac_ext <<_ACEOF
2623 rm -f conftest.
$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>conftest.er1
2627 grep -v '^ *+' conftest.er1
>conftest.err
2629 cat conftest.err
>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try
='test -s conftest.$ac_objext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 for ac_declaration
in \
2646 'extern "C" void std::exit (int) throw (); using std::exit;' \
2647 'extern "C" void std::exit (int); using std::exit;' \
2648 'extern "C" void exit (int) throw ();' \
2649 'extern "C" void exit (int);' \
2652 cat >conftest.
$ac_ext <<_ACEOF
2655 cat confdefs.h
>>conftest.
$ac_ext
2656 cat >>conftest.
$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2668 rm -f conftest.
$ac_objext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670 (eval $ac_compile) 2>conftest.er1
2672 grep -v '^ *+' conftest.er1
>conftest.err
2674 cat conftest.err
>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; } &&
2683 { ac_try
='test -s conftest.$ac_objext'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.
$ac_ext >&5
2696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2697 cat >conftest.
$ac_ext <<_ACEOF
2700 cat confdefs.h
>>conftest.
$ac_ext
2701 cat >>conftest.
$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2712 rm -f conftest.
$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2716 grep -v '^ *+' conftest.er1
>conftest.err
2718 cat conftest.err
>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try
='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.
$ac_ext >&5
2739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2742 if test -n "$ac_declaration"; then
2743 echo '#ifdef __cplusplus' >>confdefs.h
2744 echo $ac_declaration >>confdefs.h
2745 echo '#endif' >>confdefs.h
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.
$ac_ext >&5
2753 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2755 ac_cpp
='$CPP $CPPFLAGS'
2756 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2760 if test "x$CC" != xcc
; then
2761 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2762 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2764 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2765 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2767 set dummy
$CC; ac_cc
=`echo $2 |
2768 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2769 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 cat >conftest.
$ac_ext <<_ACEOF
2775 cat confdefs.h
>>conftest.
$ac_ext
2776 cat >>conftest.
$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2787 # Make sure it works both with $CC and with simple cc.
2788 # We do the test twice because some compilers refuse to overwrite an
2789 # existing .o file with -o, though they will create one.
2790 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2791 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); };
2802 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2803 if test "x$CC" != xcc
; then
2804 # Test first that cc exists at all.
2805 if { ac_try
='cc -c conftest.$ac_ext >&5'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2812 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
2817 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); };
2826 # cc exists but doesn't like -o.
2827 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2832 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2837 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2838 echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6
2841 echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2844 cat >>confdefs.h
<<\_ACEOF
2845 #define NO_MINUS_C_MINUS_O 1
2850 # expand $ac_aux_dir to an absolute path
2851 am_aux_dir
=`cd $ac_aux_dir && pwd`
2853 # FIXME: we rely on the cache variable name because
2854 # there is no other way.
2856 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2858 # Losing compiler, so override with the script.
2859 # FIXME: It is wrong to rewrite CC.
2860 # But if we don't then we get into trouble of one sort or another.
2861 # A longer-term fix would be to have automake use am__CC in this case,
2862 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2863 CC
="$am_aux_dir/compile $CC"
2866 # autoconf is lame and doesn't give us any substitution variable for this.
2867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2868 NO_MINUS_C_MINUS_O
=yes
2870 OUTPUT_OPTION
='-o $@'
2875 # -------------------------
2876 # Check C compiler features
2877 # -------------------------
2880 ac_cpp
='$CPP $CPPFLAGS'
2881 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2884 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2885 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2886 # On Suns, sometimes $CPP names a directory.
2887 if test -n "$CPP" && test -d "$CPP"; then
2890 if test -z "$CPP"; then
2891 if test "${ac_cv_prog_CPP+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 # Double quotes because CPP needs to be expanded
2895 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2898 for ac_c_preproc_warn_flag
in '' yes
2900 # Use a header file that comes with gcc, so configuring glibc
2901 # with a fresh cross-compiler works.
2902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903 # <limits.h> exists even on freestanding compilers.
2904 # On the NeXT, cc -E runs the code through the compiler's parser,
2905 # not just through cpp. "Syntax error" is here to catch this case.
2906 cat >conftest.
$ac_ext <<_ACEOF
2909 cat confdefs.h
>>conftest.
$ac_ext
2910 cat >>conftest.
$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2913 # include <limits.h>
2915 # include <assert.h>
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1
>conftest.err
2924 cat conftest.err
>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } >/dev
/null
; then
2927 if test -s conftest.err
; then
2928 ac_cpp_err
=$ac_c_preproc_warn_flag
2929 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2936 if test -z "$ac_cpp_err"; then
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.
$ac_ext >&5
2942 # Broken: fails on valid input.
2945 rm -f conftest.err conftest.
$ac_ext
2947 # OK, works on sane cases. Now check whether non-existent headers
2948 # can be detected and how.
2949 cat >conftest.
$ac_ext <<_ACEOF
2952 cat confdefs.h
>>conftest.
$ac_ext
2953 cat >>conftest.
$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955 #include <ac_nonexistent.h>
2957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2960 grep -v '^ *+' conftest.er1
>conftest.err
2962 cat conftest.err
>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } >/dev
/null
; then
2965 if test -s conftest.err
; then
2966 ac_cpp_err
=$ac_c_preproc_warn_flag
2967 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2974 if test -z "$ac_cpp_err"; then
2975 # Broken: success on invalid input.
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.
$ac_ext >&5
2981 # Passes both tests.
2985 rm -f conftest.err conftest.
$ac_ext
2988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989 rm -f conftest.err conftest.
$ac_ext
2990 if $ac_preproc_ok; then
3002 echo "$as_me:$LINENO: result: $CPP" >&5
3003 echo "${ECHO_T}$CPP" >&6
3005 for ac_c_preproc_warn_flag
in '' yes
3007 # Use a header file that comes with gcc, so configuring glibc
3008 # with a fresh cross-compiler works.
3009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3010 # <limits.h> exists even on freestanding compilers.
3011 # On the NeXT, cc -E runs the code through the compiler's parser,
3012 # not just through cpp. "Syntax error" is here to catch this case.
3013 cat >conftest.
$ac_ext <<_ACEOF
3016 cat confdefs.h
>>conftest.
$ac_ext
3017 cat >>conftest.
$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3020 # include <limits.h>
3022 # include <assert.h>
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3029 grep -v '^ *+' conftest.er1
>conftest.err
3031 cat conftest.err
>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev
/null
; then
3034 if test -s conftest.err
; then
3035 ac_cpp_err
=$ac_c_preproc_warn_flag
3036 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3043 if test -z "$ac_cpp_err"; then
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.
$ac_ext >&5
3049 # Broken: fails on valid input.
3052 rm -f conftest.err conftest.
$ac_ext
3054 # OK, works on sane cases. Now check whether non-existent headers
3055 # can be detected and how.
3056 cat >conftest.
$ac_ext <<_ACEOF
3059 cat confdefs.h
>>conftest.
$ac_ext
3060 cat >>conftest.
$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <ac_nonexistent.h>
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3067 grep -v '^ *+' conftest.er1
>conftest.err
3069 cat conftest.err
>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev
/null
; then
3072 if test -s conftest.err
; then
3073 ac_cpp_err
=$ac_c_preproc_warn_flag
3074 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3081 if test -z "$ac_cpp_err"; then
3082 # Broken: success on invalid input.
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.
$ac_ext >&5
3088 # Passes both tests.
3092 rm -f conftest.err conftest.
$ac_ext
3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096 rm -f conftest.err conftest.
$ac_ext
3097 if $ac_preproc_ok; then
3100 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3108 ac_cpp
='$CPP $CPPFLAGS'
3109 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3114 echo "$as_me:$LINENO: checking for inline" >&5
3115 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3116 if test "${ac_cv_c_inline+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 for ac_kw
in inline __inline__ __inline
; do
3121 cat >conftest.
$ac_ext <<_ACEOF
3124 cat confdefs.h
>>conftest.
$ac_ext
3125 cat >>conftest.
$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3129 static $ac_kw foo_t static_foo () {return 0; }
3130 $ac_kw foo_t foo () {return 0; }
3134 rm -f conftest.
$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136 (eval $ac_compile) 2>conftest.er1
3138 grep -v '^ *+' conftest.er1
>conftest.err
3140 cat conftest.err
>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try
='test -s conftest.$ac_objext'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_c_inline
=$ac_kw; break
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.
$ac_ext >&5
3161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3165 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3166 echo "${ECHO_T}$ac_cv_c_inline" >&6
3169 case $ac_cv_c_inline in
3172 case $ac_cv_c_inline in
3174 *) ac_val
=$ac_cv_c_inline;;
3176 cat >>confdefs.h
<<_ACEOF
3178 #define inline $ac_val
3185 echo "$as_me:$LINENO: checking for long long int" >&5
3186 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3187 if test "${ac_cv_c_long_long+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 cat >conftest.
$ac_ext <<_ACEOF
3193 cat confdefs.h
>>conftest.
$ac_ext
3194 cat >>conftest.
$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3205 rm -f conftest.
$ac_objext
3206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207 (eval $ac_compile) 2>conftest.er1
3209 grep -v '^ *+' conftest.er1
>conftest.err
3211 cat conftest.err
>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
3214 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; } &&
3220 { ac_try
='test -s conftest.$ac_objext'
3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
3226 ac_cv_c_long_long
=yes
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.
$ac_ext >&5
3231 ac_cv_c_long_long
=no
3233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3235 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3236 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3237 if test $ac_cv_c_long_long = yes; then
3239 cat >>confdefs.h
<<\_ACEOF
3240 #define HAVE_LONG_LONG 1
3244 echo "$as_me:$LINENO: checking for __int64" >&5
3245 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3246 if test "${ac_cv_c___int64+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 cat >conftest.
$ac_ext <<_ACEOF
3252 cat confdefs.h
>>conftest.
$ac_ext
3253 cat >>conftest.
$ac_ext <<_ACEOF
3254 /* 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" || test ! -s conftest.err'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; } &&
3279 { ac_try
='test -s conftest.$ac_objext'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.
$ac_ext >&5
3292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3294 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3295 echo "${ECHO_T}$ac_cv_c___int64" >&6
3296 if test $ac_cv_c___int64 = yes; then
3298 cat >>confdefs.h
<<\_ACEOF
3299 #define HAVE___INT64 1
3305 # sizeof(char) is 1 by definition.
3307 echo "$as_me:$LINENO: checking for egrep" >&5
3308 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3309 if test "${ac_cv_prog_egrep+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3313 then ac_cv_prog_egrep
='grep -E'
3314 else ac_cv_prog_egrep
='egrep'
3317 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3318 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3319 EGREP
=$ac_cv_prog_egrep
3322 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3323 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3324 if test "${ac_cv_header_stdc+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 cat >conftest.
$ac_ext <<_ACEOF
3330 cat confdefs.h
>>conftest.
$ac_ext
3331 cat >>conftest.
$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3346 rm -f conftest.
$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>conftest.er1
3350 grep -v '^ *+' conftest.er1
>conftest.err
3352 cat conftest.err
>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; } &&
3361 { ac_try
='test -s conftest.$ac_objext'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 ac_cv_header_stdc
=yes
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.
$ac_ext >&5
3372 ac_cv_header_stdc
=no
3374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3376 if test $ac_cv_header_stdc = yes; then
3377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3378 cat >conftest.
$ac_ext <<_ACEOF
3381 cat confdefs.h
>>conftest.
$ac_ext
3382 cat >>conftest.
$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3388 $EGREP "memchr" >/dev
/null
2>&1; then
3391 ac_cv_header_stdc
=no
3397 if test $ac_cv_header_stdc = yes; then
3398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3399 cat >conftest.
$ac_ext <<_ACEOF
3402 cat confdefs.h
>>conftest.
$ac_ext
3403 cat >>conftest.
$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 $EGREP "free" >/dev
/null
2>&1; then
3412 ac_cv_header_stdc
=no
3418 if test $ac_cv_header_stdc = yes; then
3419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3420 if test "$cross_compiling" = yes; then
3423 cat >conftest.
$ac_ext <<_ACEOF
3426 cat confdefs.h
>>conftest.
$ac_ext
3427 cat >>conftest.
$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3430 #if ((' ' & 0x0FF) == 0x020)
3431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3434 # define ISLOWER(c) \
3435 (('a' <= (c) && (c) <= 'i') \
3436 || ('j' <= (c) && (c) <= 'r') \
3437 || ('s' <= (c) && (c) <= 'z'))
3438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3446 for (i = 0; i < 256; i++)
3447 if (XOR (islower (i), ISLOWER (i))
3448 || toupper (i) != TOUPPER (i))
3453 rm -f conftest
$ac_exeext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455 (eval $ac_link) 2>&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3466 echo "$as_me: program exited with status $ac_status" >&5
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.
$ac_ext >&5
3471 ac_cv_header_stdc
=no
3473 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3477 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3478 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3479 if test $ac_cv_header_stdc = yes; then
3481 cat >>confdefs.h
<<\_ACEOF
3482 #define STDC_HEADERS 1
3487 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3497 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3498 inttypes.h stdint.h unistd.h
3500 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3501 echo "$as_me:$LINENO: checking for $ac_header" >&5
3502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 cat >conftest.
$ac_ext <<_ACEOF
3509 cat confdefs.h
>>conftest.
$ac_ext
3510 cat >>conftest.
$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3512 $ac_includes_default
3514 #include <$ac_header>
3516 rm -f conftest.
$ac_objext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>conftest.er1
3520 grep -v '^ *+' conftest.er1
>conftest.err
3522 cat conftest.err
>&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try
='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 eval "$as_ac_Header=yes"
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.
$ac_ext >&5
3542 eval "$as_ac_Header=no"
3544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3549 cat >>confdefs.h
<<_ACEOF
3550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3558 echo "$as_me:$LINENO: checking for void *" >&5
3559 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3560 if test "${ac_cv_type_void_p+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 cat >conftest.
$ac_ext <<_ACEOF
3566 cat confdefs.h
>>conftest.
$ac_ext
3567 cat >>conftest.
$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569 $ac_includes_default
3575 if (sizeof (void *))
3581 rm -f conftest.
$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1
>conftest.err
3587 cat conftest.err
>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try
='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 ac_cv_type_void_p
=yes
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.
$ac_ext >&5
3607 ac_cv_type_void_p
=no
3609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3611 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3612 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3614 echo "$as_me:$LINENO: checking size of void *" >&5
3615 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3616 if test "${ac_cv_sizeof_void_p+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test "$ac_cv_type_void_p" = yes; then
3620 # The cast to unsigned long works around a bug in the HP C Compiler
3621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3623 # This bug is HP SR number 8606223364.
3624 if test "$cross_compiling" = yes; then
3625 # Depending upon the size, compute the lo and hi bounds.
3626 cat >conftest.
$ac_ext <<_ACEOF
3629 cat confdefs.h
>>conftest.
$ac_ext
3630 cat >>conftest.
$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 $ac_includes_default
3636 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3643 rm -f conftest.
$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3647 grep -v '^ *+' conftest.er1
>conftest.err
3649 cat conftest.err
>&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; } &&
3658 { ac_try
='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3666 cat >conftest.
$ac_ext <<_ACEOF
3669 cat confdefs.h
>>conftest.
$ac_ext
3670 cat >>conftest.
$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672 $ac_includes_default
3676 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3683 rm -f conftest.
$ac_objext
3684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685 (eval $ac_compile) 2>conftest.er1
3687 grep -v '^ *+' conftest.er1
>conftest.err
3689 cat conftest.err
>&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try
='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_hi
=$ac_mid; break
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.
$ac_ext >&5
3709 ac_lo
=`expr $ac_mid + 1`
3710 if test $ac_lo -le $ac_mid; then
3714 ac_mid
=`expr 2 '*' $ac_mid + 1`
3716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.
$ac_ext >&5
3722 cat >conftest.
$ac_ext <<_ACEOF
3725 cat confdefs.h
>>conftest.
$ac_ext
3726 cat >>conftest.
$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3728 $ac_includes_default
3732 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3739 rm -f conftest.
$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>conftest.er1
3743 grep -v '^ *+' conftest.er1
>conftest.err
3745 cat conftest.err
>&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try
='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3762 cat >conftest.
$ac_ext <<_ACEOF
3765 cat confdefs.h
>>conftest.
$ac_ext
3766 cat >>conftest.
$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 $ac_includes_default
3772 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3779 rm -f conftest.
$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>conftest.er1
3783 grep -v '^ *+' conftest.er1
>conftest.err
3785 cat conftest.err
>&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try
='test -s conftest.$ac_objext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_lo
=$ac_mid; break
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.
$ac_ext >&5
3805 ac_hi
=`expr '(' $ac_mid ')' - 1`
3806 if test $ac_mid -le $ac_hi; then
3810 ac_mid
=`expr 2 '*' $ac_mid`
3812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.
$ac_ext >&5
3820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3823 # Binary search between lo and hi bounds.
3824 while test "x$ac_lo" != "x$ac_hi"; do
3825 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3826 cat >conftest.
$ac_ext <<_ACEOF
3829 cat confdefs.h
>>conftest.
$ac_ext
3830 cat >>conftest.
$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 $ac_includes_default
3836 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3843 rm -f conftest.
$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
3847 grep -v '^ *+' conftest.er1
>conftest.err
3849 cat conftest.err
>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; } &&
3858 { ac_try
='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.
$ac_ext >&5
3869 ac_lo
=`expr '(' $ac_mid ')' + 1`
3871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3874 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3876 See \`config.log' for more details." >&5
3877 echo "$as_me: error: cannot compute sizeof (void *), 77
3878 See \`config.log' for more details." >&2;}
3879 { (exit 1); exit 1; }; } ;;
3882 if test "$cross_compiling" = yes; then
3883 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3884 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3885 { (exit 1); exit 1; }; }
3887 cat >conftest.
$ac_ext <<_ACEOF
3890 cat confdefs.h
>>conftest.
$ac_ext
3891 cat >>conftest.
$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_includes_default
3894 long longval () { return (long) (sizeof (void *)); }
3895 unsigned long ulongval () { return (long) (sizeof (void *)); }
3902 FILE *f = fopen ("conftest.val", "w");
3905 if (((long) (sizeof (void *))) < 0)
3907 long i = longval ();
3908 if (i != ((long) (sizeof (void *))))
3910 fprintf (f, "%ld\n", i);
3914 unsigned long i = ulongval ();
3915 if (i != ((long) (sizeof (void *))))
3917 fprintf (f, "%lu\n", i);
3919 exit (ferror (f) || fclose (f) != 0);
3925 rm -f conftest
$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_sizeof_void_p
=`cat conftest.val`
3938 echo "$as_me: program exited with status $ac_status" >&5
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.
$ac_ext >&5
3943 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3944 See \`config.log' for more details." >&5
3945 echo "$as_me: error: cannot compute sizeof (void *), 77
3946 See \`config.log' for more details." >&2;}
3947 { (exit 1); exit 1; }; }
3949 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3954 ac_cv_sizeof_void_p
=0
3957 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3958 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3959 cat >>confdefs.h
<<_ACEOF
3960 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3964 echo "$as_me:$LINENO: checking for short" >&5
3965 echo $ECHO_N "checking for short... $ECHO_C" >&6
3966 if test "${ac_cv_type_short+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 cat >conftest.
$ac_ext <<_ACEOF
3972 cat confdefs.h
>>conftest.
$ac_ext
3973 cat >>conftest.
$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975 $ac_includes_default
3987 rm -f conftest.
$ac_objext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>conftest.er1
3991 grep -v '^ *+' conftest.er1
>conftest.err
3993 cat conftest.err
>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try
='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_cv_type_short
=yes
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.
$ac_ext >&5
4015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4017 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4018 echo "${ECHO_T}$ac_cv_type_short" >&6
4020 echo "$as_me:$LINENO: checking size of short" >&5
4021 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4022 if test "${ac_cv_sizeof_short+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test "$ac_cv_type_short" = yes; then
4026 # The cast to unsigned long works around a bug in the HP C Compiler
4027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4029 # This bug is HP SR number 8606223364.
4030 if test "$cross_compiling" = yes; then
4031 # Depending upon the size, compute the lo and hi bounds.
4032 cat >conftest.
$ac_ext <<_ACEOF
4035 cat confdefs.h
>>conftest.
$ac_ext
4036 cat >>conftest.
$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4038 $ac_includes_default
4042 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4049 rm -f conftest.
$ac_objext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051 (eval $ac_compile) 2>conftest.er1
4053 grep -v '^ *+' conftest.er1
>conftest.err
4055 cat conftest.err
>&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try
='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4072 cat >conftest.
$ac_ext <<_ACEOF
4075 cat confdefs.h
>>conftest.
$ac_ext
4076 cat >>conftest.
$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 $ac_includes_default
4082 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4089 rm -f conftest.
$ac_objext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>conftest.er1
4093 grep -v '^ *+' conftest.er1
>conftest.err
4095 cat conftest.err
>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try
='test -s conftest.$ac_objext'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 ac_hi
=$ac_mid; break
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.
$ac_ext >&5
4115 ac_lo
=`expr $ac_mid + 1`
4116 if test $ac_lo -le $ac_mid; then
4120 ac_mid
=`expr 2 '*' $ac_mid + 1`
4122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.
$ac_ext >&5
4128 cat >conftest.
$ac_ext <<_ACEOF
4131 cat confdefs.h
>>conftest.
$ac_ext
4132 cat >>conftest.
$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_includes_default
4138 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4145 rm -f conftest.
$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>conftest.er1
4149 grep -v '^ *+' conftest.er1
>conftest.err
4151 cat conftest.err
>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try
='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4168 cat >conftest.
$ac_ext <<_ACEOF
4171 cat confdefs.h
>>conftest.
$ac_ext
4172 cat >>conftest.
$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 $ac_includes_default
4178 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4185 rm -f conftest.
$ac_objext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4187 (eval $ac_compile) 2>conftest.er1
4189 grep -v '^ *+' conftest.er1
>conftest.err
4191 cat conftest.err
>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } &&
4194 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; } &&
4200 { ac_try
='test -s conftest.$ac_objext'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_lo
=$ac_mid; break
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.
$ac_ext >&5
4211 ac_hi
=`expr '(' $ac_mid ')' - 1`
4212 if test $ac_mid -le $ac_hi; then
4216 ac_mid
=`expr 2 '*' $ac_mid`
4218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.
$ac_ext >&5
4226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4229 # Binary search between lo and hi bounds.
4230 while test "x$ac_lo" != "x$ac_hi"; do
4231 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4232 cat >conftest.
$ac_ext <<_ACEOF
4235 cat confdefs.h
>>conftest.
$ac_ext
4236 cat >>conftest.
$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 $ac_includes_default
4242 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4249 rm -f conftest.
$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251 (eval $ac_compile) 2>conftest.er1
4253 grep -v '^ *+' conftest.er1
>conftest.err
4255 cat conftest.err
>&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try
='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.
$ac_ext >&5
4275 ac_lo
=`expr '(' $ac_mid ')' + 1`
4277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4280 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4281 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4282 See \`config.log' for more details." >&5
4283 echo "$as_me: error: cannot compute sizeof (short), 77
4284 See \`config.log' for more details." >&2;}
4285 { (exit 1); exit 1; }; } ;;
4288 if test "$cross_compiling" = yes; then
4289 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4290 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4291 { (exit 1); exit 1; }; }
4293 cat >conftest.
$ac_ext <<_ACEOF
4296 cat confdefs.h
>>conftest.
$ac_ext
4297 cat >>conftest.
$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 $ac_includes_default
4300 long longval () { return (long) (sizeof (short)); }
4301 unsigned long ulongval () { return (long) (sizeof (short)); }
4308 FILE *f = fopen ("conftest.val", "w");
4311 if (((long) (sizeof (short))) < 0)
4313 long i = longval ();
4314 if (i != ((long) (sizeof (short))))
4316 fprintf (f, "%ld\n", i);
4320 unsigned long i = ulongval ();
4321 if (i != ((long) (sizeof (short))))
4323 fprintf (f, "%lu\n", i);
4325 exit (ferror (f) || fclose (f) != 0);
4331 rm -f conftest
$ac_exeext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4333 (eval $ac_link) 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 ac_cv_sizeof_short
=`cat conftest.val`
4344 echo "$as_me: program exited with status $ac_status" >&5
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.
$ac_ext >&5
4349 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4350 See \`config.log' for more details." >&5
4351 echo "$as_me: error: cannot compute sizeof (short), 77
4352 See \`config.log' for more details." >&2;}
4353 { (exit 1); exit 1; }; }
4355 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4360 ac_cv_sizeof_short
=0
4363 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4364 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4365 cat >>confdefs.h
<<_ACEOF
4366 #define SIZEOF_SHORT $ac_cv_sizeof_short
4370 echo "$as_me:$LINENO: checking for int" >&5
4371 echo $ECHO_N "checking for int... $ECHO_C" >&6
4372 if test "${ac_cv_type_int+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
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
4393 rm -f conftest.
$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4397 grep -v '^ *+' conftest.er1
>conftest.err
4399 cat conftest.err
>&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try
='test -z "$ac_c_werror_flag" || 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 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.
$ac_ext >&5
4421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4423 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4424 echo "${ECHO_T}$ac_cv_type_int" >&6
4426 echo "$as_me:$LINENO: checking size of int" >&5
4427 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4428 if test "${ac_cv_sizeof_int+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 if test "$ac_cv_type_int" = yes; then
4432 # The cast to unsigned long works around a bug in the HP C Compiler
4433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4435 # This bug is HP SR number 8606223364.
4436 if test "$cross_compiling" = yes; then
4437 # Depending upon the size, compute the lo and hi bounds.
4438 cat >conftest.
$ac_ext <<_ACEOF
4441 cat confdefs.h
>>conftest.
$ac_ext
4442 cat >>conftest.
$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4448 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4455 rm -f conftest.
$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>conftest.er1
4459 grep -v '^ *+' conftest.er1
>conftest.err
4461 cat conftest.err
>&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try
='test -s conftest.$ac_objext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4478 cat >conftest.
$ac_ext <<_ACEOF
4481 cat confdefs.h
>>conftest.
$ac_ext
4482 cat >>conftest.
$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 $ac_includes_default
4488 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4495 rm -f conftest.
$ac_objext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>conftest.er1
4499 grep -v '^ *+' conftest.er1
>conftest.err
4501 cat conftest.err
>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try
='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_hi
=$ac_mid; break
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.
$ac_ext >&5
4521 ac_lo
=`expr $ac_mid + 1`
4522 if test $ac_lo -le $ac_mid; then
4526 ac_mid
=`expr 2 '*' $ac_mid + 1`
4528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.
$ac_ext >&5
4534 cat >conftest.
$ac_ext <<_ACEOF
4537 cat confdefs.h
>>conftest.
$ac_ext
4538 cat >>conftest.
$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 $ac_includes_default
4544 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4551 rm -f conftest.
$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
4555 grep -v '^ *+' conftest.er1
>conftest.err
4557 cat conftest.err
>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try
='test -s conftest.$ac_objext'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4574 cat >conftest.
$ac_ext <<_ACEOF
4577 cat confdefs.h
>>conftest.
$ac_ext
4578 cat >>conftest.
$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580 $ac_includes_default
4584 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4591 rm -f conftest.
$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4595 grep -v '^ *+' conftest.er1
>conftest.err
4597 cat conftest.err
>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try
='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_lo
=$ac_mid; break
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.
$ac_ext >&5
4617 ac_hi
=`expr '(' $ac_mid ')' - 1`
4618 if test $ac_mid -le $ac_hi; then
4622 ac_mid
=`expr 2 '*' $ac_mid`
4624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.
$ac_ext >&5
4632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4635 # Binary search between lo and hi bounds.
4636 while test "x$ac_lo" != "x$ac_hi"; do
4637 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4638 cat >conftest.
$ac_ext <<_ACEOF
4641 cat confdefs.h
>>conftest.
$ac_ext
4642 cat >>conftest.
$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 $ac_includes_default
4648 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4655 rm -f conftest.
$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>conftest.er1
4659 grep -v '^ *+' conftest.er1
>conftest.err
4661 cat conftest.err
>&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try
='test -s conftest.$ac_objext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.
$ac_ext >&5
4681 ac_lo
=`expr '(' $ac_mid ')' + 1`
4683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4686 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4687 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4688 See \`config.log' for more details." >&5
4689 echo "$as_me: error: cannot compute sizeof (int), 77
4690 See \`config.log' for more details." >&2;}
4691 { (exit 1); exit 1; }; } ;;
4694 if test "$cross_compiling" = yes; then
4695 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4696 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4697 { (exit 1); exit 1; }; }
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 long longval () { return (long) (sizeof (int)); }
4707 unsigned long ulongval () { return (long) (sizeof (int)); }
4714 FILE *f = fopen ("conftest.val", "w");
4717 if (((long) (sizeof (int))) < 0)
4719 long i = longval ();
4720 if (i != ((long) (sizeof (int))))
4722 fprintf (f, "%ld\n", i);
4726 unsigned long i = ulongval ();
4727 if (i != ((long) (sizeof (int))))
4729 fprintf (f, "%lu\n", i);
4731 exit (ferror (f) || fclose (f) != 0);
4737 rm -f conftest
$ac_exeext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4739 (eval $ac_link) 2>&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_cv_sizeof_int
=`cat conftest.val`
4750 echo "$as_me: program exited with status $ac_status" >&5
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.
$ac_ext >&5
4755 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4756 See \`config.log' for more details." >&5
4757 echo "$as_me: error: cannot compute sizeof (int), 77
4758 See \`config.log' for more details." >&2;}
4759 { (exit 1); exit 1; }; }
4761 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4769 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4770 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4771 cat >>confdefs.h
<<_ACEOF
4772 #define SIZEOF_INT $ac_cv_sizeof_int
4776 echo "$as_me:$LINENO: checking for long" >&5
4777 echo $ECHO_N "checking for long... $ECHO_C" >&6
4778 if test "${ac_cv_type_long+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 cat >conftest.
$ac_ext <<_ACEOF
4784 cat confdefs.h
>>conftest.
$ac_ext
4785 cat >>conftest.
$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4787 $ac_includes_default
4799 rm -f conftest.
$ac_objext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801 (eval $ac_compile) 2>conftest.er1
4803 grep -v '^ *+' conftest.er1
>conftest.err
4805 cat conftest.err
>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; } &&
4814 { ac_try
='test -s conftest.$ac_objext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.
$ac_ext >&5
4827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4830 echo "${ECHO_T}$ac_cv_type_long" >&6
4832 echo "$as_me:$LINENO: checking size of long" >&5
4833 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_long+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 if test "$ac_cv_type_long" = yes; then
4838 # The cast to unsigned long works around a bug in the HP C Compiler
4839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841 # This bug is HP SR number 8606223364.
4842 if test "$cross_compiling" = yes; then
4843 # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.
$ac_ext <<_ACEOF
4847 cat confdefs.h
>>conftest.
$ac_ext
4848 cat >>conftest.
$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 $ac_includes_default
4854 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4861 rm -f conftest.
$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4865 grep -v '^ *+' conftest.er1
>conftest.err
4867 cat conftest.err
>&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try
='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4884 cat >conftest.
$ac_ext <<_ACEOF
4887 cat confdefs.h
>>conftest.
$ac_ext
4888 cat >>conftest.
$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 $ac_includes_default
4894 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4901 rm -f conftest.
$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>conftest.er1
4905 grep -v '^ *+' conftest.er1
>conftest.err
4907 cat conftest.err
>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try
='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_hi
=$ac_mid; break
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.
$ac_ext >&5
4927 ac_lo
=`expr $ac_mid + 1`
4928 if test $ac_lo -le $ac_mid; then
4932 ac_mid
=`expr 2 '*' $ac_mid + 1`
4934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.
$ac_ext >&5
4940 cat >conftest.
$ac_ext <<_ACEOF
4943 cat confdefs.h
>>conftest.
$ac_ext
4944 cat >>conftest.
$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 $ac_includes_default
4950 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4957 rm -f conftest.
$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>conftest.er1
4961 grep -v '^ *+' conftest.er1
>conftest.err
4963 cat conftest.err
>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try
='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4980 cat >conftest.
$ac_ext <<_ACEOF
4983 cat confdefs.h
>>conftest.
$ac_ext
4984 cat >>conftest.
$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 $ac_includes_default
4990 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4997 rm -f conftest.
$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>conftest.er1
5001 grep -v '^ *+' conftest.er1
>conftest.err
5003 cat conftest.err
>&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try
='test -s conftest.$ac_objext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 ac_lo
=$ac_mid; break
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.
$ac_ext >&5
5023 ac_hi
=`expr '(' $ac_mid ')' - 1`
5024 if test $ac_mid -le $ac_hi; then
5028 ac_mid
=`expr 2 '*' $ac_mid`
5030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.
$ac_ext >&5
5038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5041 # Binary search between lo and hi bounds.
5042 while test "x$ac_lo" != "x$ac_hi"; do
5043 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5044 cat >conftest.
$ac_ext <<_ACEOF
5047 cat confdefs.h
>>conftest.
$ac_ext
5048 cat >>conftest.
$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 $ac_includes_default
5054 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5061 rm -f conftest.
$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5065 grep -v '^ *+' conftest.er1
>conftest.err
5067 cat conftest.err
>&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try
='test -s conftest.$ac_objext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.
$ac_ext >&5
5087 ac_lo
=`expr '(' $ac_mid ')' + 1`
5089 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5092 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5093 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5094 See \`config.log' for more details." >&5
5095 echo "$as_me: error: cannot compute sizeof (long), 77
5096 See \`config.log' for more details." >&2;}
5097 { (exit 1); exit 1; }; } ;;
5100 if test "$cross_compiling" = yes; then
5101 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5102 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5103 { (exit 1); exit 1; }; }
5105 cat >conftest.
$ac_ext <<_ACEOF
5108 cat confdefs.h
>>conftest.
$ac_ext
5109 cat >>conftest.
$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5112 long longval () { return (long) (sizeof (long)); }
5113 unsigned long ulongval () { return (long) (sizeof (long)); }
5120 FILE *f = fopen ("conftest.val", "w");
5123 if (((long) (sizeof (long))) < 0)
5125 long i = longval ();
5126 if (i != ((long) (sizeof (long))))
5128 fprintf (f, "%ld\n", i);
5132 unsigned long i = ulongval ();
5133 if (i != ((long) (sizeof (long))))
5135 fprintf (f, "%lu\n", i);
5137 exit (ferror (f) || fclose (f) != 0);
5143 rm -f conftest
$ac_exeext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5145 (eval $ac_link) 2>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_sizeof_long
=`cat conftest.val`
5156 echo "$as_me: program exited with status $ac_status" >&5
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.
$ac_ext >&5
5161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5162 See \`config.log' for more details." >&5
5163 echo "$as_me: error: cannot compute sizeof (long), 77
5164 See \`config.log' for more details." >&2;}
5165 { (exit 1); exit 1; }; }
5167 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5175 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5176 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5177 cat >>confdefs.h
<<_ACEOF
5178 #define SIZEOF_LONG $ac_cv_sizeof_long
5182 if test $ac_cv_c_long_long = yes; then
5183 echo "$as_me:$LINENO: checking for long long" >&5
5184 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5185 if test "${ac_cv_type_long_long+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 cat >conftest.
$ac_ext <<_ACEOF
5191 cat confdefs.h
>>conftest.
$ac_ext
5192 cat >>conftest.
$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 $ac_includes_default
5198 if ((long long *) 0)
5200 if (sizeof (long long))
5206 rm -f conftest.
$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208 (eval $ac_compile) 2>conftest.er1
5210 grep -v '^ *+' conftest.er1
>conftest.err
5212 cat conftest.err
>&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; } &&
5221 { ac_try
='test -s conftest.$ac_objext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 ac_cv_type_long_long
=yes
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.
$ac_ext >&5
5232 ac_cv_type_long_long
=no
5234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5236 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5237 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5239 echo "$as_me:$LINENO: checking size of long long" >&5
5240 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5241 if test "${ac_cv_sizeof_long_long+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 if test "$ac_cv_type_long_long" = yes; then
5245 # The cast to unsigned long works around a bug in the HP C Compiler
5246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5248 # This bug is HP SR number 8606223364.
5249 if test "$cross_compiling" = yes; then
5250 # Depending upon the size, compute the lo and hi bounds.
5251 cat >conftest.
$ac_ext <<_ACEOF
5254 cat confdefs.h
>>conftest.
$ac_ext
5255 cat >>conftest.
$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 $ac_includes_default
5261 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5268 rm -f conftest.
$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>conftest.er1
5272 grep -v '^ *+' conftest.er1
>conftest.err
5274 cat conftest.err
>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try
='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5291 cat >conftest.
$ac_ext <<_ACEOF
5294 cat confdefs.h
>>conftest.
$ac_ext
5295 cat >>conftest.
$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5301 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5308 rm -f conftest.
$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1
>conftest.err
5314 cat conftest.err
>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try
='test -s conftest.$ac_objext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_hi
=$ac_mid; break
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.
$ac_ext >&5
5334 ac_lo
=`expr $ac_mid + 1`
5335 if test $ac_lo -le $ac_mid; then
5339 ac_mid
=`expr 2 '*' $ac_mid + 1`
5341 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.
$ac_ext >&5
5347 cat >conftest.
$ac_ext <<_ACEOF
5350 cat confdefs.h
>>conftest.
$ac_ext
5351 cat >>conftest.
$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 $ac_includes_default
5357 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5364 rm -f conftest.
$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>conftest.er1
5368 grep -v '^ *+' conftest.er1
>conftest.err
5370 cat conftest.err
>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try
='test -s conftest.$ac_objext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5387 cat >conftest.
$ac_ext <<_ACEOF
5390 cat confdefs.h
>>conftest.
$ac_ext
5391 cat >>conftest.
$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 $ac_includes_default
5397 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5404 rm -f conftest.
$ac_objext
5405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406 (eval $ac_compile) 2>conftest.er1
5408 grep -v '^ *+' conftest.er1
>conftest.err
5410 cat conftest.err
>&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } &&
5413 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try
='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_lo
=$ac_mid; break
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.
$ac_ext >&5
5430 ac_hi
=`expr '(' $ac_mid ')' - 1`
5431 if test $ac_mid -le $ac_hi; then
5435 ac_mid
=`expr 2 '*' $ac_mid`
5437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.
$ac_ext >&5
5445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5448 # Binary search between lo and hi bounds.
5449 while test "x$ac_lo" != "x$ac_hi"; do
5450 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5451 cat >conftest.
$ac_ext <<_ACEOF
5454 cat confdefs.h
>>conftest.
$ac_ext
5455 cat >>conftest.
$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 $ac_includes_default
5461 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5468 rm -f conftest.
$ac_objext
5469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5470 (eval $ac_compile) 2>conftest.er1
5472 grep -v '^ *+' conftest.er1
>conftest.err
5474 cat conftest.err
>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; } &&
5483 { ac_try
='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.
$ac_ext >&5
5494 ac_lo
=`expr '(' $ac_mid ')' + 1`
5496 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5499 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5500 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5501 See \`config.log' for more details." >&5
5502 echo "$as_me: error: cannot compute sizeof (long long), 77
5503 See \`config.log' for more details." >&2;}
5504 { (exit 1); exit 1; }; } ;;
5507 if test "$cross_compiling" = yes; then
5508 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5509 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5510 { (exit 1); exit 1; }; }
5512 cat >conftest.
$ac_ext <<_ACEOF
5515 cat confdefs.h
>>conftest.
$ac_ext
5516 cat >>conftest.
$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 $ac_includes_default
5519 long longval () { return (long) (sizeof (long long)); }
5520 unsigned long ulongval () { return (long) (sizeof (long long)); }
5527 FILE *f = fopen ("conftest.val", "w");
5530 if (((long) (sizeof (long long))) < 0)
5532 long i = longval ();
5533 if (i != ((long) (sizeof (long long))))
5535 fprintf (f, "%ld\n", i);
5539 unsigned long i = ulongval ();
5540 if (i != ((long) (sizeof (long long))))
5542 fprintf (f, "%lu\n", i);
5544 exit (ferror (f) || fclose (f) != 0);
5550 rm -f conftest
$ac_exeext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 ac_cv_sizeof_long_long
=`cat conftest.val`
5563 echo "$as_me: program exited with status $ac_status" >&5
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.
$ac_ext >&5
5568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5569 See \`config.log' for more details." >&5
5570 echo "$as_me: error: cannot compute sizeof (long long), 77
5571 See \`config.log' for more details." >&2;}
5572 { (exit 1); exit 1; }; }
5574 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5579 ac_cv_sizeof_long_long
=0
5582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5583 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5584 cat >>confdefs.h
<<_ACEOF
5585 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5590 if test $ac_cv_c___int64 = yes; then
5591 echo "$as_me:$LINENO: checking for __int64" >&5
5592 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5593 if test "${ac_cv_type___int64+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 cat >conftest.
$ac_ext <<_ACEOF
5599 cat confdefs.h
>>conftest.
$ac_ext
5600 cat >>conftest.
$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 $ac_includes_default
5608 if (sizeof (__int64))
5614 rm -f conftest.
$ac_objext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5616 (eval $ac_compile) 2>conftest.er1
5618 grep -v '^ *+' conftest.er1
>conftest.err
5620 cat conftest.err
>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try
='test -s conftest.$ac_objext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_type___int64
=yes
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.
$ac_ext >&5
5640 ac_cv_type___int64
=no
5642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5644 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5645 echo "${ECHO_T}$ac_cv_type___int64" >&6
5647 echo "$as_me:$LINENO: checking size of __int64" >&5
5648 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5649 if test "${ac_cv_sizeof___int64+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 if test "$ac_cv_type___int64" = yes; then
5653 # The cast to unsigned long works around a bug in the HP C Compiler
5654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5656 # This bug is HP SR number 8606223364.
5657 if test "$cross_compiling" = yes; then
5658 # Depending upon the size, compute the lo and hi bounds.
5659 cat >conftest.
$ac_ext <<_ACEOF
5662 cat confdefs.h
>>conftest.
$ac_ext
5663 cat >>conftest.
$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5669 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5676 rm -f conftest.
$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5680 grep -v '^ *+' conftest.er1
>conftest.err
5682 cat conftest.err
>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try
='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5699 cat >conftest.
$ac_ext <<_ACEOF
5702 cat confdefs.h
>>conftest.
$ac_ext
5703 cat >>conftest.
$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 $ac_includes_default
5709 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5716 rm -f conftest.
$ac_objext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718 (eval $ac_compile) 2>conftest.er1
5720 grep -v '^ *+' conftest.er1
>conftest.err
5722 cat conftest.err
>&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } &&
5725 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try
='test -s conftest.$ac_objext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_hi
=$ac_mid; break
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.
$ac_ext >&5
5742 ac_lo
=`expr $ac_mid + 1`
5743 if test $ac_lo -le $ac_mid; then
5747 ac_mid
=`expr 2 '*' $ac_mid + 1`
5749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.
$ac_ext >&5
5755 cat >conftest.
$ac_ext <<_ACEOF
5758 cat confdefs.h
>>conftest.
$ac_ext
5759 cat >>conftest.
$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 $ac_includes_default
5765 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5772 rm -f conftest.
$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>conftest.er1
5776 grep -v '^ *+' conftest.er1
>conftest.err
5778 cat conftest.err
>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try
='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5795 cat >conftest.
$ac_ext <<_ACEOF
5798 cat confdefs.h
>>conftest.
$ac_ext
5799 cat >>conftest.
$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_includes_default
5805 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5812 rm -f conftest.
$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5816 grep -v '^ *+' conftest.er1
>conftest.err
5818 cat conftest.err
>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try
='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_lo
=$ac_mid; break
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.
$ac_ext >&5
5838 ac_hi
=`expr '(' $ac_mid ')' - 1`
5839 if test $ac_mid -le $ac_hi; then
5843 ac_mid
=`expr 2 '*' $ac_mid`
5845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.
$ac_ext >&5
5853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5856 # Binary search between lo and hi bounds.
5857 while test "x$ac_lo" != "x$ac_hi"; do
5858 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5859 cat >conftest.
$ac_ext <<_ACEOF
5862 cat confdefs.h
>>conftest.
$ac_ext
5863 cat >>conftest.
$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 $ac_includes_default
5869 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5876 rm -f conftest.
$ac_objext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>conftest.er1
5880 grep -v '^ *+' conftest.er1
>conftest.err
5882 cat conftest.err
>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try
='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.
$ac_ext >&5
5902 ac_lo
=`expr '(' $ac_mid ')' + 1`
5904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5907 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5908 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5909 See \`config.log' for more details." >&5
5910 echo "$as_me: error: cannot compute sizeof (__int64), 77
5911 See \`config.log' for more details." >&2;}
5912 { (exit 1); exit 1; }; } ;;
5915 if test "$cross_compiling" = yes; then
5916 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5917 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5918 { (exit 1); exit 1; }; }
5920 cat >conftest.
$ac_ext <<_ACEOF
5923 cat confdefs.h
>>conftest.
$ac_ext
5924 cat >>conftest.
$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 $ac_includes_default
5927 long longval () { return (long) (sizeof (__int64)); }
5928 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5935 FILE *f = fopen ("conftest.val", "w");
5938 if (((long) (sizeof (__int64))) < 0)
5940 long i = longval ();
5941 if (i != ((long) (sizeof (__int64))))
5943 fprintf (f, "%ld\n", i);
5947 unsigned long i = ulongval ();
5948 if (i != ((long) (sizeof (__int64))))
5950 fprintf (f, "%lu\n", i);
5952 exit (ferror (f) || fclose (f) != 0);
5958 rm -f conftest
$ac_exeext
5959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5960 (eval $ac_link) 2>&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_cv_sizeof___int64
=`cat conftest.val`
5971 echo "$as_me: program exited with status $ac_status" >&5
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.
$ac_ext >&5
5976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5977 See \`config.log' for more details." >&5
5978 echo "$as_me: error: cannot compute sizeof (__int64), 77
5979 See \`config.log' for more details." >&2;}
5980 { (exit 1); exit 1; }; }
5982 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5987 ac_cv_sizeof___int64
=0
5990 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5991 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5992 cat >>confdefs.h
<<_ACEOF
5993 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5999 # ---------------------
6000 # Warnings and checking
6001 # ---------------------
6003 # Check $CC warning features (if it's GCC).
6004 # We want to use -pedantic, but we don't want warnings about
6007 # So, we only use -pedantic if we can disable those warnings.
6009 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6010 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6011 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 save_CFLAGS
="$CFLAGS"
6015 CFLAGS
="-Wno-long-long"
6016 cat >conftest.
$ac_ext <<_ACEOF
6019 cat confdefs.h
>>conftest.
$ac_ext
6020 cat >>conftest.
$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6024 rm -f conftest.
$ac_objext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>conftest.er1
6028 grep -v '^ *+' conftest.er1
>conftest.err
6030 cat conftest.err
>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; } &&
6039 { ac_try
='test -s conftest.$ac_objext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_cv_prog_cc_w_no_long_long
=yes
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.
$ac_ext >&5
6050 ac_cv_prog_cc_w_no_long_long
=no
6052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6053 CFLAGS
="$save_CFLAGS"
6056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6057 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6059 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6060 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6061 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 save_CFLAGS
="$CFLAGS"
6065 CFLAGS
="-Wno-variadic-macros"
6066 cat >conftest.
$ac_ext <<_ACEOF
6069 cat confdefs.h
>>conftest.
$ac_ext
6070 cat >>conftest.
$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6074 rm -f conftest.
$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6078 grep -v '^ *+' conftest.er1
>conftest.err
6080 cat conftest.err
>&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try
='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_prog_cc_w_no_variadic_macros
=yes
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.
$ac_ext >&5
6100 ac_cv_prog_cc_w_no_variadic_macros
=no
6102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6103 CFLAGS
="$save_CFLAGS"
6106 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6107 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6110 if test $ac_cv_prog_cc_w_no_long_long = yes \
6111 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6112 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6116 # Add -Wold-style-definition if it's accepted
6117 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6118 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6119 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 save_CFLAGS
="$CFLAGS"
6123 CFLAGS
="-Wold-style-definition"
6124 cat >conftest.
$ac_ext <<_ACEOF
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6132 rm -f conftest.
$ac_objext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>conftest.er1
6136 grep -v '^ *+' conftest.er1
>conftest.err
6138 cat conftest.err
>&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try
='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_cv_prog_cc_w_old_style_definition
=yes
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.
$ac_ext >&5
6158 ac_cv_prog_cc_w_old_style_definition
=no
6160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6161 CFLAGS
="$save_CFLAGS"
6164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6165 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6166 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6167 strict1_warn
="${strict1_warn} -Wold-style-definition"
6170 # Enable -Werror, period.
6171 # Check whether --enable-werror_always or --disable-werror_always was given.
6172 if test "${enable_werror_always+set}" = set; then
6173 enableval
="$enable_werror_always"
6176 enable_werror_always
=no
6178 if test x
${enable_werror_always} = xyes
; then
6179 strict1_warn
="${strict1_warn} -Werror"
6183 # If the native compiler is GCC, we can enable warnings even in stage1.
6184 # That's useful for people building cross-compilers, or just running a
6187 if test "x$GCC" = "xyes"; then
6188 warn_cflags
='$(GCC_WARN_CFLAGS)'
6192 # Enable -Werror in bootstrap stage2 and later.
6193 # Check whether --enable-werror or --disable-werror was given.
6194 if test "${enable_werror+set}" = set; then
6195 enableval
="$enable_werror"
6198 if test x
$is_release = x
; then
6199 # Default to "yes" on development branches.
6202 # Default to "no" on release branches.
6206 if test x
$enable_werror = xyes
; then
6211 # Enable expensive internal checks
6212 # Check whether --enable-checking or --disable-checking was given.
6213 if test "${enable_checking+set}" = set; then
6214 enableval
="$enable_checking"
6215 ac_checking_flags
="${enableval}"
6218 # Determine the default checks.
6219 if test x
$is_release = x
; then
6220 ac_checking_flags
=yes
6222 ac_checking_flags
=release
6225 ac_assert_checking
=1
6229 ac_rtlflag_checking
=
6231 ac_gc_always_collect
=
6233 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6234 for check
in $ac_checking_flags
6237 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6238 ac_tree_checking
=1 ; ac_gc_checking
=1 ;
6239 ac_rtlflag_checking
=1 ;;
6240 no
) ac_assert_checking
= ; ac_checking
= ;
6241 ac_tree_checking
= ; ac_rtl_checking
= ;
6242 ac_rtlflag_checking
= ; ac_gc_checking
= ;
6243 ac_gc_always_collect
= ; ac_fold_checking
= ;;
6244 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6245 ac_tree_checking
=1 ; ac_rtl_checking
=1 ;
6246 ac_rtlflag_checking
=1 ; ac_gc_checking
=1 ;
6247 ac_gc_always_collect
=1 ; ac_fold_checking
=1 ;;
6248 release
) ac_assert_checking
=1 ;;
6249 assert
) ac_assert_checking
=1 ;;
6250 fold) ac_fold_checking
=1 ;;
6251 gc
) ac_gc_checking
=1 ;;
6252 gcac
) ac_gc_always_collect
=1 ;;
6253 misc
) ac_checking
=1 ;;
6254 rtlflag
) ac_rtlflag_checking
=1 ;;
6255 rtl
) ac_rtl_checking
=1 ;;
6256 tree
) ac_tree_checking
=1 ;;
6257 valgrind
) ac_checking_valgrind
=1 ;;
6258 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6259 echo "$as_me: error: unknown check category $check" >&2;}
6260 { (exit 1); exit 1; }; } ;;
6266 if test x
$ac_checking != x
; then
6268 cat >>confdefs.h
<<\_ACEOF
6269 #define ENABLE_CHECKING 1
6272 nocommon_flag
=-fno-common
6275 if test x
$ac_assert_checking != x
; then
6277 cat >>confdefs.h
<<\_ACEOF
6278 #define ENABLE_ASSERT_CHECKING 1
6282 if test x
$ac_tree_checking != x
; then
6284 cat >>confdefs.h
<<\_ACEOF
6285 #define ENABLE_TREE_CHECKING 1
6288 TREEBROWSER
=tree-browser.o
6291 if test x
$ac_rtl_checking != x
; then
6293 cat >>confdefs.h
<<\_ACEOF
6294 #define ENABLE_RTL_CHECKING 1
6298 if test x
$ac_rtlflag_checking != x
; then
6300 cat >>confdefs.h
<<\_ACEOF
6301 #define ENABLE_RTL_FLAG_CHECKING 1
6305 if test x
$ac_gc_checking != x
; then
6307 cat >>confdefs.h
<<\_ACEOF
6308 #define ENABLE_GC_CHECKING 1
6312 if test x
$ac_gc_always_collect != x
; then
6314 cat >>confdefs.h
<<\_ACEOF
6315 #define ENABLE_GC_ALWAYS_COLLECT 1
6319 if test x
$ac_fold_checking != x
; then
6321 cat >>confdefs.h
<<\_ACEOF
6322 #define ENABLE_FOLD_CHECKING 1
6326 valgrind_path_defines
=
6329 if test "${ac_cv_header_valgrind_h+set}" = set; then
6330 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6331 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6332 if test "${ac_cv_header_valgrind_h+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6336 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6338 # Is the header compilable?
6339 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6340 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6341 cat >conftest.
$ac_ext <<_ACEOF
6344 cat confdefs.h
>>conftest.
$ac_ext
6345 cat >>conftest.
$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6348 #include <valgrind.h>
6350 rm -f conftest.
$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6354 grep -v '^ *+' conftest.er1
>conftest.err
6356 cat conftest.err
>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try
='test -s conftest.$ac_objext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_header_compiler
=yes
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.
$ac_ext >&5
6376 ac_header_compiler
=no
6378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6380 echo "${ECHO_T}$ac_header_compiler" >&6
6382 # Is the header present?
6383 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6384 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6385 cat >conftest.
$ac_ext <<_ACEOF
6388 cat confdefs.h
>>conftest.
$ac_ext
6389 cat >>conftest.
$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 #include <valgrind.h>
6393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6394 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6396 grep -v '^ *+' conftest.er1
>conftest.err
6398 cat conftest.err
>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } >/dev
/null
; then
6401 if test -s conftest.err
; then
6402 ac_cpp_err
=$ac_c_preproc_warn_flag
6403 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6410 if test -z "$ac_cpp_err"; then
6411 ac_header_preproc
=yes
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.
$ac_ext >&5
6416 ac_header_preproc
=no
6418 rm -f conftest.err conftest.
$ac_ext
6419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6420 echo "${ECHO_T}$ac_header_preproc" >&6
6422 # So? What about this header?
6423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6425 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6426 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6427 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6428 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6429 ac_header_preproc
=yes
6432 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6433 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6434 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6435 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6437 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6439 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6441 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6443 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6446 ## ------------------------------------------ ##
6447 ## Report this to the AC_PACKAGE_NAME lists. ##
6448 ## ------------------------------------------ ##
6451 sed "s/^/$as_me: WARNING: /" >&2
6454 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6455 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6456 if test "${ac_cv_header_valgrind_h+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 ac_cv_header_valgrind_h
=$ac_header_preproc
6461 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6462 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6465 if test $ac_cv_header_valgrind_h = yes; then
6473 if test x
$ac_checking_valgrind != x
; then
6474 # It is certainly possible that there's valgrind but no valgrind.h.
6475 # GCC relies on making annotations so we must have both.
6476 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6477 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6478 cat >conftest.
$ac_ext <<_ACEOF
6481 cat confdefs.h
>>conftest.
$ac_ext
6482 cat >>conftest.
$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 #include <valgrind/memcheck.h>
6485 #ifndef VALGRIND_DISCARD
6486 #error VALGRIND_DISCARD not defined
6489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6490 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6492 grep -v '^ *+' conftest.er1
>conftest.err
6494 cat conftest.err
>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } >/dev
/null
; then
6497 if test -s conftest.err
; then
6498 ac_cpp_err
=$ac_c_preproc_warn_flag
6499 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6506 if test -z "$ac_cpp_err"; then
6507 gcc_cv_header_valgrind_memcheck_h
=yes
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.
$ac_ext >&5
6512 gcc_cv_header_valgrind_memcheck_h
=no
6514 rm -f conftest.err conftest.
$ac_ext
6515 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6516 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6517 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6518 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6519 cat >conftest.
$ac_ext <<_ACEOF
6522 cat confdefs.h
>>conftest.
$ac_ext
6523 cat >>conftest.
$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525 #include <memcheck.h>
6526 #ifndef VALGRIND_DISCARD
6527 #error VALGRIND_DISCARD not defined
6530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6531 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6533 grep -v '^ *+' conftest.er1
>conftest.err
6535 cat conftest.err
>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } >/dev
/null
; then
6538 if test -s conftest.err
; then
6539 ac_cpp_err
=$ac_c_preproc_warn_flag
6540 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6547 if test -z "$ac_cpp_err"; then
6548 gcc_cv_header_memcheck_h
=yes
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.
$ac_ext >&5
6553 gcc_cv_header_memcheck_h
=no
6555 rm -f conftest.err conftest.
$ac_ext
6556 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6557 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6559 # Prepare PATH_SEPARATOR.
6560 # The user is always right.
6561 if test "${PATH_SEPARATOR+set}" != set; then
6562 echo "#! /bin/sh" >conf$$.sh
6563 echo "exit 0" >>conf$$.sh
6565 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6573 # Find out how to test for executable files. Don't use a zero-byte file,
6574 # as systems may use methods other than mode bits to determine executability.
6575 cat >conf$$.
file <<_ASEOF
6579 chmod +x conf$$.
file
6580 if test -x conf$$.
file >/dev
/null
2>&1; then
6581 ac_executable_p
="test -x"
6583 ac_executable_p
="test -f"
6587 # Extract the first word of "valgrind", so it can be a program name with args.
6588 set dummy valgrind
; ac_word
=$2
6589 echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6591 if test "${ac_cv_path_valgrind_path+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 case "$valgrind_path" in
6596 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6599 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6600 for ac_dir
in $PATH; do
6602 test -z "$ac_dir" && ac_dir
=.
6603 for ac_exec_ext
in '' $ac_executable_extensions; do
6604 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6605 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6606 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6616 valgrind_path
="$ac_cv_path_valgrind_path"
6617 if test -n "$valgrind_path"; then
6618 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6619 echo "${ECHO_T}$valgrind_path" >&6
6621 echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6625 if test "x$valgrind_path" = "x" \
6626 ||
(test $have_valgrind_h = no \
6627 && test $gcc_cv_header_memcheck_h = no \
6628 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6629 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6630 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6631 { (exit 1); exit 1; }; }
6633 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6634 valgrind_command
="$valgrind_path -q"
6636 cat >>confdefs.h
<<\_ACEOF
6637 #define ENABLE_VALGRIND_CHECKING 1
6640 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6642 cat >>confdefs.h
<<\_ACEOF
6643 #define HAVE_VALGRIND_MEMCHECK_H 1
6647 if test $gcc_cv_header_memcheck_h = yes; then
6649 cat >>confdefs.h
<<\_ACEOF
6650 #define HAVE_MEMCHECK_H 1
6658 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6659 if test "${enable_mapped_location+set}" = set; then
6660 enableval
="$enable_mapped_location"
6663 enable_mapped_location
=no
6666 if test "$enable_mapped_location" = yes ; then
6668 cat >>confdefs.h
<<\_ACEOF
6669 #define USE_MAPPED_LOCATION 1
6674 # Enable code coverage collection
6675 # Check whether --enable-coverage or --disable-coverage was given.
6676 if test "${enable_coverage+set}" = set; then
6677 enableval
="$enable_coverage"
6678 case "${enableval}" in
6680 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6683 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6686 # a.k.a. --disable-coverage
6690 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6691 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6692 { (exit 1); exit 1; }; }
6700 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6701 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6702 enableval
="$enable_gather_detailed_mem_stats"
6705 enable_gather_detailed_mem_stats
=no
6707 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6709 cat >>confdefs.h
<<\_ACEOF
6710 #define GATHER_STATISTICS 1
6715 # -------------------------------
6716 # Miscenalleous configure options
6717 # -------------------------------
6721 # Check whether --with-stabs or --without-stabs was given.
6722 if test "${with_stabs+set}" = set; then
6723 withval
="$with_stabs"
6729 # Determine whether or not multilibs are enabled.
6730 # Check whether --enable-multilib or --disable-multilib was given.
6731 if test "${enable_multilib+set}" = set; then
6732 enableval
="$enable_multilib"
6739 # Enable __cxa_atexit for C++.
6740 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6741 if test "${enable___cxa_atexit+set}" = set; then
6742 enableval
="$enable___cxa_atexit"
6747 # Pass with no value to take the default
6748 # Pass with a value to specify a thread package
6749 # Check whether --enable-threads or --disable-threads was given.
6750 if test "${enable_threads+set}" = set; then
6751 enableval
="$enable_threads"
6757 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6758 if test "${enable_objc_gc+set}" = set; then
6759 enableval
="$enable_objc_gc"
6760 if test x
$enable_objc_gc = xno
; then
6770 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6771 if test "${with_dwarf2+set}" = set; then
6772 withval
="$with_dwarf2"
6773 dwarf2
="$with_dwarf2"
6778 # Check whether --enable-shared or --disable-shared was given.
6779 if test "${enable_shared+set}" = set; then
6780 enableval
="$enable_shared"
6782 case $enable_shared in
6786 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6787 for pkg
in $enableval; do
6788 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6802 # Check whether --with-sysroot or --without-sysroot was given.
6803 if test "${with_sysroot+set}" = set; then
6804 withval
="$with_sysroot"
6806 case ${with_sysroot} in
6807 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6808 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6811 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6812 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6814 if test "x$exec_prefix" = xNONE
; then
6815 if test "x$prefix" = xNONE
; then
6816 test_prefix
=/usr
/local
6821 test_prefix
=$exec_prefix
6823 case ${TARGET_SYSTEM_ROOT} in
6824 "${test_prefix}"|
"${test_prefix}/"*|\
6825 '${exec_prefix}'|
'${exec_prefix}/'*)
6826 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6827 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6834 TARGET_SYSTEM_ROOT_DEFINE
=
6835 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6842 # Build with intermodule optimisations
6843 # Check whether --enable-intermodule or --disable-intermodule was given.
6844 if test "${enable_intermodule+set}" = set; then
6845 enableval
="$enable_intermodule"
6846 case ${enable_intermodule} in
6847 yes) onestep
="-onestep";;
6855 # Sanity check enable_languages in case someone does not run the toplevel
6856 # configure # script.
6857 # Check whether --enable-languages or --disable-languages was given.
6858 if test "${enable_languages+set}" = set; then
6859 enableval
="$enable_languages"
6860 case ,${enable_languages}, in
6862 # go safe -- we cannot be much sure without the toplevel
6864 # analysis of which target libs are present and usable
6868 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6869 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6870 { (exit 1); exit 1; }; }
6875 enable_languages
=c
,${enable_languages}
6883 for lang
in ${srcdir}/*/config-lang.
in
6886 # The odd quoting in the next line works around
6887 # an apparent bug in bash 1.12 on linux.
6888 ${srcdir}/[*]/config-lang.
in) ;;
6890 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6891 if test "x$lang_alias" = x
6893 echo "$lang doesn't set \$language." 1>&2
6896 case ",$enable_languages," in
6898 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6905 # -------------------------
6906 # Checks for other programs
6907 # -------------------------
6909 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6910 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6911 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6912 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 cat >conftest.
make <<\_ACEOF
6917 @
echo 'ac_maketemp="$(MAKE)"'
6919 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6920 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6921 if test -n "$ac_maketemp"; then
6922 eval ac_cv_prog_make_
${ac_make}_set
=yes
6924 eval ac_cv_prog_make_
${ac_make}_set
=no
6928 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6929 echo "$as_me:$LINENO: result: yes" >&5
6930 echo "${ECHO_T}yes" >&6
6933 echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6
6935 SET_MAKE
="MAKE=${MAKE-make}"
6939 # Find some useful tools
6940 for ac_prog
in gawk mawk nawk
awk
6942 # Extract the first word of "$ac_prog", so it can be a program name with args.
6943 set dummy
$ac_prog; ac_word
=$2
6944 echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6946 if test "${ac_cv_prog_AWK+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 if test -n "$AWK"; then
6950 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir
=.
6957 for ac_exec_ext
in '' $ac_executable_extensions; do
6958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_AWK
="$ac_prog"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 if test -n "$AWK"; then
6970 echo "$as_me:$LINENO: result: $AWK" >&5
6971 echo "${ECHO_T}$AWK" >&6
6973 echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6
6977 test -n "$AWK" && break
6980 # We need awk to create options.c and options.h.
6981 # Bail out if it's missing.
6983 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
6984 echo "$as_me: error: can't build without awk, bailing out" >&2;}
6985 { (exit 1); exit 1; }; } ;;
6988 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6989 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6990 if test "${gcc_cv_prog_LN_S+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 rm -f conftestdata_t
6994 echo >conftestdata_f
6995 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
6997 gcc_cv_prog_LN_S
="ln -s"
6999 if ln conftestdata_f conftestdata_t
2>/dev
/null
7003 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7005 gcc_cv_prog_LN_S
="cp -p"
7011 rm -f conftestdata_f conftestdata_t
7014 LN_S
="$gcc_cv_prog_LN_S"
7015 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7016 echo "$as_me:$LINENO: result: yes" >&5
7017 echo "${ECHO_T}yes" >&6
7019 if test "$gcc_cv_prog_LN_S" = "ln"; then
7020 echo "$as_me:$LINENO: result: no, using ln" >&5
7021 echo "${ECHO_T}no, using ln" >&6
7023 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7024 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7028 echo "$as_me:$LINENO: checking whether ln works" >&5
7029 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7030 if test "${acx_cv_prog_LN+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 rm -f conftestdata_t
7034 echo >conftestdata_f
7035 if ln conftestdata_f conftestdata_t
2>/dev
/null
7041 rm -f conftestdata_f conftestdata_t
7044 if test $acx_cv_prog_LN = no
; then
7046 echo "$as_me:$LINENO: result: no, using $LN" >&5
7047 echo "${ECHO_T}no, using $LN" >&6
7049 LN
="$acx_cv_prog_LN"
7050 echo "$as_me:$LINENO: result: yes" >&5
7051 echo "${ECHO_T}yes" >&6
7054 if test -n "$ac_tool_prefix"; then
7055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7056 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7057 echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7059 if test "${ac_cv_prog_RANLIB+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 if test -n "$RANLIB"; then
7063 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir
=.
7070 for ac_exec_ext
in '' $ac_executable_extensions; do
7071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 RANLIB
=$ac_cv_prog_RANLIB
7082 if test -n "$RANLIB"; then
7083 echo "$as_me:$LINENO: result: $RANLIB" >&5
7084 echo "${ECHO_T}$RANLIB" >&6
7086 echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6
7091 if test -z "$ac_cv_prog_RANLIB"; then
7092 ac_ct_RANLIB
=$RANLIB
7093 # Extract the first word of "ranlib", so it can be a program name with args.
7094 set dummy ranlib
; ac_word
=$2
7095 echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 if test -n "$ac_ct_RANLIB"; then
7101 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir
=.
7108 for ac_exec_ext
in '' $ac_executable_extensions; do
7109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7120 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7121 if test -n "$ac_ct_RANLIB"; then
7122 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7123 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7125 echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6
7129 RANLIB
=$ac_ct_RANLIB
7131 RANLIB
="$ac_cv_prog_RANLIB"
7136 # By default, the Darwin ranlib will not treat common symbols as
7137 # definitions when building the archive table of contents. Other
7138 # ranlibs do that; pass an option to the Darwin ranlib that makes
7139 # it behave similarly.
7147 # Find a good install program. We prefer a C program (faster),
7148 # so one script is as good as another. But avoid the broken or
7149 # incompatible versions:
7150 # SysV /etc/install, /usr/sbin/install
7151 # SunOS /usr/etc/install
7152 # IRIX /sbin/install
7154 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7155 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7156 # ./install, which can be erroneously created by make from ./install.sh.
7157 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7158 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7159 if test -z "$INSTALL"; then
7160 if test "${ac_cv_path_install+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7164 for ac_dir
in $PATH; do
7165 # Account for people who put trailing slashes in PATH elements.
7167 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7169 # OSF1 and SCO ODT 3.0 have their own names for install.
7170 for ac_prog
in ginstall scoinst
install; do
7171 if test -f $ac_dir/$ac_prog; then
7172 if test $ac_prog = install &&
7173 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7174 # AIX install. It has an incompatible calling convention.
7175 # OSF/1 installbsd also uses dspmsg, but is usable.
7178 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7189 if test "${ac_cv_path_install+set}" = set; then
7190 INSTALL
="$ac_cv_path_install"
7192 # As a last resort, use the slow shell script. We don't cache a
7193 # path for INSTALL within a source directory, because that will
7194 # break other packages using the cache if that directory is
7195 # removed, or if the path is relative.
7196 INSTALL
="$ac_install_sh"
7199 echo "$as_me:$LINENO: result: $INSTALL" >&5
7200 echo "${ECHO_T}$INSTALL" >&6
7202 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7203 # It thinks the first close brace ends the variable substitution.
7204 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7206 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7209 # See if cmp has --ignore-initial.
7210 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7211 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7212 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 gcc_cv_prog_cmp_skip
=slowcompare
7218 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7219 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7222 gcc_cv_prog_cmp_skip
=gnucompare
7225 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7226 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7227 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7230 gcc_cv_prog_cmp_skip
=fastcompare
7237 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7238 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7239 make_compare_target
=$gcc_cv_prog_cmp_skip
7243 # See if we have the mktemp command.
7244 # Extract the first word of "mktemp", so it can be a program name with args.
7245 set dummy mktemp
; ac_word
=$2
7246 echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7248 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 if test -n "$have_mktemp_command"; then
7252 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir
=.
7259 for ac_exec_ext
in '' $ac_executable_extensions; do
7260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261 ac_cv_prog_have_mktemp_command
="yes"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7271 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7272 if test -n "$have_mktemp_command"; then
7273 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7274 echo "${ECHO_T}$have_mktemp_command" >&6
7276 echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6
7281 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7283 # See if makeinfo has been installed and is modern enough
7284 # that we can use it.
7285 # Extract the first word of "makeinfo", so it can be a program name with args.
7286 set dummy makeinfo
; ac_word
=$2
7287 echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7289 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 if test -n "$MAKEINFO"; then
7293 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir
=.
7300 for ac_exec_ext
in '' $ac_executable_extensions; do
7301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_MAKEINFO
="makeinfo"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 MAKEINFO
=$ac_cv_prog_MAKEINFO
7312 if test -n "$MAKEINFO"; then
7313 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7314 echo "${ECHO_T}$MAKEINFO" >&6
7316 echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6
7320 if test -n "$MAKEINFO"; then
7321 # Found it, now check the version.
7322 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7323 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7324 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7328 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7329 echo "configure:7329: version of makeinfo is $ac_prog_version" >&5
7330 case $ac_prog_version in
7331 '') gcc_cv_prog_makeinfo_modern
=no
;;
7333 gcc_cv_prog_makeinfo_modern
=yes;;
7334 *) gcc_cv_prog_makeinfo_modern
=no
;;
7338 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7339 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7341 gcc_cv_prog_makeinfo_modern
=no
7344 if test $gcc_cv_prog_makeinfo_modern = no
; then
7345 MAKEINFO
="$MISSING makeinfo"
7346 { echo "$as_me:$LINENO: WARNING:
7347 *** Makeinfo is missing or too old.
7348 *** Info documentation will not be built." >&5
7349 echo "$as_me: WARNING:
7350 *** Makeinfo is missing or too old.
7351 *** Info documentation will not be built." >&2;}
7358 # Is pod2man recent enough to regenerate manpages?
7359 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7360 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7361 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7362 echo "$as_me:$LINENO: result: yes" >&5
7363 echo "${ECHO_T}yes" >&6
7364 GENERATED_MANPAGES
=generated-manpages
7366 echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6
7375 # Extract the first word of "$ac_prog", so it can be a program name with args.
7376 set dummy
$ac_prog; ac_word
=$2
7377 echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7379 if test "${ac_cv_prog_FLEX+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 if test -n "$FLEX"; then
7383 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir
=.
7390 for ac_exec_ext
in '' $ac_executable_extensions; do
7391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_FLEX
="$ac_prog"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 FLEX
=$ac_cv_prog_FLEX
7402 if test -n "$FLEX"; then
7403 echo "$as_me:$LINENO: result: $FLEX" >&5
7404 echo "${ECHO_T}$FLEX" >&6
7406 echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6
7410 test -n "$FLEX" && break
7412 test -n "$FLEX" || FLEX
="$MISSING flex"
7416 for ac_prog
in bison
7418 # Extract the first word of "$ac_prog", so it can be a program name with args.
7419 set dummy
$ac_prog; ac_word
=$2
7420 echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422 if test "${ac_cv_prog_BISON+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 if test -n "$BISON"; then
7426 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir
=.
7433 for ac_exec_ext
in '' $ac_executable_extensions; do
7434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_BISON
="$ac_prog"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 BISON
=$ac_cv_prog_BISON
7445 if test -n "$BISON"; then
7446 echo "$as_me:$LINENO: result: $BISON" >&5
7447 echo "${ECHO_T}$BISON" >&6
7449 echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7453 test -n "$BISON" && break
7455 test -n "$BISON" || BISON
="$MISSING bison"
7458 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7459 # check for build == host before using them.
7462 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7463 && test -d ..
/binutils
; then
7464 NM
='$(objdir)/../binutils/nm-new'
7466 # Extract the first word of "nm", so it can be a program name with args.
7467 set dummy nm
; ac_word
=$2
7468 echo "$as_me:$LINENO: checking for $ac_word" >&5
7469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7470 if test "${ac_cv_prog_NM+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 if test -n "$NM"; then
7474 ac_cv_prog_NM
="$NM" # Let the user override the test.
7476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir
=.
7481 for ac_exec_ext
in '' $ac_executable_extensions; do
7482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7494 if test -n "$NM"; then
7495 echo "$as_me:$LINENO: result: $NM" >&5
7496 echo "${ECHO_T}$NM" >&6
7498 echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6
7505 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7506 && test -d ..
/binutils
; then
7507 AR
='$(objdir)/../binutils/ar'
7509 # Extract the first word of "ar", so it can be a program name with args.
7510 set dummy
ar; ac_word
=$2
7511 echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7513 if test "${ac_cv_prog_AR+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 if test -n "$AR"; then
7517 ac_cv_prog_AR
="$AR" # Let the user override the test.
7519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir
=.
7524 for ac_exec_ext
in '' $ac_executable_extensions; do
7525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7537 if test -n "$AR"; then
7538 echo "$as_me:$LINENO: result: $AR" >&5
7539 echo "${ECHO_T}$AR" >&6
7541 echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6
7548 # --------------------
7549 # Checks for C headers
7550 # --------------------
7552 echo "$as_me:$LINENO: checking for GNU C library" >&5
7553 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7554 if test "${gcc_cv_glibc+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 cat >conftest.
$ac_ext <<_ACEOF
7560 cat confdefs.h
>>conftest.
$ac_ext
7561 cat >>conftest.
$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 #include <features.h>
7568 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7569 #error Not a GNU C library system
7575 rm -f conftest.
$ac_objext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7577 (eval $ac_compile) 2>conftest.er1
7579 grep -v '^ *+' conftest.er1
>conftest.err
7581 cat conftest.err
>&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; } &&
7590 { ac_try
='test -s conftest.$ac_objext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7598 echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.
$ac_ext >&5
7603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7606 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7607 echo "${ECHO_T}$gcc_cv_glibc" >&6
7608 if test $gcc_cv_glibc = yes; then
7610 cat >>confdefs.h
<<\_ACEOF
7611 #define _GNU_SOURCE 1
7616 # Need to reject headers which give warnings, so that the -Werror bootstrap
7617 # works later. *sigh* This needs to come before all header checks.
7619 ac_c_preproc_warn_flag
=yes
7621 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7622 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7623 if test "${ac_cv_header_stdc+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 cat >conftest.
$ac_ext <<_ACEOF
7629 cat confdefs.h
>>conftest.
$ac_ext
7630 cat >>conftest.
$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7645 rm -f conftest.
$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>conftest.er1
7649 grep -v '^ *+' conftest.er1
>conftest.err
7651 cat conftest.err
>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; } &&
7660 { ac_try
='test -s conftest.$ac_objext'
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; }; then
7666 ac_cv_header_stdc
=yes
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.
$ac_ext >&5
7671 ac_cv_header_stdc
=no
7673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7675 if test $ac_cv_header_stdc = yes; then
7676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7677 cat >conftest.
$ac_ext <<_ACEOF
7680 cat confdefs.h
>>conftest.
$ac_ext
7681 cat >>conftest.
$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7687 $EGREP "memchr" >/dev
/null
2>&1; then
7690 ac_cv_header_stdc
=no
7696 if test $ac_cv_header_stdc = yes; then
7697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7698 cat >conftest.
$ac_ext <<_ACEOF
7701 cat confdefs.h
>>conftest.
$ac_ext
7702 cat >>conftest.
$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7708 $EGREP "free" >/dev
/null
2>&1; then
7711 ac_cv_header_stdc
=no
7717 if test $ac_cv_header_stdc = yes; then
7718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7719 if test "$cross_compiling" = yes; then
7722 cat >conftest.
$ac_ext <<_ACEOF
7725 cat confdefs.h
>>conftest.
$ac_ext
7726 cat >>conftest.
$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7729 #if ((' ' & 0x0FF) == 0x020)
7730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7733 # define ISLOWER(c) \
7734 (('a' <= (c) && (c) <= 'i') \
7735 || ('j' <= (c) && (c) <= 'r') \
7736 || ('s' <= (c) && (c) <= 'z'))
7737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7745 for (i = 0; i < 256; i++)
7746 if (XOR (islower (i), ISLOWER (i))
7747 || toupper (i) != TOUPPER (i))
7752 rm -f conftest
$ac_exeext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7754 (eval $ac_link) 2>&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7765 echo "$as_me: program exited with status $ac_status" >&5
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.
$ac_ext >&5
7770 ac_cv_header_stdc
=no
7772 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7776 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7777 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7778 if test $ac_cv_header_stdc = yes; then
7780 cat >>confdefs.h
<<\_ACEOF
7781 #define STDC_HEADERS 1
7786 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7787 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7788 if test "${ac_cv_header_time+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 cat >conftest.
$ac_ext <<_ACEOF
7794 cat confdefs.h
>>conftest.
$ac_ext
7795 cat >>conftest.
$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 #include <sys/types.h>
7798 #include <sys/time.h>
7804 if ((struct tm *) 0)
7810 rm -f conftest.
$ac_objext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7812 (eval $ac_compile) 2>conftest.er1
7814 grep -v '^ *+' conftest.er1
>conftest.err
7816 cat conftest.err
>&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; } &&
7825 { ac_try
='test -s conftest.$ac_objext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_cv_header_time
=yes
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.
$ac_ext >&5
7836 ac_cv_header_time
=no
7838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7841 echo "${ECHO_T}$ac_cv_header_time" >&6
7842 if test $ac_cv_header_time = yes; then
7844 cat >>confdefs.h
<<\_ACEOF
7845 #define TIME_WITH_SYS_TIME 1
7850 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7851 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7852 if test "${gcc_cv_header_string+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 cat >conftest.
$ac_ext <<_ACEOF
7858 cat confdefs.h
>>conftest.
$ac_ext
7859 cat >>conftest.
$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7862 #include <strings.h>
7871 rm -f conftest.
$ac_objext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873 (eval $ac_compile) 2>conftest.er1
7875 grep -v '^ *+' conftest.er1
>conftest.err
7877 cat conftest.err
>&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try
='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 gcc_cv_header_string
=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.
$ac_ext >&5
7897 gcc_cv_header_string
=no
7899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7901 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7902 echo "${ECHO_T}$gcc_cv_header_string" >&6
7903 if test $gcc_cv_header_string = yes; then
7905 cat >>confdefs.h
<<\_ACEOF
7906 #define STRING_WITH_STRINGS 1
7911 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7912 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7913 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 cat >conftest.
$ac_ext <<_ACEOF
7919 cat confdefs.h
>>conftest.
$ac_ext
7920 cat >>conftest.
$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #include <sys/types.h>
7923 #include <sys/wait.h>
7925 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7928 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7936 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7941 rm -f conftest.
$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943 (eval $ac_compile) 2>conftest.er1
7945 grep -v '^ *+' conftest.er1
>conftest.err
7947 cat conftest.err
>&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; } &&
7956 { ac_try
='test -s conftest.$ac_objext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_header_sys_wait_h
=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.
$ac_ext >&5
7967 ac_cv_header_sys_wait_h
=no
7969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7971 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7972 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7973 if test $ac_cv_header_sys_wait_h = yes; then
7975 cat >>confdefs.h
<<\_ACEOF
7976 #define HAVE_SYS_WAIT_H 1
8003 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8004 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8005 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8006 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8008 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8009 echo "$as_me:$LINENO: checking for $ac_header" >&5
8010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 cat >conftest.
$ac_ext <<_ACEOF
8017 cat confdefs.h
>>conftest.
$ac_ext
8018 cat >>conftest.
$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <$ac_header>
8022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8023 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8025 grep -v '^ *+' conftest.er1
>conftest.err
8027 cat conftest.err
>&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } >/dev
/null
; then
8030 if test -s conftest.err
; then
8031 ac_cpp_err
=$ac_c_preproc_warn_flag
8032 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8039 if test -z "$ac_cpp_err"; then
8040 eval "$as_ac_Header=yes"
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.
$ac_ext >&5
8045 eval "$as_ac_Header=no"
8047 rm -f conftest.err conftest.
$ac_ext
8049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8052 cat >>confdefs.h
<<_ACEOF
8053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8060 # Check for thread headers.
8061 echo "$as_me:$LINENO: checking for thread.h" >&5
8062 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8063 if test "${ac_cv_header_thread_h+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 cat >conftest.
$ac_ext <<_ACEOF
8069 cat confdefs.h
>>conftest.
$ac_ext
8070 cat >>conftest.
$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8075 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8077 grep -v '^ *+' conftest.er1
>conftest.err
8079 cat conftest.err
>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } >/dev
/null
; then
8082 if test -s conftest.err
; then
8083 ac_cpp_err
=$ac_c_preproc_warn_flag
8084 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8091 if test -z "$ac_cpp_err"; then
8092 ac_cv_header_thread_h
=yes
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.
$ac_ext >&5
8097 ac_cv_header_thread_h
=no
8099 rm -f conftest.err conftest.
$ac_ext
8101 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8102 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8103 if test $ac_cv_header_thread_h = yes; then
8109 echo "$as_me:$LINENO: checking for pthread.h" >&5
8110 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8111 if test "${ac_cv_header_pthread_h+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 cat >conftest.
$ac_ext <<_ACEOF
8117 cat confdefs.h
>>conftest.
$ac_ext
8118 cat >>conftest.
$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 #include <pthread.h>
8122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8125 grep -v '^ *+' conftest.er1
>conftest.err
8127 cat conftest.err
>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } >/dev
/null
; then
8130 if test -s conftest.err
; then
8131 ac_cpp_err
=$ac_c_preproc_warn_flag
8132 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8139 if test -z "$ac_cpp_err"; then
8140 ac_cv_header_pthread_h
=yes
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.
$ac_ext >&5
8145 ac_cv_header_pthread_h
=no
8147 rm -f conftest.err conftest.
$ac_ext
8149 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8150 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8151 if test $ac_cv_header_pthread_h = yes; then
8158 # These tests can't be done till we know if we have limits.h.
8159 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8160 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8161 if test "${gcc_cv_decl_char_bit+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 cat >conftest.
$ac_ext <<_ACEOF
8167 cat confdefs.h
>>conftest.
$ac_ext
8168 cat >>conftest.
$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 #ifdef HAVE_LIMITS_H
8177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178 $EGREP "found" >/dev
/null
2>&1; then
8179 gcc_cv_decl_char_bit
=yes
8181 gcc_cv_decl_char_bit
=no
8187 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8188 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8189 if test $gcc_cv_decl_char_bit = no
; then
8190 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8191 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8192 if test "${gcc_cv_c_nbby+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 while test $i -lt 65; do
8198 cat >conftest.
$ac_ext <<_ACEOF
8201 cat confdefs.h
>>conftest.
$ac_ext
8202 cat >>conftest.
$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8209 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8210 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8216 rm -f conftest.
$ac_objext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218 (eval $ac_compile) 2>conftest.er1
8220 grep -v '^ *+' conftest.er1
>conftest.err
8222 cat conftest.err
>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try
='test -s conftest.$ac_objext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 gcc_cv_c_nbby
=$i; break
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.
$ac_ext >&5
8243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8246 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8249 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8250 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8251 if test $gcc_cv_c_nbby = failed
; then
8252 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8253 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8254 { (exit 1); exit 1; }; }
8257 cat >>confdefs.h
<<_ACEOF
8258 #define CHAR_BIT $gcc_cv_c_nbby
8263 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8264 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8265 if test "${ac_cv_c_bigendian+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 ac_cv_c_bigendian
=unknown
8269 # See if sys/param.h defines the BYTE_ORDER macro.
8270 cat >conftest.
$ac_ext <<_ACEOF
8273 cat confdefs.h
>>conftest.
$ac_ext
8274 cat >>conftest.
$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 #include <sys/types.h>
8277 #include <sys/param.h>
8282 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8289 rm -f conftest.
$ac_objext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8291 (eval $ac_compile) 2>conftest.er1
8293 grep -v '^ *+' conftest.er1
>conftest.err
8295 cat conftest.err
>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try
='test -s conftest.$ac_objext'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 # It does; now see whether it defined to BIG_ENDIAN or not.
8311 cat >conftest.
$ac_ext <<_ACEOF
8314 cat confdefs.h
>>conftest.
$ac_ext
8315 cat >>conftest.
$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 #include <sys/types.h>
8318 #include <sys/param.h>
8323 #if BYTE_ORDER != BIG_ENDIAN
8330 rm -f conftest.
$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332 (eval $ac_compile) 2>conftest.er1
8334 grep -v '^ *+' conftest.er1
>conftest.err
8336 cat conftest.err
>&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try
='test -s conftest.$ac_objext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_cv_c_bigendian
=yes
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.
$ac_ext >&5
8356 ac_cv_c_bigendian
=no
8358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.
$ac_ext >&5
8364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8365 if test $ac_cv_c_bigendian = unknown
; then
8366 if test "$cross_compiling" = yes; then
8367 echo $ac_n "cross-compiling... " 2>&6
8369 cat >conftest.
$ac_ext <<_ACEOF
8372 cat confdefs.h
>>conftest.
$ac_ext
8373 cat >>conftest.
$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8376 /* Are we little or big endian? From Harbison&Steele. */
8380 char c[sizeof (long)];
8383 exit (u.c[sizeof (long) - 1] == 1);
8386 rm -f conftest
$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_cv_c_bigendian
=no
8399 echo "$as_me: program exited with status $ac_status" >&5
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.
$ac_ext >&5
8404 ac_cv_c_bigendian
=yes
8406 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8410 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8411 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8412 if test $ac_cv_c_bigendian = unknown
; then
8413 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8414 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8416 cat >conftest.c
<<EOF
8417 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8418 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8419 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8420 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8421 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8422 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8423 int main() { _ascii (); _ebcdic (); return 0; }
8425 if test -f conftest.c
; then
8426 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
8427 if test `grep -l BIGenDianSyS conftest.o` ; then
8428 echo $ac_n ' big endian probe OK, ' 1>&6
8429 ac_cv_c_bigendian
=yes
8431 if test `grep -l LiTTleEnDian conftest.o` ; then
8432 echo $ac_n ' little endian probe OK, ' 1>&6
8433 if test $ac_cv_c_bigendian = yes ; then
8434 ac_cv_c_bigendian
=unknown
;
8436 ac_cv_c_bigendian
=no
8439 echo $ac_n 'guessing bigendian ... ' >&6
8442 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8443 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8445 if test $ac_cv_c_bigendian = yes; then
8447 cat >>confdefs.h
<<\_ACEOF
8448 #define WORDS_BIGENDIAN 1
8452 cat >>confdefs.h
<<\_ACEOF
8453 #define HOST_WORDS_BIG_ENDIAN 1
8461 cat >>confdefs.h
<<_ACEOF
8462 #define BYTEORDER $BYTEORDER
8465 if test $ac_cv_c_bigendian = unknown
; then
8466 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8467 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8468 { (exit 1); exit 1; }; }
8476 # Stage specific cflags for build.
8480 if test x
$GCC = xyes
8482 stage1_cflags
="-Wa,-J"
8488 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8489 # sources; use -no-cpp-precomp to get to GNU cpp.
8490 # Apple's GCC has bugs in designated initializer handling, so disable
8492 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8497 # These libraries may be used by collect2.
8498 # We may need a special search path to get them linked.
8499 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8500 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8501 if test "${gcc_cv_collect2_libs+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 for libs
in '' -lld -lmld \
8506 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8507 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8510 cat >conftest.
$ac_ext <<_ACEOF
8513 cat confdefs.h
>>conftest.
$ac_ext
8514 cat >>conftest.
$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8517 /* Override any gcc2 internal prototype to avoid an error. */
8521 /* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */
8532 rm -f conftest.
$ac_objext conftest
$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>conftest.er1
8536 grep -v '^ *+' conftest.er1
>conftest.err
8538 cat conftest.err
>&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; } &&
8547 { ac_try
='test -s conftest$ac_exeext'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 gcc_cv_collect2_libs
="$libs"; break
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.
$ac_ext >&5
8559 rm -f conftest.err conftest.
$ac_objext \
8560 conftest
$ac_exeext conftest.
$ac_ext
8563 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8565 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8566 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8567 case $gcc_cv_collect2_libs in
8569 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8573 # When building Ada code on Alpha, we need exc_resume which is usually in
8574 # -lexc. So test for it.
8577 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8578 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8579 if test "${ac_cv_search_exc_resume+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 ac_func_search_save_LIBS
=$LIBS
8583 ac_cv_search_exc_resume
=no
8584 cat >conftest.
$ac_ext <<_ACEOF
8587 cat confdefs.h
>>conftest.
$ac_ext
8588 cat >>conftest.
$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8591 /* Override any gcc2 internal prototype to avoid an error. */
8595 /* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8606 rm -f conftest.
$ac_objext conftest
$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>conftest.er1
8610 grep -v '^ *+' conftest.er1
>conftest.err
8612 cat conftest.err
>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try
='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_search_exc_resume
="none required"
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.
$ac_ext >&5
8633 rm -f conftest.err conftest.
$ac_objext \
8634 conftest
$ac_exeext conftest.
$ac_ext
8635 if test "$ac_cv_search_exc_resume" = no
; then
8636 for ac_lib
in exc
; do
8637 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8638 cat >conftest.
$ac_ext <<_ACEOF
8641 cat confdefs.h
>>conftest.
$ac_ext
8642 cat >>conftest.
$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8645 /* Override any gcc2 internal prototype to avoid an error. */
8649 /* We use char because int might match the return type of a gcc2
8650 builtin and then its argument prototype would still apply. */
8660 rm -f conftest.
$ac_objext conftest
$ac_exeext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8662 (eval $ac_link) 2>conftest.er1
8664 grep -v '^ *+' conftest.er1
>conftest.err
8666 cat conftest.err
>&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try
='test -s conftest$ac_exeext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_cv_search_exc_resume
="-l$ac_lib"
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.
$ac_ext >&5
8688 rm -f conftest.err conftest.
$ac_objext \
8689 conftest
$ac_exeext conftest.
$ac_ext
8692 LIBS
=$ac_func_search_save_LIBS
8694 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8695 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8696 if test "$ac_cv_search_exc_resume" != no
; then
8697 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8705 # Some systems put ldexp and frexp in libm instead of libc; assume
8706 # they're both in the same place. jcf-dump needs them.
8709 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8710 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8711 if test "${ac_cv_search_ldexp+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 ac_func_search_save_LIBS
=$LIBS
8715 ac_cv_search_ldexp
=no
8716 cat >conftest.
$ac_ext <<_ACEOF
8719 cat confdefs.h
>>conftest.
$ac_ext
8720 cat >>conftest.
$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8723 /* Override any gcc2 internal prototype to avoid an error. */
8727 /* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8738 rm -f conftest.
$ac_objext conftest
$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740 (eval $ac_link) 2>conftest.er1
8742 grep -v '^ *+' conftest.er1
>conftest.err
8744 cat conftest.err
>&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; } &&
8753 { ac_try
='test -s conftest$ac_exeext'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
8759 ac_cv_search_ldexp
="none required"
8761 echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.
$ac_ext >&5
8765 rm -f conftest.err conftest.
$ac_objext \
8766 conftest
$ac_exeext conftest.
$ac_ext
8767 if test "$ac_cv_search_ldexp" = no
; then
8769 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8770 cat >conftest.
$ac_ext <<_ACEOF
8773 cat confdefs.h
>>conftest.
$ac_ext
8774 cat >>conftest.
$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8777 /* Override any gcc2 internal prototype to avoid an error. */
8781 /* We use char because int might match the return type of a gcc2
8782 builtin and then its argument prototype would still apply. */
8792 rm -f conftest.
$ac_objext conftest
$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>conftest.er1
8796 grep -v '^ *+' conftest.er1
>conftest.err
8798 cat conftest.err
>&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try
='test -s conftest$ac_exeext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_cv_search_ldexp
="-l$ac_lib"
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.
$ac_ext >&5
8820 rm -f conftest.err conftest.
$ac_objext \
8821 conftest
$ac_exeext conftest.
$ac_ext
8824 LIBS
=$ac_func_search_save_LIBS
8826 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8827 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8828 if test "$ac_cv_search_ldexp" != no
; then
8829 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8837 # Use <inttypes.h> only if it exists,
8838 # doesn't clash with <sys/types.h>, and declares intmax_t.
8839 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8840 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8841 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 cat >conftest.
$ac_ext <<_ACEOF
8847 cat confdefs.h
>>conftest.
$ac_ext
8848 cat >>conftest.
$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 #include <sys/types.h>
8851 #include <inttypes.h>
8860 rm -f conftest.
$ac_objext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8862 (eval $ac_compile) 2>conftest.er1
8864 grep -v '^ *+' conftest.er1
>conftest.err
8866 cat conftest.err
>&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try
='test -s conftest.$ac_objext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 gcc_cv_header_inttypes_h
=yes
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.
$ac_ext >&5
8886 gcc_cv_header_inttypes_h
=no
8888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8891 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8892 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8893 if test $gcc_cv_header_inttypes_h = yes; then
8895 cat >>confdefs.h
<<\_ACEOF
8896 #define HAVE_INTTYPES_H 1
8927 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
8928 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8929 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8930 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8933 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8934 echo "$as_me:$LINENO: checking for $ac_func" >&5
8935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8936 if eval "test \"\${$as_ac_var+set}\" = set"; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 cat >conftest.
$ac_ext <<_ACEOF
8942 cat confdefs.h
>>conftest.
$ac_ext
8943 cat >>conftest.
$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8947 #define $ac_func innocuous_$ac_func
8949 /* System header to define __stub macros and hopefully few prototypes,
8950 which can conflict with char $ac_func (); below.
8951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8952 <limits.h> exists even on freestanding compilers. */
8955 # include <limits.h>
8957 # include <assert.h>
8962 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8970 /* The GNU C library defines this for functions which it implements
8971 to always fail with ENOSYS. Some functions are actually named
8972 something starting with __ and the normal name is an alias. */
8973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8976 char (*f) () = $ac_func;
8985 return f != $ac_func;
8990 rm -f conftest.
$ac_objext conftest
$ac_exeext
8991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8992 (eval $ac_link) 2>conftest.er1
8994 grep -v '^ *+' conftest.er1
>conftest.err
8996 cat conftest.err
>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; } &&
9005 { ac_try
='test -s conftest$ac_exeext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 eval "$as_ac_var=yes"
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.
$ac_ext >&5
9016 eval "$as_ac_var=no"
9018 rm -f conftest.err conftest.
$ac_objext \
9019 conftest
$ac_exeext conftest.
$ac_ext
9021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9023 if test `eval echo '${'$as_ac_var'}'` = yes; then
9024 cat >>confdefs.h
<<_ACEOF
9025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9032 if test x
$ac_cv_func_mbstowcs = xyes
; then
9033 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9034 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9035 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 if test "$cross_compiling" = yes; then
9039 gcc_cv_func_mbstowcs_works
=yes
9041 cat >conftest.
$ac_ext <<_ACEOF
9044 cat confdefs.h
>>conftest.
$ac_ext
9045 cat >>conftest.
$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9054 rm -f conftest
$ac_exeext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 gcc_cv_func_mbstowcs_works
=yes
9067 echo "$as_me: program exited with status $ac_status" >&5
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.
$ac_ext >&5
9072 gcc_cv_func_mbstowcs_works
=no
9074 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9077 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9078 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9079 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9081 cat >>confdefs.h
<<\_ACEOF
9082 #define HAVE_WORKING_MBSTOWCS 1
9088 echo "$as_me:$LINENO: checking for ssize_t" >&5
9089 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9090 if test "${ac_cv_type_ssize_t+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 cat >conftest.
$ac_ext <<_ACEOF
9096 cat confdefs.h
>>conftest.
$ac_ext
9097 cat >>conftest.
$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9105 if (sizeof (ssize_t))
9111 rm -f conftest.
$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113 (eval $ac_compile) 2>conftest.er1
9115 grep -v '^ *+' conftest.er1
>conftest.err
9117 cat conftest.err
>&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try
='test -s conftest.$ac_objext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_cv_type_ssize_t
=yes
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.
$ac_ext >&5
9137 ac_cv_type_ssize_t
=no
9139 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9142 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9143 if test $ac_cv_type_ssize_t = yes; then
9147 cat >>confdefs.h
<<_ACEOF
9154 # Try to determine the array type of the second argument of getgroups
9155 # for the target system (int or gid_t).
9156 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9157 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9158 if test "${ac_cv_type_uid_t+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 cat >conftest.
$ac_ext <<_ACEOF
9164 cat confdefs.h
>>conftest.
$ac_ext
9165 cat >>conftest.
$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9171 $EGREP "uid_t" >/dev
/null
2>&1; then
9172 ac_cv_type_uid_t
=yes
9179 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9180 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9181 if test $ac_cv_type_uid_t = no
; then
9183 cat >>confdefs.h
<<\_ACEOF
9188 cat >>confdefs.h
<<\_ACEOF
9194 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9195 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9196 if test "${ac_cv_type_getgroups+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 if test "$cross_compiling" = yes; then
9200 ac_cv_type_getgroups
=cross
9202 cat >conftest.
$ac_ext <<_ACEOF
9205 cat confdefs.h
>>conftest.
$ac_ext
9206 cat >>conftest.
$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 /* Thanks to Mike Rendell for this test. */
9209 #include <sys/types.h>
9212 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9219 union { gid_t gval; long lval; } val;
9222 for (i = 0; i < NGID; i++)
9223 gidset[i] = val.gval;
9224 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9226 /* Exit non-zero if getgroups seems to require an array of ints. This
9227 happens when gid_t is short but getgroups modifies an array of ints. */
9228 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9231 rm -f conftest
$ac_exeext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 ac_cv_type_getgroups
=gid_t
9244 echo "$as_me: program exited with status $ac_status" >&5
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.
$ac_ext >&5
9249 ac_cv_type_getgroups
=int
9251 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9253 if test $ac_cv_type_getgroups = cross
; then
9254 cat >conftest.
$ac_ext <<_ACEOF
9257 cat confdefs.h
>>conftest.
$ac_ext
9258 cat >>conftest.
$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9264 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9265 ac_cv_type_getgroups
=gid_t
9267 ac_cv_type_getgroups
=int
9273 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9274 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9276 cat >>confdefs.h
<<_ACEOF
9277 #define GETGROUPS_T $ac_cv_type_getgroups
9281 if test "${target}" = "${build}"; then
9282 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9285 # This condition may need some tweaking. It should include all
9286 # targets where the array type of the second argument of getgroups
9287 # is int and the type of gid_t is not equivalent to int.
9288 *-*-sunos* |
*-*-ultrix*)
9289 TARGET_GETGROUPS_T
=int
9292 TARGET_GETGROUPS_T
=gid_t
9298 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9299 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9300 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 if test "$cross_compiling" = yes; then
9304 gcc_cv_func_printf_ptr
=no
9306 cat >conftest.
$ac_ext <<_ACEOF
9309 cat confdefs.h
>>conftest.
$ac_ext
9310 cat >>conftest.
$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9317 char *p = buf, *q = NULL;
9318 sprintf(buf, "%p", p);
9319 sscanf(buf, "%p", &q);
9323 rm -f conftest
$ac_exeext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9325 (eval $ac_link) 2>&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 gcc_cv_func_printf_ptr
=yes
9336 echo "$as_me: program exited with status $ac_status" >&5
9337 echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.
$ac_ext >&5
9341 gcc_cv_func_printf_ptr
=no
9343 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9345 rm -f core core.
* *.core
9347 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9348 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9349 if test $gcc_cv_func_printf_ptr = yes ; then
9351 cat >>confdefs.h
<<\_ACEOF
9352 #define HAVE_PRINTF_PTR 1
9358 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9359 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9360 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 cat >conftest.
$ac_ext <<_ACEOF
9366 cat confdefs.h
>>conftest.
$ac_ext
9367 cat >>conftest.
$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 #include <sys/mman.h>
9371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9374 grep -v '^ *+' conftest.er1
>conftest.err
9376 cat conftest.err
>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } >/dev
/null
; then
9379 if test -s conftest.err
; then
9380 ac_cpp_err
=$ac_c_preproc_warn_flag
9381 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9388 if test -z "$ac_cpp_err"; then
9389 ac_cv_header_sys_mman_h
=yes
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.
$ac_ext >&5
9394 ac_cv_header_sys_mman_h
=no
9396 rm -f conftest.err conftest.
$ac_ext
9398 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9399 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9400 if test $ac_cv_header_sys_mman_h = yes; then
9401 gcc_header_sys_mman_h
=yes
9403 gcc_header_sys_mman_h
=no
9406 echo "$as_me:$LINENO: checking for mmap" >&5
9407 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9408 if test "${ac_cv_func_mmap+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 cat >conftest.
$ac_ext <<_ACEOF
9414 cat confdefs.h
>>conftest.
$ac_ext
9415 cat >>conftest.
$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9419 #define mmap innocuous_mmap
9421 /* System header to define __stub macros and hopefully few prototypes,
9422 which can conflict with char mmap (); below.
9423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9424 <limits.h> exists even on freestanding compilers. */
9427 # include <limits.h>
9429 # include <assert.h>
9434 /* Override any gcc2 internal prototype to avoid an error. */
9439 /* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9442 /* The GNU C library defines this for functions which it implements
9443 to always fail with ENOSYS. Some functions are actually named
9444 something starting with __ and the normal name is an alias. */
9445 #if defined (__stub_mmap) || defined (__stub___mmap)
9448 char (*f) () = mmap;
9462 rm -f conftest.
$ac_objext conftest
$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>conftest.er1
9466 grep -v '^ *+' conftest.er1
>conftest.err
9468 cat conftest.err
>&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try
='test -s conftest$ac_exeext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.
$ac_ext >&5
9490 rm -f conftest.err conftest.
$ac_objext \
9491 conftest
$ac_exeext conftest.
$ac_ext
9493 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9494 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9495 if test $ac_cv_func_mmap = yes; then
9501 if test "$gcc_header_sys_mman_h" != yes \
9502 ||
test "$gcc_func_mmap" != yes; then
9503 gcc_cv_func_mmap_file
=no
9504 gcc_cv_func_mmap_dev_zero
=no
9505 gcc_cv_func_mmap_anon
=no
9507 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9508 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9509 if test "${gcc_cv_func_mmap_file+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 # Add a system to this blacklist if
9513 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9514 # memory area containing the same data that you'd get if you applied
9515 # read() to the same fd. The only system known to have a problem here
9516 # is VMS, where text files have record structure.
9519 gcc_cv_func_mmap_file
=no
;;
9521 gcc_cv_func_mmap_file
=yes;;
9524 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9525 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9526 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9527 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9528 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 # Add a system to this blacklist if it has mmap() but /dev/zero
9532 # does not exist, or if mmapping /dev/zero does not give anonymous
9533 # zeroed pages with both the following properties:
9534 # 1. If you map N consecutive pages in with one call, and then
9535 # unmap any subset of those pages, the pages that were not
9536 # explicitly unmapped remain accessible.
9537 # 2. If you map two adjacent blocks of memory and then unmap them
9538 # both at once, they must both go away.
9539 # Systems known to be in this category are Windows (all variants),
9542 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9543 gcc_cv_func_mmap_dev_zero
=no
;;
9545 gcc_cv_func_mmap_dev_zero
=yes;;
9548 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9549 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9551 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9552 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9553 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9554 if test "${gcc_cv_decl_map_anon+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 cat >conftest.
$ac_ext <<_ACEOF
9560 cat confdefs.h
>>conftest.
$ac_ext
9561 cat >>conftest.
$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 #include <sys/types.h>
9564 #include <sys/mman.h>
9567 #ifndef MAP_ANONYMOUS
9568 #define MAP_ANONYMOUS MAP_ANON
9574 int n = MAP_ANONYMOUS;
9579 rm -f conftest.
$ac_objext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9581 (eval $ac_compile) 2>conftest.er1
9583 grep -v '^ *+' conftest.er1
>conftest.err
9585 cat conftest.err
>&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; } &&
9594 { ac_try
='test -s conftest.$ac_objext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 gcc_cv_decl_map_anon
=yes
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.
$ac_ext >&5
9605 gcc_cv_decl_map_anon
=no
9607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9609 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9610 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9612 if test $gcc_cv_decl_map_anon = no
; then
9613 gcc_cv_func_mmap_anon
=no
9615 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9616 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9617 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9621 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9622 # doesn't give anonymous zeroed pages with the same properties listed
9623 # above for use of /dev/zero.
9624 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9626 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9627 gcc_cv_func_mmap_anon
=no
;;
9629 gcc_cv_func_mmap_anon
=yes;;
9632 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9633 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9637 if test $gcc_cv_func_mmap_file = yes; then
9639 cat >>confdefs.h
<<\_ACEOF
9640 #define HAVE_MMAP_FILE 1
9644 if test $gcc_cv_func_mmap_dev_zero = yes; then
9646 cat >>confdefs.h
<<\_ACEOF
9647 #define HAVE_MMAP_DEV_ZERO 1
9651 if test $gcc_cv_func_mmap_anon = yes; then
9653 cat >>confdefs.h
<<\_ACEOF
9654 #define HAVE_MMAP_ANON 1
9662 # Under VMS, vfork works very differently than on Unix. The standard test
9663 # won't work, and it isn't easily adaptable. It makes more sense to
9665 ac_cv_func_vfork_works
=yes
9668 echo "$as_me:$LINENO: checking for pid_t" >&5
9669 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9670 if test "${ac_cv_type_pid_t+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 cat >conftest.
$ac_ext <<_ACEOF
9676 cat confdefs.h
>>conftest.
$ac_ext
9677 cat >>conftest.
$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 $ac_includes_default
9691 rm -f conftest.
$ac_objext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9693 (eval $ac_compile) 2>conftest.er1
9695 grep -v '^ *+' conftest.er1
>conftest.err
9697 cat conftest.err
>&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try
='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_cv_type_pid_t
=yes
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.
$ac_ext >&5
9719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9721 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9722 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9723 if test $ac_cv_type_pid_t = yes; then
9727 cat >>confdefs.h
<<_ACEOF
9735 for ac_header
in unistd.h vfork.h
9737 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9738 echo "$as_me:$LINENO: checking for $ac_header" >&5
9739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 cat >conftest.
$ac_ext <<_ACEOF
9746 cat confdefs.h
>>conftest.
$ac_ext
9747 cat >>conftest.
$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749 #include <$ac_header>
9751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9752 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9754 grep -v '^ *+' conftest.er1
>conftest.err
9756 cat conftest.err
>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } >/dev
/null
; then
9759 if test -s conftest.err
; then
9760 ac_cpp_err
=$ac_c_preproc_warn_flag
9761 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9768 if test -z "$ac_cpp_err"; then
9769 eval "$as_ac_Header=yes"
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.
$ac_ext >&5
9774 eval "$as_ac_Header=no"
9776 rm -f conftest.err conftest.
$ac_ext
9778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9781 cat >>confdefs.h
<<_ACEOF
9782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9790 for ac_func
in fork vfork
9792 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9793 echo "$as_me:$LINENO: checking for $ac_func" >&5
9794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9795 if eval "test \"\${$as_ac_var+set}\" = set"; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 cat >conftest.
$ac_ext <<_ACEOF
9801 cat confdefs.h
>>conftest.
$ac_ext
9802 cat >>conftest.
$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9806 #define $ac_func innocuous_$ac_func
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char $ac_func (); below.
9810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811 <limits.h> exists even on freestanding compilers. */
9814 # include <limits.h>
9816 # include <assert.h>
9821 /* Override any gcc2 internal prototype to avoid an error. */
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9829 /* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
9832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9835 char (*f) () = $ac_func;
9844 return f != $ac_func;
9849 rm -f conftest.
$ac_objext conftest
$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>conftest.er1
9853 grep -v '^ *+' conftest.er1
>conftest.err
9855 cat conftest.err
>&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try
='test -s conftest$ac_exeext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 eval "$as_ac_var=yes"
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.
$ac_ext >&5
9875 eval "$as_ac_var=no"
9877 rm -f conftest.err conftest.
$ac_objext \
9878 conftest
$ac_exeext conftest.
$ac_ext
9880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9882 if test `eval echo '${'$as_ac_var'}'` = yes; then
9883 cat >>confdefs.h
<<_ACEOF
9884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9890 if test "x$ac_cv_func_fork" = xyes
; then
9891 echo "$as_me:$LINENO: checking for working fork" >&5
9892 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9893 if test "${ac_cv_func_fork_works+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 if test "$cross_compiling" = yes; then
9897 ac_cv_func_fork_works
=cross
9899 cat >conftest.
$ac_ext <<_ACEOF
9900 /* By Ruediger Kuhlmann. */
9901 #include <sys/types.h>
9903 # include <unistd.h>
9905 /* Some systems only have a dummy stub for fork() */
9913 rm -f conftest
$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_cv_func_fork_works
=yes
9926 echo "$as_me: program exited with status $ac_status" >&5
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.
$ac_ext >&5
9931 ac_cv_func_fork_works
=no
9933 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9936 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9937 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9940 ac_cv_func_fork_works
=$ac_cv_func_fork
9942 if test "x$ac_cv_func_fork_works" = xcross
; then
9944 *-*-amigaos* |
*-*-msdosdjgpp*)
9945 # Override, as these systems have only a dummy fork() stub
9946 ac_cv_func_fork_works
=no
9949 ac_cv_func_fork_works
=yes
9952 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9953 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9955 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9956 if test "x$ac_cv_func_vfork" = xyes
; then
9957 echo "$as_me:$LINENO: checking for working vfork" >&5
9958 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9959 if test "${ac_cv_func_vfork_works+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 if test "$cross_compiling" = yes; then
9963 ac_cv_func_vfork_works
=cross
9965 cat >conftest.
$ac_ext <<_ACEOF
9968 cat confdefs.h
>>conftest.
$ac_ext
9969 cat >>conftest.
$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 /* Thanks to Paul Eggert for this test. */
9974 #include <sys/types.h>
9975 #include <sys/stat.h>
9976 #include <sys/wait.h>
9978 # include <unistd.h>
9983 /* On some sparc systems, changes by the child to local and incoming
9984 argument registers are propagated back to the parent. The compiler
9985 is told about this with #include <vfork.h>, but some compilers
9986 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9987 static variable whose address is put into a register that is
9988 clobbered by the vfork. */
9991 sparc_address_test (int arg)
9993 sparc_address_test (arg) int arg;
10014 pid_t parent = getpid ();
10017 sparc_address_test (0);
10022 /* Here is another test for sparc vfork register problems. This
10023 test uses lots of local variables, at least as many local
10024 variables as main has allocated so far including compiler
10025 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10026 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10027 reuse the register of parent for one of the local variables,
10028 since it will think that parent can't possibly be used any more
10029 in this routine. Assigning to the local variable will thus
10030 munge parent in the parent process. */
10032 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10033 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10034 /* Convince the compiler that p..p7 are live; otherwise, it might
10035 use the same hardware register for all 8 local variables. */
10036 if (p != p1 || p != p2 || p != p3 || p != p4
10037 || p != p5 || p != p6 || p != p7)
10040 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10041 from child file descriptors. If the child closes a descriptor
10042 before it execs or exits, this munges the parent's descriptor
10043 as well. Test for this by closing stdout in the child. */
10044 _exit(close(fileno(stdout)) != 0);
10049 while (wait(&status) != child)
10052 /* Was there some problem with vforking? */
10055 /* Did the child fail? (This shouldn't happen.) */
10058 /* Did the vfork/compiler bug occur? */
10059 || parent != getpid()
10061 /* Did the file descriptor bug occur? */
10062 || fstat(fileno(stdout), &st) != 0
10067 rm -f conftest
$ac_exeext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10069 (eval $ac_link) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_cv_func_vfork_works
=yes
10080 echo "$as_me: program exited with status $ac_status" >&5
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.
$ac_ext >&5
10084 ( exit $ac_status )
10085 ac_cv_func_vfork_works
=no
10087 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10090 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10091 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10094 if test "x$ac_cv_func_fork_works" = xcross
; then
10095 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10096 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10097 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10100 if test "x$ac_cv_func_vfork_works" = xyes
; then
10102 cat >>confdefs.h
<<\_ACEOF
10103 #define HAVE_WORKING_VFORK 1
10108 cat >>confdefs.h
<<\_ACEOF
10113 if test "x$ac_cv_func_fork_works" = xyes
; then
10115 cat >>confdefs.h
<<\_ACEOF
10116 #define HAVE_WORKING_FORK 1
10123 if test "X$prefix" = "XNONE"; then
10124 acl_final_prefix
="$ac_default_prefix"
10126 acl_final_prefix
="$prefix"
10128 if test "X$exec_prefix" = "XNONE"; then
10129 acl_final_exec_prefix
='${prefix}'
10131 acl_final_exec_prefix
="$exec_prefix"
10133 acl_save_prefix
="$prefix"
10134 prefix
="$acl_final_prefix"
10135 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10136 prefix
="$acl_save_prefix"
10139 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10140 if test "${with_gnu_ld+set}" = set; then
10141 withval
="$with_gnu_ld"
10142 test "$withval" = no || with_gnu_ld
=yes
10146 # Prepare PATH_SEPARATOR.
10147 # The user is always right.
10148 if test "${PATH_SEPARATOR+set}" != set; then
10149 echo "#! /bin/sh" >conf$$.sh
10150 echo "exit 0" >>conf$$.sh
10152 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10160 if test "$GCC" = yes; then
10161 # Check if gcc -print-prog-name=ld gives a path.
10162 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10163 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10166 # gcc leaves a trailing carriage return which upsets mingw
10167 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10169 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10172 # Accept absolute paths.
10173 [\\/]* |
[A-Za-z
]:[\\/]*)
10174 re_direlt
='/[^/][^/]*/\.\./'
10175 # Canonicalize the path of ld
10176 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10177 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10178 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10180 test -z "$LD" && LD
="$ac_prog"
10183 # If it fails, then pretend we aren't using GCC.
10187 # If it is relative, then search for the first ld in PATH.
10188 with_gnu_ld
=unknown
10191 elif test "$with_gnu_ld" = yes; then
10192 echo "$as_me:$LINENO: checking for GNU ld" >&5
10193 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10195 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10196 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10198 if test "${acl_cv_path_LD+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 if test -z "$LD"; then
10202 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10203 for ac_dir
in $PATH; do
10204 test -z "$ac_dir" && ac_dir
=.
10205 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10206 acl_cv_path_LD
="$ac_dir/$ac_prog"
10207 # Check to see if the program is GNU ld. I'd rather use --version,
10208 # but apparently some GNU ld's only accept -v.
10209 # Break only if it was the GNU/non-GNU ld that we prefer.
10210 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10211 test "$with_gnu_ld" != no
&& break
10213 test "$with_gnu_ld" != yes && break
10219 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10223 LD
="$acl_cv_path_LD"
10224 if test -n "$LD"; then
10225 echo "$as_me:$LINENO: result: $LD" >&5
10226 echo "${ECHO_T}$LD" >&6
10228 echo "$as_me:$LINENO: result: no" >&5
10229 echo "${ECHO_T}no" >&6
10231 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10232 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10233 { (exit 1); exit 1; }; }
10234 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10235 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10236 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10240 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10241 acl_cv_prog_gnu_ld
=yes
10243 acl_cv_prog_gnu_ld
=no
10246 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10247 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10248 with_gnu_ld
=$acl_cv_prog_gnu_ld
10252 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10253 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10254 if test "${acl_cv_rpath+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10259 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10261 rm -f .
/conftest.sh
10265 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10266 echo "${ECHO_T}$acl_cv_rpath" >&6
10268 libext
="$acl_cv_libext"
10269 shlibext
="$acl_cv_shlibext"
10270 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10271 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10272 hardcode_direct
="$acl_cv_hardcode_direct"
10273 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10274 # Check whether --enable-rpath or --disable-rpath was given.
10275 if test "${enable_rpath+set}" = set; then
10276 enableval
="$enable_rpath"
10290 acl_save_prefix
="$prefix"
10291 prefix
="$acl_final_prefix"
10292 acl_save_exec_prefix
="$exec_prefix"
10293 exec_prefix
="$acl_final_exec_prefix"
10295 eval additional_includedir
=\"$includedir\"
10296 eval additional_libdir
=\"$libdir\"
10298 exec_prefix
="$acl_save_exec_prefix"
10299 prefix
="$acl_save_prefix"
10302 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10303 if test "${with_libiconv_prefix+set}" = set; then
10304 withval
="$with_libiconv_prefix"
10306 if test "X$withval" = "Xno"; then
10309 if test "X$withval" = "X"; then
10311 acl_save_prefix
="$prefix"
10312 prefix
="$acl_final_prefix"
10313 acl_save_exec_prefix
="$exec_prefix"
10314 exec_prefix
="$acl_final_exec_prefix"
10316 eval additional_includedir
=\"$includedir\"
10317 eval additional_libdir
=\"$libdir\"
10319 exec_prefix
="$acl_save_exec_prefix"
10320 prefix
="$acl_save_prefix"
10323 additional_includedir
="$withval/include"
10324 additional_libdir
="$withval/lib"
10334 names_already_handled
=
10335 names_next_round
='iconv '
10336 while test -n "$names_next_round"; do
10337 names_this_round
="$names_next_round"
10339 for name
in $names_this_round; do
10341 for n
in $names_already_handled; do
10342 if test "$n" = "$name"; then
10343 already_handled
=yes
10347 if test -z "$already_handled"; then
10348 names_already_handled
="$names_already_handled $name"
10349 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10350 eval value
=\"\
$HAVE_LIB$uppername\"
10351 if test -n "$value"; then
10352 if test "$value" = yes; then
10353 eval value
=\"\
$LIB$uppername\"
10354 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10355 eval value
=\"\
$LTLIB$uppername\"
10356 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10365 if test $use_additional = yes; then
10366 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10367 found_dir
="$additional_libdir"
10368 found_so
="$additional_libdir/lib$name.$shlibext"
10369 if test -f "$additional_libdir/lib$name.la"; then
10370 found_la
="$additional_libdir/lib$name.la"
10373 if test -f "$additional_libdir/lib$name.$libext"; then
10374 found_dir
="$additional_libdir"
10375 found_a
="$additional_libdir/lib$name.$libext"
10376 if test -f "$additional_libdir/lib$name.la"; then
10377 found_la
="$additional_libdir/lib$name.la"
10382 if test "X$found_dir" = "X"; then
10383 for x
in $LDFLAGS $LTLIBICONV; do
10385 acl_save_prefix
="$prefix"
10386 prefix
="$acl_final_prefix"
10387 acl_save_exec_prefix
="$exec_prefix"
10388 exec_prefix
="$acl_final_exec_prefix"
10390 exec_prefix
="$acl_save_exec_prefix"
10391 prefix
="$acl_save_prefix"
10395 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10396 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10398 found_so
="$dir/lib$name.$shlibext"
10399 if test -f "$dir/lib$name.la"; then
10400 found_la
="$dir/lib$name.la"
10403 if test -f "$dir/lib$name.$libext"; then
10405 found_a
="$dir/lib$name.$libext"
10406 if test -f "$dir/lib$name.la"; then
10407 found_la
="$dir/lib$name.la"
10413 if test "X$found_dir" != "X"; then
10418 if test "X$found_dir" != "X"; then
10419 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10420 if test "X$found_so" != "X"; then
10421 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10422 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10425 for x
in $ltrpathdirs; do
10426 if test "X$x" = "X$found_dir"; then
10431 if test -z "$haveit"; then
10432 ltrpathdirs
="$ltrpathdirs $found_dir"
10434 if test "$hardcode_direct" = yes; then
10435 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10437 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10438 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10440 for x
in $rpathdirs; do
10441 if test "X$x" = "X$found_dir"; then
10446 if test -z "$haveit"; then
10447 rpathdirs
="$rpathdirs $found_dir"
10451 for x
in $LDFLAGS $LIBICONV; do
10453 acl_save_prefix
="$prefix"
10454 prefix
="$acl_final_prefix"
10455 acl_save_exec_prefix
="$exec_prefix"
10456 exec_prefix
="$acl_final_exec_prefix"
10458 exec_prefix
="$acl_save_exec_prefix"
10459 prefix
="$acl_save_prefix"
10461 if test "X$x" = "X-L$found_dir"; then
10466 if test -z "$haveit"; then
10467 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10469 if test "$hardcode_minus_L" != no
; then
10470 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10472 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10478 if test "X$found_a" != "X"; then
10479 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10481 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10484 additional_includedir
=
10485 case "$found_dir" in
10487 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10488 additional_includedir
="$basedir/include"
10491 if test "X$additional_includedir" != "X"; then
10492 if test "X$additional_includedir" != "X/usr/include"; then
10494 if test "X$additional_includedir" = "X/usr/local/include"; then
10495 if test -n "$GCC"; then
10497 linux
*) haveit
=yes;;
10501 if test -z "$haveit"; then
10502 for x
in $CPPFLAGS $INCICONV; do
10504 acl_save_prefix
="$prefix"
10505 prefix
="$acl_final_prefix"
10506 acl_save_exec_prefix
="$exec_prefix"
10507 exec_prefix
="$acl_final_exec_prefix"
10509 exec_prefix
="$acl_save_exec_prefix"
10510 prefix
="$acl_save_prefix"
10512 if test "X$x" = "X-I$additional_includedir"; then
10517 if test -z "$haveit"; then
10518 if test -d "$additional_includedir"; then
10519 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10525 if test -n "$found_la"; then
10526 save_libdir
="$libdir"
10527 case "$found_la" in
10528 */* |
*\\*) .
"$found_la" ;;
10529 *) .
"./$found_la" ;;
10531 libdir
="$save_libdir"
10532 for dep
in $dependency_libs; do
10535 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10536 if test "X$additional_libdir" != "X/usr/lib"; then
10538 if test "X$additional_libdir" = "X/usr/local/lib"; then
10539 if test -n "$GCC"; then
10541 linux
*) haveit
=yes;;
10545 if test -z "$haveit"; then
10547 for x
in $LDFLAGS $LIBICONV; do
10549 acl_save_prefix
="$prefix"
10550 prefix
="$acl_final_prefix"
10551 acl_save_exec_prefix
="$exec_prefix"
10552 exec_prefix
="$acl_final_exec_prefix"
10554 exec_prefix
="$acl_save_exec_prefix"
10555 prefix
="$acl_save_prefix"
10557 if test "X$x" = "X-L$additional_libdir"; then
10562 if test -z "$haveit"; then
10563 if test -d "$additional_libdir"; then
10564 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10568 for x
in $LDFLAGS $LTLIBICONV; do
10570 acl_save_prefix
="$prefix"
10571 prefix
="$acl_final_prefix"
10572 acl_save_exec_prefix
="$exec_prefix"
10573 exec_prefix
="$acl_final_exec_prefix"
10575 exec_prefix
="$acl_save_exec_prefix"
10576 prefix
="$acl_save_prefix"
10578 if test "X$x" = "X-L$additional_libdir"; then
10583 if test -z "$haveit"; then
10584 if test -d "$additional_libdir"; then
10585 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10592 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10593 if test "$enable_rpath" != no
; then
10595 for x
in $rpathdirs; do
10596 if test "X$x" = "X$dir"; then
10601 if test -z "$haveit"; then
10602 rpathdirs
="$rpathdirs $dir"
10605 for x
in $ltrpathdirs; do
10606 if test "X$x" = "X$dir"; then
10611 if test -z "$haveit"; then
10612 ltrpathdirs
="$ltrpathdirs $dir"
10617 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10620 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10623 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10624 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10630 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10631 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10637 if test "X$rpathdirs" != "X"; then
10638 if test -n "$hardcode_libdir_separator"; then
10640 for found_dir
in $rpathdirs; do
10641 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10643 acl_save_libdir
="$libdir"
10645 eval flag
=\"$hardcode_libdir_flag_spec\"
10646 libdir
="$acl_save_libdir"
10647 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10649 for found_dir
in $rpathdirs; do
10650 acl_save_libdir
="$libdir"
10651 libdir
="$found_dir"
10652 eval flag
=\"$hardcode_libdir_flag_spec\"
10653 libdir
="$acl_save_libdir"
10654 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10658 if test "X$ltrpathdirs" != "X"; then
10659 for found_dir
in $ltrpathdirs; do
10660 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10670 am_save_CPPFLAGS
="$CPPFLAGS"
10672 for element
in $INCICONV; do
10674 for x
in $CPPFLAGS; do
10676 acl_save_prefix
="$prefix"
10677 prefix
="$acl_final_prefix"
10678 acl_save_exec_prefix
="$exec_prefix"
10679 exec_prefix
="$acl_final_exec_prefix"
10681 exec_prefix
="$acl_save_exec_prefix"
10682 prefix
="$acl_save_prefix"
10684 if test "X$x" = "X$element"; then
10689 if test -z "$haveit"; then
10690 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10695 echo "$as_me:$LINENO: checking for iconv" >&5
10696 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10697 if test "${am_cv_func_iconv+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 am_cv_func_iconv
="no, consider installing GNU libiconv"
10703 cat >conftest.
$ac_ext <<_ACEOF
10706 cat confdefs.h
>>conftest.
$ac_ext
10707 cat >>conftest.
$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 #include <stdlib.h>
10714 iconv_t cd = iconv_open("","");
10715 iconv(cd,NULL,NULL,NULL,NULL);
10721 rm -f conftest.
$ac_objext conftest
$ac_exeext
10722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10723 (eval $ac_link) 2>conftest.er1
10725 grep -v '^ *+' conftest.er1
>conftest.err
10727 cat conftest.err
>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try
='test -s conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 am_cv_func_iconv
=yes
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.
$ac_ext >&5
10748 rm -f conftest.err conftest.
$ac_objext \
10749 conftest
$ac_exeext conftest.
$ac_ext
10750 if test "$am_cv_func_iconv" != yes; then
10751 am_save_LIBS
="$LIBS"
10752 LIBS
="$LIBS $LIBICONV"
10753 cat >conftest.
$ac_ext <<_ACEOF
10756 cat confdefs.h
>>conftest.
$ac_ext
10757 cat >>conftest.
$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 #include <stdlib.h>
10764 iconv_t cd = iconv_open("","");
10765 iconv(cd,NULL,NULL,NULL,NULL);
10771 rm -f conftest.
$ac_objext conftest
$ac_exeext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10773 (eval $ac_link) 2>conftest.er1
10775 grep -v '^ *+' conftest.er1
>conftest.err
10777 cat conftest.err
>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try
='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 am_cv_lib_iconv
=yes
10793 am_cv_func_iconv
=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.
$ac_ext >&5
10799 rm -f conftest.err conftest.
$ac_objext \
10800 conftest
$ac_exeext conftest.
$ac_ext
10801 LIBS
="$am_save_LIBS"
10805 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10806 echo "${ECHO_T}$am_cv_func_iconv" >&6
10807 if test "$am_cv_func_iconv" = yes; then
10809 cat >>confdefs.h
<<\_ACEOF
10810 #define HAVE_ICONV 1
10814 if test "$am_cv_lib_iconv" = yes; then
10815 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10816 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10817 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10818 echo "${ECHO_T}$LIBICONV" >&6
10820 CPPFLAGS
="$am_save_CPPFLAGS"
10827 if test "$am_cv_func_iconv" = yes; then
10828 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10829 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10830 if test "${am_cv_proto_iconv+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 cat >conftest.
$ac_ext <<_ACEOF
10837 cat confdefs.h
>>conftest.
$ac_ext
10838 cat >>conftest.
$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10841 #include <stdlib.h>
10847 #if defined(__STDC__) || defined(__cplusplus)
10848 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10861 rm -f conftest.
$ac_objext
10862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10863 (eval $ac_compile) 2>conftest.er1
10865 grep -v '^ *+' conftest.er1
>conftest.err
10867 cat conftest.err
>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try
='test -s conftest.$ac_objext'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 am_cv_proto_iconv_arg1
=""
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.
$ac_ext >&5
10887 am_cv_proto_iconv_arg1
="const"
10889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10890 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);"
10893 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10894 echo "$as_me:$LINENO: result: ${ac_t:-
10895 }$am_cv_proto_iconv" >&5
10896 echo "${ECHO_T}${ac_t:-
10897 }$am_cv_proto_iconv" >&6
10899 cat >>confdefs.h
<<_ACEOF
10900 #define ICONV_CONST $am_cv_proto_iconv_arg1
10905 # Until we have in-tree GNU iconv:
10910 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10911 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10912 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 cat >conftest.
$ac_ext <<_ACEOF
10918 cat confdefs.h
>>conftest.
$ac_ext
10919 cat >>conftest.
$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <locale.h>
10930 rm -f conftest.
$ac_objext conftest
$ac_exeext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10932 (eval $ac_link) 2>conftest.er1
10934 grep -v '^ *+' conftest.er1
>conftest.err
10936 cat conftest.err
>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; } &&
10945 { ac_try
='test -s conftest$ac_exeext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 am_cv_val_LC_MESSAGES
=yes
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.
$ac_ext >&5
10956 am_cv_val_LC_MESSAGES
=no
10958 rm -f conftest.err conftest.
$ac_objext \
10959 conftest
$ac_exeext conftest.
$ac_ext
10961 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10962 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10963 if test $am_cv_val_LC_MESSAGES = yes; then
10965 cat >>confdefs.h
<<\_ACEOF
10966 #define HAVE_LC_MESSAGES 1
10973 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10974 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10975 if test "${am_cv_langinfo_codeset+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 cat >conftest.
$ac_ext <<_ACEOF
10981 cat confdefs.h
>>conftest.
$ac_ext
10982 cat >>conftest.
$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <langinfo.h>
10988 char* cs = nl_langinfo(CODESET);
10993 rm -f conftest.
$ac_objext conftest
$ac_exeext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10995 (eval $ac_link) 2>conftest.er1
10997 grep -v '^ *+' conftest.er1
>conftest.err
10999 cat conftest.err
>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } &&
11002 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try
='test -s conftest$ac_exeext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 am_cv_langinfo_codeset
=yes
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.
$ac_ext >&5
11019 am_cv_langinfo_codeset
=no
11021 rm -f conftest.err conftest.
$ac_objext \
11022 conftest
$ac_exeext conftest.
$ac_ext
11025 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11026 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11027 if test $am_cv_langinfo_codeset = yes; then
11029 cat >>confdefs.h
<<\_ACEOF
11030 #define HAVE_LANGINFO_CODESET 1
11036 # We will need to find libiberty.h and ansidecl.h
11037 saved_CFLAGS
="$CFLAGS"
11038 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11063 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
11064 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11065 fprintf_unlocked strstr errno snprintf vasprintf \
11066 malloc realloc calloc free
basename getopt
clock getpagesize
11068 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11069 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11070 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11071 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 cat >conftest.
$ac_ext <<_ACEOF
11077 cat confdefs.h
>>conftest.
$ac_ext
11078 cat >>conftest.
$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11081 #define $ac_tr_decl 1
11083 #include "ansidecl.h"
11084 #include "system.h"
11090 char *(*pfn) = (char *(*)) $ac_func ;
11096 rm -f conftest.
$ac_objext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098 (eval $ac_compile) 2>conftest.er1
11100 grep -v '^ *+' conftest.er1
>conftest.err
11102 cat conftest.err
>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; } &&
11111 { ac_try
='test -s conftest.$ac_objext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 eval "gcc_cv_have_decl_$ac_func=yes"
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.
$ac_ext >&5
11122 eval "gcc_cv_have_decl_$ac_func=no"
11124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11127 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11128 echo "$as_me:$LINENO: result: yes" >&5
11129 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11130 #define $ac_tr_decl 1
11134 echo "$as_me:$LINENO: result: no" >&5
11135 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11136 #define $ac_tr_decl 0
11147 for ac_func
in getrlimit setrlimit getrusage
11149 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11150 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11151 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11152 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 cat >conftest.
$ac_ext <<_ACEOF
11158 cat confdefs.h
>>conftest.
$ac_ext
11159 cat >>conftest.
$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11162 #define $ac_tr_decl 1
11164 #include "ansidecl.h"
11165 #include "system.h"
11166 #ifdef HAVE_SYS_RESOURCE_H
11167 #include <sys/resource.h>
11175 char *(*pfn) = (char *(*)) $ac_func ;
11181 rm -f conftest.
$ac_objext
11182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11183 (eval $ac_compile) 2>conftest.er1
11185 grep -v '^ *+' conftest.er1
>conftest.err
11187 cat conftest.err
>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try
='test -s conftest.$ac_objext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 eval "gcc_cv_have_decl_$ac_func=yes"
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.
$ac_ext >&5
11207 eval "gcc_cv_have_decl_$ac_func=no"
11209 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11212 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11213 echo "$as_me:$LINENO: result: yes" >&5
11214 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11215 #define $ac_tr_decl 1
11219 echo "$as_me:$LINENO: result: no" >&5
11220 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11221 #define $ac_tr_decl 0
11229 cat >conftest.
$ac_ext <<_ACEOF
11232 cat confdefs.h
>>conftest.
$ac_ext
11233 cat >>conftest.
$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11236 #include "ansidecl.h"
11237 #include "system.h"
11238 #ifdef HAVE_SYS_RESOURCE_H
11239 #include <sys/resource.h>
11250 rm -f conftest.
$ac_objext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11252 (eval $ac_compile) 2>conftest.er1
11254 grep -v '^ *+' conftest.er1
>conftest.err
11256 cat conftest.err
>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } &&
11259 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11265 { ac_try
='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.
$ac_ext >&5
11277 cat >>confdefs.h
<<\_ACEOF
11278 #define rlim_t long
11282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11284 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11285 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11286 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11287 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11289 for ac_func
in ldgetname
11291 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11292 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11293 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11294 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 cat >conftest.
$ac_ext <<_ACEOF
11300 cat confdefs.h
>>conftest.
$ac_ext
11301 cat >>conftest.
$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11304 #define $ac_tr_decl 1
11306 #include "ansidecl.h"
11307 #include "system.h"
11308 #ifdef HAVE_LDFCN_H
11319 char *(*pfn) = (char *(*)) $ac_func ;
11325 rm -f conftest.
$ac_objext
11326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11327 (eval $ac_compile) 2>conftest.er1
11329 grep -v '^ *+' conftest.er1
>conftest.err
11331 cat conftest.err
>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
11334 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try
='test -s conftest.$ac_objext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 eval "gcc_cv_have_decl_$ac_func=yes"
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.
$ac_ext >&5
11351 eval "gcc_cv_have_decl_$ac_func=no"
11353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11356 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11357 echo "$as_me:$LINENO: result: yes" >&5
11358 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11359 #define $ac_tr_decl 1
11363 echo "$as_me:$LINENO: result: no" >&5
11364 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11365 #define $ac_tr_decl 0
11374 for ac_func
in times
11376 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11377 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11378 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11379 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 cat >conftest.
$ac_ext <<_ACEOF
11385 cat confdefs.h
>>conftest.
$ac_ext
11386 cat >>conftest.
$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11389 #define $ac_tr_decl 1
11391 #include "ansidecl.h"
11392 #include "system.h"
11393 #ifdef HAVE_SYS_TIMES_H
11394 #include <sys/times.h>
11402 char *(*pfn) = (char *(*)) $ac_func ;
11408 rm -f conftest.
$ac_objext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11410 (eval $ac_compile) 2>conftest.er1
11412 grep -v '^ *+' conftest.er1
>conftest.err
11414 cat conftest.err
>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; } &&
11423 { ac_try
='test -s conftest.$ac_objext'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 eval "gcc_cv_have_decl_$ac_func=yes"
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.
$ac_ext >&5
11434 eval "gcc_cv_have_decl_$ac_func=no"
11436 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11439 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11440 echo "$as_me:$LINENO: result: yes" >&5
11441 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11442 #define $ac_tr_decl 1
11446 echo "$as_me:$LINENO: result: no" >&5
11447 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11448 #define $ac_tr_decl 0
11456 # More time-related stuff.
11457 echo "$as_me:$LINENO: checking for struct tms" >&5
11458 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11459 if test "${ac_cv_struct_tms+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 cat >conftest.
$ac_ext <<_ACEOF
11466 cat confdefs.h
>>conftest.
$ac_ext
11467 cat >>conftest.
$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11470 #include "ansidecl.h"
11471 #include "system.h"
11472 #ifdef HAVE_SYS_TIMES_H
11473 #include <sys/times.h>
11484 rm -f conftest.
$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486 (eval $ac_compile) 2>conftest.er1
11488 grep -v '^ *+' conftest.er1
>conftest.err
11490 cat conftest.err
>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try
='test -s conftest.$ac_objext'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_cv_struct_tms
=yes
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.
$ac_ext >&5
11510 ac_cv_struct_tms
=no
11512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11514 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11515 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11516 if test $ac_cv_struct_tms = yes; then
11518 cat >>confdefs.h
<<\_ACEOF
11519 #define HAVE_STRUCT_TMS 1
11524 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11525 # revisit after autoconf 2.50.
11526 echo "$as_me:$LINENO: checking for clock_t" >&5
11527 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11528 if test "${gcc_cv_type_clock_t+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 cat >conftest.
$ac_ext <<_ACEOF
11535 cat confdefs.h
>>conftest.
$ac_ext
11536 cat >>conftest.
$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11539 #include "ansidecl.h"
11540 #include "system.h"
11550 rm -f conftest.
$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>conftest.er1
11554 grep -v '^ *+' conftest.er1
>conftest.err
11556 cat conftest.err
>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try
='test -s conftest.$ac_objext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 gcc_cv_type_clock_t
=yes
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.
$ac_ext >&5
11576 gcc_cv_type_clock_t
=no
11578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11580 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11581 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11582 if test $gcc_cv_type_clock_t = yes; then
11584 cat >>confdefs.h
<<\_ACEOF
11585 #define HAVE_CLOCK_T 1
11590 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11591 CFLAGS
="$saved_CFLAGS"
11593 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11594 if test "${enable_initfini_array+set}" = set; then
11595 enableval
="$enable_initfini_array"
11599 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11600 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11601 if test "${gcc_cv_initfini_array+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 if test "$cross_compiling" = yes; then
11605 gcc_cv_initfini_array
=no
11607 cat >conftest.
$ac_ext <<_ACEOF
11610 cat confdefs.h
>>conftest.
$ac_ext
11611 cat >>conftest.
$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11615 int main (void) { return x; }
11616 int foo (void) { x = 0; }
11617 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11619 rm -f conftest
$ac_exeext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11621 (eval $ac_link) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 gcc_cv_initfini_array
=yes
11632 echo "$as_me: program exited with status $ac_status" >&5
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.
$ac_ext >&5
11636 ( exit $ac_status )
11637 gcc_cv_initfini_array
=no
11639 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11642 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11643 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11644 enable_initfini_array
=$gcc_cv_initfini_array
11647 if test $enable_initfini_array = yes; then
11649 cat >>confdefs.h
<<\_ACEOF
11650 #define HAVE_INITFINI_ARRAY 1
11655 # mkdir takes a single argument on some systems.
11656 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11657 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11658 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 cat >conftest.
$ac_ext <<_ACEOF
11664 cat confdefs.h
>>conftest.
$ac_ext
11665 cat >>conftest.
$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11668 #include <sys/types.h>
11669 #ifdef HAVE_SYS_STAT_H
11670 # include <sys/stat.h>
11672 #ifdef HAVE_UNISTD_H
11673 # include <unistd.h>
11675 #ifdef HAVE_DIRECT_H
11676 # include <direct.h>
11686 rm -f conftest.
$ac_objext
11687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688 (eval $ac_compile) 2>conftest.er1
11690 grep -v '^ *+' conftest.er1
>conftest.err
11692 cat conftest.err
>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try
='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 gcc_cv_mkdir_takes_one_arg
=no
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.
$ac_ext >&5
11712 gcc_cv_mkdir_takes_one_arg
=yes
11714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11716 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11717 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11718 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11720 cat >>confdefs.h
<<\_ACEOF
11721 #define MKDIR_TAKES_ONE_ARG 1
11733 # With Setjmp/Longjmp based exception handling.
11734 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11735 if test "${enable_sjlj_exceptions+set}" = set; then
11736 enableval
="$enable_sjlj_exceptions"
11737 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11739 cat >>confdefs.h
<<_ACEOF
11740 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11745 # For platforms with the unwind ABI which includes an unwind library,
11746 # libunwind, we can choose to use the system libunwind.
11748 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11749 if test "${with_system_libunwind+set}" = set; then
11750 withval
="$with_system_libunwind"
11754 # --------------------------------------------------------
11755 # Build, host, and target specific configuration fragments
11756 # --------------------------------------------------------
11758 # Collect build-machine-specific information.
11759 .
${srcdir}/config.build
11761 # Collect host-machine-specific information.
11762 .
${srcdir}/config.
host
11766 # Collect target-machine-specific information.
11767 .
${srcdir}/config.gcc
11769 extra_objs
="${host_extra_objs} ${extra_objs}"
11770 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11772 # Default the target-machine variables that were not explicitly set.
11773 if test x
"$tm_file" = x
11774 then tm_file
=$cpu_type/$cpu_type.h
; fi
11776 if test x
"$extra_headers" = x
11777 then extra_headers
=; fi
11779 if test x
$md_file = x
11780 then md_file
=$cpu_type/$cpu_type.md
; fi
11782 if test x
$out_file = x
11783 then out_file
=$cpu_type/$cpu_type.c
; fi
11785 if test x
"$tmake_file" = x
11786 then tmake_file
=$cpu_type/t-
$cpu_type
11789 if test x
"$dwarf2" = xyes
11790 then tm_file
="$tm_file tm-dwarf2.h"
11793 # Say what files are being used for the output code and MD file.
11794 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11795 echo "Using \`$srcdir/config/$md_file' as machine description file."
11797 # If any of the xm_file variables contain nonexistent files, warn
11798 # about them and drop them.
11801 for x
in $build_xm_file; do
11802 if test -f $srcdir/config
/$x
11804 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11805 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11808 build_xm_file
="$bx"
11811 for x
in $host_xm_file; do
11812 if test -f $srcdir/config
/$x
11814 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11815 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11821 for x
in $xm_file; do
11822 if test -f $srcdir/config
/$x
11824 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11825 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11831 for f
in $tm_file; do
11834 if test $count = ax
; then
11835 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11837 echo "Using the following target machine macro files:"
11838 for f
in $tm_file; do
11839 echo " $srcdir/config/$f"
11843 if test x
$need_64bit_hwint = xyes
; then
11845 cat >>confdefs.h
<<\_ACEOF
11846 #define NEED_64BIT_HOST_WIDE_INT 1
11851 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11853 cat >>confdefs.h
<<\_ACEOF
11854 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11860 for f
in $host_xm_file; do
11863 if test $count = a
; then
11865 elif test $count = ax
; then
11866 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11868 echo "Using the following host machine macro files:"
11869 for f
in $host_xm_file; do
11870 echo " $srcdir/config/$f"
11873 echo "Using ${out_host_hook_obj} for host machine hooks."
11875 if test "$host_xm_file" != "$build_xm_file"; then
11877 for f
in $build_xm_file; do
11880 if test $count = a
; then
11882 elif test $count = ax
; then
11883 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11885 echo "Using the following build machine macro files:"
11886 for f
in $build_xm_file; do
11887 echo " $srcdir/config/$f"
11896 # Check if a valid thread package
11897 case ${enable_threads} in
11900 target_thread_file
='single'
11904 target_thread_file
='single'
11906 aix | dce | gnat | irix | posix | posix95 | rtems | \
11907 single | solaris | vxworks | win32
)
11908 target_thread_file
=${enable_threads}
11911 echo "${enable_threads} is an unknown thread package" 1>&2
11916 if test x
${thread_file} = x
; then
11917 # No thread file set by target-specific clauses in config.gcc,
11918 # so use file chosen by default logic above
11919 thread_file
=${target_thread_file}
11922 # Make gthr-default.h if we have a thread file.
11924 if test $thread_file != single
; then
11925 rm -f gthr-default.h
11926 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11927 gthread_flags
=-DHAVE_GTHR_DEFAULT
11936 if test x
$enable___cxa_atexit = xyes || \
11937 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11938 if test x
$host = x
$target; then
11939 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11940 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11941 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 cat >conftest.
$ac_ext <<_ACEOF
11947 cat confdefs.h
>>conftest.
$ac_ext
11948 cat >>conftest.
$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11952 #define __cxa_atexit innocuous___cxa_atexit
11954 /* System header to define __stub macros and hopefully few prototypes,
11955 which can conflict with char __cxa_atexit (); below.
11956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11957 <limits.h> exists even on freestanding compilers. */
11960 # include <limits.h>
11962 # include <assert.h>
11965 #undef __cxa_atexit
11967 /* Override any gcc2 internal prototype to avoid an error. */
11972 /* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11974 char __cxa_atexit ();
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11981 char (*f) () = __cxa_atexit;
11990 return f != __cxa_atexit;
11995 rm -f conftest.
$ac_objext conftest
$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>conftest.er1
11999 grep -v '^ *+' conftest.er1
>conftest.err
12001 cat conftest.err
>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try
='test -s conftest$ac_exeext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_func___cxa_atexit
=yes
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.
$ac_ext >&5
12021 ac_cv_func___cxa_atexit
=no
12023 rm -f conftest.err conftest.
$ac_objext \
12024 conftest
$ac_exeext conftest.
$ac_ext
12026 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12027 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12028 if test $ac_cv_func___cxa_atexit = yes; then
12031 echo "__cxa_atexit can't be enabled on this target"
12035 # We can't check for __cxa_atexit when building a cross, so assume
12039 if test x
$use_cxa_atexit = xyes
; then
12041 cat >>confdefs.h
<<\_ACEOF
12042 #define DEFAULT_USE_CXA_ATEXIT 1
12048 # Look for a file containing extra machine modes.
12049 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12050 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12053 cat >>confdefs.h
<<_ACEOF
12054 #define EXTRA_MODES_FILE "config/$extra_modes"
12059 # auto-host.h is the file containing items generated by autoconf and is
12060 # the first file included by config.h.
12061 # If host=build, it is correct to have bconfig include auto-host.h
12062 # as well. If host!=build, we are in error and need to do more
12063 # work to find out the build config parameters.
12064 if test x
$host = x
$build
12066 build_auto
=auto-host.h
12068 # We create a subdir, then run autoconf in the subdir.
12069 # To prevent recursion we set host and build for the new
12070 # invocation of configure to the build for this invocation
12077 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12078 *) realsrcdir
=..
/${srcdir};;
12080 saved_CFLAGS
="${CFLAGS}"
12081 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12082 ${realsrcdir}/configure \
12083 --enable-languages=${enable_languages-all} \
12084 --target=$target_alias --host=$build_alias --build=$build_alias
12085 CFLAGS
="${saved_CFLAGS}"
12087 # We just finished tests for the build machine, so rename
12088 # the file auto-build.h in the gcc directory.
12089 mv auto-host.h ..
/auto-build.h
12092 build_auto
=auto-build.h
12096 tm_file
="${tm_file} defaults.h"
12097 tm_p_file
="${tm_p_file} tm-preds.h"
12098 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12099 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12100 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12101 # put this back in temporarily.
12102 xm_file
="ansidecl.h ${xm_file}"
12108 # Compile in configure arguments.
12109 if test -f configargs.h
; then
12110 # Being re-configured.
12111 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12112 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12114 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12117 # Double all backslashes and backslash all quotes to turn
12118 # gcc_config_arguments into a C string.
12119 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12120 $gcc_config_arguments
12122 gcc_config_arguments_str
=`cat conftest.out`
12125 cat > configargs.h
<<EOF
12126 /* Generated automatically. */
12127 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12128 static const char thread_model[] = "$thread_file";
12130 static const struct {
12131 const char *name, *value;
12132 } configure_default_options[] = $configure_default_options;
12135 # Internationalization
12137 VERSION
="$gcc_version"
12139 cat >>confdefs.h
<<_ACEOF
12140 #define PACKAGE "$PACKAGE"
12146 # If we haven't got the data from the intl directory,
12147 # assume NLS is disabled.
12155 if test -f ..
/intl
/config.intl
; then
12156 . ..
/intl
/config.intl
12158 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12159 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12160 if test x
"$USE_NLS" != xyes
; then
12161 echo "$as_me:$LINENO: result: no" >&5
12162 echo "${ECHO_T}no" >&6
12164 echo "$as_me:$LINENO: result: yes" >&5
12165 echo "${ECHO_T}yes" >&6
12167 cat >>confdefs.h
<<\_ACEOF
12168 #define ENABLE_NLS 1
12172 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12173 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12174 # Look for .po and .gmo files in the source directory.
12177 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12178 # If there aren't any .gmo files the shell will give us the
12179 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12181 case "$cat" in *\
**)
12184 # The quadruple backslash is collapsed to a double backslash
12185 # by the backticks, then collapsed again by the double quotes,
12186 # leaving us with one backslash in the sed expression (right
12187 # before the dot that mustn't act as a wildcard).
12188 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12189 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12190 # The user is allowed to set LINGUAS to a list of languages to
12191 # install catalogs for. If it's empty that means "all of them."
12192 if test "x$LINGUAS" = x
; then
12193 CATALOGS
="$CATALOGS $cat"
12194 XLINGUAS
="$XLINGUAS $lang"
12196 case "$LINGUAS" in *$lang*)
12197 CATALOGS
="$CATALOGS $cat"
12198 XLINGUAS
="$XLINGUAS $lang"
12203 LINGUAS
="$XLINGUAS"
12204 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12205 echo "${ECHO_T}$LINGUAS" >&6
12208 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12209 # -liconv on the link line twice.
12210 case "$LIBINTL" in *$LIBICONV*)
12214 # Windows32 Registry support for specifying GCC installation paths.
12215 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12216 if test "${enable_win32_registry+set}" = set; then
12217 enableval
="$enable_win32_registry"
12221 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12222 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12223 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12224 if test "x$enable_win32_registry" != xno
; then
12226 cat >>confdefs.h
<<\_ACEOF
12227 #define ENABLE_WIN32_REGISTRY 1
12230 echo "$as_me:$LINENO: result: yes" >&5
12231 echo "${ECHO_T}yes" >&6
12232 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12233 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12234 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 ac_func_search_save_LIBS
=$LIBS
12238 ac_cv_search_RegOpenKeyExA
=no
12239 cat >conftest.
$ac_ext <<_ACEOF
12242 cat confdefs.h
>>conftest.
$ac_ext
12243 cat >>conftest.
$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 /* Override any gcc2 internal prototype to avoid an error. */
12250 /* We use char because int might match the return type of a gcc2
12251 builtin and then its argument prototype would still apply. */
12252 char RegOpenKeyExA ();
12261 rm -f conftest.
$ac_objext conftest
$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>conftest.er1
12265 grep -v '^ *+' conftest.er1
>conftest.err
12267 cat conftest.err
>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try
='test -s conftest$ac_exeext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_cv_search_RegOpenKeyExA
="none required"
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.
$ac_ext >&5
12288 rm -f conftest.err conftest.
$ac_objext \
12289 conftest
$ac_exeext conftest.
$ac_ext
12290 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12291 for ac_lib
in advapi32
; do
12292 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12293 cat >conftest.
$ac_ext <<_ACEOF
12296 cat confdefs.h
>>conftest.
$ac_ext
12297 cat >>conftest.
$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12300 /* Override any gcc2 internal prototype to avoid an error. */
12304 /* We use char because int might match the return type of a gcc2
12305 builtin and then its argument prototype would still apply. */
12306 char RegOpenKeyExA ();
12315 rm -f conftest.
$ac_objext conftest
$ac_exeext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12317 (eval $ac_link) 2>conftest.er1
12319 grep -v '^ *+' conftest.er1
>conftest.err
12321 cat conftest.err
>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try
='test -s conftest$ac_exeext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.
$ac_ext >&5
12343 rm -f conftest.err conftest.
$ac_objext \
12344 conftest
$ac_exeext conftest.
$ac_ext
12347 LIBS
=$ac_func_search_save_LIBS
12349 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12350 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12351 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12352 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12357 echo "$as_me:$LINENO: result: no" >&5
12358 echo "${ECHO_T}no" >&6
12361 # Check if user specified a different registry key.
12362 case "x${enable_win32_registry}" in
12365 gcc_cv_win32_registry_key
="$VERSION"
12368 # no registry lookup.
12369 gcc_cv_win32_registry_key
=''
12372 # user-specified key.
12373 gcc_cv_win32_registry_key
="$enable_win32_registry"
12377 if test "x$enable_win32_registry" != xno
; then
12378 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12379 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12381 cat >>confdefs.h
<<_ACEOF
12382 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12385 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12386 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12391 # Get an absolute path to the GCC top-level source directory
12392 holddir
=`${PWDCMD-pwd}`
12394 topdir
=`${PWDCMD-pwd}`
12397 # Conditionalize the makefile for this host machine.
12399 for f
in ${host_xmake_file}
12401 if test -f ${srcdir}/config
/$f
12403 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12407 # Conditionalize the makefile for this target machine.
12409 for f
in ${tmake_file}
12411 if test -f ${srcdir}/config
/$f
12413 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12416 tmake_file
="${tmake_file_}"
12418 # If the host doesn't support symlinks, modify CC in
12419 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12420 # Otherwise, we can use "CC=$(CC)".
12424 cc_set_by_configure
="\$(CC)"
12425 quoted_cc_set_by_configure
="\$(CC)"
12426 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12427 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12430 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12431 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12432 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12433 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12437 # This is a terrible hack which will go away when a gnattools directory
12439 cc_for_cross_gnattools
=${CC}
12442 out_object_file
=`basename $out_file .c`.o
12446 for f
in $tm_file; do
12449 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12450 tm_include_list
="${tm_include_list} $f"
12453 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12454 tm_include_list
="${tm_include_list} config/$f"
12461 for f
in $tm_p_file; do
12464 tm_p_file_list
="${tm_p_file_list} $f"
12465 tm_p_include_list
="${tm_p_include_list} $f"
12468 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12469 tm_p_include_list
="${tm_p_include_list} config/$f"
12475 for f
in $xm_file; do
12478 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12479 xm_include_list
="${xm_include_list} $f"
12482 xm_file_list
="${xm_file_list} $f"
12483 xm_include_list
="${xm_include_list} $f"
12486 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12487 xm_include_list
="${xm_include_list} config/$f"
12493 host_xm_include_list
=
12494 for f
in $host_xm_file; do
12497 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12498 host_xm_include_list
="${host_xm_include_list} $f"
12501 host_xm_file_list
="${host_xm_file_list} $f"
12502 host_xm_include_list
="${host_xm_include_list} $f"
12505 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12506 host_xm_include_list
="${host_xm_include_list} config/$f"
12511 build_xm_file_list
=
12512 for f
in $build_xm_file; do
12515 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12516 build_xm_include_list
="${build_xm_include_list} $f"
12518 auto-build.h | auto-host.h
)
12519 build_xm_file_list
="${build_xm_file_list} $f"
12520 build_xm_include_list
="${build_xm_include_list} $f"
12523 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12524 build_xm_include_list
="${build_xm_include_list} config/$f"
12529 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12530 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12533 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12534 if test x
$host != x
$target
12536 CROSS
="-DCROSS_COMPILE"
12538 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12539 case "$host","$target" in
12540 # Darwin crosses can use the host system's libraries and headers,
12541 # because of the fat library support. Of course, it must be the
12542 # same version of Darwin on both sides. Allow the user to
12543 # just say --target=foo-darwin without a version number to mean
12544 # "the version on this system".
12545 *-*-darwin*,*-*-darwin*)
12546 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12547 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12548 if test $hostos = $targetos -o $targetos = darwin
; then
12550 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12555 i?
86-*-*,x86_64-
*-* \
12556 | powerpc
*-*-*,powerpc64
*-*-*)
12557 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12559 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12560 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12561 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12564 # If this is a cross-compiler that does not
12565 # have its own set of headers then define
12568 # If this is using newlib, without having the headers available now,
12569 # then define inhibit_libc in LIBGCC2_CFLAGS.
12570 # This prevents libgcc2 from containing any code which requires libc
12573 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12574 test x
$with_newlib = xyes
; } &&
12575 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12576 inhibit_libc
=-Dinhibit_libc
12580 # When building gcc with a cross-compiler, we need to adjust things so
12581 # that the generator programs are still built with the native compiler.
12582 # Also, we cannot run fixincludes or fix-header.
12584 # These are the normal (build=host) settings:
12585 CC_FOR_BUILD
='$(CC)'
12586 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12587 STMP_FIXINC
=stmp-fixinc
12589 # Possibly disable fixproto, on a per-target basis.
12590 case ${use_fixproto} in
12595 STMP_FIXPROTO
=stmp-fixproto
12600 # And these apply if build != host, or we are generating coverage data
12601 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12603 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12605 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12606 if "x$STMP_FIXPROTO" != x
; then
12607 STMP_FIXPROTO
=stmp-install-fixproto
12612 # Expand extra_headers to include complete path.
12613 # This substitutes for lots of t-* files.
12614 extra_headers_list
=
12615 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12616 for file in ${extra_headers} ; do
12617 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12620 # Define collect2 in Makefile.
12621 case $host_can_use_collect2 in
12623 *) collect2
='collect2$(exeext)' ;;
12627 # Add a definition of USE_COLLECT2 if system wants one.
12628 case $use_collect2 in
12629 no
) use_collect2
= ;;
12632 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12633 xm_defines
="${xm_defines} USE_COLLECT2"
12634 case $host_can_use_collect2 in
12636 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12637 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12638 { (exit 1); exit 1; }; }
12644 # ---------------------------
12645 # Assembler & linker features
12646 # ---------------------------
12648 # Identify the assembler which will work hand-in-glove with the newly
12649 # built GCC, so that we can examine its features. This is the assembler
12650 # which will be driven by the driver program.
12652 # If build != host, and we aren't building gas in-tree, we identify a
12653 # build->target assembler and hope that it will have the same features
12654 # as the host->target assembler we'll be using.
12655 echo "$as_me:$LINENO: checking what assembler to use" >&5
12656 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12659 gcc_cv_gas_major_version
=
12660 gcc_cv_gas_minor_version
=
12661 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12662 if test -x "$DEFAULT_ASSEMBLER"; then
12663 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12664 elif test -x as
$build_exeext; then
12665 # Build using assembler in the current directory.
12666 gcc_cv_as
=.
/as
$build_exeext
12667 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12668 && test -f ..
/gas
/Makefile \
12669 && test x
$build = x
$host; then
12670 # Single tree build which includes gas. We want to prefer it
12671 # over whatever linker top-level may have detected, since
12672 # we'll use what we're building after installation anyway.
12674 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12675 for f
in $gcc_cv_as_bfd_srcdir/configure \
12676 $gcc_cv_as_gas_srcdir/configure \
12677 $gcc_cv_as_gas_srcdir/configure.
in \
12678 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12679 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12680 if test x
$gcc_cv_gas_version != x
; then
12684 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12685 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12686 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12687 case $gcc_cv_gas_patch_version in
12688 "") gcc_cv_gas_patch_version
="0" ;;
12690 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12691 + $gcc_cv_gas_minor_version \) \* 1000 \
12692 + $gcc_cv_gas_patch_version`
12694 rm -f as
$build_exeext
12695 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12696 in_tree_gas_is_elf
=no
12697 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12698 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12699 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12701 in_tree_gas_is_elf
=yes
12703 elif test -x "$AS_FOR_TARGET"; then
12704 gcc_cv_as
="$AS_FOR_TARGET"
12705 elif test -x "$AS" && test x
$host = x
$target; then
12709 if test "x$gcc_cv_as" = x
; then
12710 # Search the same directories that the installed compiler will
12711 # search. Else we may find the wrong assembler and lose. If we
12712 # do not find a suitable assembler binary, then try the user's
12715 # Also note we have to check MD_EXEC_PREFIX before checking the
12716 # user's path. Unfortunately, there is no good way to get at the
12717 # value of MD_EXEC_PREFIX here. So we do a brute force search
12718 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12719 # to be fixed as part of the make/configure rewrite too.
12721 if test "x$exec_prefix" = xNONE
; then
12722 if test "x$prefix" = xNONE
; then
12723 test_prefix
=/usr
/local
12725 test_prefix
=$prefix
12728 test_prefix
=$exec_prefix
12731 # If the loop below does not find an assembler, then use whatever
12732 # one we can find in the users's path.
12734 if test "x$program_prefix" != xNONE
; then
12735 gcc_cv_as
=${program_prefix}as
$build_exeext
12737 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12740 if test x
$host = x
$build; then
12741 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12742 $test_prefix/libexec/gcc/$target_noncanonical \
12743 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12744 /usr/lib/gcc/$target_noncanonical \
12745 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12746 $test_prefix/$target_noncanonical/bin"
12751 if test x
$host = x
$target; then
12752 test_dirs
="$test_dirs \
12757 /bsd43/usr/lib/cmplrs/cc \
12758 /usr/cross64/usr/bin \
12759 /usr/lib/cmplrs/cc \
12760 /sysv/usr/lib/cmplrs/cc \
12761 /svr4/usr/lib/cmplrs/cc \
12765 for dir
in $test_dirs; do
12766 if test -x $dir/as
$build_exeext; then
12767 gcc_cv_as
=$dir/as
$build_exeext
12772 case $in_tree_gas in
12774 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12775 echo "${ECHO_T}\"newly built gas\"" >&6
12778 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12779 echo "${ECHO_T}$gcc_cv_as" >&6
12783 # Identify the linker which will work hand-in-glove with the newly
12784 # built GCC, so that we can examine its features. This is the linker
12785 # which will be driven by the driver program.
12787 # If build != host, and we aren't building gas in-tree, we identify a
12788 # build->target linker and hope that it will have the same features
12789 # as the host->target linker we'll be using.
12790 echo "$as_me:$LINENO: checking what linker to use" >&5
12791 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12794 gcc_cv_gld_major_version
=
12795 gcc_cv_gld_minor_version
=
12796 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12797 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12798 if test -x "$DEFAULT_LINKER"; then
12799 gcc_cv_ld
="$DEFAULT_LINKER"
12800 elif test -x collect-ld
$build_exeext; then
12801 # Build using linker in the current directory.
12802 gcc_cv_ld
=.
/collect-ld
$build_exeext
12803 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12804 && test -f ..
/ld
/Makefile \
12805 && test x
$build = x
$host; then
12806 # Single tree build which includes ld. We want to prefer it
12807 # over whatever linker top-level may have detected, since
12808 # we'll use what we're building after installation anyway.
12810 in_tree_ld_is_elf
=no
12811 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12812 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12813 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12814 in_tree_ld_is_elf
=yes
12816 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
12818 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12819 if test x
$gcc_cv_gld_version != x
; then
12823 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12824 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12825 rm -f collect-ld
$build_exeext
12826 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12827 elif test -x "$LD_FOR_TARGET"; then
12828 gcc_cv_ld
="$LD_FOR_TARGET"
12829 elif test -x "$LD" && test x
$host = x
$target; then
12833 if test "x$gcc_cv_ld" = x
; then
12834 # Search the same directories that the installed compiler will
12835 # search. Else we may find the wrong linker and lose. If we
12836 # do not find a suitable linker binary, then try the user's
12839 # Also note we have to check MD_EXEC_PREFIX before checking the
12840 # user's path. Unfortunately, there is no good way to get at the
12841 # value of MD_EXEC_PREFIX here. So we do a brute force search
12842 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12843 # to be fixed as part of the make/configure rewrite too.
12845 if test "x$exec_prefix" = xNONE
; then
12846 if test "x$prefix" = xNONE
; then
12847 test_prefix
=/usr
/local
12849 test_prefix
=$prefix
12852 test_prefix
=$exec_prefix
12855 # If the loop below does not find an linker, then use whatever
12856 # one we can find in the users's path.
12858 if test "x$program_prefix" != xNONE
; then
12859 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12861 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
12864 if test x
$host = x
$build; then
12865 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12866 $test_prefix/libexec/gcc/$target_noncanonical \
12867 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12868 /usr/lib/gcc/$target_noncanonical \
12869 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12870 $test_prefix/$target_noncanonical/bin"
12875 if test x
$host = x
$target; then
12876 test_dirs
="$test_dirs \
12881 /bsd43/usr/lib/cmplrs/cc \
12882 /usr/cross64/usr/bin \
12883 /usr/lib/cmplrs/cc \
12884 /sysv/usr/lib/cmplrs/cc \
12885 /svr4/usr/lib/cmplrs/cc \
12889 for dir
in $test_dirs; do
12890 if test -x $dir/ld
$build_exeext; then
12891 gcc_cv_ld
=$dir/ld
$build_exeext
12896 case $in_tree_ld in
12898 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12899 echo "${ECHO_T}\"newly built ld\"" >&6
12902 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12903 echo "${ECHO_T}$gcc_cv_ld" >&6
12907 # Figure out what nm we will be using.
12908 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12909 echo "$as_me:$LINENO: checking what nm to use" >&5
12910 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12912 if test -x nm
$build_exeext; then
12913 gcc_cv_nm
=.
/nm
$build_exeext
12914 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12915 && test -f ..
/binutils
/Makefile
; then
12916 # Single tree build which includes binutils.
12918 gcc_cv_nm
=.
/nm
$build_exeext
12919 rm -f nm
$build_exeext
12920 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
12921 elif test "x$program_prefix" != xNONE
; then
12922 gcc_cv_nm
=${program_prefix}nm
$build_exeext
12924 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
12926 case $in_tree_nm in
12927 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12928 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12929 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12930 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12933 # Figure out what objdump we will be using.
12934 echo "$as_me:$LINENO: checking what objdump to use" >&5
12935 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12937 if test -x objdump
$build_exeext; then
12938 gcc_cv_objdump
=.
/objdump
$build_exeext
12939 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12940 && test -f ..
/binutils
/Makefile
; then
12941 # Single tree build which includes binutils.
12942 in_tree_objdump
=yes
12943 gcc_cv_objdump
=.
/objdump
$build_exeext
12944 rm -f objdump
$build_exeext
12945 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
12946 elif test "x$program_prefix" != xNONE
; then
12947 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
12949 gcc_cv_objdump
=`echo objdump | \
12950 sed "${program_transform_name}"`$build_exeext
12952 case $in_tree_objdump in
12953 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12954 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12955 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12956 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12959 # Figure out what assembler alignment features are present.
12960 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12961 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12962 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 gcc_cv_as_balign_and_p2align
=no
12966 if test $in_tree_gas = yes; then
12967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12968 then gcc_cv_as_balign_and_p2align
=yes
12970 elif test x
$gcc_cv_as != x
; then
12972 .p2align 2' > conftest.s
12973 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
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); }; }
12980 gcc_cv_as_balign_and_p2align
=yes
12982 echo "configure: failed program was" >&5
12985 rm -f conftest.o conftest.s
12988 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
12989 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
12990 if test $gcc_cv_as_balign_and_p2align = yes; then
12992 cat >>confdefs.h
<<\_ACEOF
12993 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12998 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
12999 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13000 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 gcc_cv_as_max_skip_p2align
=no
13004 if test $in_tree_gas = yes; then
13005 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13006 then gcc_cv_as_max_skip_p2align
=yes
13008 elif test x
$gcc_cv_as != x
; then
13009 echo '.p2align 4,,7' > conftest.s
13010 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }
13017 gcc_cv_as_max_skip_p2align
=yes
13019 echo "configure: failed program was" >&5
13022 rm -f conftest.o conftest.s
13025 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13026 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13027 if test $gcc_cv_as_max_skip_p2align = yes; then
13029 cat >>confdefs.h
<<\_ACEOF
13030 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13035 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13036 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13037 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 gcc_cv_as_subsection_m1
=no
13041 if test $in_tree_gas = yes; then
13042 if test $in_tree_gas_is_elf = yes \
13043 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13044 then gcc_cv_as_subsection_m1
=yes
13046 elif test x
$gcc_cv_as != x
; then
13047 echo 'conftest_label1: .word 0
13049 conftest_label2: .word 0
13050 .previous' > conftest.s
13051 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }
13058 if test x
$gcc_cv_nm != x
; then
13059 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13060 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13061 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13063 else gcc_cv_as_subsection_m1
=yes
13065 rm -f conftest.nm1 conftest.nm2
13068 echo "configure: failed program was" >&5
13071 rm -f conftest.o conftest.s
13074 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13075 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13076 if test $gcc_cv_as_subsection_m1 = yes; then
13078 cat >>confdefs.h
<<\_ACEOF
13079 #define HAVE_GAS_SUBSECTION_ORDERING 1
13084 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13085 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13086 if test "${gcc_cv_as_weak+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 if test $in_tree_gas = yes; then
13091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13092 then gcc_cv_as_weak
=yes
13094 elif test x
$gcc_cv_as != x
; then
13095 echo ' .weak foobar' > conftest.s
13096 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }
13105 echo "configure: failed program was" >&5
13108 rm -f conftest.o conftest.s
13111 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13112 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13113 if test $gcc_cv_as_weak = yes; then
13115 cat >>confdefs.h
<<\_ACEOF
13116 #define HAVE_GAS_WEAK 1
13121 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13122 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13123 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 gcc_cv_as_nsubspa_comdat
=no
13127 if test $in_tree_gas = yes; then
13128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13129 then gcc_cv_as_nsubspa_comdat
=yes
13131 elif test x
$gcc_cv_as != x
; then
13132 echo ' .SPACE $TEXT$
13133 .NSUBSPA $CODE$,COMDAT' > conftest.s
13134 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }
13141 gcc_cv_as_nsubspa_comdat
=yes
13143 echo "configure: failed program was" >&5
13146 rm -f conftest.o conftest.s
13149 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13150 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13151 if test $gcc_cv_as_nsubspa_comdat = yes; then
13153 cat >>confdefs.h
<<\_ACEOF
13154 #define HAVE_GAS_NSUBSPA_COMDAT 1
13159 # .hidden needs to be supported in both the assembler and the linker,
13160 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13161 # This is irritatingly difficult to feature test for; we have to check the
13162 # date string after the version number. If we've got an in-tree
13163 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13165 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13166 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13167 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13168 if test "${gcc_cv_as_hidden+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 gcc_cv_as_hidden
=no
13172 if test $in_tree_gas = yes; then
13173 if test $in_tree_gas_is_elf = yes \
13174 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13175 then gcc_cv_as_hidden
=yes
13177 elif test x
$gcc_cv_as != x
; then
13178 echo ' .hidden foobar
13179 foobar:' > conftest.s
13180 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }
13187 gcc_cv_as_hidden
=yes
13189 echo "configure: failed program was" >&5
13192 rm -f conftest.o conftest.s
13195 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13196 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13199 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13200 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13201 if test "${gcc_cv_ld_hidden+set}" = set; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 if test $in_tree_ld = yes ; then
13205 gcc_cv_ld_hidden
=no
13206 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 \
13207 && test $in_tree_ld_is_elf = yes; then
13208 gcc_cv_ld_hidden
=yes
13211 gcc_cv_ld_hidden
=yes
13212 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13213 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13214 ld_vers
=`echo $ld_ver | sed -n \
13215 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13216 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13217 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13218 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13219 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13220 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13221 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'`
13222 if test 0"$ld_date" -lt 20020404; then
13223 if test -n "$ld_date"; then
13224 # If there was date string, but was earlier than 2002-04-04, fail
13225 gcc_cv_ld_hidden
=no
13226 elif test -z "$ld_vers"; then
13227 # If there was no date string nor ld version number, something is wrong
13228 gcc_cv_ld_hidden
=no
13230 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13231 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13232 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13233 test -z "$ld_vers_patch" && ld_vers_patch
=0
13234 if test "$ld_vers_major" -lt 2; then
13235 gcc_cv_ld_hidden
=no
13236 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13237 gcc_cv_ld_hidden
="no"
13238 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13239 gcc_cv_ld_hidden
=no
13244 case "${target}" in
13245 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13246 gcc_cv_ld_hidden
=yes
13249 gcc_cv_ld_hidden
=no
13255 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13256 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13257 libgcc_visibility
=no
13259 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13260 libgcc_visibility
=yes
13262 cat >>confdefs.h
<<\_ACEOF
13263 #define HAVE_GAS_HIDDEN 1
13268 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13269 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13270 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13271 if test "${gcc_cv_as_leb128+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 gcc_cv_as_leb128
=no
13275 if test $in_tree_gas = yes; then
13276 if test $in_tree_gas_is_elf = yes \
13277 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13278 then gcc_cv_as_leb128
=yes
13280 elif test x
$gcc_cv_as != x
; then
13287 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }
13294 # GAS versions before 2.11 do not support uleb128,
13295 # despite appearing to.
13296 # ??? There exists an elf-specific test that will crash
13297 # the assembler. Perhaps it's better to figure out whether
13298 # arbitrary sections are supported and try the test.
13299 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13300 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13301 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13302 as_major
=`echo $as_ver | sed 's/\..*//'`
13303 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13304 if test $as_major -eq 2 && test $as_minor -lt 11
13306 else gcc_cv_as_leb128
=yes
13310 echo "configure: failed program was" >&5
13313 rm -f conftest.o conftest.s
13316 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13317 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13318 if test $gcc_cv_as_leb128 = yes; then
13320 cat >>confdefs.h
<<\_ACEOF
13321 #define HAVE_AS_LEB128 1
13326 # GAS versions up to and including 2.11.0 may mis-optimize
13328 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13329 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13330 if test "${gcc_cv_as_eh_frame+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 gcc_cv_as_eh_frame
=no
13334 if test $in_tree_gas = yes; then
13335 if test $in_tree_gas_is_elf = yes \
13336 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13337 then gcc_cv_as_eh_frame
=yes
13339 elif test x
$gcc_cv_as != x
; then
13346 .section .eh_frame,"aw",@progbits
13348 .4byte .LECIE1-.LSCIE1
13362 .4byte .LEFDE1-.LASFDE1
13364 .4byte .LASFDE1-__FRAME_BEGIN__
13371 .LEFDE1:' > conftest.s
13372 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }
13379 cat > conftest.lit
<<EOF
13380 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13381 0010 01000000 12000000 18000000 00000000 ................
13382 0020 08000000 04080000 0044 .........D
13384 cat > conftest.big
<<EOF
13385 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13386 0010 00000001 00000012 00000018 00000000 ................
13387 0020 00000008 04000000 0844 .........D
13389 # If the assembler didn't choke, and we can objdump,
13390 # and we got the correct data, then succeed.
13391 if test x
$gcc_cv_objdump != x \
13392 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13393 |
tail -3 > conftest.got \
13394 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13395 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13397 gcc_cv_as_eh_frame
=yes
13398 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; }; then
13404 gcc_cv_as_eh_frame
=buggy
13406 # Uh oh, what do we do now?
13407 gcc_cv_as_eh_frame
=no
13410 echo "configure: failed program was" >&5
13413 rm -f conftest.o conftest.s
13416 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13417 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13420 if test $gcc_cv_as_eh_frame = buggy
; then
13422 cat >>confdefs.h
<<\_ACEOF
13423 #define USE_AS_TRADITIONAL_FORMAT 1
13428 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13429 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13430 if test "${gcc_cv_as_shf_merge+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 gcc_cv_as_shf_merge
=no
13434 if test $in_tree_gas = yes; then
13435 if test $in_tree_gas_is_elf = yes \
13436 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13437 then gcc_cv_as_shf_merge
=yes
13439 elif test x
$gcc_cv_as != x
; then
13440 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13441 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }
13448 gcc_cv_as_shf_merge
=yes
13450 echo "configure: failed program was" >&5
13453 rm -f conftest.o conftest.s
13456 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13457 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13459 if test $gcc_cv_as_shf_merge = no
; then
13460 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13461 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13462 if test "${gcc_cv_as_shf_merge+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 gcc_cv_as_shf_merge
=no
13466 if test $in_tree_gas = yes; then
13467 if test $in_tree_gas_is_elf = yes \
13468 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13469 then gcc_cv_as_shf_merge
=yes
13471 elif test x
$gcc_cv_as != x
; then
13472 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13473 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }
13480 gcc_cv_as_shf_merge
=yes
13482 echo "configure: failed program was" >&5
13485 rm -f conftest.o conftest.s
13488 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13489 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13493 cat >>confdefs.h
<<_ACEOF
13494 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13498 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13499 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13500 if test "${gcc_cv_as_comdat_group+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 gcc_cv_as_comdat_group
=no
13504 if test $in_tree_gas = yes; then
13505 if test $in_tree_gas_is_elf = yes \
13506 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13507 then gcc_cv_as_comdat_group
=yes
13509 elif test x
$gcc_cv_as != x
; then
13510 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13511 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }
13518 gcc_cv_as_comdat_group
=yes
13520 echo "configure: failed program was" >&5
13523 rm -f conftest.o conftest.s
13526 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13527 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13529 if test $gcc_cv_as_comdat_group = yes; then
13530 gcc_cv_as_comdat_group_percent
=no
13532 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13533 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13534 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 gcc_cv_as_comdat_group_percent
=no
13538 if test $in_tree_gas = yes; then
13539 if test $in_tree_gas_is_elf = yes \
13540 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13541 then gcc_cv_as_comdat_group_percent
=yes
13543 elif test x
$gcc_cv_as != x
; then
13544 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13545 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }
13552 gcc_cv_as_comdat_group_percent
=yes
13554 echo "configure: failed program was" >&5
13557 rm -f conftest.o conftest.s
13560 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13561 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13565 cat >>confdefs.h
<<_ACEOF
13566 #define HAVE_GAS_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`
13570 # Thread-local storage - the check is heavily parametrized.
13578 .section ".tdata","awT",@progbits
13581 ldq $27,__tls_get_addr($29) !literal!1
13582 lda $16,foo($29) !tlsgd!1
13583 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13584 ldq $27,__tls_get_addr($29) !literal!2
13585 lda $16,foo($29) !tlsldm!2
13586 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13587 ldq $1,foo($29) !gotdtprel
13588 ldah $2,foo($29) !dtprelhi
13589 lda $3,foo($2) !dtprello
13590 lda $4,foo($29) !dtprel
13591 ldq $1,foo($29) !gottprel
13592 ldah $2,foo($29) !tprelhi
13593 lda $3,foo($2) !tprello
13594 lda $4,foo($29) !tprel'
13597 tls_as_opt
=--fatal-warnings
13601 .section ".tdata","awT",@progbits
13604 call #gettlsoff(x)'
13610 .section ".tdata","awT",@progbits
13614 leal foo@TLSGD(,%ebx,1), %eax
13615 leal foo@TLSLDM(%ebx), %eax
13616 leal foo@DTPOFF(%eax), %edx
13617 movl foo@GOTTPOFF(%ebx), %eax
13618 subl foo@GOTTPOFF(%ebx), %eax
13619 addl foo@GOTNTPOFF(%ebx), %eax
13620 movl foo@INDNTPOFF, %eax
13621 movl $foo@TPOFF, %eax
13622 subl $foo@TPOFF, %eax
13623 leal foo@NTPOFF(%ecx), %eax'
13626 tls_as_opt
=--fatal-warnings
13630 .section ".tdata","awT",@progbits
13634 leaq foo@TLSGD(%rip), %rdi
13635 leaq foo@TLSLD(%rip), %rdi
13636 leaq foo@DTPOFF(%rax), %rdx
13637 movq foo@GOTTPOFF(%rip), %rax
13638 movq $foo@TPOFF, %rax'
13641 tls_as_opt
=--fatal-warnings
13645 .section ".tdata","awT",@progbits
13648 addl r16 = @ltoff(@dtpmod(foo#)), gp
13649 addl r17 = @ltoff(@dtprel(foo#)), gp
13650 addl r18 = @ltoff(@tprel(foo#)), gp
13651 addl r19 = @dtprel(foo#), gp
13652 adds r21 = @dtprel(foo#), r13
13653 movl r23 = @dtprel(foo#)
13654 addl r20 = @tprel(foo#), gp
13655 adds r22 = @tprel(foo#), r13
13656 movl r24 = @tprel(foo#)'
13659 tls_as_opt
=--fatal-warnings
13663 .section ".tdata","awT",@progbits
13671 addi 3,31,ld0@got@tlsgd
13673 addi 3,31,x1@got@tlsld
13676 addis 9,3,x2@dtprel@ha
13677 addi 9,9,x2@dtprel@l
13678 lwz 9,x3@got@tprel(31)
13681 addis 9,2,x2@tprel@ha
13682 addi 9,9,x2@tprel@l'
13685 tls_as_opt
="-a32 --fatal-warnings"
13689 .section ".tdata","awT",@progbits
13697 addi 3,2,ld0@got@tlsgd
13703 addi 3,2,x1@got@tlsld
13709 addis 9,3,x2@dtprel@ha
13710 addi 9,9,x2@dtprel@l
13713 ld 9,x3@got@dtprel(2)
13719 tls_as_opt
="-a64 --fatal-warnings"
13723 .section ".tdata","awT",@progbits
13730 .long foo@GOTNTPOFF
13731 .long foo@INDNTPOFF
13732 l %r1,foo@GOTNTPOFF(%r12)
13733 l %r1,0(%r1):tls_load:foo
13734 bas %r14,0(%r1,%r13):tls_gdcall:foo
13735 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13738 tls_as_opt
="-m31 --fatal-warnings"
13742 .section ".tdata","awT",@progbits
13749 .quad foo@GOTNTPOFF
13750 lg %r1,foo@GOTNTPOFF(%r12)
13751 larl %r1,foo@INDNTPOFF
13752 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13753 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13756 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13758 sh-
*-* | sh
[34]-*-*)
13760 .section ".tdata","awT",@progbits
13770 tls_as_opt
=--fatal-warnings
13774 sparc
*-sun-solaris2.
*)
13781 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13783 .section ".tdata",#alloc,#write,#tls
13786 sethi %tgd_hi22(foo), %o0
13787 add %o0, %tgd_lo10(foo), %o1
13788 add %l7, %o1, %o0, %tgd_add(foo)
13789 call __tls_get_addr, %tgd_call(foo)
13790 sethi %tldm_hi22(foo), %l1
13791 add %l1, %tldm_lo10(foo), %l2
13792 add %l7, %l2, %o0, %tldm_add(foo)
13793 call __tls_get_addr, %tldm_call(foo)
13794 sethi %tldo_hix22(foo), %l3
13795 xor %l3, %tldo_lox10(foo), %l4
13796 add %o0, %l4, %l5, %tldo_add(foo)
13797 sethi %tie_hi22(foo), %o3
13798 add %o3, %tie_lo10(foo), %o3
13799 ld [%l7 + %o3], %o2, %tie_ld(foo)
13800 add %g7, %o2, %o4, %tie_add(foo)
13801 sethi %tle_hix22(foo), %l1
13802 xor %l1, %tle_lox10(foo), %o5
13803 ld [%g7 + %o5], %o1'
13808 .section ".tdata","awT",@progbits
13811 sethi %tgd_hi22(foo), %o0
13812 add %o0, %tgd_lo10(foo), %o1
13813 add %l7, %o1, %o0, %tgd_add(foo)
13814 call __tls_get_addr, %tgd_call(foo)
13815 sethi %tldm_hi22(foo), %l1
13816 add %l1, %tldm_lo10(foo), %l2
13817 add %l7, %l2, %o0, %tldm_add(foo)
13818 call __tls_get_addr, %tldm_call(foo)
13819 sethi %tldo_hix22(foo), %l3
13820 xor %l3, %tldo_lox10(foo), %l4
13821 add %o0, %l4, %l5, %tldo_add(foo)
13822 sethi %tie_hi22(foo), %o3
13823 add %o3, %tie_lo10(foo), %o3
13824 ld [%l7 + %o3], %o2, %tie_ld(foo)
13825 add %g7, %o2, %o4, %tie_add(foo)
13826 sethi %tle_hix22(foo), %l1
13827 xor %l1, %tle_lox10(foo), %o5
13828 ld [%g7 + %o5], %o1'
13831 tls_as_opt
="-32 --fatal-warnings"
13835 if test -z "$tls_first_major"; then
13836 : # If we don't have a check, assume no support.
13838 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13839 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13840 if test "${gcc_cv_as_tls+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13844 if test $in_tree_gas = yes; then
13845 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13846 then gcc_cv_as_tls
=yes
13848 elif test x
$gcc_cv_as != x
; then
13849 echo "$conftest_s" > conftest.s
13850 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }
13859 echo "configure: failed program was" >&5
13862 rm -f conftest.o conftest.s
13865 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13866 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13867 if test $gcc_cv_as_tls = yes; then
13869 cat >>confdefs.h
<<\_ACEOF
13870 #define HAVE_AS_TLS 1
13876 # Target-specific assembler checks.
13878 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13879 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13880 gcc_cv_ld_static_dynamic
=no
13881 if test $in_tree_ld = yes ; then
13882 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13883 gcc_cv_ld_static_dynamic
=yes
13885 elif test x
$gcc_cv_ld != x
; then
13886 # Check if linker supports -Bstatic/-Bdynamic option
13887 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
13888 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
13889 gcc_cv_ld_static_dynamic
=yes
13892 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
13894 cat >>confdefs.h
<<\_ACEOF
13895 #define HAVE_LD_STATIC_DYNAMIC 1
13899 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13900 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13902 if test x
"$demangler_in_ld" = xyes
; then
13903 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13904 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13905 gcc_cv_ld_demangle
=no
13906 if test $in_tree_ld = yes; then
13907 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 \
13908 gcc_cv_ld_demangle
=yes
13910 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
13911 # Check if the GNU linker supports --demangle option
13912 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
13913 gcc_cv_ld_demangle
=yes
13916 if test x
"$gcc_cv_ld_demangle" = xyes
; then
13918 cat >>confdefs.h
<<\_ACEOF
13919 #define HAVE_LD_DEMANGLE 1
13923 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13924 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13928 # All TARGET_ABI_OSF targets.
13929 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
13930 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13931 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13932 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 gcc_cv_as_alpha_explicit_relocs
=no
13936 if test $in_tree_gas = yes; then
13937 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13938 then gcc_cv_as_alpha_explicit_relocs
=yes
13940 elif test x
$gcc_cv_as != x
; then
13941 echo ' .set nomacro
13943 extbl $3, $2, $3 !lituse_bytoff!1
13944 ldq $2, a($29) !literal!1
13945 ldq $4, b($29) !literal!2
13946 ldq_u $3, 0($2) !lituse_base!1
13947 ldq $27, f($29) !literal!5
13948 jsr $26, ($27), f !lituse_jsr!5
13949 ldah $29, 0($26) !gpdisp!3
13950 lda $0, c($29) !gprel
13951 ldah $1, d($29) !gprelhigh
13952 lda $1, d($1) !gprellow
13953 lda $29, 0($29) !gpdisp!3' > conftest.s
13954 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }
13961 gcc_cv_as_alpha_explicit_relocs
=yes
13963 echo "configure: failed program was" >&5
13966 rm -f conftest.o conftest.s
13969 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13970 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13971 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13973 cat >>confdefs.h
<<\_ACEOF
13974 #define HAVE_AS_EXPLICIT_RELOCS 1
13981 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13982 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
13983 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 gcc_cv_as_cris_no_mul_bug
=no
13987 if test $in_tree_gas = yes; then
13988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13989 then gcc_cv_as_cris_no_mul_bug
=yes
13991 elif test x
$gcc_cv_as != x
; then
13992 echo '.text' > conftest.s
13993 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }
14000 gcc_cv_as_cris_no_mul_bug
=yes
14002 echo "configure: failed program was" >&5
14005 rm -f conftest.o conftest.s
14008 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14009 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14010 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14012 cat >>confdefs.h
<<\_ACEOF
14013 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14020 echo "$as_me:$LINENO: checking assembler for .register" >&5
14021 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14022 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 gcc_cv_as_sparc_register_op
=no
14026 if test x
$gcc_cv_as != x
; then
14027 echo '.register %g2, #scratch' > conftest.s
14028 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }
14035 gcc_cv_as_sparc_register_op
=yes
14037 echo "configure: failed program was" >&5
14040 rm -f conftest.o conftest.s
14043 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14044 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14045 if test $gcc_cv_as_sparc_register_op = yes; then
14047 cat >>confdefs.h
<<\_ACEOF
14048 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14053 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14054 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14055 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 gcc_cv_as_sparc_relax
=no
14059 if test x
$gcc_cv_as != x
; then
14060 echo '.text' > conftest.s
14061 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }
14068 gcc_cv_as_sparc_relax
=yes
14070 echo "configure: failed program was" >&5
14073 rm -f conftest.o conftest.s
14076 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14077 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14078 if test $gcc_cv_as_sparc_relax = yes; then
14080 cat >>confdefs.h
<<\_ACEOF
14081 #define HAVE_AS_RELAX_OPTION 1
14086 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14087 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14088 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 gcc_cv_as_sparc_ua_pcrel
=no
14092 if test x
$gcc_cv_as != x
; then
14099 .uaword %r_disp32(foo)' > conftest.s
14100 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }
14107 if test x
$gcc_cv_ld != x \
14108 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14109 gcc_cv_as_sparc_ua_pcrel
=yes
14113 echo "configure: failed program was" >&5
14116 rm -f conftest.o conftest.s
14119 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14120 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14121 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14123 cat >>confdefs.h
<<\_ACEOF
14124 #define HAVE_AS_SPARC_UA_PCREL 1
14128 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14129 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14130 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14134 if test x
$gcc_cv_as != x
; then
14138 .uaword %r_disp32(foo)
14139 .byte 0x32, 0x33, 0x34
14143 .skip 4' > conftest.s
14144 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }
14151 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14152 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14153 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14154 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14155 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14156 |
grep 'DISP32' > /dev
/null
2>&1; then
14159 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14164 echo "configure: failed program was" >&5
14167 rm -f conftest.o conftest.s
14170 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14171 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14172 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14174 cat >>confdefs.h
<<\_ACEOF
14175 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14180 fi # unaligned pcrel relocs
14182 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14183 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14184 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 gcc_cv_as_sparc_offsetable_lo10
=no
14188 if test x
$gcc_cv_as != x
; then
14190 or %g1, %lo(ab) + 12, %g1
14191 or %g1, %lo(ab + 12), %g1' > conftest.s
14192 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }
14199 if test x
$gcc_cv_objdump != x \
14200 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14201 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14202 gcc_cv_as_sparc_offsetable_lo10
=yes
14205 echo "configure: failed program was" >&5
14208 rm -f conftest.o conftest.s
14211 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14212 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14213 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14215 cat >>confdefs.h
<<\_ACEOF
14216 #define HAVE_AS_OFFSETABLE_LO10 1
14222 i
[34567]86-*-* | x86_64-
*-*)
14224 cygwin
* | pe | mingw32
*)
14225 # Used for DWARF 2 in PE
14226 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14227 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14228 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 gcc_cv_as_ix86_pe_secrel32
=no
14232 if test $in_tree_gas = yes; then
14233 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14234 then gcc_cv_as_ix86_pe_secrel32
=yes
14236 elif test x
$gcc_cv_as != x
; then
14240 .secrel32 foo' > conftest.s
14241 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }
14248 if test x
$gcc_cv_ld != x \
14249 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14250 gcc_cv_as_ix86_pe_secrel32
=yes
14254 echo "configure: failed program was" >&5
14257 rm -f conftest.o conftest.s
14260 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14261 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14262 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14264 cat >>confdefs.h
<<\_ACEOF
14265 #define HAVE_GAS_PE_SECREL32_RELOC 1
14272 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14273 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14274 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 gcc_cv_as_ix86_filds_fists
=no
14278 if test $in_tree_gas = yes; then
14279 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14280 then gcc_cv_as_ix86_filds_fists
=yes
14282 elif test x
$gcc_cv_as != x
; then
14283 echo 'filds mem; fists mem' > conftest.s
14284 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }
14291 gcc_cv_as_ix86_filds_fists
=yes
14293 echo "configure: failed program was" >&5
14296 rm -f conftest.o conftest.s
14299 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14300 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14301 if test $gcc_cv_as_ix86_filds_fists = yes; then
14303 cat >>confdefs.h
<<\_ACEOF
14304 #define HAVE_GAS_FILDS_FISTS 1
14309 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14310 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14311 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 gcc_cv_as_ix86_cmov_sun_syntax
=no
14315 if test x
$gcc_cv_as != x
; then
14316 echo 'cmovl.l %edx, %eax' > conftest.s
14317 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }
14324 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14326 echo "configure: failed program was" >&5
14329 rm -f conftest.o conftest.s
14332 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14333 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14334 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14336 cat >>confdefs.h
<<\_ACEOF
14337 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14342 # This one is used unconditionally by i386.[ch]; it is to be defined
14343 # to 1 if the feature is present, 0 otherwise.
14344 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14345 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14346 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 gcc_cv_as_ix86_gotoff_in_data
=no
14350 if test $in_tree_gas = yes; then
14351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14352 then gcc_cv_as_ix86_gotoff_in_data
=yes
14354 elif test x
$gcc_cv_as != x
; then
14359 .long .L0@GOTOFF' > conftest.s
14360 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }
14367 gcc_cv_as_ix86_gotoff_in_data
=yes
14369 echo "configure: failed program was" >&5
14372 rm -f conftest.o conftest.s
14375 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14376 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14379 cat >>confdefs.h
<<_ACEOF
14380 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14386 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14387 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14388 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14392 if test $in_tree_gas = yes; then
14393 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14394 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14396 elif test x
$gcc_cv_as != x
; then
14398 addl r15 = @ltoffx(x#), gp
14400 ld8.mov r16 = [r15], x#' > conftest.s
14401 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }
14408 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14410 echo "configure: failed program was" >&5
14413 rm -f conftest.o conftest.s
14416 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14417 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14418 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14420 cat >>confdefs.h
<<\_ACEOF
14421 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14430 *-*-aix*) conftest_s
=' .csect .text[PR]
14433 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14434 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14435 if test "${gcc_cv_as_machine_directive+set}" = set; then
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 gcc_cv_as_machine_directive
=no
14439 if test x
$gcc_cv_as != x
; then
14440 echo ' .machine ppc7400' > conftest.s
14441 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }
14448 gcc_cv_as_machine_directive
=yes
14450 echo "configure: failed program was" >&5
14453 rm -f conftest.o conftest.s
14456 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14457 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14459 if test x
$gcc_cv_as_machine_directive != xyes
; then
14460 echo "*** This target requires an assembler supporting \".machine\"" >&2
14461 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14462 test x
$build = x
$target && exit 1
14466 *) conftest_s
=' .machine power4
14471 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14472 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14473 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 gcc_cv_as_powerpc_mfcrf
=no
14477 if test $in_tree_gas = yes; then
14478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14479 then gcc_cv_as_powerpc_mfcrf
=yes
14481 elif test x
$gcc_cv_as != x
; then
14482 echo "$conftest_s" > conftest.s
14483 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }
14490 gcc_cv_as_powerpc_mfcrf
=yes
14492 echo "configure: failed program was" >&5
14495 rm -f conftest.o conftest.s
14498 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14499 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14500 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14502 cat >>confdefs.h
<<\_ACEOF
14503 #define HAVE_AS_MFCRF 1
14510 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14511 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14512 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 gcc_cv_as_mips_explicit_relocs
=no
14516 if test $in_tree_gas = yes; then
14517 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14518 then gcc_cv_as_mips_explicit_relocs
=yes
14520 elif test x
$gcc_cv_as != x
; then
14521 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14522 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }
14529 gcc_cv_as_mips_explicit_relocs
=yes
14531 echo "configure: failed program was" >&5
14534 rm -f conftest.o conftest.s
14537 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14538 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14539 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14540 if test x
$target_cpu_default = x
14541 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14542 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14546 if test x
$gas_flag = xyes \
14547 ||
test x
"$host" != x
"$build" \
14548 ||
test ! -x "$gcc_cv_as" \
14549 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14552 echo "*** This configuration requires the GNU assembler" >&2
14557 # ??? Not all targets support dwarf2 debug_line, even within a version
14558 # of gas. Moreover, we need to emit a valid instruction to trigger any
14559 # info to the output file. So, as supported targets are added to gas 2.11,
14560 # add some instruction here to (also) show we expect this might work.
14561 # ??? Once 2.11 is released, probably need to add first known working
14562 # version to the per-target configury.
14564 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14565 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14566 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14569 ia64
*-*-* | s390
*-*-*)
14576 if test x
"$insn" != x
; then
14578 .file 1 \"conftest.s\"
14581 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14582 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14583 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 gcc_cv_as_dwarf2_debug_line
=no
14587 if test $in_tree_gas = yes; then
14588 if test $in_tree_gas_is_elf = yes \
14589 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14590 then gcc_cv_as_dwarf2_debug_line
=yes
14592 elif test x
$gcc_cv_as != x
; then
14593 echo "$conftest_s" > conftest.s
14594 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }
14601 if test x
$gcc_cv_objdump != x \
14602 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14603 |
grep debug_line
> /dev
/null
2>&1; then
14604 gcc_cv_as_dwarf2_debug_line
=yes
14607 echo "configure: failed program was" >&5
14610 rm -f conftest.o conftest.s
14613 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14614 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14617 # The .debug_line file table must be in the exact order that
14618 # we specified the files, since these indices are also used
14619 # by DW_AT_decl_file. Approximate this test by testing if
14620 # the assembler bitches if the same index is assigned twice.
14621 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14622 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14623 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 gcc_cv_as_dwarf2_file_buggy
=no
14627 if test x
$gcc_cv_as != x
; then
14628 echo ' .file 1 "foo.s"
14629 .file 1 "bar.s"' > conftest.s
14630 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }
14637 gcc_cv_as_dwarf2_file_buggy
=yes
14639 echo "configure: failed program was" >&5
14642 rm -f conftest.o conftest.s
14645 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14646 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14649 if test $gcc_cv_as_dwarf2_debug_line = yes \
14650 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14652 cat >>confdefs.h
<<\_ACEOF
14653 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14658 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14659 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14660 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 gcc_cv_as_gdwarf2_flag
=no
14664 if test $in_tree_gas = yes; then
14665 if test $in_tree_gas_is_elf = yes \
14666 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14667 then gcc_cv_as_gdwarf2_flag
=yes
14669 elif test x
$gcc_cv_as != x
; then
14670 echo "$insn" > conftest.s
14671 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }
14678 gcc_cv_as_gdwarf2_flag
=yes
14680 echo "configure: failed program was" >&5
14683 rm -f conftest.o conftest.s
14686 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14687 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14688 if test $gcc_cv_as_gdwarf2_flag = yes; then
14690 cat >>confdefs.h
<<\_ACEOF
14691 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14696 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14697 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14698 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 gcc_cv_as_gstabs_flag
=no
14702 if test $in_tree_gas = yes; then
14703 if test $in_tree_gas_is_elf = yes \
14704 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14705 then gcc_cv_as_gstabs_flag
=yes
14707 elif test x
$gcc_cv_as != x
; then
14708 echo "$insn" > conftest.s
14709 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }
14716 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14717 # and warns about it, but still exits successfully. So check for
14719 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }
14726 else gcc_cv_as_gstabs_flag
=yes
14729 echo "configure: failed program was" >&5
14732 rm -f conftest.o conftest.s
14735 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14736 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14737 if test $gcc_cv_as_gstabs_flag = yes; then
14739 cat >>confdefs.h
<<\_ACEOF
14740 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14746 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14747 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14748 gcc_cv_ld_ro_rw_mix
=unknown
14749 if test $in_tree_ld = yes ; then
14750 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 \
14751 && test $in_tree_ld_is_elf = yes; then
14752 gcc_cv_ld_ro_rw_mix
=read-write
14754 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14755 echo '.section myfoosect, "a"' > conftest1.s
14756 echo '.section myfoosect, "aw"' > conftest2.s
14757 echo '.byte 1' >> conftest2.s
14758 echo '.section myfoosect, "a"' > conftest3.s
14759 echo '.byte 0' >> conftest3.s
14760 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14761 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14762 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14763 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14764 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14765 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14766 | sed -e '/myfoosect/!d' -e N`
14767 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14768 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14769 gcc_cv_ld_ro_rw_mix
=read-only
14771 gcc_cv_ld_ro_rw_mix
=read-write
14775 rm -f conftest.
* conftest
[123].
*
14777 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
14779 cat >>confdefs.h
<<\_ACEOF
14780 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14784 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14785 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14787 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14788 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14789 gcc_cv_ld_eh_frame_hdr
=no
14790 if test $in_tree_ld = yes ; then
14791 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 \
14792 && test $in_tree_ld_is_elf = yes; then
14793 gcc_cv_ld_eh_frame_hdr
=yes
14795 elif test x
$gcc_cv_ld != x
; then
14796 # Check if linker supports --eh-frame-hdr option
14797 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
14798 gcc_cv_ld_eh_frame_hdr
=yes
14801 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
14803 cat >>confdefs.h
<<\_ACEOF
14804 #define HAVE_LD_EH_FRAME_HDR 1
14808 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14809 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14811 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14812 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14814 if test $in_tree_ld = yes ; then
14815 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 \
14816 && test $in_tree_ld_is_elf = yes; then
14819 elif test x
$gcc_cv_ld != x
; then
14820 # Check if linker supports -pie option
14821 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
14825 if test x
"$gcc_cv_ld_pie" = xyes
; then
14827 cat >>confdefs.h
<<\_ACEOF
14828 #define HAVE_LD_PIE 1
14832 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14833 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14839 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14840 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14841 if test "${gcc_cv_ld_as_needed+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14844 gcc_cv_ld_as_needed
=no
14845 if test $in_tree_ld = yes ; then
14846 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 \
14847 && test $in_tree_ld_is_elf = yes; then
14848 gcc_cv_ld_as_needed
=yes
14850 elif test x
$gcc_cv_ld != x
; then
14851 # Check if linker supports --as-needed and --no-as-needed options
14852 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
14853 gcc_cv_ld_as_needed
=yes
14858 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14859 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14860 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
14862 cat >>confdefs.h
<<\_ACEOF
14863 #define HAVE_LD_AS_NEEDED 1
14869 powerpc64
*-*-linux*)
14870 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14871 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14872 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 gcc_cv_ld_no_dot_syms
=no
14876 if test $in_tree_ld = yes ; then
14877 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
14878 gcc_cv_ld_no_dot_syms
=yes
14880 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
14881 cat > conftest1.s
<<EOF
14885 cat > conftest2.s
<<EOF
14886 .section ".opd","aw"
14889 .type foo,@function
14891 .quad .LEfoo,.TOC.@tocbase,0
14897 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14898 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14899 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
14900 gcc_cv_ld_no_dot_syms
=yes
14902 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14906 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14907 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14908 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
14910 cat >>confdefs.h
<<\_ACEOF
14911 #define HAVE_LD_NO_DOT_SYMS 1
14918 if test x
$with_sysroot = x
&& test x
$host = x
$target \
14919 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14921 cat >>confdefs.h
<<_ACEOF
14922 #define PREFIX_INCLUDE_DIR "$prefix/include"
14927 # Find out what GC implementation we want, or may, use.
14929 # Check whether --with-gc or --without-gc was given.
14930 if test "${with_gc+set}" = set; then
14937 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14938 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14939 { (exit 1); exit 1; }; }
14946 echo "Using $GGC for garbage collection."
14948 # Use the system's zlib library.
14950 zlibinc
="-I\$(srcdir)/../zlib"
14952 # Check whether --with-system-zlib or --without-system-zlib was given.
14953 if test "${with_system_zlib+set}" = set; then
14954 withval
="$with_system_zlib"
14963 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14964 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14965 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14966 if test "${enable_maintainer_mode+set}" = set; then
14967 enableval
="$enable_maintainer_mode"
14968 maintainer_mode
=$enableval
14973 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14974 echo "${ECHO_T}$maintainer_mode" >&6
14976 if test "$maintainer_mode" = "yes"; then
14986 # Make empty files to contain the specs and options for each language.
14987 # Then add #include lines to for a compiler that has specs and/or options.
14992 for subdir
in .
$subdirs
14994 if test -f $srcdir/$subdir/lang.opt
; then
14995 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
14997 if test -f $srcdir/$subdir/lang-specs.h
; then
14998 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15000 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15001 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15005 # These (without "all_") are set in each config-lang.in.
15006 # `language' must be a single word so is spelled singularly.
15008 all_boot_languages
=
15011 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15012 # List of language makefile fragments.
15013 all_lang_makefrags
=
15014 # List of language subdirectory makefiles. Deprecated.
15015 all_lang_makefiles
=
15016 # Files for gengtype
15017 all_gtfiles
="$target_gtfiles"
15018 # Files for gengtype with language
15019 all_gtfiles_files_langs
=
15020 all_gtfiles_files_files
=
15022 # Add the language fragments.
15023 # Languages are added via two mechanisms. Some information must be
15024 # recorded in makefile variables, these are defined in config-lang.in.
15025 # We accumulate them and plug them into the main Makefile.
15026 # The other mechanism is a set of hooks for each of the main targets
15027 # like `clean', `install', etc.
15029 language_hooks
="Make-hooks"
15039 .
${srcdir}/$s/config-lang.
in
15040 if test "x$language" = x
15042 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15045 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15046 if test -f ${srcdir}/$s/Makefile.
in
15047 then all_lang_makefiles
="$s/Makefile"
15049 all_languages
="$all_languages $language"
15050 if test "x$boot_language" = xyes
15052 all_boot_languages
="$all_boot_languages $language"
15054 all_compilers
="$all_compilers $compilers"
15055 all_stagestuff
="$all_stagestuff $stagestuff"
15056 all_outputs
="$all_outputs $outputs"
15057 all_gtfiles
="$all_gtfiles $gtfiles"
15060 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15061 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15065 # Pick up gtfiles for c
15068 .
${srcdir}/c-config-lang.
in
15069 all_gtfiles
="$all_gtfiles $gtfiles"
15072 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15073 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15077 for language
in $all_languages
15079 check_languages
="$check_languages check-$language"
15082 # We link each language in with a set of hooks, reached indirectly via
15087 target_list
="all.build all.cross start.encap rest.encap tags \
15088 install-normal install-common install-man \
15089 uninstall info man srcextra srcman srcinfo \
15090 mostlyclean clean distclean maintainer-clean \
15091 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15092 for t
in $target_list
15095 for lang
in $all_languages
15099 echo "lang.$t: $x" >> Make-hooks
15108 echo "dir ." > .gdbinit
15109 echo "dir ${srcdir}" >> .gdbinit
15110 if test x
$gdb_needs_out_file_path = xyes
15112 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15114 if test "x$subdirs" != x
; then
15117 echo "dir ${srcdir}/$s" >> .gdbinit
15120 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15122 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15123 # absolute path for gcc_tooldir based on inserting the number of up-directory
15124 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15125 # $(libsubdir)/@(unlibsubdir) based path.
15126 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15127 # make and thus we'd get different behavior depending on where we built the
15129 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15130 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15132 # An explanation of the sed strings:
15133 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15134 # -e 's|/$||' match a trailing forward slash and eliminates it
15135 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15136 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15138 # (*) Note this pattern overwrites the first character of the string
15139 # with a forward slash if one is not already present. This is not a
15140 # problem because the exact names of the sub-directories concerned is
15141 # unimportant, just the number of them matters.
15143 # The practical upshot of these patterns is like this:
15145 # prefix exec_prefix result
15146 # ------ ----------- ------
15147 # /foo /foo/bar ../
15148 # /foo/ /foo/bar ../
15149 # /foo /foo/bar/ ../
15150 # /foo/ /foo/bar/ ../
15151 # /foo /foo/bar/ugg ../../
15154 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15159 # Find a directory in which to install a shared libgcc.
15161 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15162 if test "${enable_version_specific_runtime_libs+set}" = set; then
15163 enableval
="$enable_version_specific_runtime_libs"
15168 # Check whether --with-slibdir or --without-slibdir was given.
15169 if test "${with_slibdir+set}" = set; then
15170 withval
="$with_slibdir"
15171 slibdir
="$with_slibdir"
15173 if test "${enable_version_specific_runtime_libs+set}" = set; then
15174 slibdir
='$(libsubdir)'
15175 elif test "$host" != "$target"; then
15176 slibdir
='$(build_tooldir)/lib'
15178 slibdir
='$(libdir)'
15183 objdir
=`${PWDCMD-pwd}`
15186 # Substitute configuration variables
15251 if test x
"$SET_GCC_LIB_PATH_CMD" != x
; then
15252 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15254 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15256 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15257 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15258 set_gcc_lib_path
="export $set_gcc_lib_path"
15266 if test x
${build} = x
${host} ; then
15267 if test x
${host} = x
${target} ; then
15268 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15270 echo "Links are now set up to build a cross-compiler" 1>&2
15271 echo " from ${host} to ${target}." 1>&2
15274 if test x
${host} = x
${target} ; then
15275 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15276 echo " for ${target}." 1>&2
15278 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15279 echo " from ${host} to ${target}." 1>&2
15286 # Configure the subdirectories
15287 # AC_CONFIG_SUBDIRS($subdirs)
15289 # Create the Makefile
15290 # and configure language subdirectories
15291 ac_config_files
="$ac_config_files $all_outputs"
15294 ac_config_commands
="$ac_config_commands default"
15296 cat >confcache
<<\_ACEOF
15297 # This file is a shell script that caches the results of configure
15298 # tests run on this system so they can be shared between configure
15299 # scripts and configure runs, see configure's option --config-cache.
15300 # It is not useful on other systems. If it contains results you don't
15301 # want to keep, you may remove or edit it.
15303 # config.status only pays attention to the cache file if you give it
15304 # the --recheck option to rerun configure.
15306 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15307 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15308 # following values.
15312 # The following way of writing the cache mishandles newlines in values,
15313 # but we know of no workaround that is simple, portable, and efficient.
15314 # So, don't put newlines in cache variables' values.
15315 # Ultrix sh set writes to stderr and can't be redirected directly,
15316 # and sets the high bit in the cache file unless we assign to the vars.
15319 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15321 # `set' does not quote correctly, so add quotes (double-quote
15322 # substitution turns \\\\ into \\, and sed turns \\ into \).
15325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15328 # `set' quotes correctly as required by POSIX, so do not add quotes.
15330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15339 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15341 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15342 if test -w $cache_file; then
15343 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15344 cat confcache
>$cache_file
15346 echo "not updating unwritable cache $cache_file"
15351 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15352 # Let make expand exec_prefix.
15353 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15355 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15356 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15357 # trailing colons and then remove the whole line if VPATH becomes empty
15358 # (actually we leave an empty line to preserve line numbers).
15359 if test "x$srcdir" = x.
; then
15360 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15361 s/:*\$(srcdir):*/:/;
15362 s/:*\${srcdir}:*/:/;
15364 s/^\([^=]*=[ ]*\):*/\1/;
15370 DEFS
=-DHAVE_CONFIG_H
15374 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15375 # 1. Remove the extension, and $U if already installed.
15376 ac_i
=`echo "$ac_i" |
15377 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15379 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15380 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15382 LIBOBJS
=$ac_libobjs
15384 LTLIBOBJS
=$ac_ltlibobjs
15388 : ${CONFIG_STATUS=./config.status}
15389 ac_clean_files_save
=$ac_clean_files
15390 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15391 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15392 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15393 cat >$CONFIG_STATUS <<_ACEOF
15395 # Generated by $as_me.
15396 # Run this file to recreate the current configuration.
15397 # Compiler output produced by configure, useful for debugging
15398 # configure, is in config.log if it exists.
15401 ac_cs_recheck=false
15403 SHELL=\${CONFIG_SHELL-$SHELL}
15406 cat >>$CONFIG_STATUS <<\_ACEOF
15407 ## --------------------- ##
15408 ## M4sh Initialization. ##
15409 ## --------------------- ##
15411 # Be Bourne compatible
15412 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15415 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15416 # is contrary to our usage. Disable this feature.
15417 alias -g '${1+"$@"}'='"$@"'
15418 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15421 DUALCASE
=1; export DUALCASE
# for MKS sh
15423 # Support unset when possible.
15424 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15431 # Work around bugs in pre-3.0 UWIN ksh.
15432 $as_unset ENV MAIL MAILPATH
15439 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15440 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15441 LC_TELEPHONE LC_TIME
15443 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15444 eval $as_var=C
; export $as_var
15450 # Required to use basename.
15451 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15457 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15458 as_basename
=basename
15464 # Name of the executable.
15465 as_me
=`$as_basename "$0" ||
15466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15467 X"$0" : 'X\(//\)$' \| \
15468 X"$0" : 'X\(/\)$' \| \
15469 . : '\(.\)' 2>/dev/null ||
15471 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15472 /^X\/\(\/\/\)$/{ s//\1/; q; }
15473 /^X\/\(\/\).*/{ s//\1/; q; }
15477 # PATH needs CR, and LINENO needs CR and PATH.
15478 # Avoid depending upon Character Ranges.
15479 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15480 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15481 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15482 as_cr_digits
='0123456789'
15483 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15485 # The user is always right.
15486 if test "${PATH_SEPARATOR+set}" != set; then
15487 echo "#! /bin/sh" >conf$$.sh
15488 echo "exit 0" >>conf$$.sh
15490 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15499 as_lineno_1
=$LINENO
15500 as_lineno_2
=$LINENO
15501 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15502 test "x$as_lineno_1" != "x$as_lineno_2" &&
15503 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15504 # Find who we are. Look in the path if we contain no path at all
15507 *[\\/]* ) as_myself
=$0 ;;
15508 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15509 for as_dir
in $PATH
15512 test -z "$as_dir" && as_dir
=.
15513 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15518 # We did not find ourselves, most probably we were run as `sh COMMAND'
15519 # in which case we are not to be found in the path.
15520 if test "x$as_myself" = x
; then
15523 if test ! -f "$as_myself"; then
15524 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15525 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15526 { (exit 1); exit 1; }; }
15528 case $CONFIG_SHELL in
15530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15531 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15534 test -z "$as_dir" && as_dir
=.
15535 for as_base
in sh bash ksh sh5
; do
15538 if ("$as_dir/$as_base" -c '
15539 as_lineno_1=$LINENO
15540 as_lineno_2=$LINENO
15541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15542 test "x$as_lineno_1" != "x$as_lineno_2" &&
15543 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15544 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15545 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15546 CONFIG_SHELL
=$as_dir/$as_base
15547 export CONFIG_SHELL
15548 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15556 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15557 # uniformly replaced by the line number. The first 'sed' inserts a
15558 # line-number line before each line; the second 'sed' does the real
15559 # work. The second script uses 'N' to pair each line-number line
15560 # with the numbered line, and appends trailing '-' during
15561 # substitution so that $LINENO is not a special case at line end.
15562 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15563 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15564 sed '=' <$as_myself |
15569 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15572 s,^['$as_cr_digits']*\n,,
15573 ' >$as_me.lineno
&&
15574 chmod +x
$as_me.lineno ||
15575 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15576 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15577 { (exit 1); exit 1; }; }
15579 # Don't try to exec as it changes $[0], causing all sort of problems
15580 # (the dirname of $[0] is not the place where we might find the
15581 # original and so on. Autoconf is especially sensible to this).
15583 # Exit status is that of the last command.
15588 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15589 *c
*,-n*) ECHO_N
= ECHO_C
='
15591 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15592 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15595 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15601 rm -f conf$$ conf$$.exe conf$$.
file
15603 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15604 # We could just check for DJGPP; but this test a) works b) is more generic
15605 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15606 if test -f conf$$.exe
; then
15607 # Don't use ln at all; we don't have any links
15612 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15617 rm -f conf$$ conf$$.exe conf$$.
file
15619 if mkdir
-p .
2>/dev
/null
; then
15622 test -d .
/-p && rmdir .
/-p
15626 as_executable_p
="test -f"
15628 # Sed expression to map a string onto a valid CPP name.
15629 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15631 # Sed expression to map a string onto a valid variable name.
15632 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15636 # We need space, tab and new line, in precisely that order.
15646 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15647 # report actual input values of CONFIG_FILES etc. instead of their
15648 # values after options handling. Logging --version etc. is OK.
15652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15653 ## Running $as_me. ##
15658 This file was extended by $as_me, which was
15659 generated by GNU Autoconf 2.59. Invocation command line was
15661 CONFIG_FILES = $CONFIG_FILES
15662 CONFIG_HEADERS = $CONFIG_HEADERS
15663 CONFIG_LINKS = $CONFIG_LINKS
15664 CONFIG_COMMANDS = $CONFIG_COMMANDS
15668 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15672 # Files that config.status was made for.
15673 if test -n "$ac_config_files"; then
15674 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15677 if test -n "$ac_config_headers"; then
15678 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15681 if test -n "$ac_config_links"; then
15682 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15685 if test -n "$ac_config_commands"; then
15686 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15689 cat >>$CONFIG_STATUS <<\_ACEOF
15692 \`$as_me' instantiates files from templates according to the
15693 current configuration.
15695 Usage: $0 [OPTIONS] [FILE]...
15697 -h, --help print this help, then exit
15698 -V, --version print version number, then exit
15699 -q, --quiet do not print progress messages
15700 -d, --debug don't remove temporary files
15701 --recheck update $as_me by reconfiguring in the same conditions
15702 --file=FILE[:TEMPLATE]
15703 instantiate the configuration file FILE
15704 --header=FILE[:TEMPLATE]
15705 instantiate the configuration header FILE
15707 Configuration files:
15710 Configuration headers:
15713 Configuration commands:
15716 Report bugs to <bug-autoconf@gnu.org>."
15719 cat >>$CONFIG_STATUS <<_ACEOF
15722 configured by $0, generated by GNU Autoconf 2.59,
15723 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15725 Copyright (C) 2003 Free Software Foundation, Inc.
15726 This config.status script is free software; the Free Software Foundation
15727 gives unlimited permission to copy, distribute and modify it."
15731 cat >>$CONFIG_STATUS <<\_ACEOF
15732 # If no file are specified by the user, then we need to provide default
15733 # value. By we need to know if files were specified by the user.
15739 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15740 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15748 *) # This is not an option, so the user has probably given explicit
15751 ac_need_defaults
=false
;;
15755 # Handling of the options.
15757 cat >>$CONFIG_STATUS <<\_ACEOF
15758 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15760 --version |
--vers* |
-V )
15761 echo "$ac_cs_version"; exit 0 ;;
15763 # Conflict between --help and --header
15764 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15765 Try \`$0 --help' for more information." >&5
15766 echo "$as_me: error: ambiguous option: $1
15767 Try \`$0 --help' for more information." >&2;}
15768 { (exit 1); exit 1; }; };;
15769 --help |
--hel |
-h )
15770 echo "$ac_cs_usage"; exit 0 ;;
15771 --debug |
--d* |
-d )
15773 --file |
--fil |
--fi |
--f )
15775 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15776 ac_need_defaults
=false
;;
15777 --header |
--heade |
--head |
--hea )
15779 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15780 ac_need_defaults
=false
;;
15781 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15782 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15785 # This is an error.
15786 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15787 Try \`$0 --help' for more information." >&5
15788 echo "$as_me: error: unrecognized option: $1
15789 Try \`$0 --help' for more information." >&2;}
15790 { (exit 1); exit 1; }; } ;;
15792 *) ac_config_targets
="$ac_config_targets $1" ;;
15798 ac_configure_extra_args
=
15800 if $ac_cs_silent; then
15802 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15806 cat >>$CONFIG_STATUS <<_ACEOF
15807 if \$ac_cs_recheck; then
15808 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15809 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15814 cat >>$CONFIG_STATUS <<_ACEOF
15816 # INIT-COMMANDS section.
15825 cat >>$CONFIG_STATUS <<\_ACEOF
15826 for ac_config_target
in $ac_config_targets
15828 case "$ac_config_target" in
15829 # Handling of arguments.
15830 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
15831 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15832 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
15833 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15834 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15835 { (exit 1); exit 1; }; };;
15839 # If the user did not use the arguments to specify the items to instantiate,
15840 # then the envvar interface is used. Set only those that are not.
15841 # We use the long form for the default assignment because of an extremely
15842 # bizarre bug on SunOS 4.1.3.
15843 if $ac_need_defaults; then
15844 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15845 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15846 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15849 # Have a temporary directory for convenience. Make it in the build tree
15850 # simply because there is no reason to put it here, and in addition,
15851 # creating and moving files from /tmp can sometimes cause problems.
15852 # Create a temporary directory, and hook for its removal unless debugging.
15855 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15856 trap '{ (exit 1); exit 1; }' 1 2 13 15
15859 # Create a (secure) tmp directory for tmp files.
15862 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15863 test -n "$tmp" && test -d "$tmp"
15866 tmp
=.
/confstat$$
-$RANDOM
15867 (umask 077 && mkdir
$tmp)
15870 echo "$me: cannot create a temporary directory in ." >&2
15871 { (exit 1); exit 1; }
15876 cat >>$CONFIG_STATUS <<_ACEOF
15879 # CONFIG_FILES section.
15882 # No need to generate the scripts if there are no CONFIG_FILES.
15883 # This happens for instance when ./config.status config.h
15884 if test -n "\$CONFIG_FILES"; then
15885 # Protect against being on the right side of a sed subst in config.status.
15886 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15887 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15888 s,@SHELL@,$SHELL,;t t
15889 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15890 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15891 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15892 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15893 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15894 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15895 s,@exec_prefix@,$exec_prefix,;t t
15896 s,@prefix@,$prefix,;t t
15897 s,@program_transform_name@,$program_transform_name,;t t
15898 s,@bindir@,$bindir,;t t
15899 s,@sbindir@,$sbindir,;t t
15900 s,@libexecdir@,$libexecdir,;t t
15901 s,@datadir@,$datadir,;t t
15902 s,@sysconfdir@,$sysconfdir,;t t
15903 s,@sharedstatedir@,$sharedstatedir,;t t
15904 s,@localstatedir@,$localstatedir,;t t
15905 s,@libdir@,$libdir,;t t
15906 s,@includedir@,$includedir,;t t
15907 s,@oldincludedir@,$oldincludedir,;t t
15908 s,@infodir@,$infodir,;t t
15909 s,@mandir@,$mandir,;t t
15910 s,@build_alias@,$build_alias,;t t
15911 s,@host_alias@,$host_alias,;t t
15912 s,@target_alias@,$target_alias,;t t
15913 s,@DEFS@,$DEFS,;t t
15914 s,@ECHO_C@,$ECHO_C,;t t
15915 s,@ECHO_N@,$ECHO_N,;t t
15916 s,@ECHO_T@,$ECHO_T,;t t
15917 s,@LIBS@,$LIBS,;t t
15918 s,@build@,$build,;t t
15919 s,@build_cpu@,$build_cpu,;t t
15920 s,@build_vendor@,$build_vendor,;t t
15921 s,@build_os@,$build_os,;t t
15922 s,@host@,$host,;t t
15923 s,@host_cpu@,$host_cpu,;t t
15924 s,@host_vendor@,$host_vendor,;t t
15925 s,@host_os@,$host_os,;t t
15926 s,@target@,$target,;t t
15927 s,@target_cpu@,$target_cpu,;t t
15928 s,@target_vendor@,$target_vendor,;t t
15929 s,@target_os@,$target_os,;t t
15930 s,@target_noncanonical@,$target_noncanonical,;t t
15931 s,@build_subdir@,$build_subdir,;t t
15932 s,@host_subdir@,$host_subdir,;t t
15933 s,@target_subdir@,$target_subdir,;t t
15934 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15935 s,@gcc_version_full@,$gcc_version_full,;t t
15936 s,@gcc_version@,$gcc_version,;t t
15937 s,@GENINSRC@,$GENINSRC,;t t
15939 s,@CFLAGS@,$CFLAGS,;t t
15940 s,@LDFLAGS@,$LDFLAGS,;t t
15941 s,@CPPFLAGS@,$CPPFLAGS,;t t
15942 s,@ac_ct_CC@,$ac_ct_CC,;t t
15943 s,@EXEEXT@,$EXEEXT,;t t
15944 s,@OBJEXT@,$OBJEXT,;t t
15945 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15946 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15948 s,@EGREP@,$EGREP,;t t
15949 s,@strict1_warn@,$strict1_warn,;t t
15950 s,@warn_cflags@,$warn_cflags,;t t
15951 s,@WERROR@,$WERROR,;t t
15952 s,@nocommon_flag@,$nocommon_flag,;t t
15953 s,@TREEBROWSER@,$TREEBROWSER,;t t
15954 s,@valgrind_path@,$valgrind_path,;t t
15955 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15956 s,@valgrind_command@,$valgrind_command,;t t
15957 s,@coverage_flags@,$coverage_flags,;t t
15958 s,@enable_multilib@,$enable_multilib,;t t
15959 s,@enable_shared@,$enable_shared,;t t
15960 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15961 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15962 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15963 s,@onestep@,$onestep,;t t
15964 s,@SET_MAKE@,$SET_MAKE,;t t
15966 s,@LN_S@,$LN_S,;t t
15968 s,@RANLIB@,$RANLIB,;t t
15969 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15970 s,@ranlib_flags@,$ranlib_flags,;t t
15971 s,@INSTALL@,$INSTALL,;t t
15972 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15973 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15974 s,@make_compare_target@,$make_compare_target,;t t
15975 s,@have_mktemp_command@,$have_mktemp_command,;t t
15976 s,@MAKEINFO@,$MAKEINFO,;t t
15977 s,@BUILD_INFO@,$BUILD_INFO,;t t
15978 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15979 s,@FLEX@,$FLEX,;t t
15980 s,@BISON@,$BISON,;t t
15983 s,@stage1_cflags@,$stage1_cflags,;t t
15984 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15985 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15986 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15987 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
15988 s,@LIBICONV@,$LIBICONV,;t t
15989 s,@LTLIBICONV@,$LTLIBICONV,;t t
15990 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
15991 s,@manext@,$manext,;t t
15992 s,@objext@,$objext,;t t
15993 s,@gthread_flags@,$gthread_flags,;t t
15994 s,@extra_modes_file@,$extra_modes_file,;t t
15995 s,@PACKAGE@,$PACKAGE,;t t
15996 s,@VERSION@,$VERSION,;t t
15997 s,@USE_NLS@,$USE_NLS,;t t
15998 s,@LIBINTL@,$LIBINTL,;t t
15999 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16000 s,@INCINTL@,$INCINTL,;t t
16001 s,@XGETTEXT@,$XGETTEXT,;t t
16002 s,@GMSGFMT@,$GMSGFMT,;t t
16003 s,@POSUB@,$POSUB,;t t
16004 s,@CATALOGS@,$CATALOGS,;t t
16005 s,@cc_for_cross_gnattools@,$cc_for_cross_gnattools,;t t
16006 s,@CROSS@,$CROSS,;t t
16008 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16009 s,@inhibit_libc@,$inhibit_libc,;t t
16010 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16011 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16012 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16013 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16014 s,@collect2@,$collect2,;t t
16015 s,@libgcc_visibility@,$libgcc_visibility,;t t
16017 s,@zlibdir@,$zlibdir,;t t
16018 s,@zlibinc@,$zlibinc,;t t
16019 s,@MAINT@,$MAINT,;t t
16020 s,@gcc_tooldir@,$gcc_tooldir,;t t
16021 s,@dollar@,$dollar,;t t
16022 s,@slibdir@,$slibdir,;t t
16023 s,@objdir@,$objdir,;t t
16024 s,@subdirs@,$subdirs,;t t
16025 s,@srcdir@,$srcdir,;t t
16026 s,@all_boot_languages@,$all_boot_languages,;t t
16027 s,@all_compilers@,$all_compilers,;t t
16028 s,@all_gtfiles@,$all_gtfiles,;t t
16029 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16030 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16031 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16032 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16033 s,@all_languages@,$all_languages,;t t
16034 s,@all_stagestuff@,$all_stagestuff,;t t
16035 s,@build_exeext@,$build_exeext,;t t
16036 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16037 s,@build_xm_file_list@,$build_xm_file_list,;t t
16038 s,@build_xm_include_list@,$build_xm_include_list,;t t
16039 s,@build_xm_defines@,$build_xm_defines,;t t
16040 s,@check_languages@,$check_languages,;t t
16041 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16042 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16043 s,@cpp_install_dir@,$cpp_install_dir,;t t
16044 s,@xmake_file@,$xmake_file,;t t
16045 s,@tmake_file@,$tmake_file,;t t
16046 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16047 s,@extra_headers_list@,$extra_headers_list,;t t
16048 s,@extra_objs@,$extra_objs,;t t
16049 s,@extra_parts@,$extra_parts,;t t
16050 s,@extra_passes@,$extra_passes,;t t
16051 s,@extra_programs@,$extra_programs,;t t
16052 s,@float_h_file@,$float_h_file,;t t
16053 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16054 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16055 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16056 s,@host_exeext@,$host_exeext,;t t
16057 s,@host_xm_file_list@,$host_xm_file_list,;t t
16058 s,@host_xm_include_list@,$host_xm_include_list,;t t
16059 s,@host_xm_defines@,$host_xm_defines,;t t
16060 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16061 s,@install@,$install,;t t
16062 s,@lang_opt_files@,$lang_opt_files,;t t
16063 s,@lang_specs_files@,$lang_specs_files,;t t
16064 s,@lang_tree_files@,$lang_tree_files,;t t
16065 s,@local_prefix@,$local_prefix,;t t
16066 s,@md_file@,$md_file,;t t
16067 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16068 s,@out_file@,$out_file,;t t
16069 s,@out_object_file@,$out_object_file,;t t
16070 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16071 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16072 s,@thread_file@,$thread_file,;t t
16073 s,@tm_file_list@,$tm_file_list,;t t
16074 s,@tm_include_list@,$tm_include_list,;t t
16075 s,@tm_defines@,$tm_defines,;t t
16076 s,@tm_p_file_list@,$tm_p_file_list,;t t
16077 s,@tm_p_include_list@,$tm_p_include_list,;t t
16078 s,@xm_file_list@,$xm_file_list,;t t
16079 s,@xm_include_list@,$xm_include_list,;t t
16080 s,@xm_defines@,$xm_defines,;t t
16081 s,@c_target_objs@,$c_target_objs,;t t
16082 s,@cxx_target_objs@,$cxx_target_objs,;t t
16083 s,@target_cpu_default@,$target_cpu_default,;t t
16084 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16085 s,@GMPLIBS@,$GMPLIBS,;t t
16086 s,@GMPINC@,$GMPINC,;t t
16087 s,@LIBOBJS@,$LIBOBJS,;t t
16088 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16089 /@language_hooks@/r $language_hooks
16090 s,@language_hooks@,,;t t
16095 cat >>$CONFIG_STATUS <<\_ACEOF
16096 # Split the substitutions into bite-sized pieces for seds with
16097 # small command number limits, like on Digital OSF/1 and HP-UX.
16098 ac_max_sed_lines
=48
16099 ac_sed_frag
=1 # Number of current file.
16100 ac_beg
=1 # First line for current file.
16101 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16104 while $ac_more_lines; do
16105 if test $ac_beg -gt 1; then
16106 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16108 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16110 if test ! -s $tmp/subs.frag
; then
16111 ac_more_lines
=false
16113 # The purpose of the label and of the branching condition is to
16114 # speed up the sed processing (if there are no `@' at all, there
16115 # is no need to browse any of the substitutions).
16116 # These are the two extra sed commands mentioned above.
16118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16119 if test -z "$ac_sed_cmds"; then
16120 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16122 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16124 ac_sed_frag
=`expr $ac_sed_frag + 1`
16126 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16129 if test -z "$ac_sed_cmds"; then
16132 fi # test -n "$CONFIG_FILES"
16135 cat >>$CONFIG_STATUS <<\_ACEOF
16136 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16137 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16139 - |
*:- |
*:-:* ) # input from stdin
16141 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16142 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16143 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16144 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16145 * ) ac_file_in
=$ac_file.
in ;;
16148 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16149 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16151 X"$ac_file" : 'X\(//\)[^/]' \| \
16152 X"$ac_file" : 'X\(//\)$' \| \
16153 X"$ac_file" : 'X\(/\)' \| \
16154 . : '\(.\)' 2>/dev/null ||
16156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16158 /^X\(\/\/\)$/{ s//\1/; q; }
16159 /^X\(\/\).*/{ s//\1/; q; }
16161 { if $as_mkdir_p; then
16166 while test ! -d "$as_dir"; do
16167 as_dirs
="$as_dir $as_dirs"
16168 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16170 X"$as_dir" : 'X\(//\)[^/]' \| \
16171 X"$as_dir" : 'X\(//\)$' \| \
16172 X"$as_dir" : 'X\(/\)' \| \
16173 . : '\(.\)' 2>/dev/null ||
16175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16177 /^X\(\/\/\)$/{ s//\1/; q; }
16178 /^X\(\/\).*/{ s//\1/; q; }
16181 test ! -n "$as_dirs" || mkdir
$as_dirs
16182 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16183 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16184 { (exit 1); exit 1; }; }; }
16188 if test "$ac_dir" != .
; then
16189 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16190 # A "../" for each directory in $ac_dir_suffix.
16191 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16193 ac_dir_suffix
= ac_top_builddir
=
16197 .
) # No --srcdir option. We are building in place.
16199 if test -z "$ac_top_builddir"; then
16202 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16204 [\\/]* | ?
:[\\/]* ) # Absolute path.
16205 ac_srcdir
=$srcdir$ac_dir_suffix;
16206 ac_top_srcdir
=$srcdir ;;
16207 *) # Relative path.
16208 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16209 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16212 # Do not use `cd foo && pwd` to compute absolute paths, because
16213 # the directories may not exist.
16215 .
) ac_abs_builddir
="$ac_dir";;
16218 .
) ac_abs_builddir
=`pwd`;;
16219 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16220 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16223 case $ac_abs_builddir in
16224 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16226 case ${ac_top_builddir}.
in
16227 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16228 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16229 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16232 case $ac_abs_builddir in
16233 .
) ac_abs_srcdir
=$ac_srcdir;;
16236 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16237 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16238 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16241 case $ac_abs_builddir in
16242 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16244 case $ac_top_srcdir in
16245 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16246 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16247 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16253 # Let's still pretend it is `configure' which instantiates (i.e., don't
16254 # use $as_me), people would be surprised to read:
16255 # /* config.h. Generated by config.status. */
16256 if test x
"$ac_file" = x-
; then
16259 configure_input
="$ac_file. "
16261 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16262 sed 's,.*/,,'` by configure."
16264 # First look for the input files in the build tree, otherwise in the
16266 ac_file_inputs
=`IFS=:
16267 for f in $ac_file_in; do
16269 -) echo $tmp/stdin ;;
16271 # Absolute (can't be DOS-style, as IFS=:)
16272 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16273 echo "$as_me: error: cannot find input file: $f" >&2;}
16274 { (exit 1); exit 1; }; }
16277 if test -f "$f"; then
16280 elif test -f "$srcdir/$f"; then
16285 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16286 echo "$as_me: error: cannot find input file: $f" >&2;}
16287 { (exit 1); exit 1; }; }
16290 done` ||
{ (exit 1); exit 1; }
16292 if test x
"$ac_file" != x-
; then
16293 { echo "$as_me:$LINENO: creating $ac_file" >&5
16294 echo "$as_me: creating $ac_file" >&6;}
16298 cat >>$CONFIG_STATUS <<_ACEOF
16302 cat >>$CONFIG_STATUS <<\_ACEOF
16304 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16305 s
,@configure_input@
,$configure_input,;t t
16306 s
,@srcdir@
,$ac_srcdir,;t t
16307 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16308 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16309 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16310 s
,@builddir@
,$ac_builddir,;t t
16311 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16312 s
,@top_builddir@
,$ac_top_builddir,;t t
16313 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16314 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16316 if test x"$ac_file" != x-; then
16317 mv $tmp/out $ac_file
16325 cat >>$CONFIG_STATUS <<\_ACEOF
16328 # CONFIG_HEADER section.
16331 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16332 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16334 # ac_d sets the value in "#define NAME VALUE" lines.
16335 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16336 ac_dB
='[ ].*$,\1#\2'
16339 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16340 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16341 ac_uB
='$,\1#\2define\3'
16345 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16348 - |
*:- |
*:-:* ) # input from stdin
16350 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16351 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16352 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16353 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16354 * ) ac_file_in
=$ac_file.
in ;;
16357 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16358 echo "$as_me: creating $ac_file" >&6;}
16360 # First look for the input files in the build tree, otherwise in the
16362 ac_file_inputs
=`IFS=:
16363 for f in $ac_file_in; do
16365 -) echo $tmp/stdin ;;
16367 # Absolute (can't be DOS-style, as IFS=:)
16368 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16369 echo "$as_me: error: cannot find input file: $f" >&2;}
16370 { (exit 1); exit 1; }; }
16371 # Do quote $f, to prevent DOS paths from being IFS'd.
16374 if test -f "$f"; then
16377 elif test -f "$srcdir/$f"; then
16382 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16383 echo "$as_me: error: cannot find input file: $f" >&2;}
16384 { (exit 1); exit 1; }; }
16387 done` ||
{ (exit 1); exit 1; }
16388 # Remove the trailing spaces.
16389 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16393 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16394 # `conftest.undefs', that substitutes the proper values into
16395 # config.h.in to produce config.h. The first handles `#define'
16396 # templates, and the second `#undef' templates.
16397 # And first: Protect against being on the right side of a sed subst in
16398 # config.status. Protect against being in an unquoted here document
16399 # in config.status.
16400 rm -f conftest.defines conftest.undefs
16401 # Using a here document instead of a string reduces the quoting nightmare.
16402 # Putting comments in sed scripts is not portable.
16404 # `end' is used to avoid that the second main sed command (meant for
16405 # 0-ary CPP macros) applies to n-ary macro definitions.
16406 # See the Autoconf documentation for `clear'.
16407 cat >confdef2sed.
sed <<\_ACEOF
16412 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16414 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16417 # If some macros were called several times there might be several times
16418 # the same #defines, which is useless. Nevertheless, we may not want to
16419 # sort them, since we want the *last* AC-DEFINE to be honored.
16420 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16421 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16422 rm -f confdef2sed.sed
16424 # This sed command replaces #undef with comments. This is necessary, for
16425 # example, in the case of _POSIX_SOURCE, which is predefined and required
16426 # on some systems where configure will not decide to define it.
16427 cat >>conftest.undefs <<\_ACEOF
16428 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16431 # Break up conftest.defines because some shells have a limit on the size
16432 # of here documents, and old seds have small limits too (100 cmds).
16433 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16434 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16435 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16436 echo ' :' >>$CONFIG_STATUS
16437 rm -f conftest.tail
16438 while grep . conftest.defines >/dev/null
16440 # Write a limited-size here document to $tmp/defines.sed.
16441 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16442 # Speed up: don't consider the non `#define' lines.
16443 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16444 # Work around the forget-to-reset-the-flag bug.
16445 echo 't clr' >>$CONFIG_STATUS
16446 echo ': clr' >>$CONFIG_STATUS
16447 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16449 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16451 mv $tmp/out $tmp/in
16453 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16454 rm -f conftest.defines
16455 mv conftest.
tail conftest.defines
16457 rm -f conftest.defines
16458 echo ' fi # grep' >>$CONFIG_STATUS
16459 echo >>$CONFIG_STATUS
16461 # Break up conftest.undefs because some shells have a limit on the size
16462 # of here documents, and old seds have small limits too (100 cmds).
16463 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16464 rm -f conftest.
tail
16465 while grep . conftest.undefs
>/dev
/null
16467 # Write a limited-size here document to $tmp/undefs.sed.
16468 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16469 # Speed up: don't consider the non
`#undef'
16470 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16471 # Work around the forget-to-reset-the-flag bug.
16472 echo 't clr' >>$CONFIG_STATUS
16473 echo ': clr' >>$CONFIG_STATUS
16474 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16476 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16478 mv $tmp/out $tmp/in
16480 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16481 rm -f conftest.undefs
16482 mv conftest.tail conftest.undefs
16484 rm -f conftest.undefs
16486 cat >>$CONFIG_STATUS <<\_ACEOF
16487 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16488 # use $as_me), people would be surprised to read:
16489 # /* config.h. Generated by config.status. */
16490 if test x
"$ac_file" = x-
; then
16491 echo "/* Generated by configure. */" >$tmp/config.h
16493 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16495 cat $tmp/in >>$tmp/config.h
16497 if test x
"$ac_file" != x-
; then
16498 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16499 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16500 echo "$as_me: $ac_file is unchanged" >&6;}
16502 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16504 X"$ac_file" : 'X\(//\)[^/]' \| \
16505 X"$ac_file" : 'X\(//\)$' \| \
16506 X"$ac_file" : 'X\(/\)' \| \
16507 . : '\(.\)' 2>/dev/null ||
16509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16511 /^X\(\/\/\)$/{ s//\1/; q; }
16512 /^X\(\/\).*/{ s//\1/; q; }
16514 { if $as_mkdir_p; then
16519 while test ! -d "$as_dir"; do
16520 as_dirs
="$as_dir $as_dirs"
16521 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16523 X"$as_dir" : 'X\(//\)[^/]' \| \
16524 X"$as_dir" : 'X\(//\)$' \| \
16525 X"$as_dir" : 'X\(/\)' \| \
16526 . : '\(.\)' 2>/dev/null ||
16528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16530 /^X\(\/\/\)$/{ s//\1/; q; }
16531 /^X\(\/\).*/{ s//\1/; q; }
16534 test ! -n "$as_dirs" || mkdir
$as_dirs
16535 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16536 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16537 { (exit 1); exit 1; }; }; }
16540 mv $tmp/config.h
$ac_file
16544 rm -f $tmp/config.h
16548 cat >>$CONFIG_STATUS <<\_ACEOF
16551 # CONFIG_COMMANDS section.
16553 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16554 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16555 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16556 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16557 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16558 X"$ac_dest" : 'X\(//\)[^/]' \| \
16559 X"$ac_dest" : 'X\(//\)$' \| \
16560 X"$ac_dest" : 'X\(/\)' \| \
16561 . : '\(.\)' 2>/dev/null ||
16563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16565 /^X\(\/\/\)$/{ s//\1/; q; }
16566 /^X\(\/\).*/{ s//\1/; q; }
16568 { if $as_mkdir_p; then
16573 while test ! -d "$as_dir"; do
16574 as_dirs
="$as_dir $as_dirs"
16575 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16577 X"$as_dir" : 'X\(//\)[^/]' \| \
16578 X"$as_dir" : 'X\(//\)$' \| \
16579 X"$as_dir" : 'X\(/\)' \| \
16580 . : '\(.\)' 2>/dev/null ||
16582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16584 /^X\(\/\/\)$/{ s//\1/; q; }
16585 /^X\(\/\).*/{ s//\1/; q; }
16588 test ! -n "$as_dirs" || mkdir
$as_dirs
16589 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16591 { (exit 1); exit 1; }; }; }
16595 if test "$ac_dir" != .
; then
16596 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16597 # A "../" for each directory in $ac_dir_suffix.
16598 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16600 ac_dir_suffix
= ac_top_builddir
=
16604 .
) # No --srcdir option. We are building in place.
16606 if test -z "$ac_top_builddir"; then
16609 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16611 [\\/]* | ?
:[\\/]* ) # Absolute path.
16612 ac_srcdir
=$srcdir$ac_dir_suffix;
16613 ac_top_srcdir
=$srcdir ;;
16614 *) # Relative path.
16615 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16616 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16619 # Do not use `cd foo && pwd` to compute absolute paths, because
16620 # the directories may not exist.
16622 .
) ac_abs_builddir
="$ac_dir";;
16625 .
) ac_abs_builddir
=`pwd`;;
16626 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16627 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16630 case $ac_abs_builddir in
16631 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16633 case ${ac_top_builddir}.
in
16634 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16635 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16636 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16639 case $ac_abs_builddir in
16640 .
) ac_abs_srcdir
=$ac_srcdir;;
16643 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16644 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16645 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16648 case $ac_abs_builddir in
16649 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16651 case $ac_top_srcdir in
16652 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16653 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16654 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16659 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16660 echo "$as_me: executing $ac_dest commands" >&6;}
16663 case ${CONFIG_HEADERS} in
16664 *auto-host.h
:config.
in*)
16667 # Make sure all the subdirs exist.
16668 for d
in $subdirs doc build
16670 test -d $d || mkdir
$d
16672 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16673 # bootstrapping and the installation procedure can still use
16674 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16675 # FLAGS_TO_PASS has been modified to solve the problem there.
16676 # This is virtually a duplicate of what happens in configure.lang; we do
16677 # an extra check to make sure this only happens if ln -s can be used.
16680 for d
in ${subdirs} ; do
16681 STARTDIR
=`${PWDCMD-pwd}`
16683 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16686 $LN_S ..
/$t $t 2>/dev
/null
16697 cat >>$CONFIG_STATUS <<\_ACEOF
16699 { (exit 0); exit 0; }
16701 chmod +x
$CONFIG_STATUS
16702 ac_clean_files
=$ac_clean_files_save
16705 # configure is writing to config.log, and then calls config.status.
16706 # config.status does its own redirection, appending to config.log.
16707 # Unfortunately, on DOS this fails, as config.log is still kept open
16708 # by configure, so config.status won't be able to write to it; its
16709 # output is simply discarded. So we exec the FD to /dev/null,
16710 # effectively closing config.log, so it can be properly (re)opened and
16711 # appended to by config.status. When coming back to configure, we
16712 # need to make the FD available again.
16713 if test "$no_create" != yes; then
16715 ac_config_status_args
=
16716 test "$silent" = yes &&
16717 ac_config_status_args
="$ac_config_status_args --quiet"
16719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16722 # would make configure fail if this is the last instruction.
16723 $ac_cs_success ||
{ (exit 1); exit 1; }