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 host_cc_for_libada 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 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1521 if ( test $srcdir = . && test -d gcc ) \
1522 || test -d $srcdir/../host-${host_noncanonical}; then
1523 host_subdir="host-${host_noncanonical}"
1528 target_subdir=${target_noncanonical}
1531 # Set program_transform_name
1532 test "$program_prefix" != NONE &&
1533 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1534 # Use a double $ so make ignores it.
1535 test "$program_suffix" != NONE &&
1536 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1537 # Double any \ or $. echo might interpret backslashes.
1538 # By default was `s,x,x', remove it
if useless.
1539 cat <<\_ACEOF
>conftest.
sed
1540 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1542 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1546 # Check for bogus environment variables.
1547 # Test if LIBRARY_PATH contains the notation for the current directory
1548 # since this would lead to problems installing/building glibc.
1549 # LIBRARY_PATH contains the current directory if one of the following
1551 # - one of the terminals (":" and ";") is the first or last sign
1552 # - two terminals occur directly after each other
1553 # - the path contains an element with a dot in it
1554 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1555 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1556 case ${LIBRARY_PATH} in
1557 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1558 library_path_setting
="contains current directory"
1561 library_path_setting
="ok"
1564 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1565 echo "${ECHO_T}$library_path_setting" >&6
1566 if test "$library_path_setting" != "ok"; then
1567 { { echo "$as_me:$LINENO: error:
1568 *** LIBRARY_PATH shouldn't contain the current directory when
1569 *** building gcc. Please change the environment variable
1570 *** and run configure again." >&5
1571 echo "$as_me: error:
1572 *** LIBRARY_PATH shouldn't contain the current directory when
1573 *** building gcc. Please change the environment variable
1574 *** and run configure again." >&2;}
1575 { (exit 1); exit 1; }; }
1578 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # GCC_EXEC_PREFIX contains the current directory if one of the following
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1586 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1587 case ${GCC_EXEC_PREFIX} in
1588 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1589 gcc_exec_prefix_setting
="contains current directory"
1592 gcc_exec_prefix_setting
="ok"
1595 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1596 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1597 if test "$gcc_exec_prefix_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1610 if test "${with_gcc_version_trigger+set}" = set; then
1611 gcc_version_trigger
=$with_gcc_version_trigger
1613 gcc_version_trigger
=$srcdir/..
/gcc
/version.c
1615 if test -f "${gcc_version_trigger}"; then
1616 gcc_version_full
=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1618 gcc_version_full
=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1620 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1630 # Specify the local prefix
1633 # Check whether --with-local-prefix or --without-local-prefix was given.
1634 if test "${with_local_prefix+set}" = set; then
1635 withval
="$with_local_prefix"
1636 case "${withval}" in
1637 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1638 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1639 { (exit 1); exit 1; }; } ;;
1641 *) local_prefix
=$with_local_prefix ;;
1645 # Default local prefix if it is empty
1646 if test x
$local_prefix = x
; then
1647 local_prefix
=/usr
/local
1650 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1651 # passed in by the toplevel make and thus we'd get different behavior
1652 # depending on where we built the sources.
1653 gcc_gxx_include_dir
=
1654 # Specify the g++ header file directory
1656 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1657 if test "${with_gxx_include_dir+set}" = set; then
1658 withval
="$with_gxx_include_dir"
1659 case "${withval}" in
1660 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1661 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1662 { (exit 1); exit 1; }; } ;;
1664 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1668 if test x
${gcc_gxx_include_dir} = x
; then
1669 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1670 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1672 libstdcxx_incdir
=c
++/${gcc_version}
1673 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1678 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1679 if test "${with_cpp_install_dir+set}" = set; then
1680 withval
="$with_cpp_install_dir"
1681 if test x
$withval = xyes
; then
1682 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1683 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1684 { (exit 1); exit 1; }; }
1685 elif test x
$withval != xno
; then
1686 cpp_install_dir
=$withval
1690 # We would like to our source tree to be readonly. However when releases or
1691 # pre-releases are generated, the flex/bison generated files as well as the
1692 # various formats of manuals need to be included along with the rest of the
1693 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1696 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1697 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1698 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1699 if test "${enable_generated_files_in_srcdir+set}" = set; then
1700 enableval
="$enable_generated_files_in_srcdir"
1701 generated_files_in_srcdir
=$enableval
1703 generated_files_in_srcdir
=no
1706 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1707 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1709 if test "$generated_files_in_srcdir" = "yes"; then
1716 # -------------------
1717 # Find default linker
1718 # -------------------
1722 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1723 if test "${with_gnu_ld+set}" = set; then
1724 withval
="$with_gnu_ld"
1725 gnu_ld_flag
="$with_gnu_ld"
1730 # With pre-defined ld
1732 # Check whether --with-ld or --without-ld was given.
1733 if test "${with_ld+set}" = set; then
1735 DEFAULT_LINKER
="$with_ld"
1737 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1738 if test ! -x "$DEFAULT_LINKER"; then
1739 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1740 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1741 { (exit 1); exit 1; }; }
1742 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1746 cat >>confdefs.h
<<_ACEOF
1747 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1752 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1753 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1754 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1755 if test x
"$gnu_ld_flag" = x
"no"; then
1756 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1757 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1759 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1760 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 # With demangler in GNU ld
1769 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1770 if test "${with_demangler_in_ld+set}" = set; then
1771 withval
="$with_demangler_in_ld"
1772 demangler_in_ld
="$with_demangler_in_ld"
1777 # ----------------------
1778 # Find default assembler
1779 # ----------------------
1783 # Check whether --with-gnu-as or --without-gnu-as was given.
1784 if test "${with_gnu_as+set}" = set; then
1785 withval
="$with_gnu_as"
1786 gas_flag
="$with_gnu_as"
1792 # Check whether --with-as or --without-as was given.
1793 if test "${with_as+set}" = set; then
1795 DEFAULT_ASSEMBLER
="$with_as"
1797 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1798 if test ! -x "$DEFAULT_ASSEMBLER"; then
1799 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1800 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1801 { (exit 1); exit 1; }; }
1802 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1806 cat >>confdefs.h
<<_ACEOF
1807 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1812 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1813 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1814 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1815 if test x
"$gas_flag" = x
"no"; then
1816 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1817 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1819 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1820 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1831 # If a non-executable a.out is present (e.g. created by GNU as above even if
1832 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1833 # file, even when creating an executable, so an execution test fails.
1834 # Remove possible default executable files to avoid this.
1836 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1837 # Autoconf includes it.
1838 rm -f a.out a.exe b.out
1840 # Find the native compiler
1842 ac_cpp
='$CPP $CPPFLAGS'
1843 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1848 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC
="$CC" # Let the user override the test.
1857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1861 test -z "$as_dir" && as_dir
=.
1862 for ac_exec_ext
in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 if test -n "$CC"; then
1875 echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1883 if test -z "$ac_cv_prog_CC"; then
1885 # Extract the first word of "gcc", so it can be a program name with args.
1886 set dummy gcc
; ac_word
=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$ac_ct_CC"; then
1893 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir
=.
1900 for ac_exec_ext
in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_CC
="gcc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1912 if test -n "$ac_ct_CC"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914 echo "${ECHO_T}$ac_ct_CC" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1925 if test -z "$CC"; then
1926 if test -n "$ac_tool_prefix"; then
1927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1928 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC
="$CC" # Let the user override the test.
1937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir
=.
1942 for ac_exec_ext
in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 if test -n "$CC"; then
1955 echo "$as_me:$LINENO: result: $CC" >&5
1956 echo "${ECHO_T}$CC" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1963 if test -z "$ac_cv_prog_CC"; then
1965 # Extract the first word of "cc", so it can be a program name with args.
1966 set dummy cc
; ac_word
=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$ac_ct_CC"; then
1973 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir
=.
1980 for ac_exec_ext
in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_ac_ct_CC
="cc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1992 if test -n "$ac_ct_CC"; then
1993 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1994 echo "${ECHO_T}$ac_ct_CC" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc
; ac_word
=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC
="$CC" # Let the user override the test.
2018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir
=.
2023 for ac_exec_ext
in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026 ac_prog_rejected
=yes
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test $ac_prog_rejected = yes; then
2037 # We found a bogon in the path, so make sure we never use it.
2038 set dummy
$ac_cv_prog_CC
2040 if test $# != 0; then
2041 # We chose a different compiler from the bogus one.
2042 # However, it has the same basename, so the bogon will be chosen
2043 # first if we set CC to just the basename; use the full file name.
2045 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2060 if test -z "$CC"; then
2061 if test -n "$ac_tool_prefix"; then
2064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2065 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 if test -n "$CC"; then
2072 ac_cv_prog_CC
="$CC" # Let the user override the test.
2074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2078 test -z "$as_dir" && as_dir
=.
2079 for ac_exec_ext
in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 if test -n "$CC"; then
2092 echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2099 test -n "$CC" && break
2102 if test -z "$CC"; then
2106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy
$ac_prog; ac_word
=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir
=.
2121 for ac_exec_ext
in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_ac_ct_CC
="$ac_prog"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2133 if test -n "$ac_ct_CC"; then
2134 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135 echo "${ECHO_T}$ac_ct_CC" >&6
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2141 test -n "$ac_ct_CC" && break
2150 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: no acceptable C compiler found in \$PATH
2153 See \`config.log' for more details." >&2;}
2154 { (exit 1); exit 1; }; }
2156 # Provide some information about the compiler.
2157 echo "$as_me:$LINENO:" \
2158 "checking for C compiler version" >&5
2159 ac_compiler
=`set X $ac_compile; echo $2`
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2161 (eval $ac_compiler --version </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); }
2170 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2171 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }
2176 cat >conftest.
$ac_ext <<_ACEOF
2179 cat confdefs.h
>>conftest.
$ac_ext
2180 cat >>conftest.
$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2191 ac_clean_files_save
=$ac_clean_files
2192 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2193 # Try to create an executable without -o first, disregard a.out.
2194 # It will help us diagnose broken compilers, and finding out an intuition
2196 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2198 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2200 (eval $ac_link_default) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 # Find the output, starting from the most likely. This scheme is
2205 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2208 # Be careful to initialize this variable, since it used to be cached.
2209 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2211 # b.out is created by i960 compilers.
2212 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2214 test -f "$ac_file" ||
continue
2216 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2219 # This is the source file.
2222 # We found the default executable, but exeext='' is most
2226 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # FIXME: I believe we export ac_cv_exeext for Libtool,
2228 # but it would be cool to find out if it's true. Does anybody
2229 # maintain Libtool? --akim.
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.
$ac_ext >&5
2240 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: C compiler cannot create executables
2243 See \`config.log' for more details." >&2;}
2244 { (exit 77); exit 77; }; }
2247 ac_exeext
=$ac_cv_exeext
2248 echo "$as_me:$LINENO: result: $ac_file" >&5
2249 echo "${ECHO_T}$ac_file" >&6
2251 # Check the compiler produces executables we can run. If not, either
2252 # the compiler is broken, or we cross compile.
2253 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256 # If not cross compiling, check that we can run a simple program.
2257 if test "$cross_compiling" != yes; then
2258 if { ac_try
='./$ac_file'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2266 if test "$cross_compiling" = maybe
; then
2269 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2279 echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6
2282 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2283 ac_clean_files
=$ac_clean_files_save
2284 # Check the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2288 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289 echo "${ECHO_T}$cross_compiling" >&6
2291 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294 (eval $ac_link) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 for ac_file
in conftest.exe conftest conftest.
*; do
2303 test -f "$ac_file" ||
continue
2305 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2306 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2320 rm -f conftest
$ac_cv_exeext
2321 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6
2324 rm -f conftest.
$ac_ext
2325 EXEEXT
=$ac_cv_exeext
2327 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2329 if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.
$ac_ext <<_ACEOF
2335 cat confdefs.h
>>conftest.
$ac_ext
2336 cat >>conftest.
$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2347 rm -f conftest.o conftest.obj
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2355 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2356 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.
$ac_ext >&5
2364 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2371 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2373 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2374 echo "${ECHO_T}$ac_cv_objext" >&6
2375 OBJEXT
=$ac_cv_objext
2377 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2378 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2379 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 cat >conftest.
$ac_ext <<_ACEOF
2385 cat confdefs.h
>>conftest.
$ac_ext
2386 cat >>conftest.
$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2400 rm -f conftest.
$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1
>conftest.err
2406 cat conftest.err
>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try
='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.
$ac_ext >&5
2428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2429 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2432 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2434 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS
=${CFLAGS+set}
2436 ac_save_CFLAGS
=$CFLAGS
2438 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2439 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2440 if test "${ac_cv_prog_cc_g+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 cat >conftest.
$ac_ext <<_ACEOF
2446 cat confdefs.h
>>conftest.
$ac_ext
2447 cat >>conftest.
$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2458 rm -f conftest.
$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>conftest.er1
2462 grep -v '^ *+' conftest.er1
>conftest.err
2464 cat conftest.err
>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try
='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.
$ac_ext >&5
2486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2488 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2490 if test "$ac_test_CFLAGS" = set; then
2491 CFLAGS
=$ac_save_CFLAGS
2492 elif test $ac_cv_prog_cc_g = yes; then
2493 if test "$GCC" = yes; then
2499 if test "$GCC" = yes; then
2505 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2506 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2507 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 ac_cv_prog_cc_stdc
=no
2512 cat >conftest.
$ac_ext <<_ACEOF
2515 cat confdefs.h
>>conftest.
$ac_ext
2516 cat >>conftest.
$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2520 #include <sys/types.h>
2521 #include <sys/stat.h>
2522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2523 struct buf { int x; };
2524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2525 static char *e (p, i)
2531 static char *f (char * (*g) (char **, int), char **p, ...)
2536 s = g (p, va_arg (v,int));
2541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2542 function prototypes and stuff, but not '\xHH' hex character constants.
2543 These don't provoke an error unfortunately, instead are silently treated
2544 as 'x'. The following induces an error, until -std1 is added to get
2545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2546 array size at least. It's necessary to write '\x00'==0 to get something
2547 that's true only with -std1. */
2548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2550 int test (int i, double x);
2551 struct s1 {int (*f) (int a);};
2552 struct s2 {int (*f) (double a);};
2553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2564 # Don't try gcc -ansi; that turns off useful extensions and
2565 # breaks some systems' header files.
2566 # AIX -qlanglvl=ansi
2567 # Ultrix and OSF/1 -std1
2568 # HP-UX 10.20 and later -Ae
2569 # HP-UX older versions -Aa -D_HPUX_SOURCE
2570 # SVR4 -Xc -D__EXTENSIONS__
2571 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2573 CC
="$ac_save_CC $ac_arg"
2574 rm -f conftest.
$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2578 grep -v '^ *+' conftest.er1
>conftest.err
2580 cat conftest.err
>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try
='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 ac_cv_prog_cc_stdc
=$ac_arg
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.
$ac_ext >&5
2602 rm -f conftest.err conftest.
$ac_objext
2604 rm -f conftest.
$ac_ext conftest.
$ac_objext
2609 case "x$ac_cv_prog_cc_stdc" in
2611 echo "$as_me:$LINENO: result: none needed" >&5
2612 echo "${ECHO_T}none needed" >&6 ;;
2614 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2615 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2616 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2619 # Some people use a C++ compiler to compile C. Since we use `exit',
2620 # in C++ we need to declare it. In case someone uses the same compiler
2621 # for both compiling C and C++ we need to have the C++ compiler decide
2622 # the declaration of exit, since it's the most demanding environment.
2623 cat >conftest.
$ac_ext <<_ACEOF
2628 rm -f conftest.
$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2632 grep -v '^ *+' conftest.er1
>conftest.err
2634 cat conftest.err
>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try
='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 for ac_declaration
in \
2651 'extern "C" void std::exit (int) throw (); using std::exit;' \
2652 'extern "C" void std::exit (int); using std::exit;' \
2653 'extern "C" void exit (int) throw ();' \
2654 'extern "C" void exit (int);' \
2657 cat >conftest.
$ac_ext <<_ACEOF
2660 cat confdefs.h
>>conftest.
$ac_ext
2661 cat >>conftest.
$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2673 rm -f conftest.
$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>conftest.er1
2677 grep -v '^ *+' conftest.er1
>conftest.err
2679 cat conftest.err
>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try
='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.
$ac_ext >&5
2701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2702 cat >conftest.
$ac_ext <<_ACEOF
2705 cat confdefs.h
>>conftest.
$ac_ext
2706 cat >>conftest.
$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2717 rm -f conftest.
$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2721 grep -v '^ *+' conftest.er1
>conftest.err
2723 cat conftest.err
>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try
='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.
$ac_ext >&5
2744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2747 if test -n "$ac_declaration"; then
2748 echo '#ifdef __cplusplus' >>confdefs.h
2749 echo $ac_declaration >>confdefs.h
2750 echo '#endif' >>confdefs.h
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.
$ac_ext >&5
2758 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2760 ac_cpp
='$CPP $CPPFLAGS'
2761 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2765 if test "x$CC" != xcc
; then
2766 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2767 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2769 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2770 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2772 set dummy
$CC; ac_cc
=`echo $2 |
2773 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2774 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 cat >conftest.
$ac_ext <<_ACEOF
2780 cat confdefs.h
>>conftest.
$ac_ext
2781 cat >>conftest.
$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2792 # Make sure it works both with $CC and with simple cc.
2793 # We do the test twice because some compilers refuse to overwrite an
2794 # existing .o file with -o, though they will create one.
2795 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2796 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); };
2807 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2808 if test "x$CC" != xcc
; then
2809 # Test first that cc exists at all.
2810 if { ac_try
='cc -c conftest.$ac_ext >&5'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2817 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); };
2831 # cc exists but doesn't like -o.
2832 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2837 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2842 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2843 echo "$as_me:$LINENO: result: yes" >&5
2844 echo "${ECHO_T}yes" >&6
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2849 cat >>confdefs.h
<<\_ACEOF
2850 #define NO_MINUS_C_MINUS_O 1
2855 # expand $ac_aux_dir to an absolute path
2856 am_aux_dir
=`cd $ac_aux_dir && pwd`
2858 # FIXME: we rely on the cache variable name because
2859 # there is no other way.
2861 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2862 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2863 # Losing compiler, so override with the script.
2864 # FIXME: It is wrong to rewrite CC.
2865 # But if we don't then we get into trouble of one sort or another.
2866 # A longer-term fix would be to have automake use am__CC in this case,
2867 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2868 CC
="$am_aux_dir/compile $CC"
2871 # autoconf is lame and doesn't give us any substitution variable for this.
2872 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2873 NO_MINUS_C_MINUS_O
=yes
2875 OUTPUT_OPTION
='-o $@'
2880 # -------------------------
2881 # Check C compiler features
2882 # -------------------------
2885 ac_cpp
='$CPP $CPPFLAGS'
2886 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2889 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2890 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2891 # On Suns, sometimes $CPP names a directory.
2892 if test -n "$CPP" && test -d "$CPP"; then
2895 if test -z "$CPP"; then
2896 if test "${ac_cv_prog_CPP+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 # Double quotes because CPP needs to be expanded
2900 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2903 for ac_c_preproc_warn_flag
in '' yes
2905 # Use a header file that comes with gcc, so configuring glibc
2906 # with a fresh cross-compiler works.
2907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2908 # <limits.h> exists even on freestanding compilers.
2909 # On the NeXT, cc -E runs the code through the compiler's parser,
2910 # not just through cpp. "Syntax error" is here to catch this case.
2911 cat >conftest.
$ac_ext <<_ACEOF
2914 cat confdefs.h
>>conftest.
$ac_ext
2915 cat >>conftest.
$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2918 # include <limits.h>
2920 # include <assert.h>
2924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2925 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2927 grep -v '^ *+' conftest.er1
>conftest.err
2929 cat conftest.err
>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } >/dev
/null
; then
2932 if test -s conftest.err
; then
2933 ac_cpp_err
=$ac_c_preproc_warn_flag
2934 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2941 if test -z "$ac_cpp_err"; then
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.
$ac_ext >&5
2947 # Broken: fails on valid input.
2950 rm -f conftest.err conftest.
$ac_ext
2952 # OK, works on sane cases. Now check whether non-existent headers
2953 # can be detected and how.
2954 cat >conftest.
$ac_ext <<_ACEOF
2957 cat confdefs.h
>>conftest.
$ac_ext
2958 cat >>conftest.
$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 #include <ac_nonexistent.h>
2962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2963 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2965 grep -v '^ *+' conftest.er1
>conftest.err
2967 cat conftest.err
>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } >/dev
/null
; then
2970 if test -s conftest.err
; then
2971 ac_cpp_err
=$ac_c_preproc_warn_flag
2972 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2979 if test -z "$ac_cpp_err"; then
2980 # Broken: success on invalid input.
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.
$ac_ext >&5
2986 # Passes both tests.
2990 rm -f conftest.err conftest.
$ac_ext
2993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2994 rm -f conftest.err conftest.
$ac_ext
2995 if $ac_preproc_ok; then
3007 echo "$as_me:$LINENO: result: $CPP" >&5
3008 echo "${ECHO_T}$CPP" >&6
3010 for ac_c_preproc_warn_flag
in '' yes
3012 # Use a header file that comes with gcc, so configuring glibc
3013 # with a fresh cross-compiler works.
3014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3015 # <limits.h> exists even on freestanding compilers.
3016 # On the NeXT, cc -E runs the code through the compiler's parser,
3017 # not just through cpp. "Syntax error" is here to catch this case.
3018 cat >conftest.
$ac_ext <<_ACEOF
3021 cat confdefs.h
>>conftest.
$ac_ext
3022 cat >>conftest.
$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3025 # include <limits.h>
3027 # include <assert.h>
3031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3032 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3034 grep -v '^ *+' conftest.er1
>conftest.err
3036 cat conftest.err
>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } >/dev
/null
; then
3039 if test -s conftest.err
; then
3040 ac_cpp_err
=$ac_c_preproc_warn_flag
3041 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3048 if test -z "$ac_cpp_err"; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.
$ac_ext >&5
3054 # Broken: fails on valid input.
3057 rm -f conftest.err conftest.
$ac_ext
3059 # OK, works on sane cases. Now check whether non-existent headers
3060 # can be detected and how.
3061 cat >conftest.
$ac_ext <<_ACEOF
3064 cat confdefs.h
>>conftest.
$ac_ext
3065 cat >>conftest.
$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 #include <ac_nonexistent.h>
3069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3070 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3072 grep -v '^ *+' conftest.er1
>conftest.err
3074 cat conftest.err
>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } >/dev
/null
; then
3077 if test -s conftest.err
; then
3078 ac_cpp_err
=$ac_c_preproc_warn_flag
3079 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3086 if test -z "$ac_cpp_err"; then
3087 # Broken: success on invalid input.
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.
$ac_ext >&5
3093 # Passes both tests.
3097 rm -f conftest.err conftest.
$ac_ext
3100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3101 rm -f conftest.err conftest.
$ac_ext
3102 if $ac_preproc_ok; then
3105 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3106 See \`config.log' for more details." >&5
3107 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3108 See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3113 ac_cpp
='$CPP $CPPFLAGS'
3114 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3119 echo "$as_me:$LINENO: checking for inline" >&5
3120 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3121 if test "${ac_cv_c_inline+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 for ac_kw
in inline __inline__ __inline
; do
3126 cat >conftest.
$ac_ext <<_ACEOF
3129 cat confdefs.h
>>conftest.
$ac_ext
3130 cat >>conftest.
$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3134 static $ac_kw foo_t static_foo () {return 0; }
3135 $ac_kw foo_t foo () {return 0; }
3139 rm -f conftest.
$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>conftest.er1
3143 grep -v '^ *+' conftest.er1
>conftest.err
3145 cat conftest.err
>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try
='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_c_inline
=$ac_kw; break
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.
$ac_ext >&5
3166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3170 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3171 echo "${ECHO_T}$ac_cv_c_inline" >&6
3174 case $ac_cv_c_inline in
3177 case $ac_cv_c_inline in
3179 *) ac_val
=$ac_cv_c_inline;;
3181 cat >>confdefs.h
<<_ACEOF
3183 #define inline $ac_val
3190 echo "$as_me:$LINENO: checking for long long int" >&5
3191 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3192 if test "${ac_cv_c_long_long+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 cat >conftest.
$ac_ext <<_ACEOF
3198 cat confdefs.h
>>conftest.
$ac_ext
3199 cat >>conftest.
$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3210 rm -f conftest.
$ac_objext
3211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212 (eval $ac_compile) 2>conftest.er1
3214 grep -v '^ *+' conftest.er1
>conftest.err
3216 cat conftest.err
>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } &&
3219 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try
='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 ac_cv_c_long_long
=yes
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.
$ac_ext >&5
3236 ac_cv_c_long_long
=no
3238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3240 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3241 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3242 if test $ac_cv_c_long_long = yes; then
3244 cat >>confdefs.h
<<\_ACEOF
3245 #define HAVE_LONG_LONG 1
3249 echo "$as_me:$LINENO: checking for __int64" >&5
3250 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3251 if test "${ac_cv_c___int64+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.
$ac_ext <<_ACEOF
3257 cat confdefs.h
>>conftest.
$ac_ext
3258 cat >>conftest.
$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3269 rm -f conftest.
$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>conftest.er1
3273 grep -v '^ *+' conftest.er1
>conftest.err
3275 cat conftest.err
>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; } &&
3284 { ac_try
='test -s conftest.$ac_objext'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; }; then
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.
$ac_ext >&5
3297 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3299 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3300 echo "${ECHO_T}$ac_cv_c___int64" >&6
3301 if test $ac_cv_c___int64 = yes; then
3303 cat >>confdefs.h
<<\_ACEOF
3304 #define HAVE___INT64 1
3310 # sizeof(char) is 1 by definition.
3312 echo "$as_me:$LINENO: checking for egrep" >&5
3313 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3314 if test "${ac_cv_prog_egrep+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3318 then ac_cv_prog_egrep
='grep -E'
3319 else ac_cv_prog_egrep
='egrep'
3322 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3323 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3324 EGREP
=$ac_cv_prog_egrep
3327 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3329 if test "${ac_cv_header_stdc+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 cat >conftest.
$ac_ext <<_ACEOF
3335 cat confdefs.h
>>conftest.
$ac_ext
3336 cat >>conftest.
$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3351 rm -f conftest.
$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>conftest.er1
3355 grep -v '^ *+' conftest.er1
>conftest.err
3357 cat conftest.err
>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; } &&
3366 { ac_try
='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_cv_header_stdc
=yes
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.
$ac_ext >&5
3377 ac_cv_header_stdc
=no
3379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3381 if test $ac_cv_header_stdc = yes; then
3382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3383 cat >conftest.
$ac_ext <<_ACEOF
3386 cat confdefs.h
>>conftest.
$ac_ext
3387 cat >>conftest.
$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 $EGREP "memchr" >/dev
/null
2>&1; then
3396 ac_cv_header_stdc
=no
3402 if test $ac_cv_header_stdc = yes; then
3403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3404 cat >conftest.
$ac_ext <<_ACEOF
3407 cat confdefs.h
>>conftest.
$ac_ext
3408 cat >>conftest.
$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 $EGREP "free" >/dev
/null
2>&1; then
3417 ac_cv_header_stdc
=no
3423 if test $ac_cv_header_stdc = yes; then
3424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3425 if test "$cross_compiling" = yes; then
3428 cat >conftest.
$ac_ext <<_ACEOF
3431 cat confdefs.h
>>conftest.
$ac_ext
3432 cat >>conftest.
$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3435 #if ((' ' & 0x0FF) == 0x020)
3436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3439 # define ISLOWER(c) \
3440 (('a' <= (c) && (c) <= 'i') \
3441 || ('j' <= (c) && (c) <= 'r') \
3442 || ('s' <= (c) && (c) <= 'z'))
3443 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3451 for (i = 0; i < 256; i++)
3452 if (XOR (islower (i), ISLOWER (i))
3453 || toupper (i) != TOUPPER (i))
3458 rm -f conftest
$ac_exeext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460 (eval $ac_link) 2>&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3471 echo "$as_me: program exited with status $ac_status" >&5
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.
$ac_ext >&5
3476 ac_cv_header_stdc
=no
3478 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3482 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3483 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3484 if test $ac_cv_header_stdc = yes; then
3486 cat >>confdefs.h
<<\_ACEOF
3487 #define STDC_HEADERS 1
3492 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3502 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3503 inttypes.h stdint.h unistd.h
3505 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3506 echo "$as_me:$LINENO: checking for $ac_header" >&5
3507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 cat >conftest.
$ac_ext <<_ACEOF
3514 cat confdefs.h
>>conftest.
$ac_ext
3515 cat >>conftest.
$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 $ac_includes_default
3519 #include <$ac_header>
3521 rm -f conftest.
$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try
='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 eval "$as_ac_Header=yes"
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.
$ac_ext >&5
3547 eval "$as_ac_Header=no"
3549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3554 cat >>confdefs.h
<<_ACEOF
3555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3563 echo "$as_me:$LINENO: checking for void *" >&5
3564 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3565 if test "${ac_cv_type_void_p+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 cat >conftest.
$ac_ext <<_ACEOF
3571 cat confdefs.h
>>conftest.
$ac_ext
3572 cat >>conftest.
$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 $ac_includes_default
3580 if (sizeof (void *))
3586 rm -f conftest.
$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3590 grep -v '^ *+' conftest.er1
>conftest.err
3592 cat conftest.err
>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try
='test -s conftest.$ac_objext'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3607 ac_cv_type_void_p
=yes
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.
$ac_ext >&5
3612 ac_cv_type_void_p
=no
3614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3616 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3617 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3619 echo "$as_me:$LINENO: checking size of void *" >&5
3620 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3621 if test "${ac_cv_sizeof_void_p+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 if test "$ac_cv_type_void_p" = yes; then
3625 # The cast to unsigned long works around a bug in the HP C Compiler
3626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3628 # This bug is HP SR number 8606223364.
3629 if test "$cross_compiling" = yes; then
3630 # Depending upon the size, compute the lo and hi bounds.
3631 cat >conftest.
$ac_ext <<_ACEOF
3634 cat confdefs.h
>>conftest.
$ac_ext
3635 cat >>conftest.
$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637 $ac_includes_default
3641 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3648 rm -f conftest.
$ac_objext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>conftest.er1
3652 grep -v '^ *+' conftest.er1
>conftest.err
3654 cat conftest.err
>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try
='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3671 cat >conftest.
$ac_ext <<_ACEOF
3674 cat confdefs.h
>>conftest.
$ac_ext
3675 cat >>conftest.
$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 $ac_includes_default
3681 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3688 rm -f conftest.
$ac_objext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>conftest.er1
3692 grep -v '^ *+' conftest.er1
>conftest.err
3694 cat conftest.err
>&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try
='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_hi
=$ac_mid; break
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.
$ac_ext >&5
3714 ac_lo
=`expr $ac_mid + 1`
3715 if test $ac_lo -le $ac_mid; then
3719 ac_mid
=`expr 2 '*' $ac_mid + 1`
3721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.
$ac_ext >&5
3727 cat >conftest.
$ac_ext <<_ACEOF
3730 cat confdefs.h
>>conftest.
$ac_ext
3731 cat >>conftest.
$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 $ac_includes_default
3737 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3744 rm -f conftest.
$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>conftest.er1
3748 grep -v '^ *+' conftest.er1
>conftest.err
3750 cat conftest.err
>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try
='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3767 cat >conftest.
$ac_ext <<_ACEOF
3770 cat confdefs.h
>>conftest.
$ac_ext
3771 cat >>conftest.
$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 $ac_includes_default
3777 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3784 rm -f conftest.
$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1
>conftest.err
3790 cat conftest.err
>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try
='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_lo
=$ac_mid; break
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.
$ac_ext >&5
3810 ac_hi
=`expr '(' $ac_mid ')' - 1`
3811 if test $ac_mid -le $ac_hi; then
3815 ac_mid
=`expr 2 '*' $ac_mid`
3817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.
$ac_ext >&5
3825 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3828 # Binary search between lo and hi bounds.
3829 while test "x$ac_lo" != "x$ac_hi"; do
3830 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3831 cat >conftest.
$ac_ext <<_ACEOF
3834 cat confdefs.h
>>conftest.
$ac_ext
3835 cat >>conftest.
$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 $ac_includes_default
3841 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3848 rm -f conftest.
$ac_objext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>conftest.er1
3852 grep -v '^ *+' conftest.er1
>conftest.err
3854 cat conftest.err
>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try
='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.
$ac_ext >&5
3874 ac_lo
=`expr '(' $ac_mid ')' + 1`
3876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3879 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3880 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3881 See \`config.log' for more details." >&5
3882 echo "$as_me: error: cannot compute sizeof (void *), 77
3883 See \`config.log' for more details." >&2;}
3884 { (exit 1); exit 1; }; } ;;
3887 if test "$cross_compiling" = yes; then
3888 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3889 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3890 { (exit 1); exit 1; }; }
3892 cat >conftest.
$ac_ext <<_ACEOF
3895 cat confdefs.h
>>conftest.
$ac_ext
3896 cat >>conftest.
$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 $ac_includes_default
3899 long longval () { return (long) (sizeof (void *)); }
3900 unsigned long ulongval () { return (long) (sizeof (void *)); }
3907 FILE *f = fopen ("conftest.val", "w");
3910 if (((long) (sizeof (void *))) < 0)
3912 long i = longval ();
3913 if (i != ((long) (sizeof (void *))))
3915 fprintf (f, "%ld\n", i);
3919 unsigned long i = ulongval ();
3920 if (i != ((long) (sizeof (void *))))
3922 fprintf (f, "%lu\n", i);
3924 exit (ferror (f) || fclose (f) != 0);
3930 rm -f conftest
$ac_exeext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 ac_cv_sizeof_void_p
=`cat conftest.val`
3943 echo "$as_me: program exited with status $ac_status" >&5
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.
$ac_ext >&5
3948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3949 See \`config.log' for more details." >&5
3950 echo "$as_me: error: cannot compute sizeof (void *), 77
3951 See \`config.log' for more details." >&2;}
3952 { (exit 1); exit 1; }; }
3954 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3959 ac_cv_sizeof_void_p
=0
3962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3963 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3964 cat >>confdefs.h
<<_ACEOF
3965 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3969 echo "$as_me:$LINENO: checking for short" >&5
3970 echo $ECHO_N "checking for short... $ECHO_C" >&6
3971 if test "${ac_cv_type_short+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 cat >conftest.
$ac_ext <<_ACEOF
3977 cat confdefs.h
>>conftest.
$ac_ext
3978 cat >>conftest.
$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3980 $ac_includes_default
3992 rm -f conftest.
$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1
>conftest.err
3998 cat conftest.err
>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try
='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_type_short
=yes
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.
$ac_ext >&5
4020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4023 echo "${ECHO_T}$ac_cv_type_short" >&6
4025 echo "$as_me:$LINENO: checking size of short" >&5
4026 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4027 if test "${ac_cv_sizeof_short+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test "$ac_cv_type_short" = yes; then
4031 # The cast to unsigned long works around a bug in the HP C Compiler
4032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4034 # This bug is HP SR number 8606223364.
4035 if test "$cross_compiling" = yes; then
4036 # Depending upon the size, compute the lo and hi bounds.
4037 cat >conftest.
$ac_ext <<_ACEOF
4040 cat confdefs.h
>>conftest.
$ac_ext
4041 cat >>conftest.
$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 $ac_includes_default
4047 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4054 rm -f conftest.
$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>conftest.er1
4058 grep -v '^ *+' conftest.er1
>conftest.err
4060 cat conftest.err
>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try
='test -s conftest.$ac_objext'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4077 cat >conftest.
$ac_ext <<_ACEOF
4080 cat confdefs.h
>>conftest.
$ac_ext
4081 cat >>conftest.
$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 $ac_includes_default
4087 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4094 rm -f conftest.
$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>conftest.er1
4098 grep -v '^ *+' conftest.er1
>conftest.err
4100 cat conftest.err
>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } &&
4103 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try
='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 ac_hi
=$ac_mid; break
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.
$ac_ext >&5
4120 ac_lo
=`expr $ac_mid + 1`
4121 if test $ac_lo -le $ac_mid; then
4125 ac_mid
=`expr 2 '*' $ac_mid + 1`
4127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.
$ac_ext >&5
4133 cat >conftest.
$ac_ext <<_ACEOF
4136 cat confdefs.h
>>conftest.
$ac_ext
4137 cat >>conftest.
$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 $ac_includes_default
4143 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4150 rm -f conftest.
$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4154 grep -v '^ *+' conftest.er1
>conftest.err
4156 cat conftest.err
>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try
='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4173 cat >conftest.
$ac_ext <<_ACEOF
4176 cat confdefs.h
>>conftest.
$ac_ext
4177 cat >>conftest.
$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 $ac_includes_default
4183 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4190 rm -f conftest.
$ac_objext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>conftest.er1
4194 grep -v '^ *+' conftest.er1
>conftest.err
4196 cat conftest.err
>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try
='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_lo
=$ac_mid; break
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.
$ac_ext >&5
4216 ac_hi
=`expr '(' $ac_mid ')' - 1`
4217 if test $ac_mid -le $ac_hi; then
4221 ac_mid
=`expr 2 '*' $ac_mid`
4223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.
$ac_ext >&5
4231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4234 # Binary search between lo and hi bounds.
4235 while test "x$ac_lo" != "x$ac_hi"; do
4236 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4237 cat >conftest.
$ac_ext <<_ACEOF
4240 cat confdefs.h
>>conftest.
$ac_ext
4241 cat >>conftest.
$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 $ac_includes_default
4247 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4254 rm -f conftest.
$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>conftest.er1
4258 grep -v '^ *+' conftest.er1
>conftest.err
4260 cat conftest.err
>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try
='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.
$ac_ext >&5
4280 ac_lo
=`expr '(' $ac_mid ')' + 1`
4282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4285 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4287 See \`config.log' for more details." >&5
4288 echo "$as_me: error: cannot compute sizeof (short), 77
4289 See \`config.log' for more details." >&2;}
4290 { (exit 1); exit 1; }; } ;;
4293 if test "$cross_compiling" = yes; then
4294 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4295 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4296 { (exit 1); exit 1; }; }
4298 cat >conftest.
$ac_ext <<_ACEOF
4301 cat confdefs.h
>>conftest.
$ac_ext
4302 cat >>conftest.
$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 $ac_includes_default
4305 long longval () { return (long) (sizeof (short)); }
4306 unsigned long ulongval () { return (long) (sizeof (short)); }
4313 FILE *f = fopen ("conftest.val", "w");
4316 if (((long) (sizeof (short))) < 0)
4318 long i = longval ();
4319 if (i != ((long) (sizeof (short))))
4321 fprintf (f, "%ld\n", i);
4325 unsigned long i = ulongval ();
4326 if (i != ((long) (sizeof (short))))
4328 fprintf (f, "%lu\n", i);
4330 exit (ferror (f) || fclose (f) != 0);
4336 rm -f conftest
$ac_exeext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338 (eval $ac_link) 2>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_sizeof_short
=`cat conftest.val`
4349 echo "$as_me: program exited with status $ac_status" >&5
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.
$ac_ext >&5
4354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4355 See \`config.log' for more details." >&5
4356 echo "$as_me: error: cannot compute sizeof (short), 77
4357 See \`config.log' for more details." >&2;}
4358 { (exit 1); exit 1; }; }
4360 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4365 ac_cv_sizeof_short
=0
4368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4369 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4370 cat >>confdefs.h
<<_ACEOF
4371 #define SIZEOF_SHORT $ac_cv_sizeof_short
4375 echo "$as_me:$LINENO: checking for int" >&5
4376 echo $ECHO_N "checking for int... $ECHO_C" >&6
4377 if test "${ac_cv_type_int+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 cat >conftest.
$ac_ext <<_ACEOF
4383 cat confdefs.h
>>conftest.
$ac_ext
4384 cat >>conftest.
$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 $ac_includes_default
4398 rm -f conftest.
$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>conftest.er1
4402 grep -v '^ *+' conftest.er1
>conftest.err
4404 cat conftest.err
>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try
='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.
$ac_ext >&5
4426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4428 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4429 echo "${ECHO_T}$ac_cv_type_int" >&6
4431 echo "$as_me:$LINENO: checking size of int" >&5
4432 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4433 if test "${ac_cv_sizeof_int+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 if test "$ac_cv_type_int" = yes; then
4437 # The cast to unsigned long works around a bug in the HP C Compiler
4438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4440 # This bug is HP SR number 8606223364.
4441 if test "$cross_compiling" = yes; then
4442 # Depending upon the size, compute the lo and hi bounds.
4443 cat >conftest.
$ac_ext <<_ACEOF
4446 cat confdefs.h
>>conftest.
$ac_ext
4447 cat >>conftest.
$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 $ac_includes_default
4453 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4460 rm -f conftest.
$ac_objext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>conftest.er1
4464 grep -v '^ *+' conftest.er1
>conftest.err
4466 cat conftest.err
>&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try
='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4483 cat >conftest.
$ac_ext <<_ACEOF
4486 cat confdefs.h
>>conftest.
$ac_ext
4487 cat >>conftest.
$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 $ac_includes_default
4493 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4500 rm -f conftest.
$ac_objext
4501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4502 (eval $ac_compile) 2>conftest.er1
4504 grep -v '^ *+' conftest.er1
>conftest.err
4506 cat conftest.err
>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; } &&
4515 { ac_try
='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_hi
=$ac_mid; break
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.
$ac_ext >&5
4526 ac_lo
=`expr $ac_mid + 1`
4527 if test $ac_lo -le $ac_mid; then
4531 ac_mid
=`expr 2 '*' $ac_mid + 1`
4533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.
$ac_ext >&5
4539 cat >conftest.
$ac_ext <<_ACEOF
4542 cat confdefs.h
>>conftest.
$ac_ext
4543 cat >>conftest.
$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 $ac_includes_default
4549 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4556 rm -f conftest.
$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>conftest.er1
4560 grep -v '^ *+' conftest.er1
>conftest.err
4562 cat conftest.err
>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try
='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4579 cat >conftest.
$ac_ext <<_ACEOF
4582 cat confdefs.h
>>conftest.
$ac_ext
4583 cat >>conftest.
$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 $ac_includes_default
4589 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4596 rm -f conftest.
$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1
>conftest.err
4602 cat conftest.err
>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try
='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_lo
=$ac_mid; break
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.
$ac_ext >&5
4622 ac_hi
=`expr '(' $ac_mid ')' - 1`
4623 if test $ac_mid -le $ac_hi; then
4627 ac_mid
=`expr 2 '*' $ac_mid`
4629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.
$ac_ext >&5
4637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4640 # Binary search between lo and hi bounds.
4641 while test "x$ac_lo" != "x$ac_hi"; do
4642 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4643 cat >conftest.
$ac_ext <<_ACEOF
4646 cat confdefs.h
>>conftest.
$ac_ext
4647 cat >>conftest.
$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4653 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4660 rm -f conftest.
$ac_objext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>conftest.er1
4664 grep -v '^ *+' conftest.er1
>conftest.err
4666 cat conftest.err
>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
4669 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try
='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.
$ac_ext >&5
4686 ac_lo
=`expr '(' $ac_mid ')' + 1`
4688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4691 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4693 See \`config.log' for more details." >&5
4694 echo "$as_me: error: cannot compute sizeof (int), 77
4695 See \`config.log' for more details." >&2;}
4696 { (exit 1); exit 1; }; } ;;
4699 if test "$cross_compiling" = yes; then
4700 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4701 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4702 { (exit 1); exit 1; }; }
4704 cat >conftest.
$ac_ext <<_ACEOF
4707 cat confdefs.h
>>conftest.
$ac_ext
4708 cat >>conftest.
$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 $ac_includes_default
4711 long longval () { return (long) (sizeof (int)); }
4712 unsigned long ulongval () { return (long) (sizeof (int)); }
4719 FILE *f = fopen ("conftest.val", "w");
4722 if (((long) (sizeof (int))) < 0)
4724 long i = longval ();
4725 if (i != ((long) (sizeof (int))))
4727 fprintf (f, "%ld\n", i);
4731 unsigned long i = ulongval ();
4732 if (i != ((long) (sizeof (int))))
4734 fprintf (f, "%lu\n", i);
4736 exit (ferror (f) || fclose (f) != 0);
4742 rm -f conftest
$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 ac_cv_sizeof_int
=`cat conftest.val`
4755 echo "$as_me: program exited with status $ac_status" >&5
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.
$ac_ext >&5
4760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4761 See \`config.log' for more details." >&5
4762 echo "$as_me: error: cannot compute sizeof (int), 77
4763 See \`config.log' for more details." >&2;}
4764 { (exit 1); exit 1; }; }
4766 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4774 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4775 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4776 cat >>confdefs.h
<<_ACEOF
4777 #define SIZEOF_INT $ac_cv_sizeof_int
4781 echo "$as_me:$LINENO: checking for long" >&5
4782 echo $ECHO_N "checking for long... $ECHO_C" >&6
4783 if test "${ac_cv_type_long+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 cat >conftest.
$ac_ext <<_ACEOF
4789 cat confdefs.h
>>conftest.
$ac_ext
4790 cat >>conftest.
$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4804 rm -f conftest.
$ac_objext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>conftest.er1
4808 grep -v '^ *+' conftest.er1
>conftest.err
4810 cat conftest.err
>&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try
='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.
$ac_ext >&5
4832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4834 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4835 echo "${ECHO_T}$ac_cv_type_long" >&6
4837 echo "$as_me:$LINENO: checking size of long" >&5
4838 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4839 if test "${ac_cv_sizeof_long+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 if test "$ac_cv_type_long" = yes; then
4843 # The cast to unsigned long works around a bug in the HP C Compiler
4844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4846 # This bug is HP SR number 8606223364.
4847 if test "$cross_compiling" = yes; then
4848 # Depending upon the size, compute the lo and hi bounds.
4849 cat >conftest.
$ac_ext <<_ACEOF
4852 cat confdefs.h
>>conftest.
$ac_ext
4853 cat >>conftest.
$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4859 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4866 rm -f conftest.
$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4870 grep -v '^ *+' conftest.er1
>conftest.err
4872 cat conftest.err
>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try
='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4889 cat >conftest.
$ac_ext <<_ACEOF
4892 cat confdefs.h
>>conftest.
$ac_ext
4893 cat >>conftest.
$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 $ac_includes_default
4899 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4906 rm -f conftest.
$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4910 grep -v '^ *+' conftest.er1
>conftest.err
4912 cat conftest.err
>&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try
='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_hi
=$ac_mid; break
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.
$ac_ext >&5
4932 ac_lo
=`expr $ac_mid + 1`
4933 if test $ac_lo -le $ac_mid; then
4937 ac_mid
=`expr 2 '*' $ac_mid + 1`
4939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.
$ac_ext >&5
4945 cat >conftest.
$ac_ext <<_ACEOF
4948 cat confdefs.h
>>conftest.
$ac_ext
4949 cat >>conftest.
$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 $ac_includes_default
4955 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4962 rm -f conftest.
$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1
>conftest.err
4968 cat conftest.err
>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try
='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4985 cat >conftest.
$ac_ext <<_ACEOF
4988 cat confdefs.h
>>conftest.
$ac_ext
4989 cat >>conftest.
$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 $ac_includes_default
4995 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5002 rm -f conftest.
$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1
>conftest.err
5008 cat conftest.err
>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try
='test -s conftest.$ac_objext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 ac_lo
=$ac_mid; break
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.
$ac_ext >&5
5028 ac_hi
=`expr '(' $ac_mid ')' - 1`
5029 if test $ac_mid -le $ac_hi; then
5033 ac_mid
=`expr 2 '*' $ac_mid`
5035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.
$ac_ext >&5
5043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5046 # Binary search between lo and hi bounds.
5047 while test "x$ac_lo" != "x$ac_hi"; do
5048 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5049 cat >conftest.
$ac_ext <<_ACEOF
5052 cat confdefs.h
>>conftest.
$ac_ext
5053 cat >>conftest.
$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 $ac_includes_default
5059 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5066 rm -f conftest.
$ac_objext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>conftest.er1
5070 grep -v '^ *+' conftest.er1
>conftest.err
5072 cat conftest.err
>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try
='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.
$ac_ext >&5
5092 ac_lo
=`expr '(' $ac_mid ')' + 1`
5094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5097 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5099 See \`config.log' for more details." >&5
5100 echo "$as_me: error: cannot compute sizeof (long), 77
5101 See \`config.log' for more details." >&2;}
5102 { (exit 1); exit 1; }; } ;;
5105 if test "$cross_compiling" = yes; then
5106 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5107 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5108 { (exit 1); exit 1; }; }
5110 cat >conftest.
$ac_ext <<_ACEOF
5113 cat confdefs.h
>>conftest.
$ac_ext
5114 cat >>conftest.
$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5117 long longval () { return (long) (sizeof (long)); }
5118 unsigned long ulongval () { return (long) (sizeof (long)); }
5125 FILE *f = fopen ("conftest.val", "w");
5128 if (((long) (sizeof (long))) < 0)
5130 long i = longval ();
5131 if (i != ((long) (sizeof (long))))
5133 fprintf (f, "%ld\n", i);
5137 unsigned long i = ulongval ();
5138 if (i != ((long) (sizeof (long))))
5140 fprintf (f, "%lu\n", i);
5142 exit (ferror (f) || fclose (f) != 0);
5148 rm -f conftest
$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 ac_cv_sizeof_long
=`cat conftest.val`
5161 echo "$as_me: program exited with status $ac_status" >&5
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.
$ac_ext >&5
5166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5167 See \`config.log' for more details." >&5
5168 echo "$as_me: error: cannot compute sizeof (long), 77
5169 See \`config.log' for more details." >&2;}
5170 { (exit 1); exit 1; }; }
5172 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5180 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5181 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5182 cat >>confdefs.h
<<_ACEOF
5183 #define SIZEOF_LONG $ac_cv_sizeof_long
5187 if test $ac_cv_c_long_long = yes; then
5188 echo "$as_me:$LINENO: checking for long long" >&5
5189 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5190 if test "${ac_cv_type_long_long+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 cat >conftest.
$ac_ext <<_ACEOF
5196 cat confdefs.h
>>conftest.
$ac_ext
5197 cat >>conftest.
$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 $ac_includes_default
5203 if ((long long *) 0)
5205 if (sizeof (long long))
5211 rm -f conftest.
$ac_objext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213 (eval $ac_compile) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1
>conftest.err
5217 cat conftest.err
>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try
='test -s conftest.$ac_objext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_cv_type_long_long
=yes
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.
$ac_ext >&5
5237 ac_cv_type_long_long
=no
5239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5241 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5242 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5244 echo "$as_me:$LINENO: checking size of long long" >&5
5245 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5246 if test "${ac_cv_sizeof_long_long+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 if test "$ac_cv_type_long_long" = yes; then
5250 # The cast to unsigned long works around a bug in the HP C Compiler
5251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5253 # This bug is HP SR number 8606223364.
5254 if test "$cross_compiling" = yes; then
5255 # Depending upon the size, compute the lo and hi bounds.
5256 cat >conftest.
$ac_ext <<_ACEOF
5259 cat confdefs.h
>>conftest.
$ac_ext
5260 cat >>conftest.
$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 $ac_includes_default
5266 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5273 rm -f conftest.
$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>conftest.er1
5277 grep -v '^ *+' conftest.er1
>conftest.err
5279 cat conftest.err
>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try
='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5296 cat >conftest.
$ac_ext <<_ACEOF
5299 cat confdefs.h
>>conftest.
$ac_ext
5300 cat >>conftest.
$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 $ac_includes_default
5306 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5313 rm -f conftest.
$ac_objext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>conftest.er1
5317 grep -v '^ *+' conftest.er1
>conftest.err
5319 cat conftest.err
>&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; } &&
5328 { ac_try
='test -s conftest.$ac_objext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_hi
=$ac_mid; break
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.
$ac_ext >&5
5339 ac_lo
=`expr $ac_mid + 1`
5340 if test $ac_lo -le $ac_mid; then
5344 ac_mid
=`expr 2 '*' $ac_mid + 1`
5346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.
$ac_ext >&5
5352 cat >conftest.
$ac_ext <<_ACEOF
5355 cat confdefs.h
>>conftest.
$ac_ext
5356 cat >>conftest.
$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 $ac_includes_default
5362 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5369 rm -f conftest.
$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5373 grep -v '^ *+' conftest.er1
>conftest.err
5375 cat conftest.err
>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try
='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5392 cat >conftest.
$ac_ext <<_ACEOF
5395 cat confdefs.h
>>conftest.
$ac_ext
5396 cat >>conftest.
$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5402 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5409 rm -f conftest.
$ac_objext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411 (eval $ac_compile) 2>conftest.er1
5413 grep -v '^ *+' conftest.er1
>conftest.err
5415 cat conftest.err
>&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; } &&
5424 { ac_try
='test -s conftest.$ac_objext'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5430 ac_lo
=$ac_mid; break
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.
$ac_ext >&5
5435 ac_hi
=`expr '(' $ac_mid ')' - 1`
5436 if test $ac_mid -le $ac_hi; then
5440 ac_mid
=`expr 2 '*' $ac_mid`
5442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.
$ac_ext >&5
5450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5453 # Binary search between lo and hi bounds.
5454 while test "x$ac_lo" != "x$ac_hi"; do
5455 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5456 cat >conftest.
$ac_ext <<_ACEOF
5459 cat confdefs.h
>>conftest.
$ac_ext
5460 cat >>conftest.
$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 $ac_includes_default
5466 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5473 rm -f conftest.
$ac_objext
5474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475 (eval $ac_compile) 2>conftest.er1
5477 grep -v '^ *+' conftest.er1
>conftest.err
5479 cat conftest.err
>&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; } &&
5488 { ac_try
='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.
$ac_ext >&5
5499 ac_lo
=`expr '(' $ac_mid ')' + 1`
5501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5504 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5505 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5506 See \`config.log' for more details." >&5
5507 echo "$as_me: error: cannot compute sizeof (long long), 77
5508 See \`config.log' for more details." >&2;}
5509 { (exit 1); exit 1; }; } ;;
5512 if test "$cross_compiling" = yes; then
5513 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5514 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5515 { (exit 1); exit 1; }; }
5517 cat >conftest.
$ac_ext <<_ACEOF
5520 cat confdefs.h
>>conftest.
$ac_ext
5521 cat >>conftest.
$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5524 long longval () { return (long) (sizeof (long long)); }
5525 unsigned long ulongval () { return (long) (sizeof (long long)); }
5532 FILE *f = fopen ("conftest.val", "w");
5535 if (((long) (sizeof (long long))) < 0)
5537 long i = longval ();
5538 if (i != ((long) (sizeof (long long))))
5540 fprintf (f, "%ld\n", i);
5544 unsigned long i = ulongval ();
5545 if (i != ((long) (sizeof (long long))))
5547 fprintf (f, "%lu\n", i);
5549 exit (ferror (f) || fclose (f) != 0);
5555 rm -f conftest
$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 ac_cv_sizeof_long_long
=`cat conftest.val`
5568 echo "$as_me: program exited with status $ac_status" >&5
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.
$ac_ext >&5
5573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5574 See \`config.log' for more details." >&5
5575 echo "$as_me: error: cannot compute sizeof (long long), 77
5576 See \`config.log' for more details." >&2;}
5577 { (exit 1); exit 1; }; }
5579 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5584 ac_cv_sizeof_long_long
=0
5587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5588 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5589 cat >>confdefs.h
<<_ACEOF
5590 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5595 if test $ac_cv_c___int64 = yes; then
5596 echo "$as_me:$LINENO: checking for __int64" >&5
5597 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5598 if test "${ac_cv_type___int64+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 cat >conftest.
$ac_ext <<_ACEOF
5604 cat confdefs.h
>>conftest.
$ac_ext
5605 cat >>conftest.
$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 $ac_includes_default
5613 if (sizeof (__int64))
5619 rm -f conftest.
$ac_objext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>conftest.er1
5623 grep -v '^ *+' conftest.er1
>conftest.err
5625 cat conftest.err
>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try
='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_cv_type___int64
=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.
$ac_ext >&5
5645 ac_cv_type___int64
=no
5647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5649 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5650 echo "${ECHO_T}$ac_cv_type___int64" >&6
5652 echo "$as_me:$LINENO: checking size of __int64" >&5
5653 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5654 if test "${ac_cv_sizeof___int64+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 if test "$ac_cv_type___int64" = yes; then
5658 # The cast to unsigned long works around a bug in the HP C Compiler
5659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5661 # This bug is HP SR number 8606223364.
5662 if test "$cross_compiling" = yes; then
5663 # Depending upon the size, compute the lo and hi bounds.
5664 cat >conftest.
$ac_ext <<_ACEOF
5667 cat confdefs.h
>>conftest.
$ac_ext
5668 cat >>conftest.
$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 $ac_includes_default
5674 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5681 rm -f conftest.
$ac_objext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683 (eval $ac_compile) 2>conftest.er1
5685 grep -v '^ *+' conftest.er1
>conftest.err
5687 cat conftest.err
>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; } &&
5696 { ac_try
='test -s conftest.$ac_objext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5704 cat >conftest.
$ac_ext <<_ACEOF
5707 cat confdefs.h
>>conftest.
$ac_ext
5708 cat >>conftest.
$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 $ac_includes_default
5714 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5721 rm -f conftest.
$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>conftest.er1
5725 grep -v '^ *+' conftest.er1
>conftest.err
5727 cat conftest.err
>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try
='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_hi
=$ac_mid; break
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.
$ac_ext >&5
5747 ac_lo
=`expr $ac_mid + 1`
5748 if test $ac_lo -le $ac_mid; then
5752 ac_mid
=`expr 2 '*' $ac_mid + 1`
5754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.
$ac_ext >&5
5760 cat >conftest.
$ac_ext <<_ACEOF
5763 cat confdefs.h
>>conftest.
$ac_ext
5764 cat >>conftest.
$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5770 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5777 rm -f conftest.
$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5781 grep -v '^ *+' conftest.er1
>conftest.err
5783 cat conftest.err
>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try
='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5800 cat >conftest.
$ac_ext <<_ACEOF
5803 cat confdefs.h
>>conftest.
$ac_ext
5804 cat >>conftest.
$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 $ac_includes_default
5810 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5817 rm -f conftest.
$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5821 grep -v '^ *+' conftest.er1
>conftest.err
5823 cat conftest.err
>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try
='test -s conftest.$ac_objext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_lo
=$ac_mid; break
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.
$ac_ext >&5
5843 ac_hi
=`expr '(' $ac_mid ')' - 1`
5844 if test $ac_mid -le $ac_hi; then
5848 ac_mid
=`expr 2 '*' $ac_mid`
5850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.
$ac_ext >&5
5858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5861 # Binary search between lo and hi bounds.
5862 while test "x$ac_lo" != "x$ac_hi"; do
5863 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5864 cat >conftest.
$ac_ext <<_ACEOF
5867 cat confdefs.h
>>conftest.
$ac_ext
5868 cat >>conftest.
$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 $ac_includes_default
5874 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5881 rm -f conftest.
$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>conftest.er1
5885 grep -v '^ *+' conftest.er1
>conftest.err
5887 cat conftest.err
>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try
='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.
$ac_ext >&5
5907 ac_lo
=`expr '(' $ac_mid ')' + 1`
5909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5913 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5914 See \`config.log' for more details." >&5
5915 echo "$as_me: error: cannot compute sizeof (__int64), 77
5916 See \`config.log' for more details." >&2;}
5917 { (exit 1); exit 1; }; } ;;
5920 if test "$cross_compiling" = yes; then
5921 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5922 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5923 { (exit 1); exit 1; }; }
5925 cat >conftest.
$ac_ext <<_ACEOF
5928 cat confdefs.h
>>conftest.
$ac_ext
5929 cat >>conftest.
$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5932 long longval () { return (long) (sizeof (__int64)); }
5933 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5940 FILE *f = fopen ("conftest.val", "w");
5943 if (((long) (sizeof (__int64))) < 0)
5945 long i = longval ();
5946 if (i != ((long) (sizeof (__int64))))
5948 fprintf (f, "%ld\n", i);
5952 unsigned long i = ulongval ();
5953 if (i != ((long) (sizeof (__int64))))
5955 fprintf (f, "%lu\n", i);
5957 exit (ferror (f) || fclose (f) != 0);
5963 rm -f conftest
$ac_exeext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5965 (eval $ac_link) 2>&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 ac_cv_sizeof___int64
=`cat conftest.val`
5976 echo "$as_me: program exited with status $ac_status" >&5
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.
$ac_ext >&5
5981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5982 See \`config.log' for more details." >&5
5983 echo "$as_me: error: cannot compute sizeof (__int64), 77
5984 See \`config.log' for more details." >&2;}
5985 { (exit 1); exit 1; }; }
5987 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5992 ac_cv_sizeof___int64
=0
5995 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5996 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5997 cat >>confdefs.h
<<_ACEOF
5998 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6004 # ---------------------
6005 # Warnings and checking
6006 # ---------------------
6008 # Check $CC warning features (if it's GCC).
6009 # We want to use -pedantic, but we don't want warnings about
6012 # So, we only use -pedantic if we can disable those warnings.
6014 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6015 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6016 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 save_CFLAGS
="$CFLAGS"
6020 CFLAGS
="-Wno-long-long"
6021 cat >conftest.
$ac_ext <<_ACEOF
6024 cat confdefs.h
>>conftest.
$ac_ext
6025 cat >>conftest.
$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6029 rm -f conftest.
$ac_objext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031 (eval $ac_compile) 2>conftest.er1
6033 grep -v '^ *+' conftest.er1
>conftest.err
6035 cat conftest.err
>&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try
='test -s conftest.$ac_objext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_prog_cc_w_no_long_long
=yes
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.
$ac_ext >&5
6055 ac_cv_prog_cc_w_no_long_long
=no
6057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6058 CFLAGS
="$save_CFLAGS"
6061 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6062 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6064 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6065 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6066 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 save_CFLAGS
="$CFLAGS"
6070 CFLAGS
="-Wno-variadic-macros"
6071 cat >conftest.
$ac_ext <<_ACEOF
6074 cat confdefs.h
>>conftest.
$ac_ext
6075 cat >>conftest.
$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6079 rm -f conftest.
$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081 (eval $ac_compile) 2>conftest.er1
6083 grep -v '^ *+' conftest.er1
>conftest.err
6085 cat conftest.err
>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try
='test -s conftest.$ac_objext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_prog_cc_w_no_variadic_macros
=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.
$ac_ext >&5
6105 ac_cv_prog_cc_w_no_variadic_macros
=no
6107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6108 CFLAGS
="$save_CFLAGS"
6111 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6112 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6115 if test $ac_cv_prog_cc_w_no_long_long = yes \
6116 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6117 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6121 # Add -Wold-style-definition if it's accepted
6122 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6123 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6124 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 save_CFLAGS
="$CFLAGS"
6128 CFLAGS
="-Wold-style-definition"
6129 cat >conftest.
$ac_ext <<_ACEOF
6132 cat confdefs.h
>>conftest.
$ac_ext
6133 cat >>conftest.
$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6137 rm -f conftest.
$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>conftest.er1
6141 grep -v '^ *+' conftest.er1
>conftest.err
6143 cat conftest.err
>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try
='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_prog_cc_w_old_style_definition
=yes
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.
$ac_ext >&5
6163 ac_cv_prog_cc_w_old_style_definition
=no
6165 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6166 CFLAGS
="$save_CFLAGS"
6169 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6170 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6171 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6172 strict1_warn
="${strict1_warn} -Wold-style-definition"
6175 # Enable -Werror, period.
6176 # Check whether --enable-werror_always or --disable-werror_always was given.
6177 if test "${enable_werror_always+set}" = set; then
6178 enableval
="$enable_werror_always"
6181 enable_werror_always
=no
6183 if test x
${enable_werror_always} = xyes
; then
6184 strict1_warn
="${strict1_warn} -Werror"
6188 # If the native compiler is GCC, we can enable warnings even in stage1.
6189 # That's useful for people building cross-compilers, or just running a
6192 if test "x$GCC" = "xyes"; then
6193 warn_cflags
='$(GCC_WARN_CFLAGS)'
6197 # Enable -Werror in bootstrap stage2 and later.
6198 # Check whether --enable-werror or --disable-werror was given.
6199 if test "${enable_werror+set}" = set; then
6200 enableval
="$enable_werror"
6203 if test x
$is_release = x
; then
6204 # Default to "yes" on development branches.
6207 # Default to "no" on release branches.
6211 if test x
$enable_werror = xyes
; then
6216 # Enable expensive internal checks
6217 # Check whether --enable-checking or --disable-checking was given.
6218 if test "${enable_checking+set}" = set; then
6219 enableval
="$enable_checking"
6220 ac_checking_flags
="${enableval}"
6223 # Determine the default checks.
6224 if test x
$is_release = x
; then
6225 ac_checking_flags
=yes
6227 ac_checking_flags
=release
6230 ac_assert_checking
=1
6234 ac_rtlflag_checking
=
6236 ac_gc_always_collect
=
6238 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6239 for check
in $ac_checking_flags
6242 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6243 ac_tree_checking
=1 ; ac_gc_checking
=1 ;
6244 ac_rtlflag_checking
=1 ;;
6245 no
) ac_assert_checking
= ; ac_checking
= ;
6246 ac_tree_checking
= ; ac_rtl_checking
= ;
6247 ac_rtlflag_checking
= ; ac_gc_checking
= ;
6248 ac_gc_always_collect
= ; ac_fold_checking
= ;;
6249 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6250 ac_tree_checking
=1 ; ac_rtl_checking
=1 ;
6251 ac_rtlflag_checking
=1 ; ac_gc_checking
=1 ;
6252 ac_gc_always_collect
=1 ; ac_fold_checking
=1 ;;
6253 release
) ac_assert_checking
=1 ;;
6254 assert
) ac_assert_checking
=1 ;;
6255 fold) ac_fold_checking
=1 ;;
6256 gc
) ac_gc_checking
=1 ;;
6257 gcac
) ac_gc_always_collect
=1 ;;
6258 misc
) ac_checking
=1 ;;
6259 rtlflag
) ac_rtlflag_checking
=1 ;;
6260 rtl
) ac_rtl_checking
=1 ;;
6261 tree
) ac_tree_checking
=1 ;;
6262 valgrind
) ac_checking_valgrind
=1 ;;
6263 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6264 echo "$as_me: error: unknown check category $check" >&2;}
6265 { (exit 1); exit 1; }; } ;;
6271 if test x
$ac_checking != x
; then
6273 cat >>confdefs.h
<<\_ACEOF
6274 #define ENABLE_CHECKING 1
6277 nocommon_flag
=-fno-common
6280 if test x
$ac_assert_checking != x
; then
6282 cat >>confdefs.h
<<\_ACEOF
6283 #define ENABLE_ASSERT_CHECKING 1
6287 if test x
$ac_tree_checking != x
; then
6289 cat >>confdefs.h
<<\_ACEOF
6290 #define ENABLE_TREE_CHECKING 1
6293 TREEBROWSER
=tree-browser.o
6296 if test x
$ac_rtl_checking != x
; then
6298 cat >>confdefs.h
<<\_ACEOF
6299 #define ENABLE_RTL_CHECKING 1
6303 if test x
$ac_rtlflag_checking != x
; then
6305 cat >>confdefs.h
<<\_ACEOF
6306 #define ENABLE_RTL_FLAG_CHECKING 1
6310 if test x
$ac_gc_checking != x
; then
6312 cat >>confdefs.h
<<\_ACEOF
6313 #define ENABLE_GC_CHECKING 1
6317 if test x
$ac_gc_always_collect != x
; then
6319 cat >>confdefs.h
<<\_ACEOF
6320 #define ENABLE_GC_ALWAYS_COLLECT 1
6324 if test x
$ac_fold_checking != x
; then
6326 cat >>confdefs.h
<<\_ACEOF
6327 #define ENABLE_FOLD_CHECKING 1
6331 valgrind_path_defines
=
6334 if test "${ac_cv_header_valgrind_h+set}" = set; then
6335 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6336 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6337 if test "${ac_cv_header_valgrind_h+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6341 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6343 # Is the header compilable?
6344 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6345 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6346 cat >conftest.
$ac_ext <<_ACEOF
6349 cat confdefs.h
>>conftest.
$ac_ext
6350 cat >>conftest.
$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 $ac_includes_default
6353 #include <valgrind.h>
6355 rm -f conftest.
$ac_objext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357 (eval $ac_compile) 2>conftest.er1
6359 grep -v '^ *+' conftest.er1
>conftest.err
6361 cat conftest.err
>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try
='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_header_compiler
=yes
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.
$ac_ext >&5
6381 ac_header_compiler
=no
6383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6385 echo "${ECHO_T}$ac_header_compiler" >&6
6387 # Is the header present?
6388 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6389 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 #include <valgrind.h>
6398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6399 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6401 grep -v '^ *+' conftest.er1
>conftest.err
6403 cat conftest.err
>&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } >/dev
/null
; then
6406 if test -s conftest.err
; then
6407 ac_cpp_err
=$ac_c_preproc_warn_flag
6408 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6415 if test -z "$ac_cpp_err"; then
6416 ac_header_preproc
=yes
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.
$ac_ext >&5
6421 ac_header_preproc
=no
6423 rm -f conftest.err conftest.
$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6425 echo "${ECHO_T}$ac_header_preproc" >&6
6427 # So? What about this header?
6428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6430 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6431 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6433 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6434 ac_header_preproc
=yes
6437 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6438 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6440 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6442 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6444 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6446 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6448 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6451 ## ------------------------------------------ ##
6452 ## Report this to the AC_PACKAGE_NAME lists. ##
6453 ## ------------------------------------------ ##
6456 sed "s/^/$as_me: WARNING: /" >&2
6459 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6460 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6461 if test "${ac_cv_header_valgrind_h+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 ac_cv_header_valgrind_h
=$ac_header_preproc
6466 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6467 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6470 if test $ac_cv_header_valgrind_h = yes; then
6478 if test x
$ac_checking_valgrind != x
; then
6479 # It is certainly possible that there's valgrind but no valgrind.h.
6480 # GCC relies on making annotations so we must have both.
6481 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6482 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6483 cat >conftest.
$ac_ext <<_ACEOF
6486 cat confdefs.h
>>conftest.
$ac_ext
6487 cat >>conftest.
$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <valgrind/memcheck.h>
6490 #ifndef VALGRIND_DISCARD
6491 #error VALGRIND_DISCARD not defined
6494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6495 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6497 grep -v '^ *+' conftest.er1
>conftest.err
6499 cat conftest.err
>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } >/dev
/null
; then
6502 if test -s conftest.err
; then
6503 ac_cpp_err
=$ac_c_preproc_warn_flag
6504 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6511 if test -z "$ac_cpp_err"; then
6512 gcc_cv_header_valgrind_memcheck_h
=yes
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.
$ac_ext >&5
6517 gcc_cv_header_valgrind_memcheck_h
=no
6519 rm -f conftest.err conftest.
$ac_ext
6520 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6521 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6522 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6523 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6524 cat >conftest.
$ac_ext <<_ACEOF
6527 cat confdefs.h
>>conftest.
$ac_ext
6528 cat >>conftest.
$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 #include <memcheck.h>
6531 #ifndef VALGRIND_DISCARD
6532 #error VALGRIND_DISCARD not defined
6535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6536 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6538 grep -v '^ *+' conftest.er1
>conftest.err
6540 cat conftest.err
>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } >/dev
/null
; then
6543 if test -s conftest.err
; then
6544 ac_cpp_err
=$ac_c_preproc_warn_flag
6545 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6552 if test -z "$ac_cpp_err"; then
6553 gcc_cv_header_memcheck_h
=yes
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.
$ac_ext >&5
6558 gcc_cv_header_memcheck_h
=no
6560 rm -f conftest.err conftest.
$ac_ext
6561 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6562 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6564 # Prepare PATH_SEPARATOR.
6565 # The user is always right.
6566 if test "${PATH_SEPARATOR+set}" != set; then
6567 echo "#! /bin/sh" >conf$$.sh
6568 echo "exit 0" >>conf$$.sh
6570 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6578 # Find out how to test for executable files. Don't use a zero-byte file,
6579 # as systems may use methods other than mode bits to determine executability.
6580 cat >conf$$.
file <<_ASEOF
6584 chmod +x conf$$.
file
6585 if test -x conf$$.
file >/dev
/null
2>&1; then
6586 ac_executable_p
="test -x"
6588 ac_executable_p
="test -f"
6592 # Extract the first word of "valgrind", so it can be a program name with args.
6593 set dummy valgrind
; ac_word
=$2
6594 echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6596 if test "${ac_cv_path_valgrind_path+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 case "$valgrind_path" in
6601 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6604 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6605 for ac_dir
in $PATH; do
6607 test -z "$ac_dir" && ac_dir
=.
6608 for ac_exec_ext
in '' $ac_executable_extensions; do
6609 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6610 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6611 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6621 valgrind_path
="$ac_cv_path_valgrind_path"
6622 if test -n "$valgrind_path"; then
6623 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6624 echo "${ECHO_T}$valgrind_path" >&6
6626 echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6
6630 if test "x$valgrind_path" = "x" \
6631 ||
(test $have_valgrind_h = no \
6632 && test $gcc_cv_header_memcheck_h = no \
6633 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6634 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6635 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6636 { (exit 1); exit 1; }; }
6638 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6639 valgrind_command
="$valgrind_path -q"
6641 cat >>confdefs.h
<<\_ACEOF
6642 #define ENABLE_VALGRIND_CHECKING 1
6645 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6647 cat >>confdefs.h
<<\_ACEOF
6648 #define HAVE_VALGRIND_MEMCHECK_H 1
6652 if test $gcc_cv_header_memcheck_h = yes; then
6654 cat >>confdefs.h
<<\_ACEOF
6655 #define HAVE_MEMCHECK_H 1
6663 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6664 if test "${enable_mapped_location+set}" = set; then
6665 enableval
="$enable_mapped_location"
6668 enable_mapped_location
=no
6671 if test "$enable_mapped_location" = yes ; then
6673 cat >>confdefs.h
<<\_ACEOF
6674 #define USE_MAPPED_LOCATION 1
6679 # Enable code coverage collection
6680 # Check whether --enable-coverage or --disable-coverage was given.
6681 if test "${enable_coverage+set}" = set; then
6682 enableval
="$enable_coverage"
6683 case "${enableval}" in
6685 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6688 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6691 # a.k.a. --disable-coverage
6695 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6696 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6697 { (exit 1); exit 1; }; }
6705 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6706 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6707 enableval
="$enable_gather_detailed_mem_stats"
6710 enable_gather_detailed_mem_stats
=no
6712 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6714 cat >>confdefs.h
<<\_ACEOF
6715 #define GATHER_STATISTICS 1
6720 # -------------------------------
6721 # Miscenalleous configure options
6722 # -------------------------------
6726 # Check whether --with-stabs or --without-stabs was given.
6727 if test "${with_stabs+set}" = set; then
6728 withval
="$with_stabs"
6734 # Determine whether or not multilibs are enabled.
6735 # Check whether --enable-multilib or --disable-multilib was given.
6736 if test "${enable_multilib+set}" = set; then
6737 enableval
="$enable_multilib"
6744 # Enable __cxa_atexit for C++.
6745 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6746 if test "${enable___cxa_atexit+set}" = set; then
6747 enableval
="$enable___cxa_atexit"
6752 # Pass with no value to take the default
6753 # Pass with a value to specify a thread package
6754 # Check whether --enable-threads or --disable-threads was given.
6755 if test "${enable_threads+set}" = set; then
6756 enableval
="$enable_threads"
6762 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6763 if test "${enable_objc_gc+set}" = set; then
6764 enableval
="$enable_objc_gc"
6765 if test x
$enable_objc_gc = xno
; then
6775 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6776 if test "${with_dwarf2+set}" = set; then
6777 withval
="$with_dwarf2"
6778 dwarf2
="$with_dwarf2"
6783 # Check whether --enable-shared or --disable-shared was given.
6784 if test "${enable_shared+set}" = set; then
6785 enableval
="$enable_shared"
6787 case $enable_shared in
6791 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6792 for pkg
in $enableval; do
6793 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6807 # Check whether --with-sysroot or --without-sysroot was given.
6808 if test "${with_sysroot+set}" = set; then
6809 withval
="$with_sysroot"
6811 case ${with_sysroot} in
6812 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6813 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6816 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6817 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6819 if test "x$exec_prefix" = xNONE
; then
6820 if test "x$prefix" = xNONE
; then
6821 test_prefix
=/usr
/local
6826 test_prefix
=$exec_prefix
6828 case ${TARGET_SYSTEM_ROOT} in
6829 "${test_prefix}"|
"${test_prefix}/"*|\
6830 '${exec_prefix}'|
'${exec_prefix}/'*)
6831 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6832 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6839 TARGET_SYSTEM_ROOT_DEFINE
=
6840 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6847 # Build with intermodule optimisations
6848 # Check whether --enable-intermodule or --disable-intermodule was given.
6849 if test "${enable_intermodule+set}" = set; then
6850 enableval
="$enable_intermodule"
6851 case ${enable_intermodule} in
6852 yes) onestep
="-onestep";;
6860 # Sanity check enable_languages in case someone does not run the toplevel
6861 # configure # script.
6862 # Check whether --enable-languages or --disable-languages was given.
6863 if test "${enable_languages+set}" = set; then
6864 enableval
="$enable_languages"
6865 case ,${enable_languages}, in
6867 # go safe -- we cannot be much sure without the toplevel
6869 # analysis of which target libs are present and usable
6873 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6874 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6875 { (exit 1); exit 1; }; }
6880 enable_languages
=c
,${enable_languages}
6888 for lang
in ${srcdir}/*/config-lang.
in
6891 # The odd quoting in the next line works around
6892 # an apparent bug in bash 1.12 on linux.
6893 ${srcdir}/[*]/config-lang.
in) ;;
6895 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6896 if test "x$lang_alias" = x
6898 echo "$lang doesn't set \$language." 1>&2
6901 case ",$enable_languages," in
6903 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6910 # -------------------------
6911 # Checks for other programs
6912 # -------------------------
6914 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6915 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6916 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6917 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 cat >conftest.
make <<\_ACEOF
6922 @
echo 'ac_maketemp="$(MAKE)"'
6924 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6925 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6926 if test -n "$ac_maketemp"; then
6927 eval ac_cv_prog_make_
${ac_make}_set
=yes
6929 eval ac_cv_prog_make_
${ac_make}_set
=no
6933 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6934 echo "$as_me:$LINENO: result: yes" >&5
6935 echo "${ECHO_T}yes" >&6
6938 echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6
6940 SET_MAKE
="MAKE=${MAKE-make}"
6944 # Find some useful tools
6945 for ac_prog
in gawk mawk nawk
awk
6947 # Extract the first word of "$ac_prog", so it can be a program name with args.
6948 set dummy
$ac_prog; ac_word
=$2
6949 echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6951 if test "${ac_cv_prog_AWK+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 if test -n "$AWK"; then
6955 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir
=.
6962 for ac_exec_ext
in '' $ac_executable_extensions; do
6963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_AWK
="$ac_prog"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 if test -n "$AWK"; then
6975 echo "$as_me:$LINENO: result: $AWK" >&5
6976 echo "${ECHO_T}$AWK" >&6
6978 echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6
6982 test -n "$AWK" && break
6985 # We need awk to create options.c and options.h.
6986 # Bail out if it's missing.
6988 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
6989 echo "$as_me: error: can't build without awk, bailing out" >&2;}
6990 { (exit 1); exit 1; }; } ;;
6993 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6994 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6995 if test "${gcc_cv_prog_LN_S+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 rm -f conftestdata_t
6999 echo >conftestdata_f
7000 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7002 gcc_cv_prog_LN_S
="ln -s"
7004 if ln conftestdata_f conftestdata_t
2>/dev
/null
7008 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7010 gcc_cv_prog_LN_S
="cp -p"
7016 rm -f conftestdata_f conftestdata_t
7019 LN_S
="$gcc_cv_prog_LN_S"
7020 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7021 echo "$as_me:$LINENO: result: yes" >&5
7022 echo "${ECHO_T}yes" >&6
7024 if test "$gcc_cv_prog_LN_S" = "ln"; then
7025 echo "$as_me:$LINENO: result: no, using ln" >&5
7026 echo "${ECHO_T}no, using ln" >&6
7028 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7029 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7033 echo "$as_me:$LINENO: checking whether ln works" >&5
7034 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7035 if test "${acx_cv_prog_LN+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 rm -f conftestdata_t
7039 echo >conftestdata_f
7040 if ln conftestdata_f conftestdata_t
2>/dev
/null
7046 rm -f conftestdata_f conftestdata_t
7049 if test $acx_cv_prog_LN = no
; then
7051 echo "$as_me:$LINENO: result: no, using $LN" >&5
7052 echo "${ECHO_T}no, using $LN" >&6
7054 LN
="$acx_cv_prog_LN"
7055 echo "$as_me:$LINENO: result: yes" >&5
7056 echo "${ECHO_T}yes" >&6
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7061 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7062 echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7064 if test "${ac_cv_prog_RANLIB+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 if test -n "$RANLIB"; then
7068 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir
=.
7075 for ac_exec_ext
in '' $ac_executable_extensions; do
7076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 RANLIB
=$ac_cv_prog_RANLIB
7087 if test -n "$RANLIB"; then
7088 echo "$as_me:$LINENO: result: $RANLIB" >&5
7089 echo "${ECHO_T}$RANLIB" >&6
7091 echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6
7096 if test -z "$ac_cv_prog_RANLIB"; then
7097 ac_ct_RANLIB
=$RANLIB
7098 # Extract the first word of "ranlib", so it can be a program name with args.
7099 set dummy ranlib
; ac_word
=$2
7100 echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 if test -n "$ac_ct_RANLIB"; then
7106 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir
=.
7113 for ac_exec_ext
in '' $ac_executable_extensions; do
7114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7125 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7126 if test -n "$ac_ct_RANLIB"; then
7127 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7128 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7130 echo "$as_me:$LINENO: result: no" >&5
7131 echo "${ECHO_T}no" >&6
7134 RANLIB
=$ac_ct_RANLIB
7136 RANLIB
="$ac_cv_prog_RANLIB"
7141 # By default, the Darwin ranlib will not treat common symbols as
7142 # definitions when building the archive table of contents. Other
7143 # ranlibs do that; pass an option to the Darwin ranlib that makes
7144 # it behave similarly.
7152 # Find a good install program. We prefer a C program (faster),
7153 # so one script is as good as another. But avoid the broken or
7154 # incompatible versions:
7155 # SysV /etc/install, /usr/sbin/install
7156 # SunOS /usr/etc/install
7157 # IRIX /sbin/install
7159 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7160 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7161 # ./install, which can be erroneously created by make from ./install.sh.
7162 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7163 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7164 if test -z "$INSTALL"; then
7165 if test "${ac_cv_path_install+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7169 for ac_dir
in $PATH; do
7170 # Account for people who put trailing slashes in PATH elements.
7172 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7174 # OSF1 and SCO ODT 3.0 have their own names for install.
7175 for ac_prog
in ginstall scoinst
install; do
7176 if test -f $ac_dir/$ac_prog; then
7177 if test $ac_prog = install &&
7178 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7179 # AIX install. It has an incompatible calling convention.
7180 # OSF/1 installbsd also uses dspmsg, but is usable.
7183 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7194 if test "${ac_cv_path_install+set}" = set; then
7195 INSTALL
="$ac_cv_path_install"
7197 # As a last resort, use the slow shell script. We don't cache a
7198 # path for INSTALL within a source directory, because that will
7199 # break other packages using the cache if that directory is
7200 # removed, or if the path is relative.
7201 INSTALL
="$ac_install_sh"
7204 echo "$as_me:$LINENO: result: $INSTALL" >&5
7205 echo "${ECHO_T}$INSTALL" >&6
7207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7208 # It thinks the first close brace ends the variable substitution.
7209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7211 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7214 # See if cmp has --ignore-initial.
7215 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7216 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7217 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 gcc_cv_prog_cmp_skip
=slowcompare
7223 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7224 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7227 gcc_cv_prog_cmp_skip
=gnucompare
7230 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7231 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7232 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7235 gcc_cv_prog_cmp_skip
=fastcompare
7242 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7243 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7244 make_compare_target
=$gcc_cv_prog_cmp_skip
7248 # See if we have the mktemp command.
7249 # Extract the first word of "mktemp", so it can be a program name with args.
7250 set dummy mktemp
; ac_word
=$2
7251 echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7253 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 if test -n "$have_mktemp_command"; then
7257 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir
=.
7264 for ac_exec_ext
in '' $ac_executable_extensions; do
7265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_have_mktemp_command
="yes"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7276 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7277 if test -n "$have_mktemp_command"; then
7278 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7279 echo "${ECHO_T}$have_mktemp_command" >&6
7281 echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7286 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7288 # See if makeinfo has been installed and is modern enough
7289 # that we can use it.
7290 # Extract the first word of "makeinfo", so it can be a program name with args.
7291 set dummy makeinfo
; ac_word
=$2
7292 echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7294 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 if test -n "$MAKEINFO"; then
7298 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir
=.
7305 for ac_exec_ext
in '' $ac_executable_extensions; do
7306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_MAKEINFO
="makeinfo"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 MAKEINFO
=$ac_cv_prog_MAKEINFO
7317 if test -n "$MAKEINFO"; then
7318 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7319 echo "${ECHO_T}$MAKEINFO" >&6
7321 echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7325 if test -n "$MAKEINFO"; then
7326 # Found it, now check the version.
7327 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7328 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7329 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7333 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7334 echo "configure:7334: version of makeinfo is $ac_prog_version" >&5
7335 case $ac_prog_version in
7336 '') gcc_cv_prog_makeinfo_modern
=no
;;
7338 gcc_cv_prog_makeinfo_modern
=yes;;
7339 *) gcc_cv_prog_makeinfo_modern
=no
;;
7343 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7344 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7346 gcc_cv_prog_makeinfo_modern
=no
7349 if test $gcc_cv_prog_makeinfo_modern = no
; then
7350 MAKEINFO
="$MISSING makeinfo"
7351 { echo "$as_me:$LINENO: WARNING:
7352 *** Makeinfo is missing or too old.
7353 *** Info documentation will not be built." >&5
7354 echo "$as_me: WARNING:
7355 *** Makeinfo is missing or too old.
7356 *** Info documentation will not be built." >&2;}
7363 # Is pod2man recent enough to regenerate manpages?
7364 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7365 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7366 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7367 echo "$as_me:$LINENO: result: yes" >&5
7368 echo "${ECHO_T}yes" >&6
7369 GENERATED_MANPAGES
=generated-manpages
7371 echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7380 # Extract the first word of "$ac_prog", so it can be a program name with args.
7381 set dummy
$ac_prog; ac_word
=$2
7382 echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384 if test "${ac_cv_prog_FLEX+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 if test -n "$FLEX"; then
7388 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir
=.
7395 for ac_exec_ext
in '' $ac_executable_extensions; do
7396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_FLEX
="$ac_prog"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 FLEX
=$ac_cv_prog_FLEX
7407 if test -n "$FLEX"; then
7408 echo "$as_me:$LINENO: result: $FLEX" >&5
7409 echo "${ECHO_T}$FLEX" >&6
7411 echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7415 test -n "$FLEX" && break
7417 test -n "$FLEX" || FLEX
="$MISSING flex"
7421 for ac_prog
in bison
7423 # Extract the first word of "$ac_prog", so it can be a program name with args.
7424 set dummy
$ac_prog; ac_word
=$2
7425 echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7427 if test "${ac_cv_prog_BISON+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 if test -n "$BISON"; then
7431 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir
=.
7438 for ac_exec_ext
in '' $ac_executable_extensions; do
7439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_BISON
="$ac_prog"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 BISON
=$ac_cv_prog_BISON
7450 if test -n "$BISON"; then
7451 echo "$as_me:$LINENO: result: $BISON" >&5
7452 echo "${ECHO_T}$BISON" >&6
7454 echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6
7458 test -n "$BISON" && break
7460 test -n "$BISON" || BISON
="$MISSING bison"
7463 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7464 # check for build == host before using them.
7467 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7468 && test -d ..
/binutils
; then
7469 NM
='$(objdir)/../binutils/nm-new'
7471 # Extract the first word of "nm", so it can be a program name with args.
7472 set dummy nm
; ac_word
=$2
7473 echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7475 if test "${ac_cv_prog_NM+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 if test -n "$NM"; then
7479 ac_cv_prog_NM
="$NM" # Let the user override the test.
7481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir
=.
7486 for ac_exec_ext
in '' $ac_executable_extensions; do
7487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7499 if test -n "$NM"; then
7500 echo "$as_me:$LINENO: result: $NM" >&5
7501 echo "${ECHO_T}$NM" >&6
7503 echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6
7510 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7511 && test -d ..
/binutils
; then
7512 AR
='$(objdir)/../binutils/ar'
7514 # Extract the first word of "ar", so it can be a program name with args.
7515 set dummy
ar; ac_word
=$2
7516 echo "$as_me:$LINENO: checking for $ac_word" >&5
7517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518 if test "${ac_cv_prog_AR+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 if test -n "$AR"; then
7522 ac_cv_prog_AR
="$AR" # Let the user override the test.
7524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir
=.
7529 for ac_exec_ext
in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7542 if test -n "$AR"; then
7543 echo "$as_me:$LINENO: result: $AR" >&5
7544 echo "${ECHO_T}$AR" >&6
7546 echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7553 # --------------------
7554 # Checks for C headers
7555 # --------------------
7557 echo "$as_me:$LINENO: checking for GNU C library" >&5
7558 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7559 if test "${gcc_cv_glibc+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 cat >conftest.
$ac_ext <<_ACEOF
7565 cat confdefs.h
>>conftest.
$ac_ext
7566 cat >>conftest.
$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <features.h>
7573 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7574 #error Not a GNU C library system
7580 rm -f conftest.
$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>conftest.er1
7584 grep -v '^ *+' conftest.er1
>conftest.err
7586 cat conftest.err
>&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; } &&
7595 { ac_try
='test -s conftest.$ac_objext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.
$ac_ext >&5
7608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7611 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7612 echo "${ECHO_T}$gcc_cv_glibc" >&6
7613 if test $gcc_cv_glibc = yes; then
7615 cat >>confdefs.h
<<\_ACEOF
7616 #define _GNU_SOURCE 1
7621 # Need to reject headers which give warnings, so that the -Werror bootstrap
7622 # works later. *sigh* This needs to come before all header checks.
7624 ac_c_preproc_warn_flag
=yes
7626 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7627 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7628 if test "${ac_cv_header_stdc+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 cat >conftest.
$ac_ext <<_ACEOF
7634 cat confdefs.h
>>conftest.
$ac_ext
7635 cat >>conftest.
$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7650 rm -f conftest.
$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>conftest.er1
7654 grep -v '^ *+' conftest.er1
>conftest.err
7656 cat conftest.err
>&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
7659 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try
='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_cv_header_stdc
=yes
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.
$ac_ext >&5
7676 ac_cv_header_stdc
=no
7678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7680 if test $ac_cv_header_stdc = yes; then
7681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7682 cat >conftest.
$ac_ext <<_ACEOF
7685 cat confdefs.h
>>conftest.
$ac_ext
7686 cat >>conftest.
$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "memchr" >/dev
/null
2>&1; then
7695 ac_cv_header_stdc
=no
7701 if test $ac_cv_header_stdc = yes; then
7702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7703 cat >conftest.
$ac_ext <<_ACEOF
7706 cat confdefs.h
>>conftest.
$ac_ext
7707 cat >>conftest.
$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7713 $EGREP "free" >/dev
/null
2>&1; then
7716 ac_cv_header_stdc
=no
7722 if test $ac_cv_header_stdc = yes; then
7723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7724 if test "$cross_compiling" = yes; then
7727 cat >conftest.
$ac_ext <<_ACEOF
7730 cat confdefs.h
>>conftest.
$ac_ext
7731 cat >>conftest.
$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7734 #if ((' ' & 0x0FF) == 0x020)
7735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7738 # define ISLOWER(c) \
7739 (('a' <= (c) && (c) <= 'i') \
7740 || ('j' <= (c) && (c) <= 'r') \
7741 || ('s' <= (c) && (c) <= 'z'))
7742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7750 for (i = 0; i < 256; i++)
7751 if (XOR (islower (i), ISLOWER (i))
7752 || toupper (i) != TOUPPER (i))
7757 rm -f conftest
$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7770 echo "$as_me: program exited with status $ac_status" >&5
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.
$ac_ext >&5
7775 ac_cv_header_stdc
=no
7777 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7782 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7783 if test $ac_cv_header_stdc = yes; then
7785 cat >>confdefs.h
<<\_ACEOF
7786 #define STDC_HEADERS 1
7791 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7792 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7793 if test "${ac_cv_header_time+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 cat >conftest.
$ac_ext <<_ACEOF
7799 cat confdefs.h
>>conftest.
$ac_ext
7800 cat >>conftest.
$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 #include <sys/types.h>
7803 #include <sys/time.h>
7809 if ((struct tm *) 0)
7815 rm -f conftest.
$ac_objext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7817 (eval $ac_compile) 2>conftest.er1
7819 grep -v '^ *+' conftest.er1
>conftest.err
7821 cat conftest.err
>&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try
='test -s conftest.$ac_objext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_header_time
=yes
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.
$ac_ext >&5
7841 ac_cv_header_time
=no
7843 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7845 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7846 echo "${ECHO_T}$ac_cv_header_time" >&6
7847 if test $ac_cv_header_time = yes; then
7849 cat >>confdefs.h
<<\_ACEOF
7850 #define TIME_WITH_SYS_TIME 1
7855 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7856 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7857 if test "${gcc_cv_header_string+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 cat >conftest.
$ac_ext <<_ACEOF
7863 cat confdefs.h
>>conftest.
$ac_ext
7864 cat >>conftest.
$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7867 #include <strings.h>
7876 rm -f conftest.
$ac_objext
7877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7878 (eval $ac_compile) 2>conftest.er1
7880 grep -v '^ *+' conftest.er1
>conftest.err
7882 cat conftest.err
>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try
='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 gcc_cv_header_string
=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.
$ac_ext >&5
7902 gcc_cv_header_string
=no
7904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7906 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7907 echo "${ECHO_T}$gcc_cv_header_string" >&6
7908 if test $gcc_cv_header_string = yes; then
7910 cat >>confdefs.h
<<\_ACEOF
7911 #define STRING_WITH_STRINGS 1
7916 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7917 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7918 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 cat >conftest.
$ac_ext <<_ACEOF
7924 cat confdefs.h
>>conftest.
$ac_ext
7925 cat >>conftest.
$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <sys/types.h>
7928 #include <sys/wait.h>
7930 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7933 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7941 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7946 rm -f conftest.
$ac_objext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>conftest.er1
7950 grep -v '^ *+' conftest.er1
>conftest.err
7952 cat conftest.err
>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try
='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_header_sys_wait_h
=yes
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.
$ac_ext >&5
7972 ac_cv_header_sys_wait_h
=no
7974 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7976 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7977 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7978 if test $ac_cv_header_sys_wait_h = yes; then
7980 cat >>confdefs.h
<<\_ACEOF
7981 #define HAVE_SYS_WAIT_H 1
8008 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8009 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8010 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8011 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8013 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8014 echo "$as_me:$LINENO: checking for $ac_header" >&5
8015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 cat >conftest.
$ac_ext <<_ACEOF
8022 cat confdefs.h
>>conftest.
$ac_ext
8023 cat >>conftest.
$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <$ac_header>
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1
>conftest.err
8032 cat conftest.err
>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev
/null
; then
8035 if test -s conftest.err
; then
8036 ac_cpp_err
=$ac_c_preproc_warn_flag
8037 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8044 if test -z "$ac_cpp_err"; then
8045 eval "$as_ac_Header=yes"
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.
$ac_ext >&5
8050 eval "$as_ac_Header=no"
8052 rm -f conftest.err conftest.
$ac_ext
8054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8057 cat >>confdefs.h
<<_ACEOF
8058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8065 # Check for thread headers.
8066 echo "$as_me:$LINENO: checking for thread.h" >&5
8067 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8068 if test "${ac_cv_header_thread_h+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 cat >conftest.
$ac_ext <<_ACEOF
8074 cat confdefs.h
>>conftest.
$ac_ext
8075 cat >>conftest.
$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8080 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8082 grep -v '^ *+' conftest.er1
>conftest.err
8084 cat conftest.err
>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } >/dev
/null
; then
8087 if test -s conftest.err
; then
8088 ac_cpp_err
=$ac_c_preproc_warn_flag
8089 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8096 if test -z "$ac_cpp_err"; then
8097 ac_cv_header_thread_h
=yes
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.
$ac_ext >&5
8102 ac_cv_header_thread_h
=no
8104 rm -f conftest.err conftest.
$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8107 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8108 if test $ac_cv_header_thread_h = yes; then
8114 echo "$as_me:$LINENO: checking for pthread.h" >&5
8115 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8116 if test "${ac_cv_header_pthread_h+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 cat >conftest.
$ac_ext <<_ACEOF
8122 cat confdefs.h
>>conftest.
$ac_ext
8123 cat >>conftest.
$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 #include <pthread.h>
8127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8128 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8130 grep -v '^ *+' conftest.er1
>conftest.err
8132 cat conftest.err
>&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } >/dev
/null
; then
8135 if test -s conftest.err
; then
8136 ac_cpp_err
=$ac_c_preproc_warn_flag
8137 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8144 if test -z "$ac_cpp_err"; then
8145 ac_cv_header_pthread_h
=yes
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.
$ac_ext >&5
8150 ac_cv_header_pthread_h
=no
8152 rm -f conftest.err conftest.
$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8155 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8156 if test $ac_cv_header_pthread_h = yes; then
8163 # These tests can't be done till we know if we have limits.h.
8164 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8165 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8166 if test "${gcc_cv_decl_char_bit+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 cat >conftest.
$ac_ext <<_ACEOF
8172 cat confdefs.h
>>conftest.
$ac_ext
8173 cat >>conftest.
$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 #ifdef HAVE_LIMITS_H
8182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8183 $EGREP "found" >/dev
/null
2>&1; then
8184 gcc_cv_decl_char_bit
=yes
8186 gcc_cv_decl_char_bit
=no
8192 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8193 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8194 if test $gcc_cv_decl_char_bit = no
; then
8195 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8196 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8197 if test "${gcc_cv_c_nbby+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 while test $i -lt 65; do
8203 cat >conftest.
$ac_ext <<_ACEOF
8206 cat confdefs.h
>>conftest.
$ac_ext
8207 cat >>conftest.
$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8214 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8215 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8221 rm -f conftest.
$ac_objext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223 (eval $ac_compile) 2>conftest.er1
8225 grep -v '^ *+' conftest.er1
>conftest.err
8227 cat conftest.err
>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try
='test -s conftest.$ac_objext'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 gcc_cv_c_nbby
=$i; break
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.
$ac_ext >&5
8248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8251 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8254 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8255 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8256 if test $gcc_cv_c_nbby = failed
; then
8257 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8258 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8259 { (exit 1); exit 1; }; }
8262 cat >>confdefs.h
<<_ACEOF
8263 #define CHAR_BIT $gcc_cv_c_nbby
8268 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8269 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8270 if test "${ac_cv_c_bigendian+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 ac_cv_c_bigendian
=unknown
8274 # See if sys/param.h defines the BYTE_ORDER macro.
8275 cat >conftest.
$ac_ext <<_ACEOF
8278 cat confdefs.h
>>conftest.
$ac_ext
8279 cat >>conftest.
$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 #include <sys/types.h>
8282 #include <sys/param.h>
8287 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8294 rm -f conftest.
$ac_objext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8296 (eval $ac_compile) 2>conftest.er1
8298 grep -v '^ *+' conftest.er1
>conftest.err
8300 cat conftest.err
>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try
='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 # It does; now see whether it defined to BIG_ENDIAN or not.
8316 cat >conftest.
$ac_ext <<_ACEOF
8319 cat confdefs.h
>>conftest.
$ac_ext
8320 cat >>conftest.
$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <sys/types.h>
8323 #include <sys/param.h>
8328 #if BYTE_ORDER != BIG_ENDIAN
8335 rm -f conftest.
$ac_objext
8336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8337 (eval $ac_compile) 2>conftest.er1
8339 grep -v '^ *+' conftest.er1
>conftest.err
8341 cat conftest.err
>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try
='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_c_bigendian
=yes
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.
$ac_ext >&5
8361 ac_cv_c_bigendian
=no
8363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.
$ac_ext >&5
8369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8370 if test $ac_cv_c_bigendian = unknown
; then
8371 if test "$cross_compiling" = yes; then
8372 echo $ac_n "cross-compiling... " 2>&6
8374 cat >conftest.
$ac_ext <<_ACEOF
8377 cat confdefs.h
>>conftest.
$ac_ext
8378 cat >>conftest.
$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8381 /* Are we little or big endian? From Harbison&Steele. */
8385 char c[sizeof (long)];
8388 exit (u.c[sizeof (long) - 1] == 1);
8391 rm -f conftest
$ac_exeext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393 (eval $ac_link) 2>&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_c_bigendian
=no
8404 echo "$as_me: program exited with status $ac_status" >&5
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.
$ac_ext >&5
8409 ac_cv_c_bigendian
=yes
8411 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8415 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8416 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8417 if test $ac_cv_c_bigendian = unknown
; then
8418 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8419 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8421 cat >conftest.c
<<EOF
8422 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8423 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8424 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8425 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8426 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8427 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8428 int main() { _ascii (); _ebcdic (); return 0; }
8430 if test -f conftest.c
; then
8431 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
8432 if test `grep -l BIGenDianSyS conftest.o` ; then
8433 echo $ac_n ' big endian probe OK, ' 1>&6
8434 ac_cv_c_bigendian
=yes
8436 if test `grep -l LiTTleEnDian conftest.o` ; then
8437 echo $ac_n ' little endian probe OK, ' 1>&6
8438 if test $ac_cv_c_bigendian = yes ; then
8439 ac_cv_c_bigendian
=unknown
;
8441 ac_cv_c_bigendian
=no
8444 echo $ac_n 'guessing bigendian ... ' >&6
8447 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8448 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8450 if test $ac_cv_c_bigendian = yes; then
8452 cat >>confdefs.h
<<\_ACEOF
8453 #define WORDS_BIGENDIAN 1
8457 cat >>confdefs.h
<<\_ACEOF
8458 #define HOST_WORDS_BIG_ENDIAN 1
8466 cat >>confdefs.h
<<_ACEOF
8467 #define BYTEORDER $BYTEORDER
8470 if test $ac_cv_c_bigendian = unknown
; then
8471 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8472 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8473 { (exit 1); exit 1; }; }
8481 # Stage specific cflags for build.
8485 if test x
$GCC = xyes
8487 stage1_cflags
="-Wa,-J"
8493 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8494 # sources; use -no-cpp-precomp to get to GNU cpp.
8495 # Apple's GCC has bugs in designated initializer handling, so disable
8497 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8502 # These libraries may be used by collect2.
8503 # We may need a special search path to get them linked.
8504 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8505 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8506 if test "${gcc_cv_collect2_libs+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 for libs
in '' -lld -lmld \
8511 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8512 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8515 cat >conftest.
$ac_ext <<_ACEOF
8518 cat confdefs.h
>>conftest.
$ac_ext
8519 cat >>conftest.
$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8522 /* Override any gcc2 internal prototype to avoid an error. */
8526 /* We use char because int might match the return type of a gcc2
8527 builtin and then its argument prototype would still apply. */
8537 rm -f conftest.
$ac_objext conftest
$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>conftest.er1
8541 grep -v '^ *+' conftest.er1
>conftest.err
8543 cat conftest.err
>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try
='test -s conftest$ac_exeext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 gcc_cv_collect2_libs
="$libs"; break
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.
$ac_ext >&5
8564 rm -f conftest.err conftest.
$ac_objext \
8565 conftest
$ac_exeext conftest.
$ac_ext
8568 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8570 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8571 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8572 case $gcc_cv_collect2_libs in
8574 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8578 # When building Ada code on Alpha, we need exc_resume which is usually in
8579 # -lexc. So test for it.
8582 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8583 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8584 if test "${ac_cv_search_exc_resume+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 ac_func_search_save_LIBS
=$LIBS
8588 ac_cv_search_exc_resume
=no
8589 cat >conftest.
$ac_ext <<_ACEOF
8592 cat confdefs.h
>>conftest.
$ac_ext
8593 cat >>conftest.
$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8596 /* Override any gcc2 internal prototype to avoid an error. */
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8611 rm -f conftest.
$ac_objext conftest
$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>conftest.er1
8615 grep -v '^ *+' conftest.er1
>conftest.err
8617 cat conftest.err
>&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try
='test -s conftest$ac_exeext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 ac_cv_search_exc_resume
="none required"
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.
$ac_ext >&5
8638 rm -f conftest.err conftest.
$ac_objext \
8639 conftest
$ac_exeext conftest.
$ac_ext
8640 if test "$ac_cv_search_exc_resume" = no
; then
8641 for ac_lib
in exc
; do
8642 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8643 cat >conftest.
$ac_ext <<_ACEOF
8646 cat confdefs.h
>>conftest.
$ac_ext
8647 cat >>conftest.
$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8650 /* Override any gcc2 internal prototype to avoid an error. */
8654 /* We use char because int might match the return type of a gcc2
8655 builtin and then its argument prototype would still apply. */
8665 rm -f conftest.
$ac_objext conftest
$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>conftest.er1
8669 grep -v '^ *+' conftest.er1
>conftest.err
8671 cat conftest.err
>&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try
='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_cv_search_exc_resume
="-l$ac_lib"
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.
$ac_ext >&5
8693 rm -f conftest.err conftest.
$ac_objext \
8694 conftest
$ac_exeext conftest.
$ac_ext
8697 LIBS
=$ac_func_search_save_LIBS
8699 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8700 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8701 if test "$ac_cv_search_exc_resume" != no
; then
8702 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8710 # Some systems put ldexp and frexp in libm instead of libc; assume
8711 # they're both in the same place. jcf-dump needs them.
8714 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8715 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8716 if test "${ac_cv_search_ldexp+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 ac_func_search_save_LIBS
=$LIBS
8720 ac_cv_search_ldexp
=no
8721 cat >conftest.
$ac_ext <<_ACEOF
8724 cat confdefs.h
>>conftest.
$ac_ext
8725 cat >>conftest.
$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8728 /* Override any gcc2 internal prototype to avoid an error. */
8732 /* We use char because int might match the return type of a gcc2
8733 builtin and then its argument prototype would still apply. */
8743 rm -f conftest.
$ac_objext conftest
$ac_exeext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8745 (eval $ac_link) 2>conftest.er1
8747 grep -v '^ *+' conftest.er1
>conftest.err
8749 cat conftest.err
>&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try
='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_search_ldexp
="none required"
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.
$ac_ext >&5
8770 rm -f conftest.err conftest.
$ac_objext \
8771 conftest
$ac_exeext conftest.
$ac_ext
8772 if test "$ac_cv_search_ldexp" = no
; then
8774 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8775 cat >conftest.
$ac_ext <<_ACEOF
8778 cat confdefs.h
>>conftest.
$ac_ext
8779 cat >>conftest.
$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8782 /* Override any gcc2 internal prototype to avoid an error. */
8786 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */
8797 rm -f conftest.
$ac_objext conftest
$ac_exeext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799 (eval $ac_link) 2>conftest.er1
8801 grep -v '^ *+' conftest.er1
>conftest.err
8803 cat conftest.err
>&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try
='test -s conftest$ac_exeext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_search_ldexp
="-l$ac_lib"
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.
$ac_ext >&5
8825 rm -f conftest.err conftest.
$ac_objext \
8826 conftest
$ac_exeext conftest.
$ac_ext
8829 LIBS
=$ac_func_search_save_LIBS
8831 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8832 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8833 if test "$ac_cv_search_ldexp" != no
; then
8834 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8842 # Use <inttypes.h> only if it exists,
8843 # doesn't clash with <sys/types.h>, and declares intmax_t.
8844 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8845 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8846 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 cat >conftest.
$ac_ext <<_ACEOF
8852 cat confdefs.h
>>conftest.
$ac_ext
8853 cat >>conftest.
$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 #include <sys/types.h>
8856 #include <inttypes.h>
8865 rm -f conftest.
$ac_objext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8867 (eval $ac_compile) 2>conftest.er1
8869 grep -v '^ *+' conftest.er1
>conftest.err
8871 cat conftest.err
>&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; } &&
8880 { ac_try
='test -s conftest.$ac_objext'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; }; then
8886 gcc_cv_header_inttypes_h
=yes
8888 echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.
$ac_ext >&5
8891 gcc_cv_header_inttypes_h
=no
8893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8896 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8897 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8898 if test $gcc_cv_header_inttypes_h = yes; then
8900 cat >>confdefs.h
<<\_ACEOF
8901 #define HAVE_INTTYPES_H 1
8932 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
8933 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8934 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8935 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8938 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8939 echo "$as_me:$LINENO: checking for $ac_func" >&5
8940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8941 if eval "test \"\${$as_ac_var+set}\" = set"; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 cat >conftest.
$ac_ext <<_ACEOF
8947 cat confdefs.h
>>conftest.
$ac_ext
8948 cat >>conftest.
$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8952 #define $ac_func innocuous_$ac_func
8954 /* System header to define __stub macros and hopefully few prototypes,
8955 which can conflict with char $ac_func (); below.
8956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957 <limits.h> exists even on freestanding compilers. */
8960 # include <limits.h>
8962 # include <assert.h>
8967 /* Override any gcc2 internal prototype to avoid an error. */
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8975 /* The GNU C library defines this for functions which it implements
8976 to always fail with ENOSYS. Some functions are actually named
8977 something starting with __ and the normal name is an alias. */
8978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8981 char (*f) () = $ac_func;
8990 return f != $ac_func;
8995 rm -f conftest.
$ac_objext conftest
$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8999 grep -v '^ *+' conftest.er1
>conftest.err
9001 cat conftest.err
>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; } &&
9010 { ac_try
='test -s conftest$ac_exeext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 eval "$as_ac_var=yes"
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9021 eval "$as_ac_var=no"
9023 rm -f conftest.err conftest.
$ac_objext \
9024 conftest
$ac_exeext conftest.
$ac_ext
9026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9028 if test `eval echo '${'$as_ac_var'}'` = yes; then
9029 cat >>confdefs.h
<<_ACEOF
9030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9037 if test x
$ac_cv_func_mbstowcs = xyes
; then
9038 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9039 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9040 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 if test "$cross_compiling" = yes; then
9044 gcc_cv_func_mbstowcs_works
=yes
9046 cat >conftest.
$ac_ext <<_ACEOF
9049 cat confdefs.h
>>conftest.
$ac_ext
9050 cat >>conftest.
$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9059 rm -f conftest
$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 gcc_cv_func_mbstowcs_works
=yes
9072 echo "$as_me: program exited with status $ac_status" >&5
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.
$ac_ext >&5
9077 gcc_cv_func_mbstowcs_works
=no
9079 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9082 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9083 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9084 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9086 cat >>confdefs.h
<<\_ACEOF
9087 #define HAVE_WORKING_MBSTOWCS 1
9093 echo "$as_me:$LINENO: checking for ssize_t" >&5
9094 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9095 if test "${ac_cv_type_ssize_t+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 cat >conftest.
$ac_ext <<_ACEOF
9101 cat confdefs.h
>>conftest.
$ac_ext
9102 cat >>conftest.
$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9110 if (sizeof (ssize_t))
9116 rm -f conftest.
$ac_objext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9118 (eval $ac_compile) 2>conftest.er1
9120 grep -v '^ *+' conftest.er1
>conftest.err
9122 cat conftest.err
>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try
='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_type_ssize_t
=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.
$ac_ext >&5
9142 ac_cv_type_ssize_t
=no
9144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9146 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9147 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9148 if test $ac_cv_type_ssize_t = yes; then
9152 cat >>confdefs.h
<<_ACEOF
9159 # Try to determine the array type of the second argument of getgroups
9160 # for the target system (int or gid_t).
9161 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9162 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9163 if test "${ac_cv_type_uid_t+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 cat >conftest.
$ac_ext <<_ACEOF
9169 cat confdefs.h
>>conftest.
$ac_ext
9170 cat >>conftest.
$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176 $EGREP "uid_t" >/dev
/null
2>&1; then
9177 ac_cv_type_uid_t
=yes
9184 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9185 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9186 if test $ac_cv_type_uid_t = no
; then
9188 cat >>confdefs.h
<<\_ACEOF
9193 cat >>confdefs.h
<<\_ACEOF
9199 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9200 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9201 if test "${ac_cv_type_getgroups+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 if test "$cross_compiling" = yes; then
9205 ac_cv_type_getgroups
=cross
9207 cat >conftest.
$ac_ext <<_ACEOF
9210 cat confdefs.h
>>conftest.
$ac_ext
9211 cat >>conftest.
$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 /* Thanks to Mike Rendell for this test. */
9214 #include <sys/types.h>
9217 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9224 union { gid_t gval; long lval; } val;
9227 for (i = 0; i < NGID; i++)
9228 gidset[i] = val.gval;
9229 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9231 /* Exit non-zero if getgroups seems to require an array of ints. This
9232 happens when gid_t is short but getgroups modifies an array of ints. */
9233 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9236 rm -f conftest
$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_cv_type_getgroups
=gid_t
9249 echo "$as_me: program exited with status $ac_status" >&5
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.
$ac_ext >&5
9254 ac_cv_type_getgroups
=int
9256 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9258 if test $ac_cv_type_getgroups = cross
; then
9259 cat >conftest.
$ac_ext <<_ACEOF
9262 cat confdefs.h
>>conftest.
$ac_ext
9263 cat >>conftest.
$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9269 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9270 ac_cv_type_getgroups
=gid_t
9272 ac_cv_type_getgroups
=int
9278 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9279 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9281 cat >>confdefs.h
<<_ACEOF
9282 #define GETGROUPS_T $ac_cv_type_getgroups
9286 if test "${target}" = "${build}"; then
9287 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9290 # This condition may need some tweaking. It should include all
9291 # targets where the array type of the second argument of getgroups
9292 # is int and the type of gid_t is not equivalent to int.
9293 *-*-sunos* |
*-*-ultrix*)
9294 TARGET_GETGROUPS_T
=int
9297 TARGET_GETGROUPS_T
=gid_t
9303 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9304 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9305 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 if test "$cross_compiling" = yes; then
9309 gcc_cv_func_printf_ptr
=no
9311 cat >conftest.
$ac_ext <<_ACEOF
9314 cat confdefs.h
>>conftest.
$ac_ext
9315 cat >>conftest.
$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9322 char *p = buf, *q = NULL;
9323 sprintf(buf, "%p", p);
9324 sscanf(buf, "%p", &q);
9328 rm -f conftest
$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 gcc_cv_func_printf_ptr
=yes
9341 echo "$as_me: program exited with status $ac_status" >&5
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.
$ac_ext >&5
9346 gcc_cv_func_printf_ptr
=no
9348 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9350 rm -f core core.
* *.core
9352 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9353 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9354 if test $gcc_cv_func_printf_ptr = yes ; then
9356 cat >>confdefs.h
<<\_ACEOF
9357 #define HAVE_PRINTF_PTR 1
9363 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9364 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9365 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 cat >conftest.
$ac_ext <<_ACEOF
9371 cat confdefs.h
>>conftest.
$ac_ext
9372 cat >>conftest.
$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 #include <sys/mman.h>
9376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9377 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9379 grep -v '^ *+' conftest.er1
>conftest.err
9381 cat conftest.err
>&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } >/dev
/null
; then
9384 if test -s conftest.err
; then
9385 ac_cpp_err
=$ac_c_preproc_warn_flag
9386 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9393 if test -z "$ac_cpp_err"; then
9394 ac_cv_header_sys_mman_h
=yes
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.
$ac_ext >&5
9399 ac_cv_header_sys_mman_h
=no
9401 rm -f conftest.err conftest.
$ac_ext
9403 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9404 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9405 if test $ac_cv_header_sys_mman_h = yes; then
9406 gcc_header_sys_mman_h
=yes
9408 gcc_header_sys_mman_h
=no
9411 echo "$as_me:$LINENO: checking for mmap" >&5
9412 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9413 if test "${ac_cv_func_mmap+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 cat >conftest.
$ac_ext <<_ACEOF
9419 cat confdefs.h
>>conftest.
$ac_ext
9420 cat >>conftest.
$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9424 #define mmap innocuous_mmap
9426 /* System header to define __stub macros and hopefully few prototypes,
9427 which can conflict with char mmap (); below.
9428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9429 <limits.h> exists even on freestanding compilers. */
9432 # include <limits.h>
9434 # include <assert.h>
9439 /* Override any gcc2 internal prototype to avoid an error. */
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9447 /* The GNU C library defines this for functions which it implements
9448 to always fail with ENOSYS. Some functions are actually named
9449 something starting with __ and the normal name is an alias. */
9450 #if defined (__stub_mmap) || defined (__stub___mmap)
9453 char (*f) () = mmap;
9467 rm -f conftest.
$ac_objext conftest
$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469 (eval $ac_link) 2>conftest.er1
9471 grep -v '^ *+' conftest.er1
>conftest.err
9473 cat conftest.err
>&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; } &&
9482 { ac_try
='test -s conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.
$ac_ext >&5
9495 rm -f conftest.err conftest.
$ac_objext \
9496 conftest
$ac_exeext conftest.
$ac_ext
9498 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9499 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9500 if test $ac_cv_func_mmap = yes; then
9506 if test "$gcc_header_sys_mman_h" != yes \
9507 ||
test "$gcc_func_mmap" != yes; then
9508 gcc_cv_func_mmap_file
=no
9509 gcc_cv_func_mmap_dev_zero
=no
9510 gcc_cv_func_mmap_anon
=no
9512 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9513 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9514 if test "${gcc_cv_func_mmap_file+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 # Add a system to this blacklist if
9518 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9519 # memory area containing the same data that you'd get if you applied
9520 # read() to the same fd. The only system known to have a problem here
9521 # is VMS, where text files have record structure.
9524 gcc_cv_func_mmap_file
=no
;;
9526 gcc_cv_func_mmap_file
=yes;;
9529 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9530 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9531 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9532 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9533 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 # Add a system to this blacklist if it has mmap() but /dev/zero
9537 # does not exist, or if mmapping /dev/zero does not give anonymous
9538 # zeroed pages with both the following properties:
9539 # 1. If you map N consecutive pages in with one call, and then
9540 # unmap any subset of those pages, the pages that were not
9541 # explicitly unmapped remain accessible.
9542 # 2. If you map two adjacent blocks of memory and then unmap them
9543 # both at once, they must both go away.
9544 # Systems known to be in this category are Windows (all variants),
9547 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9548 gcc_cv_func_mmap_dev_zero
=no
;;
9550 gcc_cv_func_mmap_dev_zero
=yes;;
9553 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9554 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9556 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9557 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9558 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9559 if test "${gcc_cv_decl_map_anon+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 cat >conftest.
$ac_ext <<_ACEOF
9565 cat confdefs.h
>>conftest.
$ac_ext
9566 cat >>conftest.
$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 #include <sys/types.h>
9569 #include <sys/mman.h>
9572 #ifndef MAP_ANONYMOUS
9573 #define MAP_ANONYMOUS MAP_ANON
9579 int n = MAP_ANONYMOUS;
9584 rm -f conftest.
$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9588 grep -v '^ *+' conftest.er1
>conftest.err
9590 cat conftest.err
>&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try
='test -s conftest.$ac_objext'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 gcc_cv_decl_map_anon
=yes
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.
$ac_ext >&5
9610 gcc_cv_decl_map_anon
=no
9612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9614 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9615 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9617 if test $gcc_cv_decl_map_anon = no
; then
9618 gcc_cv_func_mmap_anon
=no
9620 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9621 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9622 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9626 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9627 # doesn't give anonymous zeroed pages with the same properties listed
9628 # above for use of /dev/zero.
9629 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9631 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9632 gcc_cv_func_mmap_anon
=no
;;
9634 gcc_cv_func_mmap_anon
=yes;;
9637 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9638 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9642 if test $gcc_cv_func_mmap_file = yes; then
9644 cat >>confdefs.h
<<\_ACEOF
9645 #define HAVE_MMAP_FILE 1
9649 if test $gcc_cv_func_mmap_dev_zero = yes; then
9651 cat >>confdefs.h
<<\_ACEOF
9652 #define HAVE_MMAP_DEV_ZERO 1
9656 if test $gcc_cv_func_mmap_anon = yes; then
9658 cat >>confdefs.h
<<\_ACEOF
9659 #define HAVE_MMAP_ANON 1
9667 # Under VMS, vfork works very differently than on Unix. The standard test
9668 # won't work, and it isn't easily adaptable. It makes more sense to
9670 ac_cv_func_vfork_works
=yes
9673 echo "$as_me:$LINENO: checking for pid_t" >&5
9674 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9675 if test "${ac_cv_type_pid_t+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 cat >conftest.
$ac_ext <<_ACEOF
9681 cat confdefs.h
>>conftest.
$ac_ext
9682 cat >>conftest.
$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 $ac_includes_default
9696 rm -f conftest.
$ac_objext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9698 (eval $ac_compile) 2>conftest.er1
9700 grep -v '^ *+' conftest.er1
>conftest.err
9702 cat conftest.err
>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try
='test -s conftest.$ac_objext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_type_pid_t
=yes
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.
$ac_ext >&5
9724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9726 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9727 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9728 if test $ac_cv_type_pid_t = yes; then
9732 cat >>confdefs.h
<<_ACEOF
9740 for ac_header
in unistd.h vfork.h
9742 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9743 echo "$as_me:$LINENO: checking for $ac_header" >&5
9744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 cat >conftest.
$ac_ext <<_ACEOF
9751 cat confdefs.h
>>conftest.
$ac_ext
9752 cat >>conftest.
$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 #include <$ac_header>
9756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9757 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9759 grep -v '^ *+' conftest.er1
>conftest.err
9761 cat conftest.err
>&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } >/dev
/null
; then
9764 if test -s conftest.err
; then
9765 ac_cpp_err
=$ac_c_preproc_warn_flag
9766 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9773 if test -z "$ac_cpp_err"; then
9774 eval "$as_ac_Header=yes"
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.
$ac_ext >&5
9779 eval "$as_ac_Header=no"
9781 rm -f conftest.err conftest.
$ac_ext
9783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9786 cat >>confdefs.h
<<_ACEOF
9787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9795 for ac_func
in fork vfork
9797 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9798 echo "$as_me:$LINENO: checking for $ac_func" >&5
9799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_var+set}\" = set"; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 cat >conftest.
$ac_ext <<_ACEOF
9806 cat confdefs.h
>>conftest.
$ac_ext
9807 cat >>conftest.
$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9811 #define $ac_func innocuous_$ac_func
9813 /* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char $ac_func (); below.
9815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9816 <limits.h> exists even on freestanding compilers. */
9819 # include <limits.h>
9821 # include <assert.h>
9826 /* Override any gcc2 internal prototype to avoid an error. */
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9834 /* The GNU C library defines this for functions which it implements
9835 to always fail with ENOSYS. Some functions are actually named
9836 something starting with __ and the normal name is an alias. */
9837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9840 char (*f) () = $ac_func;
9849 return f != $ac_func;
9854 rm -f conftest.
$ac_objext conftest
$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856 (eval $ac_link) 2>conftest.er1
9858 grep -v '^ *+' conftest.er1
>conftest.err
9860 cat conftest.err
>&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try
='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 eval "$as_ac_var=yes"
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.
$ac_ext >&5
9880 eval "$as_ac_var=no"
9882 rm -f conftest.err conftest.
$ac_objext \
9883 conftest
$ac_exeext conftest.
$ac_ext
9885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9887 if test `eval echo '${'$as_ac_var'}'` = yes; then
9888 cat >>confdefs.h
<<_ACEOF
9889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9895 if test "x$ac_cv_func_fork" = xyes
; then
9896 echo "$as_me:$LINENO: checking for working fork" >&5
9897 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9898 if test "${ac_cv_func_fork_works+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 if test "$cross_compiling" = yes; then
9902 ac_cv_func_fork_works
=cross
9904 cat >conftest.
$ac_ext <<_ACEOF
9905 /* By Ruediger Kuhlmann. */
9906 #include <sys/types.h>
9908 # include <unistd.h>
9910 /* Some systems only have a dummy stub for fork() */
9918 rm -f conftest
$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_func_fork_works
=yes
9931 echo "$as_me: program exited with status $ac_status" >&5
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.
$ac_ext >&5
9936 ac_cv_func_fork_works
=no
9938 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9941 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9942 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9945 ac_cv_func_fork_works
=$ac_cv_func_fork
9947 if test "x$ac_cv_func_fork_works" = xcross
; then
9949 *-*-amigaos* |
*-*-msdosdjgpp*)
9950 # Override, as these systems have only a dummy fork() stub
9951 ac_cv_func_fork_works
=no
9954 ac_cv_func_fork_works
=yes
9957 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9958 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9960 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9961 if test "x$ac_cv_func_vfork" = xyes
; then
9962 echo "$as_me:$LINENO: checking for working vfork" >&5
9963 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9964 if test "${ac_cv_func_vfork_works+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 if test "$cross_compiling" = yes; then
9968 ac_cv_func_vfork_works
=cross
9970 cat >conftest.
$ac_ext <<_ACEOF
9973 cat confdefs.h
>>conftest.
$ac_ext
9974 cat >>conftest.
$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 /* Thanks to Paul Eggert for this test. */
9979 #include <sys/types.h>
9980 #include <sys/stat.h>
9981 #include <sys/wait.h>
9983 # include <unistd.h>
9988 /* On some sparc systems, changes by the child to local and incoming
9989 argument registers are propagated back to the parent. The compiler
9990 is told about this with #include <vfork.h>, but some compilers
9991 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9992 static variable whose address is put into a register that is
9993 clobbered by the vfork. */
9996 sparc_address_test (int arg)
9998 sparc_address_test (arg) int arg;
10001 static pid_t child;
10019 pid_t parent = getpid ();
10022 sparc_address_test (0);
10027 /* Here is another test for sparc vfork register problems. This
10028 test uses lots of local variables, at least as many local
10029 variables as main has allocated so far including compiler
10030 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10031 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10032 reuse the register of parent for one of the local variables,
10033 since it will think that parent can't possibly be used any more
10034 in this routine. Assigning to the local variable will thus
10035 munge parent in the parent process. */
10037 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10038 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10039 /* Convince the compiler that p..p7 are live; otherwise, it might
10040 use the same hardware register for all 8 local variables. */
10041 if (p != p1 || p != p2 || p != p3 || p != p4
10042 || p != p5 || p != p6 || p != p7)
10045 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10046 from child file descriptors. If the child closes a descriptor
10047 before it execs or exits, this munges the parent's descriptor
10048 as well. Test for this by closing stdout in the child. */
10049 _exit(close(fileno(stdout)) != 0);
10054 while (wait(&status) != child)
10057 /* Was there some problem with vforking? */
10060 /* Did the child fail? (This shouldn't happen.) */
10063 /* Did the vfork/compiler bug occur? */
10064 || parent != getpid()
10066 /* Did the file descriptor bug occur? */
10067 || fstat(fileno(stdout), &st) != 0
10072 rm -f conftest
$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074 (eval $ac_link) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_func_vfork_works
=yes
10085 echo "$as_me: program exited with status $ac_status" >&5
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.
$ac_ext >&5
10089 ( exit $ac_status )
10090 ac_cv_func_vfork_works
=no
10092 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10095 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10096 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10099 if test "x$ac_cv_func_fork_works" = xcross
; then
10100 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10101 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10102 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10105 if test "x$ac_cv_func_vfork_works" = xyes
; then
10107 cat >>confdefs.h
<<\_ACEOF
10108 #define HAVE_WORKING_VFORK 1
10113 cat >>confdefs.h
<<\_ACEOF
10118 if test "x$ac_cv_func_fork_works" = xyes
; then
10120 cat >>confdefs.h
<<\_ACEOF
10121 #define HAVE_WORKING_FORK 1
10128 if test "X$prefix" = "XNONE"; then
10129 acl_final_prefix
="$ac_default_prefix"
10131 acl_final_prefix
="$prefix"
10133 if test "X$exec_prefix" = "XNONE"; then
10134 acl_final_exec_prefix
='${prefix}'
10136 acl_final_exec_prefix
="$exec_prefix"
10138 acl_save_prefix
="$prefix"
10139 prefix
="$acl_final_prefix"
10140 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10141 prefix
="$acl_save_prefix"
10144 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10145 if test "${with_gnu_ld+set}" = set; then
10146 withval
="$with_gnu_ld"
10147 test "$withval" = no || with_gnu_ld
=yes
10151 # Prepare PATH_SEPARATOR.
10152 # The user is always right.
10153 if test "${PATH_SEPARATOR+set}" != set; then
10154 echo "#! /bin/sh" >conf$$.sh
10155 echo "exit 0" >>conf$$.sh
10157 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10165 if test "$GCC" = yes; then
10166 # Check if gcc -print-prog-name=ld gives a path.
10167 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10168 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10171 # gcc leaves a trailing carriage return which upsets mingw
10172 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10174 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10177 # Accept absolute paths.
10178 [\\/]* |
[A-Za-z
]:[\\/]*)
10179 re_direlt
='/[^/][^/]*/\.\./'
10180 # Canonicalize the path of ld
10181 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10182 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10183 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10185 test -z "$LD" && LD
="$ac_prog"
10188 # If it fails, then pretend we aren't using GCC.
10192 # If it is relative, then search for the first ld in PATH.
10193 with_gnu_ld
=unknown
10196 elif test "$with_gnu_ld" = yes; then
10197 echo "$as_me:$LINENO: checking for GNU ld" >&5
10198 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10200 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10201 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10203 if test "${acl_cv_path_LD+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 if test -z "$LD"; then
10207 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10208 for ac_dir
in $PATH; do
10209 test -z "$ac_dir" && ac_dir
=.
10210 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10211 acl_cv_path_LD
="$ac_dir/$ac_prog"
10212 # Check to see if the program is GNU ld. I'd rather use --version,
10213 # but apparently some GNU ld's only accept -v.
10214 # Break only if it was the GNU/non-GNU ld that we prefer.
10215 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10216 test "$with_gnu_ld" != no
&& break
10218 test "$with_gnu_ld" != yes && break
10224 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10228 LD
="$acl_cv_path_LD"
10229 if test -n "$LD"; then
10230 echo "$as_me:$LINENO: result: $LD" >&5
10231 echo "${ECHO_T}$LD" >&6
10233 echo "$as_me:$LINENO: result: no" >&5
10234 echo "${ECHO_T}no" >&6
10236 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10237 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10238 { (exit 1); exit 1; }; }
10239 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10240 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10241 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10245 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10246 acl_cv_prog_gnu_ld
=yes
10248 acl_cv_prog_gnu_ld
=no
10251 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10252 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10253 with_gnu_ld
=$acl_cv_prog_gnu_ld
10257 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10258 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10259 if test "${acl_cv_rpath+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10264 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10266 rm -f .
/conftest.sh
10270 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10271 echo "${ECHO_T}$acl_cv_rpath" >&6
10273 libext
="$acl_cv_libext"
10274 shlibext
="$acl_cv_shlibext"
10275 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10276 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10277 hardcode_direct
="$acl_cv_hardcode_direct"
10278 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10279 # Check whether --enable-rpath or --disable-rpath was given.
10280 if test "${enable_rpath+set}" = set; then
10281 enableval
="$enable_rpath"
10295 acl_save_prefix
="$prefix"
10296 prefix
="$acl_final_prefix"
10297 acl_save_exec_prefix
="$exec_prefix"
10298 exec_prefix
="$acl_final_exec_prefix"
10300 eval additional_includedir
=\"$includedir\"
10301 eval additional_libdir
=\"$libdir\"
10303 exec_prefix
="$acl_save_exec_prefix"
10304 prefix
="$acl_save_prefix"
10307 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10308 if test "${with_libiconv_prefix+set}" = set; then
10309 withval
="$with_libiconv_prefix"
10311 if test "X$withval" = "Xno"; then
10314 if test "X$withval" = "X"; then
10316 acl_save_prefix
="$prefix"
10317 prefix
="$acl_final_prefix"
10318 acl_save_exec_prefix
="$exec_prefix"
10319 exec_prefix
="$acl_final_exec_prefix"
10321 eval additional_includedir
=\"$includedir\"
10322 eval additional_libdir
=\"$libdir\"
10324 exec_prefix
="$acl_save_exec_prefix"
10325 prefix
="$acl_save_prefix"
10328 additional_includedir
="$withval/include"
10329 additional_libdir
="$withval/lib"
10339 names_already_handled
=
10340 names_next_round
='iconv '
10341 while test -n "$names_next_round"; do
10342 names_this_round
="$names_next_round"
10344 for name
in $names_this_round; do
10346 for n
in $names_already_handled; do
10347 if test "$n" = "$name"; then
10348 already_handled
=yes
10352 if test -z "$already_handled"; then
10353 names_already_handled
="$names_already_handled $name"
10354 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10355 eval value
=\"\
$HAVE_LIB$uppername\"
10356 if test -n "$value"; then
10357 if test "$value" = yes; then
10358 eval value
=\"\
$LIB$uppername\"
10359 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10360 eval value
=\"\
$LTLIB$uppername\"
10361 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10370 if test $use_additional = yes; then
10371 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10372 found_dir
="$additional_libdir"
10373 found_so
="$additional_libdir/lib$name.$shlibext"
10374 if test -f "$additional_libdir/lib$name.la"; then
10375 found_la
="$additional_libdir/lib$name.la"
10378 if test -f "$additional_libdir/lib$name.$libext"; then
10379 found_dir
="$additional_libdir"
10380 found_a
="$additional_libdir/lib$name.$libext"
10381 if test -f "$additional_libdir/lib$name.la"; then
10382 found_la
="$additional_libdir/lib$name.la"
10387 if test "X$found_dir" = "X"; then
10388 for x
in $LDFLAGS $LTLIBICONV; do
10390 acl_save_prefix
="$prefix"
10391 prefix
="$acl_final_prefix"
10392 acl_save_exec_prefix
="$exec_prefix"
10393 exec_prefix
="$acl_final_exec_prefix"
10395 exec_prefix
="$acl_save_exec_prefix"
10396 prefix
="$acl_save_prefix"
10400 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10401 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10403 found_so
="$dir/lib$name.$shlibext"
10404 if test -f "$dir/lib$name.la"; then
10405 found_la
="$dir/lib$name.la"
10408 if test -f "$dir/lib$name.$libext"; then
10410 found_a
="$dir/lib$name.$libext"
10411 if test -f "$dir/lib$name.la"; then
10412 found_la
="$dir/lib$name.la"
10418 if test "X$found_dir" != "X"; then
10423 if test "X$found_dir" != "X"; then
10424 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10425 if test "X$found_so" != "X"; then
10426 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10427 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10430 for x
in $ltrpathdirs; do
10431 if test "X$x" = "X$found_dir"; then
10436 if test -z "$haveit"; then
10437 ltrpathdirs
="$ltrpathdirs $found_dir"
10439 if test "$hardcode_direct" = yes; then
10440 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10442 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10443 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10445 for x
in $rpathdirs; do
10446 if test "X$x" = "X$found_dir"; then
10451 if test -z "$haveit"; then
10452 rpathdirs
="$rpathdirs $found_dir"
10456 for x
in $LDFLAGS $LIBICONV; do
10458 acl_save_prefix
="$prefix"
10459 prefix
="$acl_final_prefix"
10460 acl_save_exec_prefix
="$exec_prefix"
10461 exec_prefix
="$acl_final_exec_prefix"
10463 exec_prefix
="$acl_save_exec_prefix"
10464 prefix
="$acl_save_prefix"
10466 if test "X$x" = "X-L$found_dir"; then
10471 if test -z "$haveit"; then
10472 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10474 if test "$hardcode_minus_L" != no
; then
10475 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10477 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10483 if test "X$found_a" != "X"; then
10484 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10486 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10489 additional_includedir
=
10490 case "$found_dir" in
10492 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10493 additional_includedir
="$basedir/include"
10496 if test "X$additional_includedir" != "X"; then
10497 if test "X$additional_includedir" != "X/usr/include"; then
10499 if test "X$additional_includedir" = "X/usr/local/include"; then
10500 if test -n "$GCC"; then
10502 linux
*) haveit
=yes;;
10506 if test -z "$haveit"; then
10507 for x
in $CPPFLAGS $INCICONV; do
10509 acl_save_prefix
="$prefix"
10510 prefix
="$acl_final_prefix"
10511 acl_save_exec_prefix
="$exec_prefix"
10512 exec_prefix
="$acl_final_exec_prefix"
10514 exec_prefix
="$acl_save_exec_prefix"
10515 prefix
="$acl_save_prefix"
10517 if test "X$x" = "X-I$additional_includedir"; then
10522 if test -z "$haveit"; then
10523 if test -d "$additional_includedir"; then
10524 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10530 if test -n "$found_la"; then
10531 save_libdir
="$libdir"
10532 case "$found_la" in
10533 */* |
*\\*) .
"$found_la" ;;
10534 *) .
"./$found_la" ;;
10536 libdir
="$save_libdir"
10537 for dep
in $dependency_libs; do
10540 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10541 if test "X$additional_libdir" != "X/usr/lib"; then
10543 if test "X$additional_libdir" = "X/usr/local/lib"; then
10544 if test -n "$GCC"; then
10546 linux
*) haveit
=yes;;
10550 if test -z "$haveit"; then
10552 for x
in $LDFLAGS $LIBICONV; do
10554 acl_save_prefix
="$prefix"
10555 prefix
="$acl_final_prefix"
10556 acl_save_exec_prefix
="$exec_prefix"
10557 exec_prefix
="$acl_final_exec_prefix"
10559 exec_prefix
="$acl_save_exec_prefix"
10560 prefix
="$acl_save_prefix"
10562 if test "X$x" = "X-L$additional_libdir"; then
10567 if test -z "$haveit"; then
10568 if test -d "$additional_libdir"; then
10569 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10573 for x
in $LDFLAGS $LTLIBICONV; do
10575 acl_save_prefix
="$prefix"
10576 prefix
="$acl_final_prefix"
10577 acl_save_exec_prefix
="$exec_prefix"
10578 exec_prefix
="$acl_final_exec_prefix"
10580 exec_prefix
="$acl_save_exec_prefix"
10581 prefix
="$acl_save_prefix"
10583 if test "X$x" = "X-L$additional_libdir"; then
10588 if test -z "$haveit"; then
10589 if test -d "$additional_libdir"; then
10590 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10597 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10598 if test "$enable_rpath" != no
; then
10600 for x
in $rpathdirs; do
10601 if test "X$x" = "X$dir"; then
10606 if test -z "$haveit"; then
10607 rpathdirs
="$rpathdirs $dir"
10610 for x
in $ltrpathdirs; do
10611 if test "X$x" = "X$dir"; then
10616 if test -z "$haveit"; then
10617 ltrpathdirs
="$ltrpathdirs $dir"
10622 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10625 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10628 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10629 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10635 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10636 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10642 if test "X$rpathdirs" != "X"; then
10643 if test -n "$hardcode_libdir_separator"; then
10645 for found_dir
in $rpathdirs; do
10646 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10648 acl_save_libdir
="$libdir"
10650 eval flag
=\"$hardcode_libdir_flag_spec\"
10651 libdir
="$acl_save_libdir"
10652 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10654 for found_dir
in $rpathdirs; do
10655 acl_save_libdir
="$libdir"
10656 libdir
="$found_dir"
10657 eval flag
=\"$hardcode_libdir_flag_spec\"
10658 libdir
="$acl_save_libdir"
10659 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10663 if test "X$ltrpathdirs" != "X"; then
10664 for found_dir
in $ltrpathdirs; do
10665 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10675 am_save_CPPFLAGS
="$CPPFLAGS"
10677 for element
in $INCICONV; do
10679 for x
in $CPPFLAGS; do
10681 acl_save_prefix
="$prefix"
10682 prefix
="$acl_final_prefix"
10683 acl_save_exec_prefix
="$exec_prefix"
10684 exec_prefix
="$acl_final_exec_prefix"
10686 exec_prefix
="$acl_save_exec_prefix"
10687 prefix
="$acl_save_prefix"
10689 if test "X$x" = "X$element"; then
10694 if test -z "$haveit"; then
10695 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10700 echo "$as_me:$LINENO: checking for iconv" >&5
10701 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10702 if test "${am_cv_func_iconv+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 am_cv_func_iconv
="no, consider installing GNU libiconv"
10708 cat >conftest.
$ac_ext <<_ACEOF
10711 cat confdefs.h
>>conftest.
$ac_ext
10712 cat >>conftest.
$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 #include <stdlib.h>
10719 iconv_t cd = iconv_open("","");
10720 iconv(cd,NULL,NULL,NULL,NULL);
10726 rm -f conftest.
$ac_objext conftest
$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>conftest.er1
10730 grep -v '^ *+' conftest.er1
>conftest.err
10732 cat conftest.err
>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try
='test -s conftest$ac_exeext'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 am_cv_func_iconv
=yes
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.
$ac_ext >&5
10753 rm -f conftest.err conftest.
$ac_objext \
10754 conftest
$ac_exeext conftest.
$ac_ext
10755 if test "$am_cv_func_iconv" != yes; then
10756 am_save_LIBS
="$LIBS"
10757 LIBS
="$LIBS $LIBICONV"
10758 cat >conftest.
$ac_ext <<_ACEOF
10761 cat confdefs.h
>>conftest.
$ac_ext
10762 cat >>conftest.
$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 #include <stdlib.h>
10769 iconv_t cd = iconv_open("","");
10770 iconv(cd,NULL,NULL,NULL,NULL);
10776 rm -f conftest.
$ac_objext conftest
$ac_exeext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10778 (eval $ac_link) 2>conftest.er1
10780 grep -v '^ *+' conftest.er1
>conftest.err
10782 cat conftest.err
>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; } &&
10791 { ac_try
='test -s conftest$ac_exeext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 am_cv_lib_iconv
=yes
10798 am_cv_func_iconv
=yes
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.
$ac_ext >&5
10804 rm -f conftest.err conftest.
$ac_objext \
10805 conftest
$ac_exeext conftest.
$ac_ext
10806 LIBS
="$am_save_LIBS"
10810 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10811 echo "${ECHO_T}$am_cv_func_iconv" >&6
10812 if test "$am_cv_func_iconv" = yes; then
10814 cat >>confdefs.h
<<\_ACEOF
10815 #define HAVE_ICONV 1
10819 if test "$am_cv_lib_iconv" = yes; then
10820 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10821 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10822 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10823 echo "${ECHO_T}$LIBICONV" >&6
10825 CPPFLAGS
="$am_save_CPPFLAGS"
10832 if test "$am_cv_func_iconv" = yes; then
10833 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10834 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10835 if test "${am_cv_proto_iconv+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 cat >conftest.
$ac_ext <<_ACEOF
10842 cat confdefs.h
>>conftest.
$ac_ext
10843 cat >>conftest.
$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10846 #include <stdlib.h>
10852 #if defined(__STDC__) || defined(__cplusplus)
10853 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10866 rm -f conftest.
$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>conftest.er1
10870 grep -v '^ *+' conftest.er1
>conftest.err
10872 cat conftest.err
>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try
='test -s conftest.$ac_objext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 am_cv_proto_iconv_arg1
=""
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.
$ac_ext >&5
10892 am_cv_proto_iconv_arg1
="const"
10894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10895 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);"
10898 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10899 echo "$as_me:$LINENO: result: ${ac_t:-
10900 }$am_cv_proto_iconv" >&5
10901 echo "${ECHO_T}${ac_t:-
10902 }$am_cv_proto_iconv" >&6
10904 cat >>confdefs.h
<<_ACEOF
10905 #define ICONV_CONST $am_cv_proto_iconv_arg1
10910 # Until we have in-tree GNU iconv:
10915 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10916 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10917 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 cat >conftest.
$ac_ext <<_ACEOF
10923 cat confdefs.h
>>conftest.
$ac_ext
10924 cat >>conftest.
$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 #include <locale.h>
10935 rm -f conftest.
$ac_objext conftest
$ac_exeext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10937 (eval $ac_link) 2>conftest.er1
10939 grep -v '^ *+' conftest.er1
>conftest.err
10941 cat conftest.err
>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try
='test -s conftest$ac_exeext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 am_cv_val_LC_MESSAGES
=yes
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.
$ac_ext >&5
10961 am_cv_val_LC_MESSAGES
=no
10963 rm -f conftest.err conftest.
$ac_objext \
10964 conftest
$ac_exeext conftest.
$ac_ext
10966 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10967 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10968 if test $am_cv_val_LC_MESSAGES = yes; then
10970 cat >>confdefs.h
<<\_ACEOF
10971 #define HAVE_LC_MESSAGES 1
10978 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10979 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10980 if test "${am_cv_langinfo_codeset+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 cat >conftest.
$ac_ext <<_ACEOF
10986 cat confdefs.h
>>conftest.
$ac_ext
10987 cat >>conftest.
$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 #include <langinfo.h>
10993 char* cs = nl_langinfo(CODESET);
10998 rm -f conftest.
$ac_objext conftest
$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>conftest.er1
11002 grep -v '^ *+' conftest.er1
>conftest.err
11004 cat conftest.err
>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; } &&
11013 { ac_try
='test -s conftest$ac_exeext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 am_cv_langinfo_codeset
=yes
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.
$ac_ext >&5
11024 am_cv_langinfo_codeset
=no
11026 rm -f conftest.err conftest.
$ac_objext \
11027 conftest
$ac_exeext conftest.
$ac_ext
11030 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11031 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11032 if test $am_cv_langinfo_codeset = yes; then
11034 cat >>confdefs.h
<<\_ACEOF
11035 #define HAVE_LANGINFO_CODESET 1
11041 # We will need to find libiberty.h and ansidecl.h
11042 saved_CFLAGS
="$CFLAGS"
11043 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11068 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
11069 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11070 fprintf_unlocked strstr errno snprintf vasprintf \
11071 malloc realloc calloc free
basename getopt
clock getpagesize
11073 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11074 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11075 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11076 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 cat >conftest.
$ac_ext <<_ACEOF
11082 cat confdefs.h
>>conftest.
$ac_ext
11083 cat >>conftest.
$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11086 #define $ac_tr_decl 1
11088 #include "ansidecl.h"
11089 #include "system.h"
11095 char *(*pfn) = (char *(*)) $ac_func ;
11101 rm -f conftest.
$ac_objext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103 (eval $ac_compile) 2>conftest.er1
11105 grep -v '^ *+' conftest.er1
>conftest.err
11107 cat conftest.err
>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; } &&
11116 { ac_try
='test -s conftest.$ac_objext'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 eval "gcc_cv_have_decl_$ac_func=yes"
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.
$ac_ext >&5
11127 eval "gcc_cv_have_decl_$ac_func=no"
11129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11132 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11133 echo "$as_me:$LINENO: result: yes" >&5
11134 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11135 #define $ac_tr_decl 1
11139 echo "$as_me:$LINENO: result: no" >&5
11140 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11141 #define $ac_tr_decl 0
11152 for ac_func
in getrlimit setrlimit getrusage
11154 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11155 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11156 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11157 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 cat >conftest.
$ac_ext <<_ACEOF
11163 cat confdefs.h
>>conftest.
$ac_ext
11164 cat >>conftest.
$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11167 #define $ac_tr_decl 1
11169 #include "ansidecl.h"
11170 #include "system.h"
11171 #ifdef HAVE_SYS_RESOURCE_H
11172 #include <sys/resource.h>
11180 char *(*pfn) = (char *(*)) $ac_func ;
11186 rm -f conftest.
$ac_objext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11188 (eval $ac_compile) 2>conftest.er1
11190 grep -v '^ *+' conftest.er1
>conftest.err
11192 cat conftest.err
>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try
='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 eval "gcc_cv_have_decl_$ac_func=yes"
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.
$ac_ext >&5
11212 eval "gcc_cv_have_decl_$ac_func=no"
11214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11217 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11218 echo "$as_me:$LINENO: result: yes" >&5
11219 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11220 #define $ac_tr_decl 1
11224 echo "$as_me:$LINENO: result: no" >&5
11225 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11226 #define $ac_tr_decl 0
11234 cat >conftest.
$ac_ext <<_ACEOF
11237 cat confdefs.h
>>conftest.
$ac_ext
11238 cat >>conftest.
$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11241 #include "ansidecl.h"
11242 #include "system.h"
11243 #ifdef HAVE_SYS_RESOURCE_H
11244 #include <sys/resource.h>
11255 rm -f conftest.
$ac_objext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11257 (eval $ac_compile) 2>conftest.er1
11259 grep -v '^ *+' conftest.er1
>conftest.err
11261 cat conftest.err
>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try
='test -s conftest.$ac_objext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.
$ac_ext >&5
11282 cat >>confdefs.h
<<\_ACEOF
11283 #define rlim_t long
11287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11289 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11290 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11291 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11292 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11294 for ac_func
in ldgetname
11296 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11297 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11298 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11299 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 cat >conftest.
$ac_ext <<_ACEOF
11305 cat confdefs.h
>>conftest.
$ac_ext
11306 cat >>conftest.
$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11309 #define $ac_tr_decl 1
11311 #include "ansidecl.h"
11312 #include "system.h"
11313 #ifdef HAVE_LDFCN_H
11324 char *(*pfn) = (char *(*)) $ac_func ;
11330 rm -f conftest.
$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11334 grep -v '^ *+' conftest.er1
>conftest.err
11336 cat conftest.err
>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try
='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 eval "gcc_cv_have_decl_$ac_func=yes"
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.
$ac_ext >&5
11356 eval "gcc_cv_have_decl_$ac_func=no"
11358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11361 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11362 echo "$as_me:$LINENO: result: yes" >&5
11363 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11364 #define $ac_tr_decl 1
11368 echo "$as_me:$LINENO: result: no" >&5
11369 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11370 #define $ac_tr_decl 0
11379 for ac_func
in times
11381 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11382 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11383 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11384 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.
$ac_ext <<_ACEOF
11390 cat confdefs.h
>>conftest.
$ac_ext
11391 cat >>conftest.
$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11394 #define $ac_tr_decl 1
11396 #include "ansidecl.h"
11397 #include "system.h"
11398 #ifdef HAVE_SYS_TIMES_H
11399 #include <sys/times.h>
11407 char *(*pfn) = (char *(*)) $ac_func ;
11413 rm -f conftest.
$ac_objext
11414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11415 (eval $ac_compile) 2>conftest.er1
11417 grep -v '^ *+' conftest.er1
>conftest.err
11419 cat conftest.err
>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; } &&
11428 { ac_try
='test -s conftest.$ac_objext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 eval "gcc_cv_have_decl_$ac_func=yes"
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.
$ac_ext >&5
11439 eval "gcc_cv_have_decl_$ac_func=no"
11441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11444 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11445 echo "$as_me:$LINENO: result: yes" >&5
11446 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11447 #define $ac_tr_decl 1
11451 echo "$as_me:$LINENO: result: no" >&5
11452 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11453 #define $ac_tr_decl 0
11461 # More time-related stuff.
11462 echo "$as_me:$LINENO: checking for struct tms" >&5
11463 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11464 if test "${ac_cv_struct_tms+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 cat >conftest.
$ac_ext <<_ACEOF
11471 cat confdefs.h
>>conftest.
$ac_ext
11472 cat >>conftest.
$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11475 #include "ansidecl.h"
11476 #include "system.h"
11477 #ifdef HAVE_SYS_TIMES_H
11478 #include <sys/times.h>
11489 rm -f conftest.
$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491 (eval $ac_compile) 2>conftest.er1
11493 grep -v '^ *+' conftest.er1
>conftest.err
11495 cat conftest.err
>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try
='test -s conftest.$ac_objext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_struct_tms
=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.
$ac_ext >&5
11515 ac_cv_struct_tms
=no
11517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11519 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11520 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11521 if test $ac_cv_struct_tms = yes; then
11523 cat >>confdefs.h
<<\_ACEOF
11524 #define HAVE_STRUCT_TMS 1
11529 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11530 # revisit after autoconf 2.50.
11531 echo "$as_me:$LINENO: checking for clock_t" >&5
11532 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11533 if test "${gcc_cv_type_clock_t+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 cat >conftest.
$ac_ext <<_ACEOF
11540 cat confdefs.h
>>conftest.
$ac_ext
11541 cat >>conftest.
$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11544 #include "ansidecl.h"
11545 #include "system.h"
11555 rm -f conftest.
$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557 (eval $ac_compile) 2>conftest.er1
11559 grep -v '^ *+' conftest.er1
>conftest.err
11561 cat conftest.err
>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try
='test -s conftest.$ac_objext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 gcc_cv_type_clock_t
=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.
$ac_ext >&5
11581 gcc_cv_type_clock_t
=no
11583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11585 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11586 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11587 if test $gcc_cv_type_clock_t = yes; then
11589 cat >>confdefs.h
<<\_ACEOF
11590 #define HAVE_CLOCK_T 1
11595 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11596 CFLAGS
="$saved_CFLAGS"
11598 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11599 if test "${enable_initfini_array+set}" = set; then
11600 enableval
="$enable_initfini_array"
11604 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11605 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11606 if test "${gcc_cv_initfini_array+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 if test "$cross_compiling" = yes; then
11610 gcc_cv_initfini_array
=no
11612 cat >conftest.
$ac_ext <<_ACEOF
11615 cat confdefs.h
>>conftest.
$ac_ext
11616 cat >>conftest.
$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11620 int main (void) { return x; }
11621 int foo (void) { x = 0; }
11622 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11624 rm -f conftest
$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 gcc_cv_initfini_array
=yes
11637 echo "$as_me: program exited with status $ac_status" >&5
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.
$ac_ext >&5
11641 ( exit $ac_status )
11642 gcc_cv_initfini_array
=no
11644 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11647 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11648 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11649 enable_initfini_array
=$gcc_cv_initfini_array
11652 if test $enable_initfini_array = yes; then
11654 cat >>confdefs.h
<<\_ACEOF
11655 #define HAVE_INITFINI_ARRAY 1
11660 # mkdir takes a single argument on some systems.
11661 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11662 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11663 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 cat >conftest.
$ac_ext <<_ACEOF
11669 cat confdefs.h
>>conftest.
$ac_ext
11670 cat >>conftest.
$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11673 #include <sys/types.h>
11674 #ifdef HAVE_SYS_STAT_H
11675 # include <sys/stat.h>
11677 #ifdef HAVE_UNISTD_H
11678 # include <unistd.h>
11680 #ifdef HAVE_DIRECT_H
11681 # include <direct.h>
11691 rm -f conftest.
$ac_objext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11693 (eval $ac_compile) 2>conftest.er1
11695 grep -v '^ *+' conftest.er1
>conftest.err
11697 cat conftest.err
>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; } &&
11706 { ac_try
='test -s conftest.$ac_objext'
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; }; then
11712 gcc_cv_mkdir_takes_one_arg
=no
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.
$ac_ext >&5
11717 gcc_cv_mkdir_takes_one_arg
=yes
11719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11721 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11722 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11723 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11725 cat >>confdefs.h
<<\_ACEOF
11726 #define MKDIR_TAKES_ONE_ARG 1
11738 # With Setjmp/Longjmp based exception handling.
11739 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11740 if test "${enable_sjlj_exceptions+set}" = set; then
11741 enableval
="$enable_sjlj_exceptions"
11742 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11744 cat >>confdefs.h
<<_ACEOF
11745 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11750 # For platforms with the unwind ABI which includes an unwind library,
11751 # libunwind, we can choose to use the system libunwind.
11753 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11754 if test "${with_system_libunwind+set}" = set; then
11755 withval
="$with_system_libunwind"
11759 # --------------------------------------------------------
11760 # Build, host, and target specific configuration fragments
11761 # --------------------------------------------------------
11763 # Collect build-machine-specific information.
11764 .
${srcdir}/config.build
11766 # Collect host-machine-specific information.
11767 .
${srcdir}/config.
host
11771 # Collect target-machine-specific information.
11772 .
${srcdir}/config.gcc
11774 extra_objs
="${host_extra_objs} ${extra_objs}"
11775 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11777 # Default the target-machine variables that were not explicitly set.
11778 if test x
"$tm_file" = x
11779 then tm_file
=$cpu_type/$cpu_type.h
; fi
11781 if test x
"$extra_headers" = x
11782 then extra_headers
=; fi
11784 if test x
$md_file = x
11785 then md_file
=$cpu_type/$cpu_type.md
; fi
11787 if test x
$out_file = x
11788 then out_file
=$cpu_type/$cpu_type.c
; fi
11790 if test x
"$tmake_file" = x
11791 then tmake_file
=$cpu_type/t-
$cpu_type
11794 if test x
"$dwarf2" = xyes
11795 then tm_file
="$tm_file tm-dwarf2.h"
11798 # Say what files are being used for the output code and MD file.
11799 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11800 echo "Using \`$srcdir/config/$md_file' as machine description file."
11802 # If any of the xm_file variables contain nonexistent files, warn
11803 # about them and drop them.
11806 for x
in $build_xm_file; do
11807 if test -f $srcdir/config
/$x
11809 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11810 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11813 build_xm_file
="$bx"
11816 for x
in $host_xm_file; do
11817 if test -f $srcdir/config
/$x
11819 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11820 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11826 for x
in $xm_file; do
11827 if test -f $srcdir/config
/$x
11829 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11830 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11836 for f
in $tm_file; do
11839 if test $count = ax
; then
11840 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11842 echo "Using the following target machine macro files:"
11843 for f
in $tm_file; do
11844 echo " $srcdir/config/$f"
11848 if test x
$need_64bit_hwint = xyes
; then
11850 cat >>confdefs.h
<<\_ACEOF
11851 #define NEED_64BIT_HOST_WIDE_INT 1
11856 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11858 cat >>confdefs.h
<<\_ACEOF
11859 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11865 for f
in $host_xm_file; do
11868 if test $count = a
; then
11870 elif test $count = ax
; then
11871 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11873 echo "Using the following host machine macro files:"
11874 for f
in $host_xm_file; do
11875 echo " $srcdir/config/$f"
11878 echo "Using ${out_host_hook_obj} for host machine hooks."
11880 if test "$host_xm_file" != "$build_xm_file"; then
11882 for f
in $build_xm_file; do
11885 if test $count = a
; then
11887 elif test $count = ax
; then
11888 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11890 echo "Using the following build machine macro files:"
11891 for f
in $build_xm_file; do
11892 echo " $srcdir/config/$f"
11901 # Check if a valid thread package
11902 case ${enable_threads} in
11905 target_thread_file
='single'
11909 target_thread_file
='single'
11911 aix | dce | gnat | irix | posix | posix95 | rtems | \
11912 single | solaris | vxworks | win32
)
11913 target_thread_file
=${enable_threads}
11916 echo "${enable_threads} is an unknown thread package" 1>&2
11921 if test x
${thread_file} = x
; then
11922 # No thread file set by target-specific clauses in config.gcc,
11923 # so use file chosen by default logic above
11924 thread_file
=${target_thread_file}
11927 # Make gthr-default.h if we have a thread file.
11929 if test $thread_file != single
; then
11930 rm -f gthr-default.h
11931 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11932 gthread_flags
=-DHAVE_GTHR_DEFAULT
11941 if test x
$enable___cxa_atexit = xyes || \
11942 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11943 if test x
$host = x
$target; then
11944 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11945 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11946 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 cat >conftest.
$ac_ext <<_ACEOF
11952 cat confdefs.h
>>conftest.
$ac_ext
11953 cat >>conftest.
$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11957 #define __cxa_atexit innocuous___cxa_atexit
11959 /* System header to define __stub macros and hopefully few prototypes,
11960 which can conflict with char __cxa_atexit (); below.
11961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11962 <limits.h> exists even on freestanding compilers. */
11965 # include <limits.h>
11967 # include <assert.h>
11970 #undef __cxa_atexit
11972 /* Override any gcc2 internal prototype to avoid an error. */
11977 /* We use char because int might match the return type of a gcc2
11978 builtin and then its argument prototype would still apply. */
11979 char __cxa_atexit ();
11980 /* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11986 char (*f) () = __cxa_atexit;
11995 return f != __cxa_atexit;
12000 rm -f conftest.
$ac_objext conftest
$ac_exeext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002 (eval $ac_link) 2>conftest.er1
12004 grep -v '^ *+' conftest.er1
>conftest.err
12006 cat conftest.err
>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try
='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_func___cxa_atexit
=yes
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.
$ac_ext >&5
12026 ac_cv_func___cxa_atexit
=no
12028 rm -f conftest.err conftest.
$ac_objext \
12029 conftest
$ac_exeext conftest.
$ac_ext
12031 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12032 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12033 if test $ac_cv_func___cxa_atexit = yes; then
12036 echo "__cxa_atexit can't be enabled on this target"
12040 # We can't check for __cxa_atexit when building a cross, so assume
12044 if test x
$use_cxa_atexit = xyes
; then
12046 cat >>confdefs.h
<<\_ACEOF
12047 #define DEFAULT_USE_CXA_ATEXIT 1
12053 # Look for a file containing extra machine modes.
12054 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12055 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12058 cat >>confdefs.h
<<_ACEOF
12059 #define EXTRA_MODES_FILE "config/$extra_modes"
12064 # auto-host.h is the file containing items generated by autoconf and is
12065 # the first file included by config.h.
12066 # If host=build, it is correct to have bconfig include auto-host.h
12067 # as well. If host!=build, we are in error and need to do more
12068 # work to find out the build config parameters.
12069 if test x
$host = x
$build
12071 build_auto
=auto-host.h
12073 # We create a subdir, then run autoconf in the subdir.
12074 # To prevent recursion we set host and build for the new
12075 # invocation of configure to the build for this invocation
12082 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12083 *) realsrcdir
=..
/${srcdir};;
12085 saved_CFLAGS
="${CFLAGS}"
12086 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12087 ${realsrcdir}/configure \
12088 --enable-languages=${enable_languages-all} \
12089 --target=$target_alias --host=$build_alias --build=$build_alias
12090 CFLAGS
="${saved_CFLAGS}"
12092 # We just finished tests for the build machine, so rename
12093 # the file auto-build.h in the gcc directory.
12094 mv auto-host.h ..
/auto-build.h
12097 build_auto
=auto-build.h
12101 tm_file
="${tm_file} defaults.h"
12102 tm_p_file
="${tm_p_file} tm-preds.h"
12103 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12104 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12105 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12106 # put this back in temporarily.
12107 xm_file
="ansidecl.h ${xm_file}"
12113 # Compile in configure arguments.
12114 if test -f configargs.h
; then
12115 # Being re-configured.
12116 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12117 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12119 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12122 # Double all backslashes and backslash all quotes to turn
12123 # gcc_config_arguments into a C string.
12124 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12125 $gcc_config_arguments
12127 gcc_config_arguments_str
=`cat conftest.out`
12130 cat > configargs.h
<<EOF
12131 /* Generated automatically. */
12132 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12133 static const char thread_model[] = "$thread_file";
12135 static const struct {
12136 const char *name, *value;
12137 } configure_default_options[] = $configure_default_options;
12140 # Internationalization
12142 VERSION
="$gcc_version"
12144 cat >>confdefs.h
<<_ACEOF
12145 #define PACKAGE "$PACKAGE"
12151 # If we haven't got the data from the intl directory,
12152 # assume NLS is disabled.
12160 if test -f ..
/intl
/config.intl
; then
12161 . ..
/intl
/config.intl
12163 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12164 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12165 if test x
"$USE_NLS" != xyes
; then
12166 echo "$as_me:$LINENO: result: no" >&5
12167 echo "${ECHO_T}no" >&6
12169 echo "$as_me:$LINENO: result: yes" >&5
12170 echo "${ECHO_T}yes" >&6
12172 cat >>confdefs.h
<<\_ACEOF
12173 #define ENABLE_NLS 1
12177 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12178 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12179 # Look for .po and .gmo files in the source directory.
12182 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12183 # If there aren't any .gmo files the shell will give us the
12184 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12186 case "$cat" in *\
**)
12189 # The quadruple backslash is collapsed to a double backslash
12190 # by the backticks, then collapsed again by the double quotes,
12191 # leaving us with one backslash in the sed expression (right
12192 # before the dot that mustn't act as a wildcard).
12193 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12194 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12195 # The user is allowed to set LINGUAS to a list of languages to
12196 # install catalogs for. If it's empty that means "all of them."
12197 if test "x$LINGUAS" = x
; then
12198 CATALOGS
="$CATALOGS $cat"
12199 XLINGUAS
="$XLINGUAS $lang"
12201 case "$LINGUAS" in *$lang*)
12202 CATALOGS
="$CATALOGS $cat"
12203 XLINGUAS
="$XLINGUAS $lang"
12208 LINGUAS
="$XLINGUAS"
12209 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12210 echo "${ECHO_T}$LINGUAS" >&6
12213 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12214 # -liconv on the link line twice.
12215 case "$LIBINTL" in *$LIBICONV*)
12219 # Windows32 Registry support for specifying GCC installation paths.
12220 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12221 if test "${enable_win32_registry+set}" = set; then
12222 enableval
="$enable_win32_registry"
12226 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12227 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12228 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12229 if test "x$enable_win32_registry" != xno
; then
12231 cat >>confdefs.h
<<\_ACEOF
12232 #define ENABLE_WIN32_REGISTRY 1
12235 echo "$as_me:$LINENO: result: yes" >&5
12236 echo "${ECHO_T}yes" >&6
12237 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12238 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12239 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 ac_func_search_save_LIBS
=$LIBS
12243 ac_cv_search_RegOpenKeyExA
=no
12244 cat >conftest.
$ac_ext <<_ACEOF
12247 cat confdefs.h
>>conftest.
$ac_ext
12248 cat >>conftest.
$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 /* Override any gcc2 internal prototype to avoid an error. */
12255 /* We use char because int might match the return type of a gcc2
12256 builtin and then its argument prototype would still apply. */
12257 char RegOpenKeyExA ();
12266 rm -f conftest.
$ac_objext conftest
$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>conftest.er1
12270 grep -v '^ *+' conftest.er1
>conftest.err
12272 cat conftest.err
>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try
='test -s conftest$ac_exeext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_cv_search_RegOpenKeyExA
="none required"
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.
$ac_ext >&5
12293 rm -f conftest.err conftest.
$ac_objext \
12294 conftest
$ac_exeext conftest.
$ac_ext
12295 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12296 for ac_lib
in advapi32
; do
12297 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12298 cat >conftest.
$ac_ext <<_ACEOF
12301 cat confdefs.h
>>conftest.
$ac_ext
12302 cat >>conftest.
$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12305 /* Override any gcc2 internal prototype to avoid an error. */
12309 /* We use char because int might match the return type of a gcc2
12310 builtin and then its argument prototype would still apply. */
12311 char RegOpenKeyExA ();
12320 rm -f conftest.
$ac_objext conftest
$ac_exeext
12321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12322 (eval $ac_link) 2>conftest.er1
12324 grep -v '^ *+' conftest.er1
>conftest.err
12326 cat conftest.err
>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } &&
12329 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try
='test -s conftest$ac_exeext'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.
$ac_ext >&5
12348 rm -f conftest.err conftest.
$ac_objext \
12349 conftest
$ac_exeext conftest.
$ac_ext
12352 LIBS
=$ac_func_search_save_LIBS
12354 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12355 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12356 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12357 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12362 echo "$as_me:$LINENO: result: no" >&5
12363 echo "${ECHO_T}no" >&6
12366 # Check if user specified a different registry key.
12367 case "x${enable_win32_registry}" in
12370 gcc_cv_win32_registry_key
="$VERSION"
12373 # no registry lookup.
12374 gcc_cv_win32_registry_key
=''
12377 # user-specified key.
12378 gcc_cv_win32_registry_key
="$enable_win32_registry"
12382 if test "x$enable_win32_registry" != xno
; then
12383 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12384 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12386 cat >>confdefs.h
<<_ACEOF
12387 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12390 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12391 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12396 # Get an absolute path to the GCC top-level source directory
12397 holddir
=`${PWDCMD-pwd}`
12399 topdir
=`${PWDCMD-pwd}`
12402 # Conditionalize the makefile for this host machine.
12404 for f
in ${host_xmake_file}
12406 if test -f ${srcdir}/config
/$f
12408 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12412 # Conditionalize the makefile for this target machine.
12414 for f
in ${tmake_file}
12416 if test -f ${srcdir}/config
/$f
12418 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12421 tmake_file
="${tmake_file_}"
12423 # If the host doesn't support symlinks, modify CC in
12424 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12425 # Otherwise, we can use "CC=$(CC)".
12429 cc_set_by_configure
="\$(CC)"
12430 quoted_cc_set_by_configure
="\$(CC)"
12431 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12432 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12435 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12436 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12437 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12438 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12442 # This is a terrible hack which will go away some day.
12443 host_cc_for_libada
=${CC}
12446 out_object_file
=`basename $out_file .c`.o
12450 for f
in $tm_file; do
12453 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12454 tm_include_list
="${tm_include_list} $f"
12457 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12458 tm_include_list
="${tm_include_list} config/$f"
12465 for f
in $tm_p_file; do
12468 tm_p_file_list
="${tm_p_file_list} $f"
12469 tm_p_include_list
="${tm_p_include_list} $f"
12472 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12473 tm_p_include_list
="${tm_p_include_list} config/$f"
12479 for f
in $xm_file; do
12482 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12483 xm_include_list
="${xm_include_list} $f"
12486 xm_file_list
="${xm_file_list} $f"
12487 xm_include_list
="${xm_include_list} $f"
12490 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12491 xm_include_list
="${xm_include_list} config/$f"
12497 host_xm_include_list
=
12498 for f
in $host_xm_file; do
12501 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12502 host_xm_include_list
="${host_xm_include_list} $f"
12505 host_xm_file_list
="${host_xm_file_list} $f"
12506 host_xm_include_list
="${host_xm_include_list} $f"
12509 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12510 host_xm_include_list
="${host_xm_include_list} config/$f"
12515 build_xm_file_list
=
12516 for f
in $build_xm_file; do
12519 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12520 build_xm_include_list
="${build_xm_include_list} $f"
12522 auto-build.h | auto-host.h
)
12523 build_xm_file_list
="${build_xm_file_list} $f"
12524 build_xm_include_list
="${build_xm_include_list} $f"
12527 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12528 build_xm_include_list
="${build_xm_include_list} config/$f"
12533 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12534 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12537 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12538 if test x
$host != x
$target
12540 CROSS
="-DCROSS_COMPILE"
12542 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12543 case "$host","$target" in
12544 # Darwin crosses can use the host system's libraries and headers,
12545 # because of the fat library support. Of course, it must be the
12546 # same version of Darwin on both sides. Allow the user to
12547 # just say --target=foo-darwin without a version number to mean
12548 # "the version on this system".
12549 *-*-darwin*,*-*-darwin*)
12550 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12551 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12552 if test $hostos = $targetos -o $targetos = darwin
; then
12554 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12559 i?
86-*-*,x86_64-
*-* \
12560 | powerpc
*-*-*,powerpc64
*-*-*)
12561 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12563 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12564 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12565 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12568 # If this is a cross-compiler that does not
12569 # have its own set of headers then define
12572 # If this is using newlib, without having the headers available now,
12573 # then define inhibit_libc in LIBGCC2_CFLAGS.
12574 # This prevents libgcc2 from containing any code which requires libc
12577 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12578 test x
$with_newlib = xyes
; } &&
12579 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12580 inhibit_libc
=-Dinhibit_libc
12584 # When building gcc with a cross-compiler, we need to adjust things so
12585 # that the generator programs are still built with the native compiler.
12586 # Also, we cannot run fixincludes or fix-header.
12588 # These are the normal (build=host) settings:
12589 CC_FOR_BUILD
='$(CC)'
12590 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12591 STMP_FIXINC
=stmp-fixinc
12593 # Possibly disable fixproto, on a per-target basis.
12594 case ${use_fixproto} in
12599 STMP_FIXPROTO
=stmp-fixproto
12604 # And these apply if build != host, or we are generating coverage data
12605 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12607 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12609 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12610 if "x$STMP_FIXPROTO" != x
; then
12611 STMP_FIXPROTO
=stmp-install-fixproto
12616 # Expand extra_headers to include complete path.
12617 # This substitutes for lots of t-* files.
12618 extra_headers_list
=
12619 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12620 for file in ${extra_headers} ; do
12621 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12624 # Define collect2 in Makefile.
12625 case $host_can_use_collect2 in
12627 *) collect2
='collect2$(exeext)' ;;
12631 # Add a definition of USE_COLLECT2 if system wants one.
12632 case $use_collect2 in
12633 no
) use_collect2
= ;;
12636 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12637 xm_defines
="${xm_defines} USE_COLLECT2"
12638 case $host_can_use_collect2 in
12640 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12641 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12642 { (exit 1); exit 1; }; }
12648 # ---------------------------
12649 # Assembler & linker features
12650 # ---------------------------
12652 # Identify the assembler which will work hand-in-glove with the newly
12653 # built GCC, so that we can examine its features. This is the assembler
12654 # which will be driven by the driver program.
12656 # If build != host, and we aren't building gas in-tree, we identify a
12657 # build->target assembler and hope that it will have the same features
12658 # as the host->target assembler we'll be using.
12659 echo "$as_me:$LINENO: checking what assembler to use" >&5
12660 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12663 gcc_cv_gas_major_version
=
12664 gcc_cv_gas_minor_version
=
12665 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12666 if test -x "$DEFAULT_ASSEMBLER"; then
12667 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12668 elif test -x as
$build_exeext; then
12669 # Build using assembler in the current directory.
12670 gcc_cv_as
=.
/as
$build_exeext
12671 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12672 && test -f ..
/gas
/Makefile \
12673 && test x
$build = x
$host; then
12674 # Single tree build which includes gas. We want to prefer it
12675 # over whatever linker top-level may have detected, since
12676 # we'll use what we're building after installation anyway.
12678 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12679 for f
in $gcc_cv_as_bfd_srcdir/configure \
12680 $gcc_cv_as_gas_srcdir/configure \
12681 $gcc_cv_as_gas_srcdir/configure.
in \
12682 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12683 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12684 if test x
$gcc_cv_gas_version != x
; then
12688 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12689 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12690 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12691 case $gcc_cv_gas_patch_version in
12692 "") gcc_cv_gas_patch_version
="0" ;;
12694 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12695 + $gcc_cv_gas_minor_version \) \* 1000 \
12696 + $gcc_cv_gas_patch_version`
12698 rm -f as
$build_exeext
12699 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12700 in_tree_gas_is_elf
=no
12701 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12702 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12703 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12705 in_tree_gas_is_elf
=yes
12707 elif test -x "$AS_FOR_TARGET"; then
12708 gcc_cv_as
="$AS_FOR_TARGET"
12709 elif test -x "$AS" && test x
$host = x
$target; then
12713 if test "x$gcc_cv_as" = x
; then
12714 # Search the same directories that the installed compiler will
12715 # search. Else we may find the wrong assembler and lose. If we
12716 # do not find a suitable assembler binary, then try the user's
12719 # Also note we have to check MD_EXEC_PREFIX before checking the
12720 # user's path. Unfortunately, there is no good way to get at the
12721 # value of MD_EXEC_PREFIX here. So we do a brute force search
12722 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12723 # to be fixed as part of the make/configure rewrite too.
12725 if test "x$exec_prefix" = xNONE
; then
12726 if test "x$prefix" = xNONE
; then
12727 test_prefix
=/usr
/local
12729 test_prefix
=$prefix
12732 test_prefix
=$exec_prefix
12735 # If the loop below does not find an assembler, then use whatever
12736 # one we can find in the users's path. We are looking for a
12737 # ${build} -> ${target} assembler.
12738 if test "x$program_prefix" != xNONE
; then
12739 gcc_cv_as
=${program_prefix}as
$build_exeext
12740 elif test x
$build != x
$host && test x
$build != x
$target; then
12741 gcc_cv_as
=${target_noncanonical}-as$build_exeext
12743 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12746 if test x
$host = x
$build; then
12747 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12748 $test_prefix/libexec/gcc/$target_noncanonical \
12749 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12750 /usr/lib/gcc/$target_noncanonical \
12751 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12752 $test_prefix/$target_noncanonical/bin"
12757 if test x
$build = x
$target; then
12758 test_dirs
="$test_dirs \
12763 /bsd43/usr/lib/cmplrs/cc \
12764 /usr/cross64/usr/bin \
12765 /usr/lib/cmplrs/cc \
12766 /sysv/usr/lib/cmplrs/cc \
12767 /svr4/usr/lib/cmplrs/cc \
12771 for dir
in $test_dirs; do
12772 if test -x $dir/as
$build_exeext; then
12773 gcc_cv_as
=$dir/as
$build_exeext
12778 case $in_tree_gas in
12780 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12781 echo "${ECHO_T}\"newly built gas\"" >&6
12784 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12785 echo "${ECHO_T}$gcc_cv_as" >&6
12789 # Identify the linker which will work hand-in-glove with the newly
12790 # built GCC, so that we can examine its features. This is the linker
12791 # which will be driven by the driver program.
12793 # If build != host, and we aren't building gas in-tree, we identify a
12794 # build->target linker and hope that it will have the same features
12795 # as the host->target linker we'll be using.
12796 echo "$as_me:$LINENO: checking what linker to use" >&5
12797 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12800 gcc_cv_gld_major_version
=
12801 gcc_cv_gld_minor_version
=
12802 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12803 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12804 if test -x "$DEFAULT_LINKER"; then
12805 gcc_cv_ld
="$DEFAULT_LINKER"
12806 elif test -x collect-ld
$build_exeext; then
12807 # Build using linker in the current directory.
12808 gcc_cv_ld
=.
/collect-ld
$build_exeext
12809 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12810 && test -f ..
/ld
/Makefile \
12811 && test x
$build = x
$host; then
12812 # Single tree build which includes ld. We want to prefer it
12813 # over whatever linker top-level may have detected, since
12814 # we'll use what we're building after installation anyway.
12816 in_tree_ld_is_elf
=no
12817 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12818 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12819 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12820 in_tree_ld_is_elf
=yes
12822 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
12824 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12825 if test x
$gcc_cv_gld_version != x
; then
12829 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12830 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12831 rm -f collect-ld
$build_exeext
12832 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12833 elif test -x "$LD_FOR_TARGET"; then
12834 gcc_cv_ld
="$LD_FOR_TARGET"
12835 elif test -x "$LD" && test x
$host = x
$target; then
12839 if test "x$gcc_cv_ld" = x
; then
12840 # Search the same directories that the installed compiler will
12841 # search. Else we may find the wrong linker and lose. If we
12842 # do not find a suitable linker binary, then try the user's
12845 # Also note we have to check MD_EXEC_PREFIX before checking the
12846 # user's path. Unfortunately, there is no good way to get at the
12847 # value of MD_EXEC_PREFIX here. So we do a brute force search
12848 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12849 # to be fixed as part of the make/configure rewrite too.
12851 if test "x$exec_prefix" = xNONE
; then
12852 if test "x$prefix" = xNONE
; then
12853 test_prefix
=/usr
/local
12855 test_prefix
=$prefix
12858 test_prefix
=$exec_prefix
12861 # If the loop below does not find a linker, then use whatever
12862 # one we can find in the users's path. We are looking for a
12863 # ${build} -> ${target} linker.
12864 if test "x$program_prefix" != xNONE
; then
12865 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12866 elif test x
$build != x
$host && test x
$build != x
$target; then
12867 gcc_cv_ld
=${target_noncanonical}-ld$build_exeext
12869 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
12872 if test x
$host = x
$build; then
12873 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12874 $test_prefix/libexec/gcc/$target_noncanonical \
12875 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12876 /usr/lib/gcc/$target_noncanonical \
12877 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12878 $test_prefix/$target_noncanonical/bin"
12883 if test x
$build = x
$target; then
12884 test_dirs
="$test_dirs \
12889 /bsd43/usr/lib/cmplrs/cc \
12890 /usr/cross64/usr/bin \
12891 /usr/lib/cmplrs/cc \
12892 /sysv/usr/lib/cmplrs/cc \
12893 /svr4/usr/lib/cmplrs/cc \
12897 for dir
in $test_dirs; do
12898 if test -x $dir/ld
$build_exeext; then
12899 gcc_cv_ld
=$dir/ld
$build_exeext
12904 case $in_tree_ld in
12906 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12907 echo "${ECHO_T}\"newly built ld\"" >&6
12910 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12911 echo "${ECHO_T}$gcc_cv_ld" >&6
12915 # Figure out what nm we will be using.
12916 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12917 echo "$as_me:$LINENO: checking what nm to use" >&5
12918 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12920 if test -x nm
$build_exeext; then
12921 gcc_cv_nm
=.
/nm
$build_exeext
12922 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12923 && test -f ..
/binutils
/Makefile
; then
12924 # Single tree build which includes binutils.
12926 gcc_cv_nm
=.
/nm
$build_exeext
12927 rm -f nm
$build_exeext
12928 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
12929 elif test "x$program_prefix" != xNONE
; then
12930 gcc_cv_nm
=${program_prefix}nm
$build_exeext
12931 elif test x
$build != x
$host && test x
$build != x
$target; then
12932 gcc_cv_nm
=${target_noncanonical}-nm$build_exeext
12934 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
12936 case $in_tree_nm in
12937 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12938 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12939 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12940 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12943 # Figure out what objdump we will be using.
12944 echo "$as_me:$LINENO: checking what objdump to use" >&5
12945 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12947 if test -x objdump
$build_exeext; then
12948 gcc_cv_objdump
=.
/objdump
$build_exeext
12949 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12950 && test -f ..
/binutils
/Makefile
; then
12951 # Single tree build which includes binutils.
12952 in_tree_objdump
=yes
12953 gcc_cv_objdump
=.
/objdump
$build_exeext
12954 rm -f objdump
$build_exeext
12955 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
12956 elif test "x$program_prefix" != xNONE
; then
12957 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
12958 elif test x
$build != x
$host && test x
$build != x
$target; then
12959 gcc_cv_objdump
=${target_noncanonical}-objdump$build_exeext
12961 gcc_cv_objdump
=`echo objdump | \
12962 sed "${program_transform_name}"`$build_exeext
12964 case $in_tree_objdump in
12965 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12966 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12967 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12968 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12971 # Figure out what assembler alignment features are present.
12972 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12973 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12974 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 gcc_cv_as_balign_and_p2align
=no
12978 if test $in_tree_gas = yes; then
12979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12980 then gcc_cv_as_balign_and_p2align
=yes
12982 elif test x
$gcc_cv_as != x
; then
12984 .p2align 2' > conftest.s
12985 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }
12992 gcc_cv_as_balign_and_p2align
=yes
12994 echo "configure: failed program was" >&5
12997 rm -f conftest.o conftest.s
13000 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13001 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13002 if test $gcc_cv_as_balign_and_p2align = yes; then
13004 cat >>confdefs.h
<<\_ACEOF
13005 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13010 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13011 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13012 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 gcc_cv_as_max_skip_p2align
=no
13016 if test $in_tree_gas = yes; then
13017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13018 then gcc_cv_as_max_skip_p2align
=yes
13020 elif test x
$gcc_cv_as != x
; then
13021 echo '.p2align 4,,7' > conftest.s
13022 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }
13029 gcc_cv_as_max_skip_p2align
=yes
13031 echo "configure: failed program was" >&5
13034 rm -f conftest.o conftest.s
13037 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13038 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13039 if test $gcc_cv_as_max_skip_p2align = yes; then
13041 cat >>confdefs.h
<<\_ACEOF
13042 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13047 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13048 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13049 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13052 gcc_cv_as_subsection_m1
=no
13053 if test $in_tree_gas = yes; then
13054 if test $in_tree_gas_is_elf = yes \
13055 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13056 then gcc_cv_as_subsection_m1
=yes
13058 elif test x
$gcc_cv_as != x
; then
13059 echo 'conftest_label1: .word 0
13061 conftest_label2: .word 0
13062 .previous' > conftest.s
13063 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }
13070 if test x
$gcc_cv_nm != x
; then
13071 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13072 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13073 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13075 else gcc_cv_as_subsection_m1
=yes
13077 rm -f conftest.nm1 conftest.nm2
13080 echo "configure: failed program was" >&5
13083 rm -f conftest.o conftest.s
13086 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13087 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13088 if test $gcc_cv_as_subsection_m1 = yes; then
13090 cat >>confdefs.h
<<\_ACEOF
13091 #define HAVE_GAS_SUBSECTION_ORDERING 1
13096 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13097 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13098 if test "${gcc_cv_as_weak+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 if test $in_tree_gas = yes; then
13103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13104 then gcc_cv_as_weak
=yes
13106 elif test x
$gcc_cv_as != x
; then
13107 echo ' .weak foobar' > conftest.s
13108 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }
13117 echo "configure: failed program was" >&5
13120 rm -f conftest.o conftest.s
13123 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13124 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13125 if test $gcc_cv_as_weak = yes; then
13127 cat >>confdefs.h
<<\_ACEOF
13128 #define HAVE_GAS_WEAK 1
13133 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13134 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13135 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13138 gcc_cv_as_nsubspa_comdat
=no
13139 if test $in_tree_gas = yes; then
13140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13141 then gcc_cv_as_nsubspa_comdat
=yes
13143 elif test x
$gcc_cv_as != x
; then
13144 echo ' .SPACE $TEXT$
13145 .NSUBSPA $CODE$,COMDAT' > conftest.s
13146 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }
13153 gcc_cv_as_nsubspa_comdat
=yes
13155 echo "configure: failed program was" >&5
13158 rm -f conftest.o conftest.s
13161 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13162 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13163 if test $gcc_cv_as_nsubspa_comdat = yes; then
13165 cat >>confdefs.h
<<\_ACEOF
13166 #define HAVE_GAS_NSUBSPA_COMDAT 1
13171 # .hidden needs to be supported in both the assembler and the linker,
13172 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13173 # This is irritatingly difficult to feature test for; we have to check the
13174 # date string after the version number. If we've got an in-tree
13175 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13177 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13178 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13179 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13180 if test "${gcc_cv_as_hidden+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 gcc_cv_as_hidden
=no
13184 if test $in_tree_gas = yes; then
13185 if test $in_tree_gas_is_elf = yes \
13186 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13187 then gcc_cv_as_hidden
=yes
13189 elif test x
$gcc_cv_as != x
; then
13190 echo ' .hidden foobar
13191 foobar:' > conftest.s
13192 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }
13199 gcc_cv_as_hidden
=yes
13201 echo "configure: failed program was" >&5
13204 rm -f conftest.o conftest.s
13207 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13208 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13211 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13212 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13213 if test "${gcc_cv_ld_hidden+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 if test $in_tree_ld = yes ; then
13217 gcc_cv_ld_hidden
=no
13218 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 \
13219 && test $in_tree_ld_is_elf = yes; then
13220 gcc_cv_ld_hidden
=yes
13223 gcc_cv_ld_hidden
=yes
13224 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13225 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13226 ld_vers
=`echo $ld_ver | sed -n \
13227 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13228 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13229 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13230 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13231 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13232 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13233 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'`
13234 if test 0"$ld_date" -lt 20020404; then
13235 if test -n "$ld_date"; then
13236 # If there was date string, but was earlier than 2002-04-04, fail
13237 gcc_cv_ld_hidden
=no
13238 elif test -z "$ld_vers"; then
13239 # If there was no date string nor ld version number, something is wrong
13240 gcc_cv_ld_hidden
=no
13242 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13243 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13244 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13245 test -z "$ld_vers_patch" && ld_vers_patch
=0
13246 if test "$ld_vers_major" -lt 2; then
13247 gcc_cv_ld_hidden
=no
13248 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13249 gcc_cv_ld_hidden
="no"
13250 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13251 gcc_cv_ld_hidden
=no
13256 case "${target}" in
13257 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13258 gcc_cv_ld_hidden
=yes
13261 gcc_cv_ld_hidden
=no
13267 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13268 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13269 libgcc_visibility
=no
13271 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13272 libgcc_visibility
=yes
13274 cat >>confdefs.h
<<\_ACEOF
13275 #define HAVE_GAS_HIDDEN 1
13280 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13281 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13282 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13283 if test "${gcc_cv_as_leb128+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13286 gcc_cv_as_leb128
=no
13287 if test $in_tree_gas = yes; then
13288 if test $in_tree_gas_is_elf = yes \
13289 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13290 then gcc_cv_as_leb128
=yes
13292 elif test x
$gcc_cv_as != x
; then
13299 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }
13306 # GAS versions before 2.11 do not support uleb128,
13307 # despite appearing to.
13308 # ??? There exists an elf-specific test that will crash
13309 # the assembler. Perhaps it's better to figure out whether
13310 # arbitrary sections are supported and try the test.
13311 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13312 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13313 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13314 as_major
=`echo $as_ver | sed 's/\..*//'`
13315 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13316 if test $as_major -eq 2 && test $as_minor -lt 11
13318 else gcc_cv_as_leb128
=yes
13322 echo "configure: failed program was" >&5
13325 rm -f conftest.o conftest.s
13328 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13329 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13330 if test $gcc_cv_as_leb128 = yes; then
13332 cat >>confdefs.h
<<\_ACEOF
13333 #define HAVE_AS_LEB128 1
13338 # GAS versions up to and including 2.11.0 may mis-optimize
13340 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13341 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13342 if test "${gcc_cv_as_eh_frame+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 gcc_cv_as_eh_frame
=no
13346 if test $in_tree_gas = yes; then
13347 if test $in_tree_gas_is_elf = yes \
13348 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13349 then gcc_cv_as_eh_frame
=yes
13351 elif test x
$gcc_cv_as != x
; then
13358 .section .eh_frame,"aw",@progbits
13360 .4byte .LECIE1-.LSCIE1
13374 .4byte .LEFDE1-.LASFDE1
13376 .4byte .LASFDE1-__FRAME_BEGIN__
13383 .LEFDE1:' > conftest.s
13384 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }
13391 cat > conftest.lit
<<EOF
13392 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13393 0010 01000000 12000000 18000000 00000000 ................
13394 0020 08000000 04080000 0044 .........D
13396 cat > conftest.big
<<EOF
13397 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13398 0010 00000001 00000012 00000018 00000000 ................
13399 0020 00000008 04000000 0844 .........D
13401 # If the assembler didn't choke, and we can objdump,
13402 # and we got the correct data, then succeed.
13403 if test x
$gcc_cv_objdump != x \
13404 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13405 |
tail -3 > conftest.got \
13406 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13407 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13409 gcc_cv_as_eh_frame
=yes
13410 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 gcc_cv_as_eh_frame
=buggy
13418 # Uh oh, what do we do now?
13419 gcc_cv_as_eh_frame
=no
13422 echo "configure: failed program was" >&5
13425 rm -f conftest.o conftest.s
13428 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13429 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13432 if test $gcc_cv_as_eh_frame = buggy
; then
13434 cat >>confdefs.h
<<\_ACEOF
13435 #define USE_AS_TRADITIONAL_FORMAT 1
13440 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13441 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13442 if test "${gcc_cv_as_shf_merge+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 gcc_cv_as_shf_merge
=no
13446 if test $in_tree_gas = yes; then
13447 if test $in_tree_gas_is_elf = yes \
13448 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13449 then gcc_cv_as_shf_merge
=yes
13451 elif test x
$gcc_cv_as != x
; then
13452 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13453 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }
13460 gcc_cv_as_shf_merge
=yes
13462 echo "configure: failed program was" >&5
13465 rm -f conftest.o conftest.s
13468 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13469 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13471 if test $gcc_cv_as_shf_merge = no
; then
13472 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13473 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13474 if test "${gcc_cv_as_shf_merge+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 gcc_cv_as_shf_merge
=no
13478 if test $in_tree_gas = yes; then
13479 if test $in_tree_gas_is_elf = yes \
13480 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13481 then gcc_cv_as_shf_merge
=yes
13483 elif test x
$gcc_cv_as != x
; then
13484 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13485 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }
13492 gcc_cv_as_shf_merge
=yes
13494 echo "configure: failed program was" >&5
13497 rm -f conftest.o conftest.s
13500 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13501 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13505 cat >>confdefs.h
<<_ACEOF
13506 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13510 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13511 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13512 if test "${gcc_cv_as_comdat_group+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 gcc_cv_as_comdat_group
=no
13516 if test $in_tree_gas = yes; then
13517 if test $in_tree_gas_is_elf = yes \
13518 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13519 then gcc_cv_as_comdat_group
=yes
13521 elif test x
$gcc_cv_as != x
; then
13522 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13523 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }
13530 gcc_cv_as_comdat_group
=yes
13532 echo "configure: failed program was" >&5
13535 rm -f conftest.o conftest.s
13538 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13539 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13541 if test $gcc_cv_as_comdat_group = yes; then
13542 gcc_cv_as_comdat_group_percent
=no
13544 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13545 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13546 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 gcc_cv_as_comdat_group_percent
=no
13550 if test $in_tree_gas = yes; then
13551 if test $in_tree_gas_is_elf = yes \
13552 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13553 then gcc_cv_as_comdat_group_percent
=yes
13555 elif test x
$gcc_cv_as != x
; then
13556 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13557 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }
13564 gcc_cv_as_comdat_group_percent
=yes
13566 echo "configure: failed program was" >&5
13569 rm -f conftest.o conftest.s
13572 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13573 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13577 cat >>confdefs.h
<<_ACEOF
13578 #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`
13582 # Thread-local storage - the check is heavily parametrized.
13590 .section ".tdata","awT",@progbits
13593 ldq $27,__tls_get_addr($29) !literal!1
13594 lda $16,foo($29) !tlsgd!1
13595 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13596 ldq $27,__tls_get_addr($29) !literal!2
13597 lda $16,foo($29) !tlsldm!2
13598 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13599 ldq $1,foo($29) !gotdtprel
13600 ldah $2,foo($29) !dtprelhi
13601 lda $3,foo($2) !dtprello
13602 lda $4,foo($29) !dtprel
13603 ldq $1,foo($29) !gottprel
13604 ldah $2,foo($29) !tprelhi
13605 lda $3,foo($2) !tprello
13606 lda $4,foo($29) !tprel'
13609 tls_as_opt
=--fatal-warnings
13613 .section ".tdata","awT",@progbits
13616 call #gettlsoff(x)'
13622 .section ".tdata","awT",@progbits
13626 leal foo@TLSGD(,%ebx,1), %eax
13627 leal foo@TLSLDM(%ebx), %eax
13628 leal foo@DTPOFF(%eax), %edx
13629 movl foo@GOTTPOFF(%ebx), %eax
13630 subl foo@GOTTPOFF(%ebx), %eax
13631 addl foo@GOTNTPOFF(%ebx), %eax
13632 movl foo@INDNTPOFF, %eax
13633 movl $foo@TPOFF, %eax
13634 subl $foo@TPOFF, %eax
13635 leal foo@NTPOFF(%ecx), %eax'
13638 tls_as_opt
=--fatal-warnings
13642 .section ".tdata","awT",@progbits
13646 leaq foo@TLSGD(%rip), %rdi
13647 leaq foo@TLSLD(%rip), %rdi
13648 leaq foo@DTPOFF(%rax), %rdx
13649 movq foo@GOTTPOFF(%rip), %rax
13650 movq $foo@TPOFF, %rax'
13653 tls_as_opt
=--fatal-warnings
13657 .section ".tdata","awT",@progbits
13660 addl r16 = @ltoff(@dtpmod(foo#)), gp
13661 addl r17 = @ltoff(@dtprel(foo#)), gp
13662 addl r18 = @ltoff(@tprel(foo#)), gp
13663 addl r19 = @dtprel(foo#), gp
13664 adds r21 = @dtprel(foo#), r13
13665 movl r23 = @dtprel(foo#)
13666 addl r20 = @tprel(foo#), gp
13667 adds r22 = @tprel(foo#), r13
13668 movl r24 = @tprel(foo#)'
13671 tls_as_opt
=--fatal-warnings
13675 .section ".tdata","awT",@progbits
13683 addi 3,31,ld0@got@tlsgd
13685 addi 3,31,x1@got@tlsld
13688 addis 9,3,x2@dtprel@ha
13689 addi 9,9,x2@dtprel@l
13690 lwz 9,x3@got@tprel(31)
13693 addis 9,2,x2@tprel@ha
13694 addi 9,9,x2@tprel@l'
13697 tls_as_opt
="-a32 --fatal-warnings"
13701 .section ".tdata","awT",@progbits
13709 addi 3,2,ld0@got@tlsgd
13715 addi 3,2,x1@got@tlsld
13721 addis 9,3,x2@dtprel@ha
13722 addi 9,9,x2@dtprel@l
13725 ld 9,x3@got@dtprel(2)
13731 tls_as_opt
="-a64 --fatal-warnings"
13735 .section ".tdata","awT",@progbits
13742 .long foo@GOTNTPOFF
13743 .long foo@INDNTPOFF
13744 l %r1,foo@GOTNTPOFF(%r12)
13745 l %r1,0(%r1):tls_load:foo
13746 bas %r14,0(%r1,%r13):tls_gdcall:foo
13747 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13750 tls_as_opt
="-m31 --fatal-warnings"
13754 .section ".tdata","awT",@progbits
13761 .quad foo@GOTNTPOFF
13762 lg %r1,foo@GOTNTPOFF(%r12)
13763 larl %r1,foo@INDNTPOFF
13764 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13765 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13768 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13770 sh-
*-* | sh
[34]-*-*)
13772 .section ".tdata","awT",@progbits
13782 tls_as_opt
=--fatal-warnings
13786 sparc
*-sun-solaris2.
*)
13793 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13795 .section ".tdata",#alloc,#write,#tls
13798 sethi %tgd_hi22(foo), %o0
13799 add %o0, %tgd_lo10(foo), %o1
13800 add %l7, %o1, %o0, %tgd_add(foo)
13801 call __tls_get_addr, %tgd_call(foo)
13802 sethi %tldm_hi22(foo), %l1
13803 add %l1, %tldm_lo10(foo), %l2
13804 add %l7, %l2, %o0, %tldm_add(foo)
13805 call __tls_get_addr, %tldm_call(foo)
13806 sethi %tldo_hix22(foo), %l3
13807 xor %l3, %tldo_lox10(foo), %l4
13808 add %o0, %l4, %l5, %tldo_add(foo)
13809 sethi %tie_hi22(foo), %o3
13810 add %o3, %tie_lo10(foo), %o3
13811 ld [%l7 + %o3], %o2, %tie_ld(foo)
13812 add %g7, %o2, %o4, %tie_add(foo)
13813 sethi %tle_hix22(foo), %l1
13814 xor %l1, %tle_lox10(foo), %o5
13815 ld [%g7 + %o5], %o1'
13820 .section ".tdata","awT",@progbits
13823 sethi %tgd_hi22(foo), %o0
13824 add %o0, %tgd_lo10(foo), %o1
13825 add %l7, %o1, %o0, %tgd_add(foo)
13826 call __tls_get_addr, %tgd_call(foo)
13827 sethi %tldm_hi22(foo), %l1
13828 add %l1, %tldm_lo10(foo), %l2
13829 add %l7, %l2, %o0, %tldm_add(foo)
13830 call __tls_get_addr, %tldm_call(foo)
13831 sethi %tldo_hix22(foo), %l3
13832 xor %l3, %tldo_lox10(foo), %l4
13833 add %o0, %l4, %l5, %tldo_add(foo)
13834 sethi %tie_hi22(foo), %o3
13835 add %o3, %tie_lo10(foo), %o3
13836 ld [%l7 + %o3], %o2, %tie_ld(foo)
13837 add %g7, %o2, %o4, %tie_add(foo)
13838 sethi %tle_hix22(foo), %l1
13839 xor %l1, %tle_lox10(foo), %o5
13840 ld [%g7 + %o5], %o1'
13843 tls_as_opt
="-32 --fatal-warnings"
13847 if test -z "$tls_first_major"; then
13848 : # If we don't have a check, assume no support.
13850 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13851 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13852 if test "${gcc_cv_as_tls+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 if test $in_tree_gas = yes; then
13857 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13858 then gcc_cv_as_tls
=yes
13860 elif test x
$gcc_cv_as != x
; then
13861 echo "$conftest_s" > conftest.s
13862 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; }
13871 echo "configure: failed program was" >&5
13874 rm -f conftest.o conftest.s
13877 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13878 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13879 if test $gcc_cv_as_tls = yes; then
13881 cat >>confdefs.h
<<\_ACEOF
13882 #define HAVE_AS_TLS 1
13888 # Target-specific assembler checks.
13890 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13891 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13892 gcc_cv_ld_static_dynamic
=no
13893 if test $in_tree_ld = yes ; then
13894 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13895 gcc_cv_ld_static_dynamic
=yes
13897 elif test x
$gcc_cv_ld != x
; then
13898 # Check if linker supports -Bstatic/-Bdynamic option
13899 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
13900 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
13901 gcc_cv_ld_static_dynamic
=yes
13904 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
13906 cat >>confdefs.h
<<\_ACEOF
13907 #define HAVE_LD_STATIC_DYNAMIC 1
13911 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13912 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13914 if test x
"$demangler_in_ld" = xyes
; then
13915 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13916 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13917 gcc_cv_ld_demangle
=no
13918 if test $in_tree_ld = yes; then
13919 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 \
13920 gcc_cv_ld_demangle
=yes
13922 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
13923 # Check if the GNU linker supports --demangle option
13924 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
13925 gcc_cv_ld_demangle
=yes
13928 if test x
"$gcc_cv_ld_demangle" = xyes
; then
13930 cat >>confdefs.h
<<\_ACEOF
13931 #define HAVE_LD_DEMANGLE 1
13935 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13936 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13940 # All TARGET_ABI_OSF targets.
13941 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
13942 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13943 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13944 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 gcc_cv_as_alpha_explicit_relocs
=no
13948 if test $in_tree_gas = yes; then
13949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13950 then gcc_cv_as_alpha_explicit_relocs
=yes
13952 elif test x
$gcc_cv_as != x
; then
13953 echo ' .set nomacro
13955 extbl $3, $2, $3 !lituse_bytoff!1
13956 ldq $2, a($29) !literal!1
13957 ldq $4, b($29) !literal!2
13958 ldq_u $3, 0($2) !lituse_base!1
13959 ldq $27, f($29) !literal!5
13960 jsr $26, ($27), f !lituse_jsr!5
13961 ldah $29, 0($26) !gpdisp!3
13962 lda $0, c($29) !gprel
13963 ldah $1, d($29) !gprelhigh
13964 lda $1, d($1) !gprellow
13965 lda $29, 0($29) !gpdisp!3' > conftest.s
13966 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }
13973 gcc_cv_as_alpha_explicit_relocs
=yes
13975 echo "configure: failed program was" >&5
13978 rm -f conftest.o conftest.s
13981 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13982 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13983 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13985 cat >>confdefs.h
<<\_ACEOF
13986 #define HAVE_AS_EXPLICIT_RELOCS 1
13993 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13994 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
13995 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 gcc_cv_as_cris_no_mul_bug
=no
13999 if test $in_tree_gas = yes; then
14000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14001 then gcc_cv_as_cris_no_mul_bug
=yes
14003 elif test x
$gcc_cv_as != x
; then
14004 echo '.text' > conftest.s
14005 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }
14012 gcc_cv_as_cris_no_mul_bug
=yes
14014 echo "configure: failed program was" >&5
14017 rm -f conftest.o conftest.s
14020 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14021 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14022 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14024 cat >>confdefs.h
<<\_ACEOF
14025 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14032 echo "$as_me:$LINENO: checking assembler for .register" >&5
14033 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14034 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 gcc_cv_as_sparc_register_op
=no
14038 if test x
$gcc_cv_as != x
; then
14039 echo '.register %g2, #scratch' > conftest.s
14040 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }
14047 gcc_cv_as_sparc_register_op
=yes
14049 echo "configure: failed program was" >&5
14052 rm -f conftest.o conftest.s
14055 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14056 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14057 if test $gcc_cv_as_sparc_register_op = yes; then
14059 cat >>confdefs.h
<<\_ACEOF
14060 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14065 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14066 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14067 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 gcc_cv_as_sparc_relax
=no
14071 if test x
$gcc_cv_as != x
; then
14072 echo '.text' > conftest.s
14073 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }
14080 gcc_cv_as_sparc_relax
=yes
14082 echo "configure: failed program was" >&5
14085 rm -f conftest.o conftest.s
14088 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14089 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14090 if test $gcc_cv_as_sparc_relax = yes; then
14092 cat >>confdefs.h
<<\_ACEOF
14093 #define HAVE_AS_RELAX_OPTION 1
14098 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14099 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14100 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 gcc_cv_as_sparc_ua_pcrel
=no
14104 if test x
$gcc_cv_as != x
; then
14111 .uaword %r_disp32(foo)' > conftest.s
14112 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; }
14119 if test x
$gcc_cv_ld != x \
14120 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14121 gcc_cv_as_sparc_ua_pcrel
=yes
14125 echo "configure: failed program was" >&5
14128 rm -f conftest.o conftest.s
14131 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14132 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14133 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14135 cat >>confdefs.h
<<\_ACEOF
14136 #define HAVE_AS_SPARC_UA_PCREL 1
14140 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14141 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14142 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14146 if test x
$gcc_cv_as != x
; then
14150 .uaword %r_disp32(foo)
14151 .byte 0x32, 0x33, 0x34
14155 .skip 4' > conftest.s
14156 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }
14163 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14164 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14165 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14166 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14167 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14168 |
grep 'DISP32' > /dev
/null
2>&1; then
14171 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14176 echo "configure: failed program was" >&5
14179 rm -f conftest.o conftest.s
14182 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14183 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14184 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14186 cat >>confdefs.h
<<\_ACEOF
14187 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14192 fi # unaligned pcrel relocs
14194 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14195 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14196 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 gcc_cv_as_sparc_offsetable_lo10
=no
14200 if test x
$gcc_cv_as != x
; then
14202 or %g1, %lo(ab) + 12, %g1
14203 or %g1, %lo(ab + 12), %g1' > conftest.s
14204 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }
14211 if test x
$gcc_cv_objdump != x \
14212 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14213 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14214 gcc_cv_as_sparc_offsetable_lo10
=yes
14217 echo "configure: failed program was" >&5
14220 rm -f conftest.o conftest.s
14223 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14224 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14225 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14227 cat >>confdefs.h
<<\_ACEOF
14228 #define HAVE_AS_OFFSETABLE_LO10 1
14234 i
[34567]86-*-* | x86_64-
*-*)
14236 cygwin
* | pe | mingw32
*)
14237 # Used for DWARF 2 in PE
14238 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14239 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14240 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 gcc_cv_as_ix86_pe_secrel32
=no
14244 if test $in_tree_gas = yes; then
14245 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14246 then gcc_cv_as_ix86_pe_secrel32
=yes
14248 elif test x
$gcc_cv_as != x
; then
14252 .secrel32 foo' > conftest.s
14253 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }
14260 if test x
$gcc_cv_ld != x \
14261 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14262 gcc_cv_as_ix86_pe_secrel32
=yes
14266 echo "configure: failed program was" >&5
14269 rm -f conftest.o conftest.s
14272 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14273 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14274 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14276 cat >>confdefs.h
<<\_ACEOF
14277 #define HAVE_GAS_PE_SECREL32_RELOC 1
14284 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14285 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14286 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 gcc_cv_as_ix86_filds_fists
=no
14290 if test $in_tree_gas = yes; then
14291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14292 then gcc_cv_as_ix86_filds_fists
=yes
14294 elif test x
$gcc_cv_as != x
; then
14295 echo 'filds mem; fists mem' > conftest.s
14296 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }
14303 gcc_cv_as_ix86_filds_fists
=yes
14305 echo "configure: failed program was" >&5
14308 rm -f conftest.o conftest.s
14311 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14312 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14313 if test $gcc_cv_as_ix86_filds_fists = yes; then
14315 cat >>confdefs.h
<<\_ACEOF
14316 #define HAVE_GAS_FILDS_FISTS 1
14321 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14322 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14323 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 gcc_cv_as_ix86_cmov_sun_syntax
=no
14327 if test x
$gcc_cv_as != x
; then
14328 echo 'cmovl.l %edx, %eax' > conftest.s
14329 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }
14336 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14338 echo "configure: failed program was" >&5
14341 rm -f conftest.o conftest.s
14344 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14345 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14346 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14348 cat >>confdefs.h
<<\_ACEOF
14349 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14354 # This one is used unconditionally by i386.[ch]; it is to be defined
14355 # to 1 if the feature is present, 0 otherwise.
14356 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14357 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14358 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 gcc_cv_as_ix86_gotoff_in_data
=no
14362 if test $in_tree_gas = yes; then
14363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14364 then gcc_cv_as_ix86_gotoff_in_data
=yes
14366 elif test x
$gcc_cv_as != x
; then
14371 .long .L0@GOTOFF' > conftest.s
14372 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }
14379 gcc_cv_as_ix86_gotoff_in_data
=yes
14381 echo "configure: failed program was" >&5
14384 rm -f conftest.o conftest.s
14387 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14388 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14391 cat >>confdefs.h
<<_ACEOF
14392 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14398 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14399 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14400 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14403 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14404 if test $in_tree_gas = yes; then
14405 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14406 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14408 elif test x
$gcc_cv_as != x
; then
14410 addl r15 = @ltoffx(x#), gp
14412 ld8.mov r16 = [r15], x#' > conftest.s
14413 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }
14420 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14422 echo "configure: failed program was" >&5
14425 rm -f conftest.o conftest.s
14428 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14429 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14430 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14432 cat >>confdefs.h
<<\_ACEOF
14433 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14442 *-*-aix*) conftest_s
=' .csect .text[PR]
14445 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14446 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14447 if test "${gcc_cv_as_machine_directive+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 gcc_cv_as_machine_directive
=no
14451 if test x
$gcc_cv_as != x
; then
14452 echo ' .machine ppc7400' > conftest.s
14453 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; }
14460 gcc_cv_as_machine_directive
=yes
14462 echo "configure: failed program was" >&5
14465 rm -f conftest.o conftest.s
14468 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14469 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14471 if test x
$gcc_cv_as_machine_directive != xyes
; then
14472 echo "*** This target requires an assembler supporting \".machine\"" >&2
14473 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14474 test x
$build = x
$target && exit 1
14478 *) conftest_s
=' .machine power4
14483 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14484 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14485 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 gcc_cv_as_powerpc_mfcrf
=no
14489 if test $in_tree_gas = yes; then
14490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14491 then gcc_cv_as_powerpc_mfcrf
=yes
14493 elif test x
$gcc_cv_as != x
; then
14494 echo "$conftest_s" > conftest.s
14495 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }
14502 gcc_cv_as_powerpc_mfcrf
=yes
14504 echo "configure: failed program was" >&5
14507 rm -f conftest.o conftest.s
14510 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14511 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14512 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14514 cat >>confdefs.h
<<\_ACEOF
14515 #define HAVE_AS_MFCRF 1
14522 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14523 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14524 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 gcc_cv_as_mips_explicit_relocs
=no
14528 if test $in_tree_gas = yes; then
14529 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14530 then gcc_cv_as_mips_explicit_relocs
=yes
14532 elif test x
$gcc_cv_as != x
; then
14533 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14534 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }
14541 gcc_cv_as_mips_explicit_relocs
=yes
14543 echo "configure: failed program was" >&5
14546 rm -f conftest.o conftest.s
14549 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14550 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14551 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14552 if test x
$target_cpu_default = x
14553 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14554 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14558 if test x
$gas_flag = xyes \
14559 ||
test x
"$host" != x
"$build" \
14560 ||
test ! -x "$gcc_cv_as" \
14561 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14564 echo "*** This configuration requires the GNU assembler" >&2
14569 # ??? Not all targets support dwarf2 debug_line, even within a version
14570 # of gas. Moreover, we need to emit a valid instruction to trigger any
14571 # info to the output file. So, as supported targets are added to gas 2.11,
14572 # add some instruction here to (also) show we expect this might work.
14573 # ??? Once 2.11 is released, probably need to add first known working
14574 # version to the per-target configury.
14576 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14577 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14578 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14581 ia64
*-*-* | s390
*-*-*)
14588 if test x
"$insn" != x
; then
14590 .file 1 \"conftest.s\"
14593 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14594 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14595 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 gcc_cv_as_dwarf2_debug_line
=no
14599 if test $in_tree_gas = yes; then
14600 if test $in_tree_gas_is_elf = yes \
14601 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14602 then gcc_cv_as_dwarf2_debug_line
=yes
14604 elif test x
$gcc_cv_as != x
; then
14605 echo "$conftest_s" > conftest.s
14606 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }
14613 if test x
$gcc_cv_objdump != x \
14614 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14615 |
grep debug_line
> /dev
/null
2>&1; then
14616 gcc_cv_as_dwarf2_debug_line
=yes
14619 echo "configure: failed program was" >&5
14622 rm -f conftest.o conftest.s
14625 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14626 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14629 # The .debug_line file table must be in the exact order that
14630 # we specified the files, since these indices are also used
14631 # by DW_AT_decl_file. Approximate this test by testing if
14632 # the assembler bitches if the same index is assigned twice.
14633 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14634 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14635 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 gcc_cv_as_dwarf2_file_buggy
=no
14639 if test x
$gcc_cv_as != x
; then
14640 echo ' .file 1 "foo.s"
14641 .file 1 "bar.s"' > conftest.s
14642 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }
14649 gcc_cv_as_dwarf2_file_buggy
=yes
14651 echo "configure: failed program was" >&5
14654 rm -f conftest.o conftest.s
14657 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14658 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14661 if test $gcc_cv_as_dwarf2_debug_line = yes \
14662 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14664 cat >>confdefs.h
<<\_ACEOF
14665 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14670 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14671 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14672 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 gcc_cv_as_gdwarf2_flag
=no
14676 if test $in_tree_gas = yes; then
14677 if test $in_tree_gas_is_elf = yes \
14678 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14679 then gcc_cv_as_gdwarf2_flag
=yes
14681 elif test x
$gcc_cv_as != x
; then
14682 echo "$insn" > conftest.s
14683 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }
14690 gcc_cv_as_gdwarf2_flag
=yes
14692 echo "configure: failed program was" >&5
14695 rm -f conftest.o conftest.s
14698 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14699 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14700 if test $gcc_cv_as_gdwarf2_flag = yes; then
14702 cat >>confdefs.h
<<\_ACEOF
14703 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14708 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14709 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14710 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 gcc_cv_as_gstabs_flag
=no
14714 if test $in_tree_gas = yes; then
14715 if test $in_tree_gas_is_elf = yes \
14716 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14717 then gcc_cv_as_gstabs_flag
=yes
14719 elif test x
$gcc_cv_as != x
; then
14720 echo "$insn" > conftest.s
14721 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }
14728 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14729 # and warns about it, but still exits successfully. So check for
14731 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }
14738 else gcc_cv_as_gstabs_flag
=yes
14741 echo "configure: failed program was" >&5
14744 rm -f conftest.o conftest.s
14747 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14748 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14749 if test $gcc_cv_as_gstabs_flag = yes; then
14751 cat >>confdefs.h
<<\_ACEOF
14752 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14758 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14759 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14760 gcc_cv_ld_ro_rw_mix
=unknown
14761 if test $in_tree_ld = yes ; then
14762 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 \
14763 && test $in_tree_ld_is_elf = yes; then
14764 gcc_cv_ld_ro_rw_mix
=read-write
14766 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14767 echo '.section myfoosect, "a"' > conftest1.s
14768 echo '.section myfoosect, "aw"' > conftest2.s
14769 echo '.byte 1' >> conftest2.s
14770 echo '.section myfoosect, "a"' > conftest3.s
14771 echo '.byte 0' >> conftest3.s
14772 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14773 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14774 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14775 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14776 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14777 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14778 | sed -e '/myfoosect/!d' -e N`
14779 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14780 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14781 gcc_cv_ld_ro_rw_mix
=read-only
14783 gcc_cv_ld_ro_rw_mix
=read-write
14787 rm -f conftest.
* conftest
[123].
*
14789 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
14791 cat >>confdefs.h
<<\_ACEOF
14792 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14796 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14797 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14799 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14800 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14801 gcc_cv_ld_eh_frame_hdr
=no
14802 if test $in_tree_ld = yes ; then
14803 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 \
14804 && test $in_tree_ld_is_elf = yes; then
14805 gcc_cv_ld_eh_frame_hdr
=yes
14807 elif test x
$gcc_cv_ld != x
; then
14808 # Check if linker supports --eh-frame-hdr option
14809 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
14810 gcc_cv_ld_eh_frame_hdr
=yes
14813 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
14815 cat >>confdefs.h
<<\_ACEOF
14816 #define HAVE_LD_EH_FRAME_HDR 1
14820 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14821 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14823 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14824 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14826 if test $in_tree_ld = yes ; then
14827 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 \
14828 && test $in_tree_ld_is_elf = yes; then
14831 elif test x
$gcc_cv_ld != x
; then
14832 # Check if linker supports -pie option
14833 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
14837 if test x
"$gcc_cv_ld_pie" = xyes
; then
14839 cat >>confdefs.h
<<\_ACEOF
14840 #define HAVE_LD_PIE 1
14844 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14845 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14851 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14852 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14853 if test "${gcc_cv_ld_as_needed+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 gcc_cv_ld_as_needed
=no
14857 if test $in_tree_ld = yes ; then
14858 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 \
14859 && test $in_tree_ld_is_elf = yes; then
14860 gcc_cv_ld_as_needed
=yes
14862 elif test x
$gcc_cv_ld != x
; then
14863 # Check if linker supports --as-needed and --no-as-needed options
14864 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
14865 gcc_cv_ld_as_needed
=yes
14870 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14871 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14872 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
14874 cat >>confdefs.h
<<\_ACEOF
14875 #define HAVE_LD_AS_NEEDED 1
14881 powerpc64
*-*-linux*)
14882 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14883 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14884 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 gcc_cv_ld_no_dot_syms
=no
14888 if test $in_tree_ld = yes ; then
14889 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
14890 gcc_cv_ld_no_dot_syms
=yes
14892 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
14893 cat > conftest1.s
<<EOF
14897 cat > conftest2.s
<<EOF
14898 .section ".opd","aw"
14901 .type foo,@function
14903 .quad .LEfoo,.TOC.@tocbase,0
14909 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14910 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14911 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
14912 gcc_cv_ld_no_dot_syms
=yes
14914 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14918 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14919 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14920 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
14922 cat >>confdefs.h
<<\_ACEOF
14923 #define HAVE_LD_NO_DOT_SYMS 1
14930 if test x
$with_sysroot = x
&& test x
$host = x
$target \
14931 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14933 cat >>confdefs.h
<<_ACEOF
14934 #define PREFIX_INCLUDE_DIR "$prefix/include"
14939 # Find out what GC implementation we want, or may, use.
14941 # Check whether --with-gc or --without-gc was given.
14942 if test "${with_gc+set}" = set; then
14949 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14950 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14951 { (exit 1); exit 1; }; }
14958 echo "Using $GGC for garbage collection."
14960 # Use the system's zlib library.
14962 zlibinc
="-I\$(srcdir)/../zlib"
14964 # Check whether --with-system-zlib or --without-system-zlib was given.
14965 if test "${with_system_zlib+set}" = set; then
14966 withval
="$with_system_zlib"
14975 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14976 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14977 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14978 if test "${enable_maintainer_mode+set}" = set; then
14979 enableval
="$enable_maintainer_mode"
14980 maintainer_mode
=$enableval
14985 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14986 echo "${ECHO_T}$maintainer_mode" >&6
14988 if test "$maintainer_mode" = "yes"; then
14998 # Make empty files to contain the specs and options for each language.
14999 # Then add #include lines to for a compiler that has specs and/or options.
15004 for subdir
in .
$subdirs
15006 if test -f $srcdir/$subdir/lang.opt
; then
15007 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15009 if test -f $srcdir/$subdir/lang-specs.h
; then
15010 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15012 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15013 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15017 # These (without "all_") are set in each config-lang.in.
15018 # `language' must be a single word so is spelled singularly.
15020 all_boot_languages
=
15023 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15024 # List of language makefile fragments.
15025 all_lang_makefrags
=
15026 # List of language subdirectory makefiles. Deprecated.
15027 all_lang_makefiles
=
15028 # Files for gengtype
15029 all_gtfiles
="$target_gtfiles"
15030 # Files for gengtype with language
15031 all_gtfiles_files_langs
=
15032 all_gtfiles_files_files
=
15034 # Add the language fragments.
15035 # Languages are added via two mechanisms. Some information must be
15036 # recorded in makefile variables, these are defined in config-lang.in.
15037 # We accumulate them and plug them into the main Makefile.
15038 # The other mechanism is a set of hooks for each of the main targets
15039 # like `clean', `install', etc.
15041 language_hooks
="Make-hooks"
15051 .
${srcdir}/$s/config-lang.
in
15052 if test "x$language" = x
15054 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15057 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15058 if test -f ${srcdir}/$s/Makefile.
in
15059 then all_lang_makefiles
="$s/Makefile"
15061 all_languages
="$all_languages $language"
15062 if test "x$boot_language" = xyes
15064 all_boot_languages
="$all_boot_languages $language"
15066 all_compilers
="$all_compilers $compilers"
15067 all_stagestuff
="$all_stagestuff $stagestuff"
15068 all_outputs
="$all_outputs $outputs"
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 # Pick up gtfiles for c
15080 .
${srcdir}/c-config-lang.
in
15081 all_gtfiles
="$all_gtfiles $gtfiles"
15084 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15085 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15089 for language
in $all_languages
15091 check_languages
="$check_languages check-$language"
15094 # We link each language in with a set of hooks, reached indirectly via
15099 target_list
="all.build all.cross start.encap rest.encap tags \
15100 install-normal install-common install-man \
15101 uninstall info man srcextra srcman srcinfo \
15102 mostlyclean clean distclean maintainer-clean \
15103 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15104 for t
in $target_list
15107 for lang
in $all_languages
15111 echo "lang.$t: $x" >> Make-hooks
15120 echo "dir ." > .gdbinit
15121 echo "dir ${srcdir}" >> .gdbinit
15122 if test x
$gdb_needs_out_file_path = xyes
15124 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15126 if test "x$subdirs" != x
; then
15129 echo "dir ${srcdir}/$s" >> .gdbinit
15132 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15134 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15135 # absolute path for gcc_tooldir based on inserting the number of up-directory
15136 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15137 # $(libsubdir)/@(unlibsubdir) based path.
15138 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15139 # make and thus we'd get different behavior depending on where we built the
15141 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15142 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15144 # An explanation of the sed strings:
15145 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15146 # -e 's|/$||' match a trailing forward slash and eliminates it
15147 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15148 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15150 # (*) Note this pattern overwrites the first character of the string
15151 # with a forward slash if one is not already present. This is not a
15152 # problem because the exact names of the sub-directories concerned is
15153 # unimportant, just the number of them matters.
15155 # The practical upshot of these patterns is like this:
15157 # prefix exec_prefix result
15158 # ------ ----------- ------
15159 # /foo /foo/bar ../
15160 # /foo/ /foo/bar ../
15161 # /foo /foo/bar/ ../
15162 # /foo/ /foo/bar/ ../
15163 # /foo /foo/bar/ugg ../../
15166 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15171 # Find a directory in which to install a shared libgcc.
15173 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15174 if test "${enable_version_specific_runtime_libs+set}" = set; then
15175 enableval
="$enable_version_specific_runtime_libs"
15180 # Check whether --with-slibdir or --without-slibdir was given.
15181 if test "${with_slibdir+set}" = set; then
15182 withval
="$with_slibdir"
15183 slibdir
="$with_slibdir"
15185 if test "${enable_version_specific_runtime_libs+set}" = set; then
15186 slibdir
='$(libsubdir)'
15187 elif test "$host" != "$target"; then
15188 slibdir
='$(build_tooldir)/lib'
15190 slibdir
='$(libdir)'
15195 objdir
=`${PWDCMD-pwd}`
15198 # Substitute configuration variables
15263 if test x
"$SET_GCC_LIB_PATH_CMD" != x
; then
15264 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15266 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15268 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15269 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15270 set_gcc_lib_path
="export $set_gcc_lib_path"
15278 if test x
${build} = x
${host} ; then
15279 if test x
${host} = x
${target} ; then
15280 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15282 echo "Links are now set up to build a cross-compiler" 1>&2
15283 echo " from ${host} to ${target}." 1>&2
15286 if test x
${host} = x
${target} ; then
15287 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15288 echo " for ${target}." 1>&2
15290 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15291 echo " from ${host} to ${target}." 1>&2
15298 # Configure the subdirectories
15299 # AC_CONFIG_SUBDIRS($subdirs)
15301 # Create the Makefile
15302 # and configure language subdirectories
15303 ac_config_files
="$ac_config_files $all_outputs"
15306 ac_config_commands
="$ac_config_commands default"
15308 cat >confcache
<<\_ACEOF
15309 # This file is a shell script that caches the results of configure
15310 # tests run on this system so they can be shared between configure
15311 # scripts and configure runs, see configure's option --config-cache.
15312 # It is not useful on other systems. If it contains results you don't
15313 # want to keep, you may remove or edit it.
15315 # config.status only pays attention to the cache file if you give it
15316 # the --recheck option to rerun configure.
15318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15320 # following values.
15324 # The following way of writing the cache mishandles newlines in values,
15325 # but we know of no workaround that is simple, portable, and efficient.
15326 # So, don't put newlines in cache variables' values.
15327 # Ultrix sh set writes to stderr and can't be redirected directly,
15328 # and sets the high bit in the cache file unless we assign to the vars.
15331 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15333 # `set' does not quote correctly, so add quotes (double-quote
15334 # substitution turns \\\\ into \\, and sed turns \\ into \).
15337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15340 # `set' quotes correctly as required by POSIX, so do not add quotes.
15342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15351 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15353 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15354 if test -w $cache_file; then
15355 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15356 cat confcache
>$cache_file
15358 echo "not updating unwritable cache $cache_file"
15363 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15364 # Let make expand exec_prefix.
15365 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15367 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15368 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15369 # trailing colons and then remove the whole line if VPATH becomes empty
15370 # (actually we leave an empty line to preserve line numbers).
15371 if test "x$srcdir" = x.
; then
15372 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15373 s/:*\$(srcdir):*/:/;
15374 s/:*\${srcdir}:*/:/;
15376 s/^\([^=]*=[ ]*\):*/\1/;
15382 DEFS
=-DHAVE_CONFIG_H
15386 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15387 # 1. Remove the extension, and $U if already installed.
15388 ac_i
=`echo "$ac_i" |
15389 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15391 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15392 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15394 LIBOBJS
=$ac_libobjs
15396 LTLIBOBJS
=$ac_ltlibobjs
15400 : ${CONFIG_STATUS=./config.status}
15401 ac_clean_files_save
=$ac_clean_files
15402 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15403 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15404 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15405 cat >$CONFIG_STATUS <<_ACEOF
15407 # Generated by $as_me.
15408 # Run this file to recreate the current configuration.
15409 # Compiler output produced by configure, useful for debugging
15410 # configure, is in config.log if it exists.
15413 ac_cs_recheck=false
15415 SHELL=\${CONFIG_SHELL-$SHELL}
15418 cat >>$CONFIG_STATUS <<\_ACEOF
15419 ## --------------------- ##
15420 ## M4sh Initialization. ##
15421 ## --------------------- ##
15423 # Be Bourne compatible
15424 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15427 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15428 # is contrary to our usage. Disable this feature.
15429 alias -g '${1+"$@"}'='"$@"'
15430 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15433 DUALCASE
=1; export DUALCASE
# for MKS sh
15435 # Support unset when possible.
15436 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15443 # Work around bugs in pre-3.0 UWIN ksh.
15444 $as_unset ENV MAIL MAILPATH
15451 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15452 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15453 LC_TELEPHONE LC_TIME
15455 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15456 eval $as_var=C
; export $as_var
15462 # Required to use basename.
15463 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15469 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15470 as_basename
=basename
15476 # Name of the executable.
15477 as_me
=`$as_basename "$0" ||
15478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15479 X"$0" : 'X\(//\)$' \| \
15480 X"$0" : 'X\(/\)$' \| \
15481 . : '\(.\)' 2>/dev/null ||
15483 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15484 /^X\/\(\/\/\)$/{ s//\1/; q; }
15485 /^X\/\(\/\).*/{ s//\1/; q; }
15489 # PATH needs CR, and LINENO needs CR and PATH.
15490 # Avoid depending upon Character Ranges.
15491 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15492 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15493 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15494 as_cr_digits
='0123456789'
15495 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15497 # The user is always right.
15498 if test "${PATH_SEPARATOR+set}" != set; then
15499 echo "#! /bin/sh" >conf$$.sh
15500 echo "exit 0" >>conf$$.sh
15502 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15511 as_lineno_1
=$LINENO
15512 as_lineno_2
=$LINENO
15513 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15514 test "x$as_lineno_1" != "x$as_lineno_2" &&
15515 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15516 # Find who we are. Look in the path if we contain no path at all
15519 *[\\/]* ) as_myself
=$0 ;;
15520 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15521 for as_dir
in $PATH
15524 test -z "$as_dir" && as_dir
=.
15525 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15530 # We did not find ourselves, most probably we were run as `sh COMMAND'
15531 # in which case we are not to be found in the path.
15532 if test "x$as_myself" = x
; then
15535 if test ! -f "$as_myself"; then
15536 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15537 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15538 { (exit 1); exit 1; }; }
15540 case $CONFIG_SHELL in
15542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15543 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15546 test -z "$as_dir" && as_dir
=.
15547 for as_base
in sh bash ksh sh5
; do
15550 if ("$as_dir/$as_base" -c '
15551 as_lineno_1=$LINENO
15552 as_lineno_2=$LINENO
15553 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15554 test "x$as_lineno_1" != "x$as_lineno_2" &&
15555 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15556 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15557 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15558 CONFIG_SHELL
=$as_dir/$as_base
15559 export CONFIG_SHELL
15560 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15568 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15569 # uniformly replaced by the line number. The first 'sed' inserts a
15570 # line-number line before each line; the second 'sed' does the real
15571 # work. The second script uses 'N' to pair each line-number line
15572 # with the numbered line, and appends trailing '-' during
15573 # substitution so that $LINENO is not a special case at line end.
15574 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15575 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15576 sed '=' <$as_myself |
15581 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15584 s,^['$as_cr_digits']*\n,,
15585 ' >$as_me.lineno
&&
15586 chmod +x
$as_me.lineno ||
15587 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15588 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15589 { (exit 1); exit 1; }; }
15591 # Don't try to exec as it changes $[0], causing all sort of problems
15592 # (the dirname of $[0] is not the place where we might find the
15593 # original and so on. Autoconf is especially sensible to this).
15595 # Exit status is that of the last command.
15600 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15601 *c
*,-n*) ECHO_N
= ECHO_C
='
15603 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15604 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15607 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15613 rm -f conf$$ conf$$.exe conf$$.
file
15615 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15616 # We could just check for DJGPP; but this test a) works b) is more generic
15617 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15618 if test -f conf$$.exe
; then
15619 # Don't use ln at all; we don't have any links
15624 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15629 rm -f conf$$ conf$$.exe conf$$.
file
15631 if mkdir
-p .
2>/dev
/null
; then
15634 test -d .
/-p && rmdir .
/-p
15638 as_executable_p
="test -f"
15640 # Sed expression to map a string onto a valid CPP name.
15641 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15643 # Sed expression to map a string onto a valid variable name.
15644 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15648 # We need space, tab and new line, in precisely that order.
15658 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15659 # report actual input values of CONFIG_FILES etc. instead of their
15660 # values after options handling. Logging --version etc. is OK.
15664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15665 ## Running $as_me. ##
15670 This file was extended by $as_me, which was
15671 generated by GNU Autoconf 2.59. Invocation command line was
15673 CONFIG_FILES = $CONFIG_FILES
15674 CONFIG_HEADERS = $CONFIG_HEADERS
15675 CONFIG_LINKS = $CONFIG_LINKS
15676 CONFIG_COMMANDS = $CONFIG_COMMANDS
15680 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15684 # Files that config.status was made for.
15685 if test -n "$ac_config_files"; then
15686 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15689 if test -n "$ac_config_headers"; then
15690 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15693 if test -n "$ac_config_links"; then
15694 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15697 if test -n "$ac_config_commands"; then
15698 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15701 cat >>$CONFIG_STATUS <<\_ACEOF
15704 \`$as_me' instantiates files from templates according to the
15705 current configuration.
15707 Usage: $0 [OPTIONS] [FILE]...
15709 -h, --help print this help, then exit
15710 -V, --version print version number, then exit
15711 -q, --quiet do not print progress messages
15712 -d, --debug don't remove temporary files
15713 --recheck update $as_me by reconfiguring in the same conditions
15714 --file=FILE[:TEMPLATE]
15715 instantiate the configuration file FILE
15716 --header=FILE[:TEMPLATE]
15717 instantiate the configuration header FILE
15719 Configuration files:
15722 Configuration headers:
15725 Configuration commands:
15728 Report bugs to <bug-autoconf@gnu.org>."
15731 cat >>$CONFIG_STATUS <<_ACEOF
15734 configured by $0, generated by GNU Autoconf 2.59,
15735 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15737 Copyright (C) 2003 Free Software Foundation, Inc.
15738 This config.status script is free software; the Free Software Foundation
15739 gives unlimited permission to copy, distribute and modify it."
15743 cat >>$CONFIG_STATUS <<\_ACEOF
15744 # If no file are specified by the user, then we need to provide default
15745 # value. By we need to know if files were specified by the user.
15751 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15752 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15760 *) # This is not an option, so the user has probably given explicit
15763 ac_need_defaults
=false
;;
15767 # Handling of the options.
15769 cat >>$CONFIG_STATUS <<\_ACEOF
15770 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15772 --version |
--vers* |
-V )
15773 echo "$ac_cs_version"; exit 0 ;;
15775 # Conflict between --help and --header
15776 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15777 Try \`$0 --help' for more information." >&5
15778 echo "$as_me: error: ambiguous option: $1
15779 Try \`$0 --help' for more information." >&2;}
15780 { (exit 1); exit 1; }; };;
15781 --help |
--hel |
-h )
15782 echo "$ac_cs_usage"; exit 0 ;;
15783 --debug |
--d* |
-d )
15785 --file |
--fil |
--fi |
--f )
15787 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15788 ac_need_defaults
=false
;;
15789 --header |
--heade |
--head |
--hea )
15791 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15792 ac_need_defaults
=false
;;
15793 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15794 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15797 # This is an error.
15798 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15799 Try \`$0 --help' for more information." >&5
15800 echo "$as_me: error: unrecognized option: $1
15801 Try \`$0 --help' for more information." >&2;}
15802 { (exit 1); exit 1; }; } ;;
15804 *) ac_config_targets
="$ac_config_targets $1" ;;
15810 ac_configure_extra_args
=
15812 if $ac_cs_silent; then
15814 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15818 cat >>$CONFIG_STATUS <<_ACEOF
15819 if \$ac_cs_recheck; then
15820 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15821 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15826 cat >>$CONFIG_STATUS <<_ACEOF
15828 # INIT-COMMANDS section.
15837 cat >>$CONFIG_STATUS <<\_ACEOF
15838 for ac_config_target
in $ac_config_targets
15840 case "$ac_config_target" in
15841 # Handling of arguments.
15842 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
15843 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15844 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
15845 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15846 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15847 { (exit 1); exit 1; }; };;
15851 # If the user did not use the arguments to specify the items to instantiate,
15852 # then the envvar interface is used. Set only those that are not.
15853 # We use the long form for the default assignment because of an extremely
15854 # bizarre bug on SunOS 4.1.3.
15855 if $ac_need_defaults; then
15856 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15857 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15861 # Have a temporary directory for convenience. Make it in the build tree
15862 # simply because there is no reason to put it here, and in addition,
15863 # creating and moving files from /tmp can sometimes cause problems.
15864 # Create a temporary directory, and hook for its removal unless debugging.
15867 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15868 trap '{ (exit 1); exit 1; }' 1 2 13 15
15871 # Create a (secure) tmp directory for tmp files.
15874 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15875 test -n "$tmp" && test -d "$tmp"
15878 tmp
=.
/confstat$$
-$RANDOM
15879 (umask 077 && mkdir
$tmp)
15882 echo "$me: cannot create a temporary directory in ." >&2
15883 { (exit 1); exit 1; }
15888 cat >>$CONFIG_STATUS <<_ACEOF
15891 # CONFIG_FILES section.
15894 # No need to generate the scripts if there are no CONFIG_FILES.
15895 # This happens for instance when ./config.status config.h
15896 if test -n "\$CONFIG_FILES"; then
15897 # Protect against being on the right side of a sed subst in config.status.
15898 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15899 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15900 s,@SHELL@,$SHELL,;t t
15901 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15902 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15903 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15904 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15905 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15906 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15907 s,@exec_prefix@,$exec_prefix,;t t
15908 s,@prefix@,$prefix,;t t
15909 s,@program_transform_name@,$program_transform_name,;t t
15910 s,@bindir@,$bindir,;t t
15911 s,@sbindir@,$sbindir,;t t
15912 s,@libexecdir@,$libexecdir,;t t
15913 s,@datadir@,$datadir,;t t
15914 s,@sysconfdir@,$sysconfdir,;t t
15915 s,@sharedstatedir@,$sharedstatedir,;t t
15916 s,@localstatedir@,$localstatedir,;t t
15917 s,@libdir@,$libdir,;t t
15918 s,@includedir@,$includedir,;t t
15919 s,@oldincludedir@,$oldincludedir,;t t
15920 s,@infodir@,$infodir,;t t
15921 s,@mandir@,$mandir,;t t
15922 s,@build_alias@,$build_alias,;t t
15923 s,@host_alias@,$host_alias,;t t
15924 s,@target_alias@,$target_alias,;t t
15925 s,@DEFS@,$DEFS,;t t
15926 s,@ECHO_C@,$ECHO_C,;t t
15927 s,@ECHO_N@,$ECHO_N,;t t
15928 s,@ECHO_T@,$ECHO_T,;t t
15929 s,@LIBS@,$LIBS,;t t
15930 s,@build@,$build,;t t
15931 s,@build_cpu@,$build_cpu,;t t
15932 s,@build_vendor@,$build_vendor,;t t
15933 s,@build_os@,$build_os,;t t
15934 s,@host@,$host,;t t
15935 s,@host_cpu@,$host_cpu,;t t
15936 s,@host_vendor@,$host_vendor,;t t
15937 s,@host_os@,$host_os,;t t
15938 s,@target@,$target,;t t
15939 s,@target_cpu@,$target_cpu,;t t
15940 s,@target_vendor@,$target_vendor,;t t
15941 s,@target_os@,$target_os,;t t
15942 s,@target_noncanonical@,$target_noncanonical,;t t
15943 s,@build_subdir@,$build_subdir,;t t
15944 s,@host_subdir@,$host_subdir,;t t
15945 s,@target_subdir@,$target_subdir,;t t
15946 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15947 s,@gcc_version_full@,$gcc_version_full,;t t
15948 s,@gcc_version@,$gcc_version,;t t
15949 s,@GENINSRC@,$GENINSRC,;t t
15951 s,@CFLAGS@,$CFLAGS,;t t
15952 s,@LDFLAGS@,$LDFLAGS,;t t
15953 s,@CPPFLAGS@,$CPPFLAGS,;t t
15954 s,@ac_ct_CC@,$ac_ct_CC,;t t
15955 s,@EXEEXT@,$EXEEXT,;t t
15956 s,@OBJEXT@,$OBJEXT,;t t
15957 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15958 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15960 s,@EGREP@,$EGREP,;t t
15961 s,@strict1_warn@,$strict1_warn,;t t
15962 s,@warn_cflags@,$warn_cflags,;t t
15963 s,@WERROR@,$WERROR,;t t
15964 s,@nocommon_flag@,$nocommon_flag,;t t
15965 s,@TREEBROWSER@,$TREEBROWSER,;t t
15966 s,@valgrind_path@,$valgrind_path,;t t
15967 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15968 s,@valgrind_command@,$valgrind_command,;t t
15969 s,@coverage_flags@,$coverage_flags,;t t
15970 s,@enable_multilib@,$enable_multilib,;t t
15971 s,@enable_shared@,$enable_shared,;t t
15972 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15973 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15974 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15975 s,@onestep@,$onestep,;t t
15976 s,@SET_MAKE@,$SET_MAKE,;t t
15978 s,@LN_S@,$LN_S,;t t
15980 s,@RANLIB@,$RANLIB,;t t
15981 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15982 s,@ranlib_flags@,$ranlib_flags,;t t
15983 s,@INSTALL@,$INSTALL,;t t
15984 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15985 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15986 s,@make_compare_target@,$make_compare_target,;t t
15987 s,@have_mktemp_command@,$have_mktemp_command,;t t
15988 s,@MAKEINFO@,$MAKEINFO,;t t
15989 s,@BUILD_INFO@,$BUILD_INFO,;t t
15990 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15991 s,@FLEX@,$FLEX,;t t
15992 s,@BISON@,$BISON,;t t
15995 s,@stage1_cflags@,$stage1_cflags,;t t
15996 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15997 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15998 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15999 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16000 s,@LIBICONV@,$LIBICONV,;t t
16001 s,@LTLIBICONV@,$LTLIBICONV,;t t
16002 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16003 s,@manext@,$manext,;t t
16004 s,@objext@,$objext,;t t
16005 s,@gthread_flags@,$gthread_flags,;t t
16006 s,@extra_modes_file@,$extra_modes_file,;t t
16007 s,@PACKAGE@,$PACKAGE,;t t
16008 s,@VERSION@,$VERSION,;t t
16009 s,@USE_NLS@,$USE_NLS,;t t
16010 s,@LIBINTL@,$LIBINTL,;t t
16011 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16012 s,@INCINTL@,$INCINTL,;t t
16013 s,@XGETTEXT@,$XGETTEXT,;t t
16014 s,@GMSGFMT@,$GMSGFMT,;t t
16015 s,@POSUB@,$POSUB,;t t
16016 s,@CATALOGS@,$CATALOGS,;t t
16017 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16018 s,@CROSS@,$CROSS,;t t
16020 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16021 s,@inhibit_libc@,$inhibit_libc,;t t
16022 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16023 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16024 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16025 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16026 s,@collect2@,$collect2,;t t
16027 s,@libgcc_visibility@,$libgcc_visibility,;t t
16029 s,@zlibdir@,$zlibdir,;t t
16030 s,@zlibinc@,$zlibinc,;t t
16031 s,@MAINT@,$MAINT,;t t
16032 s,@gcc_tooldir@,$gcc_tooldir,;t t
16033 s,@dollar@,$dollar,;t t
16034 s,@slibdir@,$slibdir,;t t
16035 s,@objdir@,$objdir,;t t
16036 s,@subdirs@,$subdirs,;t t
16037 s,@srcdir@,$srcdir,;t t
16038 s,@all_boot_languages@,$all_boot_languages,;t t
16039 s,@all_compilers@,$all_compilers,;t t
16040 s,@all_gtfiles@,$all_gtfiles,;t t
16041 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16042 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16043 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16044 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16045 s,@all_languages@,$all_languages,;t t
16046 s,@all_stagestuff@,$all_stagestuff,;t t
16047 s,@build_exeext@,$build_exeext,;t t
16048 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16049 s,@build_xm_file_list@,$build_xm_file_list,;t t
16050 s,@build_xm_include_list@,$build_xm_include_list,;t t
16051 s,@build_xm_defines@,$build_xm_defines,;t t
16052 s,@check_languages@,$check_languages,;t t
16053 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16054 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16055 s,@cpp_install_dir@,$cpp_install_dir,;t t
16056 s,@xmake_file@,$xmake_file,;t t
16057 s,@tmake_file@,$tmake_file,;t t
16058 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16059 s,@extra_headers_list@,$extra_headers_list,;t t
16060 s,@extra_objs@,$extra_objs,;t t
16061 s,@extra_parts@,$extra_parts,;t t
16062 s,@extra_passes@,$extra_passes,;t t
16063 s,@extra_programs@,$extra_programs,;t t
16064 s,@float_h_file@,$float_h_file,;t t
16065 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16066 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16067 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16068 s,@host_exeext@,$host_exeext,;t t
16069 s,@host_xm_file_list@,$host_xm_file_list,;t t
16070 s,@host_xm_include_list@,$host_xm_include_list,;t t
16071 s,@host_xm_defines@,$host_xm_defines,;t t
16072 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16073 s,@install@,$install,;t t
16074 s,@lang_opt_files@,$lang_opt_files,;t t
16075 s,@lang_specs_files@,$lang_specs_files,;t t
16076 s,@lang_tree_files@,$lang_tree_files,;t t
16077 s,@local_prefix@,$local_prefix,;t t
16078 s,@md_file@,$md_file,;t t
16079 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16080 s,@out_file@,$out_file,;t t
16081 s,@out_object_file@,$out_object_file,;t t
16082 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16083 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16084 s,@thread_file@,$thread_file,;t t
16085 s,@tm_file_list@,$tm_file_list,;t t
16086 s,@tm_include_list@,$tm_include_list,;t t
16087 s,@tm_defines@,$tm_defines,;t t
16088 s,@tm_p_file_list@,$tm_p_file_list,;t t
16089 s,@tm_p_include_list@,$tm_p_include_list,;t t
16090 s,@xm_file_list@,$xm_file_list,;t t
16091 s,@xm_include_list@,$xm_include_list,;t t
16092 s,@xm_defines@,$xm_defines,;t t
16093 s,@c_target_objs@,$c_target_objs,;t t
16094 s,@cxx_target_objs@,$cxx_target_objs,;t t
16095 s,@target_cpu_default@,$target_cpu_default,;t t
16096 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16097 s,@GMPLIBS@,$GMPLIBS,;t t
16098 s,@GMPINC@,$GMPINC,;t t
16099 s,@LIBOBJS@,$LIBOBJS,;t t
16100 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16101 /@language_hooks@/r $language_hooks
16102 s,@language_hooks@,,;t t
16107 cat >>$CONFIG_STATUS <<\_ACEOF
16108 # Split the substitutions into bite-sized pieces for seds with
16109 # small command number limits, like on Digital OSF/1 and HP-UX.
16110 ac_max_sed_lines
=48
16111 ac_sed_frag
=1 # Number of current file.
16112 ac_beg
=1 # First line for current file.
16113 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16116 while $ac_more_lines; do
16117 if test $ac_beg -gt 1; then
16118 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16120 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16122 if test ! -s $tmp/subs.frag
; then
16123 ac_more_lines
=false
16125 # The purpose of the label and of the branching condition is to
16126 # speed up the sed processing (if there are no `@' at all, there
16127 # is no need to browse any of the substitutions).
16128 # These are the two extra sed commands mentioned above.
16130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16131 if test -z "$ac_sed_cmds"; then
16132 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16134 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16136 ac_sed_frag
=`expr $ac_sed_frag + 1`
16138 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16141 if test -z "$ac_sed_cmds"; then
16144 fi # test -n "$CONFIG_FILES"
16147 cat >>$CONFIG_STATUS <<\_ACEOF
16148 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16151 - |
*:- |
*:-:* ) # input from stdin
16153 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16154 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16155 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16156 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16157 * ) ac_file_in
=$ac_file.
in ;;
16160 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16161 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16163 X"$ac_file" : 'X\(//\)[^/]' \| \
16164 X"$ac_file" : 'X\(//\)$' \| \
16165 X"$ac_file" : 'X\(/\)' \| \
16166 . : '\(.\)' 2>/dev/null ||
16168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16170 /^X\(\/\/\)$/{ s//\1/; q; }
16171 /^X\(\/\).*/{ s//\1/; q; }
16173 { if $as_mkdir_p; then
16178 while test ! -d "$as_dir"; do
16179 as_dirs
="$as_dir $as_dirs"
16180 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16182 X"$as_dir" : 'X\(//\)[^/]' \| \
16183 X"$as_dir" : 'X\(//\)$' \| \
16184 X"$as_dir" : 'X\(/\)' \| \
16185 . : '\(.\)' 2>/dev/null ||
16187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16189 /^X\(\/\/\)$/{ s//\1/; q; }
16190 /^X\(\/\).*/{ s//\1/; q; }
16193 test ! -n "$as_dirs" || mkdir
$as_dirs
16194 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16195 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16196 { (exit 1); exit 1; }; }; }
16200 if test "$ac_dir" != .
; then
16201 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16202 # A "../" for each directory in $ac_dir_suffix.
16203 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16205 ac_dir_suffix
= ac_top_builddir
=
16209 .
) # No --srcdir option. We are building in place.
16211 if test -z "$ac_top_builddir"; then
16214 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16216 [\\/]* | ?
:[\\/]* ) # Absolute path.
16217 ac_srcdir
=$srcdir$ac_dir_suffix;
16218 ac_top_srcdir
=$srcdir ;;
16219 *) # Relative path.
16220 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16221 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16224 # Do not use `cd foo && pwd` to compute absolute paths, because
16225 # the directories may not exist.
16227 .
) ac_abs_builddir
="$ac_dir";;
16230 .
) ac_abs_builddir
=`pwd`;;
16231 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16232 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16235 case $ac_abs_builddir in
16236 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16238 case ${ac_top_builddir}.
in
16239 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16240 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16241 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16244 case $ac_abs_builddir in
16245 .
) ac_abs_srcdir
=$ac_srcdir;;
16248 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16249 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16250 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16253 case $ac_abs_builddir in
16254 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16256 case $ac_top_srcdir in
16257 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16258 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16259 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16265 # Let's still pretend it is `configure' which instantiates (i.e., don't
16266 # use $as_me), people would be surprised to read:
16267 # /* config.h. Generated by config.status. */
16268 if test x
"$ac_file" = x-
; then
16271 configure_input
="$ac_file. "
16273 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16274 sed 's,.*/,,'` by configure."
16276 # First look for the input files in the build tree, otherwise in the
16278 ac_file_inputs
=`IFS=:
16279 for f in $ac_file_in; do
16281 -) echo $tmp/stdin ;;
16283 # Absolute (can't be DOS-style, as IFS=:)
16284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16285 echo "$as_me: error: cannot find input file: $f" >&2;}
16286 { (exit 1); exit 1; }; }
16289 if test -f "$f"; then
16292 elif test -f "$srcdir/$f"; then
16297 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16298 echo "$as_me: error: cannot find input file: $f" >&2;}
16299 { (exit 1); exit 1; }; }
16302 done` ||
{ (exit 1); exit 1; }
16304 if test x
"$ac_file" != x-
; then
16305 { echo "$as_me:$LINENO: creating $ac_file" >&5
16306 echo "$as_me: creating $ac_file" >&6;}
16310 cat >>$CONFIG_STATUS <<_ACEOF
16314 cat >>$CONFIG_STATUS <<\_ACEOF
16316 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16317 s
,@configure_input@
,$configure_input,;t t
16318 s
,@srcdir@
,$ac_srcdir,;t t
16319 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16320 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16321 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16322 s
,@builddir@
,$ac_builddir,;t t
16323 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16324 s
,@top_builddir@
,$ac_top_builddir,;t t
16325 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16326 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16328 if test x"$ac_file" != x-; then
16329 mv $tmp/out $ac_file
16337 cat >>$CONFIG_STATUS <<\_ACEOF
16340 # CONFIG_HEADER section.
16343 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16344 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16346 # ac_d sets the value in "#define NAME VALUE" lines.
16347 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16348 ac_dB
='[ ].*$,\1#\2'
16351 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16352 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16353 ac_uB
='$,\1#\2define\3'
16357 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16358 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16360 - |
*:- |
*:-:* ) # input from stdin
16362 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16363 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16364 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16365 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16366 * ) ac_file_in
=$ac_file.
in ;;
16369 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16370 echo "$as_me: creating $ac_file" >&6;}
16372 # First look for the input files in the build tree, otherwise in the
16374 ac_file_inputs
=`IFS=:
16375 for f in $ac_file_in; do
16377 -) echo $tmp/stdin ;;
16379 # Absolute (can't be DOS-style, as IFS=:)
16380 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16381 echo "$as_me: error: cannot find input file: $f" >&2;}
16382 { (exit 1); exit 1; }; }
16383 # Do quote $f, to prevent DOS paths from being IFS'd.
16386 if test -f "$f"; then
16389 elif test -f "$srcdir/$f"; then
16394 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16395 echo "$as_me: error: cannot find input file: $f" >&2;}
16396 { (exit 1); exit 1; }; }
16399 done` ||
{ (exit 1); exit 1; }
16400 # Remove the trailing spaces.
16401 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16405 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16406 # `conftest.undefs', that substitutes the proper values into
16407 # config.h.in to produce config.h. The first handles `#define'
16408 # templates, and the second `#undef' templates.
16409 # And first: Protect against being on the right side of a sed subst in
16410 # config.status. Protect against being in an unquoted here document
16411 # in config.status.
16412 rm -f conftest.defines conftest.undefs
16413 # Using a here document instead of a string reduces the quoting nightmare.
16414 # Putting comments in sed scripts is not portable.
16416 # `end' is used to avoid that the second main sed command (meant for
16417 # 0-ary CPP macros) applies to n-ary macro definitions.
16418 # See the Autoconf documentation for `clear'.
16419 cat >confdef2sed.
sed <<\_ACEOF
16424 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16426 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16429 # If some macros were called several times there might be several times
16430 # the same #defines, which is useless. Nevertheless, we may not want to
16431 # sort them, since we want the *last* AC-DEFINE to be honored.
16432 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16433 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16434 rm -f confdef2sed.sed
16436 # This sed command replaces #undef with comments. This is necessary, for
16437 # example, in the case of _POSIX_SOURCE, which is predefined and required
16438 # on some systems where configure will not decide to define it.
16439 cat >>conftest.undefs <<\_ACEOF
16440 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16443 # Break up conftest.defines because some shells have a limit on the size
16444 # of here documents, and old seds have small limits too (100 cmds).
16445 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16446 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16447 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16448 echo ' :' >>$CONFIG_STATUS
16449 rm -f conftest.tail
16450 while grep . conftest.defines >/dev/null
16452 # Write a limited-size here document to $tmp/defines.sed.
16453 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16454 # Speed up: don't consider the non `#define' lines.
16455 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16456 # Work around the forget-to-reset-the-flag bug.
16457 echo 't clr' >>$CONFIG_STATUS
16458 echo ': clr' >>$CONFIG_STATUS
16459 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16461 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16463 mv $tmp/out $tmp/in
16465 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16466 rm -f conftest.defines
16467 mv conftest.
tail conftest.defines
16469 rm -f conftest.defines
16470 echo ' fi # grep' >>$CONFIG_STATUS
16471 echo >>$CONFIG_STATUS
16473 # Break up conftest.undefs because some shells have a limit on the size
16474 # of here documents, and old seds have small limits too (100 cmds).
16475 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16476 rm -f conftest.
tail
16477 while grep . conftest.undefs
>/dev
/null
16479 # Write a limited-size here document to $tmp/undefs.sed.
16480 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16481 # Speed up: don't consider the non
`#undef'
16482 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16483 # Work around the forget-to-reset-the-flag bug.
16484 echo 't clr' >>$CONFIG_STATUS
16485 echo ': clr' >>$CONFIG_STATUS
16486 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16488 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16490 mv $tmp/out $tmp/in
16492 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16493 rm -f conftest.undefs
16494 mv conftest.tail conftest.undefs
16496 rm -f conftest.undefs
16498 cat >>$CONFIG_STATUS <<\_ACEOF
16499 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16500 # use $as_me), people would be surprised to read:
16501 # /* config.h. Generated by config.status. */
16502 if test x
"$ac_file" = x-
; then
16503 echo "/* Generated by configure. */" >$tmp/config.h
16505 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16507 cat $tmp/in >>$tmp/config.h
16509 if test x
"$ac_file" != x-
; then
16510 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16511 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16512 echo "$as_me: $ac_file is unchanged" >&6;}
16514 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16515 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16516 X"$ac_file" : 'X\(//\)[^/]' \| \
16517 X"$ac_file" : 'X\(//\)$' \| \
16518 X"$ac_file" : 'X\(/\)' \| \
16519 . : '\(.\)' 2>/dev/null ||
16521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16523 /^X\(\/\/\)$/{ s//\1/; q; }
16524 /^X\(\/\).*/{ s//\1/; q; }
16526 { if $as_mkdir_p; then
16531 while test ! -d "$as_dir"; do
16532 as_dirs
="$as_dir $as_dirs"
16533 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16535 X"$as_dir" : 'X\(//\)[^/]' \| \
16536 X"$as_dir" : 'X\(//\)$' \| \
16537 X"$as_dir" : 'X\(/\)' \| \
16538 . : '\(.\)' 2>/dev/null ||
16540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16542 /^X\(\/\/\)$/{ s//\1/; q; }
16543 /^X\(\/\).*/{ s//\1/; q; }
16546 test ! -n "$as_dirs" || mkdir
$as_dirs
16547 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16548 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16549 { (exit 1); exit 1; }; }; }
16552 mv $tmp/config.h
$ac_file
16556 rm -f $tmp/config.h
16560 cat >>$CONFIG_STATUS <<\_ACEOF
16563 # CONFIG_COMMANDS section.
16565 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16566 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16567 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16568 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16569 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16570 X"$ac_dest" : 'X\(//\)[^/]' \| \
16571 X"$ac_dest" : 'X\(//\)$' \| \
16572 X"$ac_dest" : 'X\(/\)' \| \
16573 . : '\(.\)' 2>/dev/null ||
16575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16577 /^X\(\/\/\)$/{ s//\1/; q; }
16578 /^X\(\/\).*/{ s//\1/; q; }
16580 { if $as_mkdir_p; then
16585 while test ! -d "$as_dir"; do
16586 as_dirs
="$as_dir $as_dirs"
16587 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16589 X"$as_dir" : 'X\(//\)[^/]' \| \
16590 X"$as_dir" : 'X\(//\)$' \| \
16591 X"$as_dir" : 'X\(/\)' \| \
16592 . : '\(.\)' 2>/dev/null ||
16594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16596 /^X\(\/\/\)$/{ s//\1/; q; }
16597 /^X\(\/\).*/{ s//\1/; q; }
16600 test ! -n "$as_dirs" || mkdir
$as_dirs
16601 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16602 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16603 { (exit 1); exit 1; }; }; }
16607 if test "$ac_dir" != .
; then
16608 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16609 # A "../" for each directory in $ac_dir_suffix.
16610 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16612 ac_dir_suffix
= ac_top_builddir
=
16616 .
) # No --srcdir option. We are building in place.
16618 if test -z "$ac_top_builddir"; then
16621 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16623 [\\/]* | ?
:[\\/]* ) # Absolute path.
16624 ac_srcdir
=$srcdir$ac_dir_suffix;
16625 ac_top_srcdir
=$srcdir ;;
16626 *) # Relative path.
16627 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16628 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16631 # Do not use `cd foo && pwd` to compute absolute paths, because
16632 # the directories may not exist.
16634 .
) ac_abs_builddir
="$ac_dir";;
16637 .
) ac_abs_builddir
=`pwd`;;
16638 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16639 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16642 case $ac_abs_builddir in
16643 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16645 case ${ac_top_builddir}.
in
16646 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16647 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16648 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16651 case $ac_abs_builddir in
16652 .
) ac_abs_srcdir
=$ac_srcdir;;
16655 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16656 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16657 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16660 case $ac_abs_builddir in
16661 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16663 case $ac_top_srcdir in
16664 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16665 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16666 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16671 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16672 echo "$as_me: executing $ac_dest commands" >&6;}
16675 case ${CONFIG_HEADERS} in
16676 *auto-host.h
:config.
in*)
16679 # Make sure all the subdirs exist.
16680 for d
in $subdirs doc build
16682 test -d $d || mkdir
$d
16684 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16685 # bootstrapping and the installation procedure can still use
16686 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16687 # FLAGS_TO_PASS has been modified to solve the problem there.
16688 # This is virtually a duplicate of what happens in configure.lang; we do
16689 # an extra check to make sure this only happens if ln -s can be used.
16692 for d
in ${subdirs} ; do
16693 STARTDIR
=`${PWDCMD-pwd}`
16695 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16698 $LN_S ..
/$t $t 2>/dev
/null
16709 cat >>$CONFIG_STATUS <<\_ACEOF
16711 { (exit 0); exit 0; }
16713 chmod +x
$CONFIG_STATUS
16714 ac_clean_files
=$ac_clean_files_save
16717 # configure is writing to config.log, and then calls config.status.
16718 # config.status does its own redirection, appending to config.log.
16719 # Unfortunately, on DOS this fails, as config.log is still kept open
16720 # by configure, so config.status won't be able to write to it; its
16721 # output is simply discarded. So we exec the FD to /dev/null,
16722 # effectively closing config.log, so it can be properly (re)opened and
16723 # appended to by config.status. When coming back to configure, we
16724 # need to make the FD available again.
16725 if test "$no_create" != yes; then
16727 ac_config_status_args
=
16728 test "$silent" = yes &&
16729 ac_config_status_args
="$ac_config_status_args --quiet"
16731 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16734 # would make configure fail if this is the last instruction.
16735 $ac_cs_success ||
{ (exit 1); exit 1; }