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 CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default set_gcc_lib_path GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: assert
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,tree
,valgrind
,release
,yes,all
;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler
's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don
't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page
,zone
} choose the garbage collection mechanism to use
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries
in DIR LIBDIR
933 Some influential environment variables
:
934 CC C compiler
command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
937 nonstandard directory
<lib dir
>
938 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
939 headers
in a nonstandard directory
<include dir
>
941 GMPLIBS How to link GMP
942 GMPINC How to
find GMP include files
944 Use these variables to override the choices made by
`configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
962 ac_dir_suffix= ac_top_builddir=
966 .) # No --srcdir option. We are building in place.
968 if test -z "$ac_top_builddir"; then
971 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 # Do not use `cd foo
&& pwd` to compute absolute paths, because
982 # the directories may not exist.
984 .) ac_abs_builddir="$ac_dir";;
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1031 $ac_configure --help
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1066 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1067 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1068 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1069 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1070 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1072 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1073 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1075 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1076 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1077 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1078 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1079 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1080 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1081 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1114 ac_must_keep_next=false
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143 -* ) ac_must_keep_next=true ;;
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close
' the trap.
1161 trap 'exit_status
=$?
1162 # Save into config.log some information that might help in debugging.
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1172 # The following way of writing the cache mishandles newlines in values,
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1195 for ac_var
in $ac_subst_vars
1197 eval ac_val
=$
`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1202 if test -n "$ac_subst_files"; then
1209 for ac_var
in $ac_subst_files
1211 eval ac_val
=$
`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1217 if test -s confdefs.h
; then
1224 sed "/^$/d" confdefs.h |
sort
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1231 rm -f core
*.core
&&
1232 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's
/^
/|
/' "$ac_site_file" >&5
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1307 # Check that the precious variables saved in the cache have kept the same
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1320 ac_cache_corrupted=: ;;
1322 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1329 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1354 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1361 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386 #Set to 1 on a release branch
1389 # Determine the host, build, and target systems
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392 if test -f $ac_dir/install-sh; then
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1396 elif test -f $ac_dir/install.sh; then
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1400 elif test -f $ac_dir/shtool; then
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409 { (exit 1); exit 1; }; }
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428 ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432 { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1442 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1444 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454 ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1464 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1466 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476 ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1488 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494 test "$program_prefix$program_suffix$program_transform_name" = \
1496 program_prefix=${target_alias}-
1498 # Determine the noncanonical target name, for directory use.
1499 case ${build_alias} in
1500 "") build_noncanonical=${build} ;;
1501 *) build_noncanonical=${build_alias} ;;
1504 case ${host_alias} in
1505 "") host_noncanonical=${build_noncanonical} ;;
1506 *) host_noncanonical=${host_alias} ;;
1509 case ${target_alias} in
1510 "") target_noncanonical=${host_noncanonical} ;;
1511 *) target_noncanonical=${target_alias} ;;
1517 # Determine the target- and build-specific subdirectories
1518 # Prefix 'build-
' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # Not really a subdirectory, but here for completeness.
1523 target_subdir=${target_noncanonical}
1526 # Set program_transform_name
1527 test "$program_prefix" != NONE &&
1528 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1529 # Use a double $ so make ignores it.
1530 test "$program_suffix" != NONE &&
1531 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1532 # Double any \ or $. echo might interpret backslashes.
1533 # By default was `s,x,x', remove it
if useless.
1534 cat <<\_ACEOF
>conftest.
sed
1535 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1537 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1541 # Check for bogus environment variables.
1542 # Test if LIBRARY_PATH contains the notation for the current directory
1543 # since this would lead to problems installing/building glibc.
1544 # LIBRARY_PATH contains the current directory if one of the following
1546 # - one of the terminals (":" and ";") is the first or last sign
1547 # - two terminals occur directly after each other
1548 # - the path contains an element with a dot in it
1549 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1550 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1551 case ${LIBRARY_PATH} in
1552 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1553 library_path_setting
="contains current directory"
1556 library_path_setting
="ok"
1559 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1560 echo "${ECHO_T}$library_path_setting" >&6
1561 if test "$library_path_setting" != "ok"; then
1562 { { echo "$as_me:$LINENO: error:
1563 *** LIBRARY_PATH shouldn't contain the current directory when
1564 *** building gcc. Please change the environment variable
1565 *** and run configure again." >&5
1566 echo "$as_me: error:
1567 *** LIBRARY_PATH shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&2;}
1570 { (exit 1); exit 1; }; }
1573 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1574 # since this would lead to problems installing/building glibc.
1575 # GCC_EXEC_PREFIX contains the current directory if one of the following
1577 # - one of the terminals (":" and ";") is the first or last sign
1578 # - two terminals occur directly after each other
1579 # - the path contains an element with a dot in it
1580 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1581 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1582 case ${GCC_EXEC_PREFIX} in
1583 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1584 gcc_exec_prefix_setting
="contains current directory"
1587 gcc_exec_prefix_setting
="ok"
1590 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1591 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1592 if test "$gcc_exec_prefix_setting" != "ok"; then
1593 { { echo "$as_me:$LINENO: error:
1594 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1595 *** building gcc. Please change the environment variable
1596 *** and run configure again." >&5
1597 echo "$as_me: error:
1598 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1599 *** building gcc. Please change the environment variable
1600 *** and run configure again." >&2;}
1601 { (exit 1); exit 1; }; }
1605 if test "${with_gcc_version_trigger+set}" = set; then
1606 gcc_version_trigger
=$with_gcc_version_trigger
1608 gcc_version_trigger
=$srcdir/..
/gcc
/version.c
1610 if test -f "${gcc_version_trigger}"; then
1611 gcc_version_full
=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1613 gcc_version_full
=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1615 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1625 # Specify the local prefix
1628 # Check whether --with-local-prefix or --without-local-prefix was given.
1629 if test "${with_local_prefix+set}" = set; then
1630 withval
="$with_local_prefix"
1631 case "${withval}" in
1632 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1633 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1634 { (exit 1); exit 1; }; } ;;
1636 *) local_prefix
=$with_local_prefix ;;
1640 # Default local prefix if it is empty
1641 if test x
$local_prefix = x
; then
1642 local_prefix
=/usr
/local
1645 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1646 # passed in by the toplevel make and thus we'd get different behavior
1647 # depending on where we built the sources.
1648 gcc_gxx_include_dir
=
1649 # Specify the g++ header file directory
1651 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1652 if test "${with_gxx_include_dir+set}" = set; then
1653 withval
="$with_gxx_include_dir"
1654 case "${withval}" in
1655 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1656 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1657 { (exit 1); exit 1; }; } ;;
1659 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1663 if test x
${gcc_gxx_include_dir} = x
; then
1664 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1665 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1667 libstdcxx_incdir
=c
++/${gcc_version}
1668 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1673 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1674 if test "${with_cpp_install_dir+set}" = set; then
1675 withval
="$with_cpp_install_dir"
1676 if test x
$withval = xyes
; then
1677 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1678 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1679 { (exit 1); exit 1; }; }
1680 elif test x
$withval != xno
; then
1681 cpp_install_dir
=$withval
1685 # We would like to our source tree to be readonly. However when releases or
1686 # pre-releases are generated, the flex/bison generated files as well as the
1687 # various formats of manuals need to be included along with the rest of the
1688 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1691 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1692 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1693 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1694 if test "${enable_generated_files_in_srcdir+set}" = set; then
1695 enableval
="$enable_generated_files_in_srcdir"
1696 generated_files_in_srcdir
=$enableval
1698 generated_files_in_srcdir
=no
1701 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1702 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1704 if test "$generated_files_in_srcdir" = "yes"; then
1711 # -------------------
1712 # Find default linker
1713 # -------------------
1717 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1718 if test "${with_gnu_ld+set}" = set; then
1719 withval
="$with_gnu_ld"
1720 gnu_ld_flag
="$with_gnu_ld"
1725 # With pre-defined ld
1727 # Check whether --with-ld or --without-ld was given.
1728 if test "${with_ld+set}" = set; then
1730 DEFAULT_LINKER
="$with_ld"
1732 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1733 if test ! -x "$DEFAULT_LINKER"; then
1734 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1735 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1736 { (exit 1); exit 1; }; }
1737 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1741 cat >>confdefs.h
<<_ACEOF
1742 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1747 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1748 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1749 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1750 if test x
"$gnu_ld_flag" = x
"no"; then
1751 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1752 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1754 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1755 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1762 # With demangler in GNU ld
1764 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1765 if test "${with_demangler_in_ld+set}" = set; then
1766 withval
="$with_demangler_in_ld"
1767 demangler_in_ld
="$with_demangler_in_ld"
1772 # ----------------------
1773 # Find default assembler
1774 # ----------------------
1778 # Check whether --with-gnu-as or --without-gnu-as was given.
1779 if test "${with_gnu_as+set}" = set; then
1780 withval
="$with_gnu_as"
1781 gas_flag
="$with_gnu_as"
1787 # Check whether --with-as or --without-as was given.
1788 if test "${with_as+set}" = set; then
1790 DEFAULT_ASSEMBLER
="$with_as"
1792 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1793 if test ! -x "$DEFAULT_ASSEMBLER"; then
1794 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1795 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1796 { (exit 1); exit 1; }; }
1797 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1801 cat >>confdefs.h
<<_ACEOF
1802 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1807 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1808 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1809 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1810 if test x
"$gas_flag" = x
"no"; then
1811 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1812 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1814 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1815 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1826 # If a non-executable a.out is present (e.g. created by GNU as above even if
1827 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1828 # file, even when creating an executable, so an execution test fails.
1829 # Remove possible default executable files to avoid this.
1831 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1832 # Autoconf includes it.
1833 rm -f a.out a.exe b.out
1835 # Find the native compiler
1837 ac_cpp
='$CPP $CPPFLAGS'
1838 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1843 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC
="$CC" # Let the user override the test.
1852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1856 test -z "$as_dir" && as_dir
=.
1857 for ac_exec_ext
in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_CC"; then
1880 # Extract the first word of "gcc", so it can be a program name with args.
1881 set dummy gcc
; ac_word
=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir
=.
1895 for ac_exec_ext
in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_CC
="gcc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1907 if test -n "$ac_ct_CC"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909 echo "${ECHO_T}$ac_ct_CC" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1920 if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1923 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC
="$CC" # Let the user override the test.
1932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir
=.
1937 for ac_exec_ext
in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 if test -n "$CC"; then
1950 echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1958 if test -z "$ac_cv_prog_CC"; then
1960 # Extract the first word of "cc", so it can be a program name with args.
1961 set dummy cc
; ac_word
=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 if test -n "$ac_ct_CC"; then
1968 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1974 test -z "$as_dir" && as_dir
=.
1975 for ac_exec_ext
in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_ac_ct_CC
="cc"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1987 if test -n "$ac_ct_CC"; then
1988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989 echo "${ECHO_T}$ac_ct_CC" >&6
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
2001 if test -z "$CC"; then
2002 # Extract the first word of "cc", so it can be a program name with args.
2003 set dummy cc
; ac_word
=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC
="$CC" # Let the user override the test.
2013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir
=.
2018 for ac_exec_ext
in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2021 ac_prog_rejected
=yes
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 if test $ac_prog_rejected = yes; then
2032 # We found a bogon in the path, so make sure we never use it.
2033 set dummy
$ac_cv_prog_CC
2035 if test $# != 0; then
2036 # We chose a different compiler from the bogus one.
2037 # However, it has the same basename, so the bogon will be chosen
2038 # first if we set CC to just the basename; use the full file name.
2040 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2046 if test -n "$CC"; then
2047 echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2055 if test -z "$CC"; then
2056 if test -n "$ac_tool_prefix"; then
2059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC
="$CC" # Let the user override the test.
2069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2073 test -z "$as_dir" && as_dir
=.
2074 for ac_exec_ext
in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2094 test -n "$CC" && break
2097 if test -z "$CC"; then
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy
$ac_prog; ac_word
=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 if test -n "$ac_ct_CC"; then
2109 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir
=.
2116 for ac_exec_ext
in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_ac_ct_CC
="$ac_prog"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2128 if test -n "$ac_ct_CC"; then
2129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130 echo "${ECHO_T}$ac_ct_CC" >&6
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2136 test -n "$ac_ct_CC" && break
2145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&2;}
2149 { (exit 1); exit 1; }; }
2151 # Provide some information about the compiler.
2152 echo "$as_me:$LINENO:" \
2153 "checking for C compiler version" >&5
2154 ac_compiler
=`set X $ac_compile; echo $2`
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2156 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2161 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2166 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2171 cat >conftest.
$ac_ext <<_ACEOF
2174 cat confdefs.h
>>conftest.
$ac_ext
2175 cat >>conftest.
$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2186 ac_clean_files_save
=$ac_clean_files
2187 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2188 # Try to create an executable without -o first, disregard a.out.
2189 # It will help us diagnose broken compilers, and finding out an intuition
2191 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2192 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2193 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2195 (eval $ac_link_default) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # Find the output, starting from the most likely. This scheme is
2200 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2203 # Be careful to initialize this variable, since it used to be cached.
2204 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2206 # b.out is created by i960 compilers.
2207 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2209 test -f "$ac_file" ||
continue
2211 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2214 # This is the source file.
2217 # We found the default executable, but exeext='' is most
2221 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222 # FIXME: I believe we export ac_cv_exeext for Libtool,
2223 # but it would be cool to find out if it's true. Does anybody
2224 # maintain Libtool? --akim.
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.
$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239 { (exit 77); exit 77; }; }
2242 ac_exeext
=$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6
2246 # Check the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253 if { ac_try
='./$ac_file'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 if test "$cross_compiling" = maybe
; then
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2274 echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6
2277 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2278 ac_clean_files
=$ac_clean_files_save
2279 # Check the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2283 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6
2286 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2289 (eval $ac_link) 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; then
2293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2294 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2295 # work properly (i.e., refer to `conftest.exe'), while it won't with
2297 for ac_file
in conftest.exe conftest conftest.
*; do
2298 test -f "$ac_file" ||
continue
2300 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2301 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2315 rm -f conftest
$ac_cv_exeext
2316 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2317 echo "${ECHO_T}$ac_cv_exeext" >&6
2319 rm -f conftest.
$ac_ext
2320 EXEEXT
=$ac_cv_exeext
2322 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2324 if test "${ac_cv_objext+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.
$ac_ext <<_ACEOF
2330 cat confdefs.h
>>conftest.
$ac_ext
2331 cat >>conftest.
$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2342 rm -f conftest.o conftest.obj
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2350 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2351 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.
$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2368 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6
2370 OBJEXT
=$ac_cv_objext
2372 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 cat >conftest.
$ac_ext <<_ACEOF
2380 cat confdefs.h
>>conftest.
$ac_ext
2381 cat >>conftest.
$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2395 rm -f conftest.
$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2399 grep -v '^ *+' conftest.er1
>conftest.err
2401 cat conftest.err
>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try
='test -z "$ac_c_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try
='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.
$ac_ext >&5
2424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2425 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2428 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2430 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS
=${CFLAGS+set}
2432 ac_save_CFLAGS
=$CFLAGS
2434 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2436 if test "${ac_cv_prog_cc_g+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 cat >conftest.
$ac_ext <<_ACEOF
2442 cat confdefs.h
>>conftest.
$ac_ext
2443 cat >>conftest.
$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2454 rm -f conftest.
$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2458 grep -v '^ *+' conftest.er1
>conftest.err
2460 cat conftest.err
>&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try
='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try
='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.
$ac_ext >&5
2483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2485 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2487 if test "$ac_test_CFLAGS" = set; then
2488 CFLAGS
=$ac_save_CFLAGS
2489 elif test $ac_cv_prog_cc_g = yes; then
2490 if test "$GCC" = yes; then
2496 if test "$GCC" = yes; then
2502 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2503 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 ac_cv_prog_cc_stdc
=no
2509 cat >conftest.
$ac_ext <<_ACEOF
2512 cat confdefs.h
>>conftest.
$ac_ext
2513 cat >>conftest.
$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2517 #include <sys/types.h>
2518 #include <sys/stat.h>
2519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2520 struct buf { int x; };
2521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522 static char *e (p, i)
2528 static char *f (char * (*g) (char **, int), char **p, ...)
2533 s = g (p, va_arg (v,int));
2538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2539 function prototypes and stuff, but not '\xHH' hex character constants.
2540 These don't provoke an error unfortunately, instead are silently treated
2541 as 'x'. The following induces an error, until -std1 is added to get
2542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2543 array size at least. It's necessary to write '\x00'==0 to get something
2544 that's true only with -std1. */
2545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2547 int test (int i, double x);
2548 struct s1 {int (*f) (int a);};
2549 struct s2 {int (*f) (double a);};
2550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2561 # Don't try gcc -ansi; that turns off useful extensions and
2562 # breaks some systems' header files.
2563 # AIX -qlanglvl=ansi
2564 # Ultrix and OSF/1 -std1
2565 # HP-UX 10.20 and later -Ae
2566 # HP-UX older versions -Aa -D_HPUX_SOURCE
2567 # SVR4 -Xc -D__EXTENSIONS__
2568 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2570 CC
="$ac_save_CC $ac_arg"
2571 rm -f conftest.
$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>conftest.er1
2575 grep -v '^ *+' conftest.er1
>conftest.err
2577 cat conftest.err
>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try
='test -z "$ac_c_werror_flag"
2581 || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try
='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 ac_cv_prog_cc_stdc
=$ac_arg
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.
$ac_ext >&5
2600 rm -f conftest.err conftest.
$ac_objext
2602 rm -f conftest.
$ac_ext conftest.
$ac_objext
2607 case "x$ac_cv_prog_cc_stdc" in
2609 echo "$as_me:$LINENO: result: none needed" >&5
2610 echo "${ECHO_T}none needed" >&6 ;;
2612 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2614 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2617 # Some people use a C++ compiler to compile C. Since we use `exit',
2618 # in C++ we need to declare it. In case someone uses the same compiler
2619 # for both compiling C and C++ we need to have the C++ compiler decide
2620 # the declaration of exit, since it's the most demanding environment.
2621 cat >conftest.
$ac_ext <<_ACEOF
2626 rm -f conftest.
$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>conftest.er1
2630 grep -v '^ *+' conftest.er1
>conftest.err
2632 cat conftest.err
>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try
='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try
='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 for ac_declaration
in \
2650 'extern "C" void std::exit (int) throw (); using std::exit;' \
2651 'extern "C" void std::exit (int); using std::exit;' \
2652 'extern "C" void exit (int) throw ();' \
2653 'extern "C" void exit (int);' \
2656 cat >conftest.
$ac_ext <<_ACEOF
2659 cat confdefs.h
>>conftest.
$ac_ext
2660 cat >>conftest.
$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2672 rm -f conftest.
$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2676 grep -v '^ *+' conftest.er1
>conftest.err
2678 cat conftest.err
>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try
='test -z "$ac_c_werror_flag"
2682 || 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"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try
='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.
$ac_ext >&5
2745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2748 if test -n "$ac_declaration"; then
2749 echo '#ifdef __cplusplus' >>confdefs.h
2750 echo $ac_declaration >>confdefs.h
2751 echo '#endif' >>confdefs.h
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.
$ac_ext >&5
2759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2761 ac_cpp
='$CPP $CPPFLAGS'
2762 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2766 if test "x$CC" != xcc
; then
2767 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2768 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2770 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2771 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2773 set dummy
$CC; ac_cc
=`echo $2 |
2774 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2775 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 cat >conftest.
$ac_ext <<_ACEOF
2781 cat confdefs.h
>>conftest.
$ac_ext
2782 cat >>conftest.
$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2793 # Make sure it works both with $CC and with simple cc.
2794 # We do the test twice because some compilers refuse to overwrite an
2795 # existing .o file with -o, though they will create one.
2796 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2797 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); };
2808 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2809 if test "x$CC" != xcc
; then
2810 # Test first that cc exists at all.
2811 if { ac_try
='cc -c conftest.$ac_ext >&5'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2818 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); };
2832 # cc exists but doesn't like -o.
2833 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2838 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2843 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2844 echo "$as_me:$LINENO: result: yes" >&5
2845 echo "${ECHO_T}yes" >&6
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2850 cat >>confdefs.h
<<\_ACEOF
2851 #define NO_MINUS_C_MINUS_O 1
2856 # expand $ac_aux_dir to an absolute path
2857 am_aux_dir
=`cd $ac_aux_dir && pwd`
2859 # FIXME: we rely on the cache variable name because
2860 # there is no other way.
2862 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2864 # Losing compiler, so override with the script.
2865 # FIXME: It is wrong to rewrite CC.
2866 # But if we don't then we get into trouble of one sort or another.
2867 # A longer-term fix would be to have automake use am__CC in this case,
2868 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2869 CC
="$am_aux_dir/compile $CC"
2872 # autoconf is lame and doesn't give us any substitution variable for this.
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2874 NO_MINUS_C_MINUS_O
=yes
2876 OUTPUT_OPTION
='-o $@'
2881 # -------------------------
2882 # Check C compiler features
2883 # -------------------------
2886 ac_cpp
='$CPP $CPPFLAGS'
2887 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2890 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2892 # On Suns, sometimes $CPP names a directory.
2893 if test -n "$CPP" && test -d "$CPP"; then
2896 if test -z "$CPP"; then
2897 if test "${ac_cv_prog_CPP+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 # Double quotes because CPP needs to be expanded
2901 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2904 for ac_c_preproc_warn_flag
in '' yes
2906 # Use a header file that comes with gcc, so configuring glibc
2907 # with a fresh cross-compiler works.
2908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2909 # <limits.h> exists even on freestanding compilers.
2910 # On the NeXT, cc -E runs the code through the compiler's parser,
2911 # not just through cpp. "Syntax error" is here to catch this case.
2912 cat >conftest.
$ac_ext <<_ACEOF
2915 cat confdefs.h
>>conftest.
$ac_ext
2916 cat >>conftest.
$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2919 # include <limits.h>
2921 # include <assert.h>
2925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2926 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1
>conftest.err
2930 cat conftest.err
>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } >/dev
/null
; then
2933 if test -s conftest.err
; then
2934 ac_cpp_err
=$ac_c_preproc_warn_flag
2935 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2942 if test -z "$ac_cpp_err"; then
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.
$ac_ext >&5
2948 # Broken: fails on valid input.
2951 rm -f conftest.err conftest.
$ac_ext
2953 # OK, works on sane cases. Now check whether non-existent headers
2954 # can be detected and how.
2955 cat >conftest.
$ac_ext <<_ACEOF
2958 cat confdefs.h
>>conftest.
$ac_ext
2959 cat >>conftest.
$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2961 #include <ac_nonexistent.h>
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2966 grep -v '^ *+' conftest.er1
>conftest.err
2968 cat conftest.err
>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev
/null
; then
2971 if test -s conftest.err
; then
2972 ac_cpp_err
=$ac_c_preproc_warn_flag
2973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2980 if test -z "$ac_cpp_err"; then
2981 # Broken: success on invalid input.
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.
$ac_ext >&5
2987 # Passes both tests.
2991 rm -f conftest.err conftest.
$ac_ext
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.err conftest.
$ac_ext
2996 if $ac_preproc_ok; then
3008 echo "$as_me:$LINENO: result: $CPP" >&5
3009 echo "${ECHO_T}$CPP" >&6
3011 for ac_c_preproc_warn_flag
in '' yes
3013 # Use a header file that comes with gcc, so configuring glibc
3014 # with a fresh cross-compiler works.
3015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3016 # <limits.h> exists even on freestanding compilers.
3017 # On the NeXT, cc -E runs the code through the compiler's parser,
3018 # not just through cpp. "Syntax error" is here to catch this case.
3019 cat >conftest.
$ac_ext <<_ACEOF
3022 cat confdefs.h
>>conftest.
$ac_ext
3023 cat >>conftest.
$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3026 # include <limits.h>
3028 # include <assert.h>
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3035 grep -v '^ *+' conftest.er1
>conftest.err
3037 cat conftest.err
>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev
/null
; then
3040 if test -s conftest.err
; then
3041 ac_cpp_err
=$ac_c_preproc_warn_flag
3042 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3049 if test -z "$ac_cpp_err"; then
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.
$ac_ext >&5
3055 # Broken: fails on valid input.
3058 rm -f conftest.err conftest.
$ac_ext
3060 # OK, works on sane cases. Now check whether non-existent headers
3061 # can be detected and how.
3062 cat >conftest.
$ac_ext <<_ACEOF
3065 cat confdefs.h
>>conftest.
$ac_ext
3066 cat >>conftest.
$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3068 #include <ac_nonexistent.h>
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3073 grep -v '^ *+' conftest.er1
>conftest.err
3075 cat conftest.err
>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev
/null
; then
3078 if test -s conftest.err
; then
3079 ac_cpp_err
=$ac_c_preproc_warn_flag
3080 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3087 if test -z "$ac_cpp_err"; then
3088 # Broken: success on invalid input.
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.
$ac_ext >&5
3094 # Passes both tests.
3098 rm -f conftest.err conftest.
$ac_ext
3101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3102 rm -f conftest.err conftest.
$ac_ext
3103 if $ac_preproc_ok; then
3106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3109 See \`config.log' for more details." >&2;}
3110 { (exit 1); exit 1; }; }
3114 ac_cpp
='$CPP $CPPFLAGS'
3115 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3120 echo "$as_me:$LINENO: checking for inline" >&5
3121 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3122 if test "${ac_cv_c_inline+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 for ac_kw
in inline __inline__ __inline
; do
3127 cat >conftest.
$ac_ext <<_ACEOF
3130 cat confdefs.h
>>conftest.
$ac_ext
3131 cat >>conftest.
$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3135 static $ac_kw foo_t static_foo () {return 0; }
3136 $ac_kw foo_t foo () {return 0; }
3140 rm -f conftest.
$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
3144 grep -v '^ *+' conftest.er1
>conftest.err
3146 cat conftest.err
>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try
='test -z "$ac_c_werror_flag"
3150 || test ! -s conftest.err'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try
='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_c_inline
=$ac_kw; break
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.
$ac_ext >&5
3168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3172 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3173 echo "${ECHO_T}$ac_cv_c_inline" >&6
3176 case $ac_cv_c_inline in
3179 case $ac_cv_c_inline in
3181 *) ac_val
=$ac_cv_c_inline;;
3183 cat >>confdefs.h
<<_ACEOF
3185 #define inline $ac_val
3192 echo "$as_me:$LINENO: checking for long long int" >&5
3193 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3194 if test "${ac_cv_c_long_long+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 cat >conftest.
$ac_ext <<_ACEOF
3200 cat confdefs.h
>>conftest.
$ac_ext
3201 cat >>conftest.
$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3212 rm -f conftest.
$ac_objext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214 (eval $ac_compile) 2>conftest.er1
3216 grep -v '^ *+' conftest.er1
>conftest.err
3218 cat conftest.err
>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try
='test -z "$ac_c_werror_flag"
3222 || test ! -s conftest.err'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; } &&
3228 { ac_try
='test -s conftest.$ac_objext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 ac_cv_c_long_long
=yes
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.
$ac_ext >&5
3239 ac_cv_c_long_long
=no
3241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3243 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3244 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3245 if test $ac_cv_c_long_long = yes; then
3247 cat >>confdefs.h
<<\_ACEOF
3248 #define HAVE_LONG_LONG 1
3252 echo "$as_me:$LINENO: checking for __int64" >&5
3253 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3254 if test "${ac_cv_c___int64+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 cat >conftest.
$ac_ext <<_ACEOF
3260 cat confdefs.h
>>conftest.
$ac_ext
3261 cat >>conftest.
$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3272 rm -f conftest.
$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3276 grep -v '^ *+' conftest.er1
>conftest.err
3278 cat conftest.err
>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try
='test -z "$ac_c_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try
='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.
$ac_ext >&5
3301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3304 echo "${ECHO_T}$ac_cv_c___int64" >&6
3305 if test $ac_cv_c___int64 = yes; then
3307 cat >>confdefs.h
<<\_ACEOF
3308 #define HAVE___INT64 1
3314 # sizeof(char) is 1 by definition.
3316 echo "$as_me:$LINENO: checking for egrep" >&5
3317 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3318 if test "${ac_cv_prog_egrep+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3322 then ac_cv_prog_egrep
='grep -E'
3323 else ac_cv_prog_egrep
='egrep'
3326 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3327 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3328 EGREP
=$ac_cv_prog_egrep
3331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3333 if test "${ac_cv_header_stdc+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 cat >conftest.
$ac_ext <<_ACEOF
3339 cat confdefs.h
>>conftest.
$ac_ext
3340 cat >>conftest.
$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3355 rm -f conftest.
$ac_objext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>conftest.er1
3359 grep -v '^ *+' conftest.er1
>conftest.err
3361 cat conftest.err
>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try
='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try
='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_header_stdc
=yes
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.
$ac_ext >&5
3382 ac_cv_header_stdc
=no
3384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3386 if test $ac_cv_header_stdc = yes; then
3387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3388 cat >conftest.
$ac_ext <<_ACEOF
3391 cat confdefs.h
>>conftest.
$ac_ext
3392 cat >>conftest.
$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 $EGREP "memchr" >/dev
/null
2>&1; then
3401 ac_cv_header_stdc
=no
3407 if test $ac_cv_header_stdc = yes; then
3408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3409 cat >conftest.
$ac_ext <<_ACEOF
3412 cat confdefs.h
>>conftest.
$ac_ext
3413 cat >>conftest.
$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "free" >/dev
/null
2>&1; then
3422 ac_cv_header_stdc
=no
3428 if test $ac_cv_header_stdc = yes; then
3429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3430 if test "$cross_compiling" = yes; then
3433 cat >conftest.
$ac_ext <<_ACEOF
3436 cat confdefs.h
>>conftest.
$ac_ext
3437 cat >>conftest.
$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3440 #if ((' ' & 0x0FF) == 0x020)
3441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3444 # define ISLOWER(c) \
3445 (('a' <= (c) && (c) <= 'i') \
3446 || ('j' <= (c) && (c) <= 'r') \
3447 || ('s' <= (c) && (c) <= 'z'))
3448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3456 for (i = 0; i < 256; i++)
3457 if (XOR (islower (i), ISLOWER (i))
3458 || toupper (i) != TOUPPER (i))
3463 rm -f conftest
$ac_exeext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3465 (eval $ac_link) 2>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3476 echo "$as_me: program exited with status $ac_status" >&5
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3481 ac_cv_header_stdc
=no
3483 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3489 if test $ac_cv_header_stdc = yes; then
3491 cat >>confdefs.h
<<\_ACEOF
3492 #define STDC_HEADERS 1
3497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3507 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3508 inttypes.h stdint.h unistd.h
3510 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 cat >conftest.
$ac_ext <<_ACEOF
3519 cat confdefs.h
>>conftest.
$ac_ext
3520 cat >>conftest.
$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 $ac_includes_default
3524 #include <$ac_header>
3526 rm -f conftest.
$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3530 grep -v '^ *+' conftest.er1
>conftest.err
3532 cat conftest.err
>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try
='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try
='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 eval "$as_ac_Header=yes"
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.
$ac_ext >&5
3553 eval "$as_ac_Header=no"
3555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3560 cat >>confdefs.h
<<_ACEOF
3561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3569 echo "$as_me:$LINENO: checking for void *" >&5
3570 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3571 if test "${ac_cv_type_void_p+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 cat >conftest.
$ac_ext <<_ACEOF
3577 cat confdefs.h
>>conftest.
$ac_ext
3578 cat >>conftest.
$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 $ac_includes_default
3586 if (sizeof (void *))
3592 rm -f conftest.
$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3596 grep -v '^ *+' conftest.er1
>conftest.err
3598 cat conftest.err
>&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try
='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try
='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_cv_type_void_p
=yes
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.
$ac_ext >&5
3619 ac_cv_type_void_p
=no
3621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3623 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3624 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3626 echo "$as_me:$LINENO: checking size of void *" >&5
3627 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3628 if test "${ac_cv_sizeof_void_p+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 if test "$ac_cv_type_void_p" = yes; then
3632 # The cast to unsigned long works around a bug in the HP C Compiler
3633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3635 # This bug is HP SR number 8606223364.
3636 if test "$cross_compiling" = yes; then
3637 # Depending upon the size, compute the lo and hi bounds.
3638 cat >conftest.
$ac_ext <<_ACEOF
3641 cat confdefs.h
>>conftest.
$ac_ext
3642 cat >>conftest.
$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_includes_default
3648 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3655 rm -f conftest.
$ac_objext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3659 grep -v '^ *+' conftest.er1
>conftest.err
3661 cat conftest.err
>&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try
='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try
='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3679 cat >conftest.
$ac_ext <<_ACEOF
3682 cat confdefs.h
>>conftest.
$ac_ext
3683 cat >>conftest.
$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3685 $ac_includes_default
3689 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3696 rm -f conftest.
$ac_objext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>conftest.er1
3700 grep -v '^ *+' conftest.er1
>conftest.err
3702 cat conftest.err
>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 { ac_try
='test -z "$ac_c_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try
='test -s conftest.$ac_objext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_hi
=$ac_mid; break
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.
$ac_ext >&5
3723 ac_lo
=`expr $ac_mid + 1`
3724 if test $ac_lo -le $ac_mid; then
3728 ac_mid
=`expr 2 '*' $ac_mid + 1`
3730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.
$ac_ext >&5
3736 cat >conftest.
$ac_ext <<_ACEOF
3739 cat confdefs.h
>>conftest.
$ac_ext
3740 cat >>conftest.
$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 $ac_includes_default
3746 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3753 rm -f conftest.
$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755 (eval $ac_compile) 2>conftest.er1
3757 grep -v '^ *+' conftest.er1
>conftest.err
3759 cat conftest.err
>&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } &&
3762 { ac_try
='test -z "$ac_c_werror_flag"
3763 || test ! -s conftest.err'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; } &&
3769 { ac_try
='test -s conftest.$ac_objext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3777 cat >conftest.
$ac_ext <<_ACEOF
3780 cat confdefs.h
>>conftest.
$ac_ext
3781 cat >>conftest.
$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 $ac_includes_default
3787 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3794 rm -f conftest.
$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>conftest.er1
3798 grep -v '^ *+' conftest.er1
>conftest.err
3800 cat conftest.err
>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try
='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try
='test -s conftest.$ac_objext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_lo
=$ac_mid; break
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.
$ac_ext >&5
3821 ac_hi
=`expr '(' $ac_mid ')' - 1`
3822 if test $ac_mid -le $ac_hi; then
3826 ac_mid
=`expr 2 '*' $ac_mid`
3828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.
$ac_ext >&5
3836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3839 # Binary search between lo and hi bounds.
3840 while test "x$ac_lo" != "x$ac_hi"; do
3841 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3842 cat >conftest.
$ac_ext <<_ACEOF
3845 cat confdefs.h
>>conftest.
$ac_ext
3846 cat >>conftest.
$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 $ac_includes_default
3852 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3859 rm -f conftest.
$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3863 grep -v '^ *+' conftest.er1
>conftest.err
3865 cat conftest.err
>&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try
='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try
='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.
$ac_ext >&5
3886 ac_lo
=`expr '(' $ac_mid ')' + 1`
3888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3891 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3893 See \`config.log' for more details." >&5
3894 echo "$as_me: error: cannot compute sizeof (void *), 77
3895 See \`config.log' for more details." >&2;}
3896 { (exit 1); exit 1; }; } ;;
3899 if test "$cross_compiling" = yes; then
3900 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3901 See \`config.log' for more details." >&5
3902 echo "$as_me: error: cannot run test program while cross compiling
3903 See \`config.log' for more details." >&2;}
3904 { (exit 1); exit 1; }; }
3906 cat >conftest.
$ac_ext <<_ACEOF
3909 cat confdefs.h
>>conftest.
$ac_ext
3910 cat >>conftest.
$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 $ac_includes_default
3913 long longval () { return (long) (sizeof (void *)); }
3914 unsigned long ulongval () { return (long) (sizeof (void *)); }
3921 FILE *f = fopen ("conftest.val", "w");
3924 if (((long) (sizeof (void *))) < 0)
3926 long i = longval ();
3927 if (i != ((long) (sizeof (void *))))
3929 fprintf (f, "%ld\n", i);
3933 unsigned long i = ulongval ();
3934 if (i != ((long) (sizeof (void *))))
3936 fprintf (f, "%lu\n", i);
3938 exit (ferror (f) || fclose (f) != 0);
3944 rm -f conftest
$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946 (eval $ac_link) 2>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_sizeof_void_p
=`cat conftest.val`
3957 echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.
$ac_ext >&5
3962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: cannot compute sizeof (void *), 77
3965 See \`config.log' for more details." >&2;}
3966 { (exit 1); exit 1; }; }
3968 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3973 ac_cv_sizeof_void_p
=0
3976 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3977 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3978 cat >>confdefs.h
<<_ACEOF
3979 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3983 echo "$as_me:$LINENO: checking for short" >&5
3984 echo $ECHO_N "checking for short... $ECHO_C" >&6
3985 if test "${ac_cv_type_short+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 cat >conftest.
$ac_ext <<_ACEOF
3991 cat confdefs.h
>>conftest.
$ac_ext
3992 cat >>conftest.
$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 $ac_includes_default
4006 rm -f conftest.
$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>conftest.er1
4010 grep -v '^ *+' conftest.er1
>conftest.err
4012 cat conftest.err
>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try
='test -z "$ac_c_werror_flag"
4016 || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try
='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 ac_cv_type_short
=yes
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.
$ac_ext >&5
4035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4037 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4038 echo "${ECHO_T}$ac_cv_type_short" >&6
4040 echo "$as_me:$LINENO: checking size of short" >&5
4041 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4042 if test "${ac_cv_sizeof_short+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 if test "$ac_cv_type_short" = yes; then
4046 # The cast to unsigned long works around a bug in the HP C Compiler
4047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4049 # This bug is HP SR number 8606223364.
4050 if test "$cross_compiling" = yes; then
4051 # Depending upon the size, compute the lo and hi bounds.
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 $ac_includes_default
4062 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4069 rm -f conftest.
$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4073 grep -v '^ *+' conftest.er1
>conftest.err
4075 cat conftest.err
>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try
='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try
='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4093 cat >conftest.
$ac_ext <<_ACEOF
4096 cat confdefs.h
>>conftest.
$ac_ext
4097 cat >>conftest.
$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 $ac_includes_default
4103 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4110 rm -f conftest.
$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>conftest.er1
4114 grep -v '^ *+' conftest.er1
>conftest.err
4116 cat conftest.err
>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try
='test -z "$ac_c_werror_flag"
4120 || test ! -s conftest.err'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try
='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_hi
=$ac_mid; break
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.
$ac_ext >&5
4137 ac_lo
=`expr $ac_mid + 1`
4138 if test $ac_lo -le $ac_mid; then
4142 ac_mid
=`expr 2 '*' $ac_mid + 1`
4144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.
$ac_ext >&5
4150 cat >conftest.
$ac_ext <<_ACEOF
4153 cat confdefs.h
>>conftest.
$ac_ext
4154 cat >>conftest.
$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4156 $ac_includes_default
4160 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4167 rm -f conftest.
$ac_objext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>conftest.er1
4171 grep -v '^ *+' conftest.er1
>conftest.err
4173 cat conftest.err
>&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try
='test -z "$ac_c_werror_flag"
4177 || test ! -s conftest.err'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try
='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4191 cat >conftest.
$ac_ext <<_ACEOF
4194 cat confdefs.h
>>conftest.
$ac_ext
4195 cat >>conftest.
$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 $ac_includes_default
4201 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4208 rm -f conftest.
$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4212 grep -v '^ *+' conftest.er1
>conftest.err
4214 cat conftest.err
>&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try
='test -z "$ac_c_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try
='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_lo
=$ac_mid; break
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.
$ac_ext >&5
4235 ac_hi
=`expr '(' $ac_mid ')' - 1`
4236 if test $ac_mid -le $ac_hi; then
4240 ac_mid
=`expr 2 '*' $ac_mid`
4242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.
$ac_ext >&5
4250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4253 # Binary search between lo and hi bounds.
4254 while test "x$ac_lo" != "x$ac_hi"; do
4255 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4256 cat >conftest.
$ac_ext <<_ACEOF
4259 cat confdefs.h
>>conftest.
$ac_ext
4260 cat >>conftest.
$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 $ac_includes_default
4266 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4273 rm -f conftest.
$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>conftest.er1
4277 grep -v '^ *+' conftest.er1
>conftest.err
4279 cat conftest.err
>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try
='test -z "$ac_c_werror_flag"
4283 || test ! -s conftest.err'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try
='test -s conftest.$ac_objext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.
$ac_ext >&5
4300 ac_lo
=`expr '(' $ac_mid ')' + 1`
4302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4305 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4307 See \`config.log' for more details." >&5
4308 echo "$as_me: error: cannot compute sizeof (short), 77
4309 See \`config.log' for more details." >&2;}
4310 { (exit 1); exit 1; }; } ;;
4313 if test "$cross_compiling" = yes; then
4314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4315 See \`config.log' for more details." >&5
4316 echo "$as_me: error: cannot run test program while cross compiling
4317 See \`config.log' for more details." >&2;}
4318 { (exit 1); exit 1; }; }
4320 cat >conftest.
$ac_ext <<_ACEOF
4323 cat confdefs.h
>>conftest.
$ac_ext
4324 cat >>conftest.
$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4327 long longval () { return (long) (sizeof (short)); }
4328 unsigned long ulongval () { return (long) (sizeof (short)); }
4335 FILE *f = fopen ("conftest.val", "w");
4338 if (((long) (sizeof (short))) < 0)
4340 long i = longval ();
4341 if (i != ((long) (sizeof (short))))
4343 fprintf (f, "%ld\n", i);
4347 unsigned long i = ulongval ();
4348 if (i != ((long) (sizeof (short))))
4350 fprintf (f, "%lu\n", i);
4352 exit (ferror (f) || fclose (f) != 0);
4358 rm -f conftest
$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 ac_cv_sizeof_short
=`cat conftest.val`
4371 echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.
$ac_ext >&5
4376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4377 See \`config.log' for more details." >&5
4378 echo "$as_me: error: cannot compute sizeof (short), 77
4379 See \`config.log' for more details." >&2;}
4380 { (exit 1); exit 1; }; }
4382 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4387 ac_cv_sizeof_short
=0
4390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4391 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4392 cat >>confdefs.h
<<_ACEOF
4393 #define SIZEOF_SHORT $ac_cv_sizeof_short
4397 echo "$as_me:$LINENO: checking for int" >&5
4398 echo $ECHO_N "checking for int... $ECHO_C" >&6
4399 if test "${ac_cv_type_int+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 cat >conftest.
$ac_ext <<_ACEOF
4405 cat confdefs.h
>>conftest.
$ac_ext
4406 cat >>conftest.
$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4420 rm -f conftest.
$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4424 grep -v '^ *+' conftest.er1
>conftest.err
4426 cat conftest.err
>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try
='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try
='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.
$ac_ext >&5
4449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4452 echo "${ECHO_T}$ac_cv_type_int" >&6
4454 echo "$as_me:$LINENO: checking size of int" >&5
4455 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4456 if test "${ac_cv_sizeof_int+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test "$ac_cv_type_int" = yes; then
4460 # The cast to unsigned long works around a bug in the HP C Compiler
4461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4463 # This bug is HP SR number 8606223364.
4464 if test "$cross_compiling" = yes; then
4465 # Depending upon the size, compute the lo and hi bounds.
4466 cat >conftest.
$ac_ext <<_ACEOF
4469 cat confdefs.h
>>conftest.
$ac_ext
4470 cat >>conftest.
$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 $ac_includes_default
4476 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4483 rm -f conftest.
$ac_objext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485 (eval $ac_compile) 2>conftest.er1
4487 grep -v '^ *+' conftest.er1
>conftest.err
4489 cat conftest.err
>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try
='test -z "$ac_c_werror_flag"
4493 || test ! -s conftest.err'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; } &&
4499 { ac_try
='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4507 cat >conftest.
$ac_ext <<_ACEOF
4510 cat confdefs.h
>>conftest.
$ac_ext
4511 cat >>conftest.
$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 $ac_includes_default
4517 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4524 rm -f conftest.
$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>conftest.er1
4528 grep -v '^ *+' conftest.er1
>conftest.err
4530 cat conftest.err
>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try
='test -z "$ac_c_werror_flag"
4534 || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try
='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_hi
=$ac_mid; break
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.
$ac_ext >&5
4551 ac_lo
=`expr $ac_mid + 1`
4552 if test $ac_lo -le $ac_mid; then
4556 ac_mid
=`expr 2 '*' $ac_mid + 1`
4558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.
$ac_ext >&5
4564 cat >conftest.
$ac_ext <<_ACEOF
4567 cat confdefs.h
>>conftest.
$ac_ext
4568 cat >>conftest.
$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 $ac_includes_default
4574 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4581 rm -f conftest.
$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4585 grep -v '^ *+' conftest.er1
>conftest.err
4587 cat conftest.err
>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try
='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try
='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4605 cat >conftest.
$ac_ext <<_ACEOF
4608 cat confdefs.h
>>conftest.
$ac_ext
4609 cat >>conftest.
$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 $ac_includes_default
4615 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4622 rm -f conftest.
$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4626 grep -v '^ *+' conftest.er1
>conftest.err
4628 cat conftest.err
>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try
='test -z "$ac_c_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try
='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_lo
=$ac_mid; break
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.
$ac_ext >&5
4649 ac_hi
=`expr '(' $ac_mid ')' - 1`
4650 if test $ac_mid -le $ac_hi; then
4654 ac_mid
=`expr 2 '*' $ac_mid`
4656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.
$ac_ext >&5
4664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4667 # Binary search between lo and hi bounds.
4668 while test "x$ac_lo" != "x$ac_hi"; do
4669 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4670 cat >conftest.
$ac_ext <<_ACEOF
4673 cat confdefs.h
>>conftest.
$ac_ext
4674 cat >>conftest.
$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 $ac_includes_default
4680 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4687 rm -f conftest.
$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689 (eval $ac_compile) 2>conftest.er1
4691 grep -v '^ *+' conftest.er1
>conftest.err
4693 cat conftest.err
>&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try
='test -z "$ac_c_werror_flag"
4697 || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try
='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.
$ac_ext >&5
4714 ac_lo
=`expr '(' $ac_mid ')' + 1`
4716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4719 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: cannot compute sizeof (int), 77
4723 See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; } ;;
4727 if test "$cross_compiling" = yes; then
4728 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4729 See \`config.log' for more details." >&5
4730 echo "$as_me: error: cannot run test program while cross compiling
4731 See \`config.log' for more details." >&2;}
4732 { (exit 1); exit 1; }; }
4734 cat >conftest.
$ac_ext <<_ACEOF
4737 cat confdefs.h
>>conftest.
$ac_ext
4738 cat >>conftest.
$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 $ac_includes_default
4741 long longval () { return (long) (sizeof (int)); }
4742 unsigned long ulongval () { return (long) (sizeof (int)); }
4749 FILE *f = fopen ("conftest.val", "w");
4752 if (((long) (sizeof (int))) < 0)
4754 long i = longval ();
4755 if (i != ((long) (sizeof (int))))
4757 fprintf (f, "%ld\n", i);
4761 unsigned long i = ulongval ();
4762 if (i != ((long) (sizeof (int))))
4764 fprintf (f, "%lu\n", i);
4766 exit (ferror (f) || fclose (f) != 0);
4772 rm -f conftest
$ac_exeext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774 (eval $ac_link) 2>&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 ac_cv_sizeof_int
=`cat conftest.val`
4785 echo "$as_me: program exited with status $ac_status" >&5
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.
$ac_ext >&5
4790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4791 See \`config.log' for more details." >&5
4792 echo "$as_me: error: cannot compute sizeof (int), 77
4793 See \`config.log' for more details." >&2;}
4794 { (exit 1); exit 1; }; }
4796 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4805 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4806 cat >>confdefs.h
<<_ACEOF
4807 #define SIZEOF_INT $ac_cv_sizeof_int
4811 echo "$as_me:$LINENO: checking for long" >&5
4812 echo $ECHO_N "checking for long... $ECHO_C" >&6
4813 if test "${ac_cv_type_long+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 cat >conftest.
$ac_ext <<_ACEOF
4819 cat confdefs.h
>>conftest.
$ac_ext
4820 cat >>conftest.
$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 $ac_includes_default
4834 rm -f conftest.
$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4838 grep -v '^ *+' conftest.er1
>conftest.err
4840 cat conftest.err
>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try
='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try
='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.
$ac_ext >&5
4863 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4865 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4866 echo "${ECHO_T}$ac_cv_type_long" >&6
4868 echo "$as_me:$LINENO: checking size of long" >&5
4869 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4870 if test "${ac_cv_sizeof_long+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 if test "$ac_cv_type_long" = yes; then
4874 # The cast to unsigned long works around a bug in the HP C Compiler
4875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4877 # This bug is HP SR number 8606223364.
4878 if test "$cross_compiling" = yes; then
4879 # Depending upon the size, compute the lo and hi bounds.
4880 cat >conftest.
$ac_ext <<_ACEOF
4883 cat confdefs.h
>>conftest.
$ac_ext
4884 cat >>conftest.
$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 $ac_includes_default
4890 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4897 rm -f conftest.
$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4901 grep -v '^ *+' conftest.er1
>conftest.err
4903 cat conftest.err
>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try
='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try
='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4921 cat >conftest.
$ac_ext <<_ACEOF
4924 cat confdefs.h
>>conftest.
$ac_ext
4925 cat >>conftest.
$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 $ac_includes_default
4931 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4938 rm -f conftest.
$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>conftest.er1
4942 grep -v '^ *+' conftest.er1
>conftest.err
4944 cat conftest.err
>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try
='test -z "$ac_c_werror_flag"
4948 || test ! -s conftest.err'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; } &&
4954 { ac_try
='test -s conftest.$ac_objext'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 ac_hi
=$ac_mid; break
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.
$ac_ext >&5
4965 ac_lo
=`expr $ac_mid + 1`
4966 if test $ac_lo -le $ac_mid; then
4970 ac_mid
=`expr 2 '*' $ac_mid + 1`
4972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.
$ac_ext >&5
4978 cat >conftest.
$ac_ext <<_ACEOF
4981 cat confdefs.h
>>conftest.
$ac_ext
4982 cat >>conftest.
$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 $ac_includes_default
4988 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4995 rm -f conftest.
$ac_objext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997 (eval $ac_compile) 2>conftest.er1
4999 grep -v '^ *+' conftest.er1
>conftest.err
5001 cat conftest.err
>&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try
='test -z "$ac_c_werror_flag"
5005 || test ! -s conftest.err'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; } &&
5011 { ac_try
='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5019 cat >conftest.
$ac_ext <<_ACEOF
5022 cat confdefs.h
>>conftest.
$ac_ext
5023 cat >>conftest.
$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5029 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5036 rm -f conftest.
$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>conftest.er1
5040 grep -v '^ *+' conftest.er1
>conftest.err
5042 cat conftest.err
>&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try
='test -z "$ac_c_werror_flag"
5046 || test ! -s conftest.err'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try
='test -s conftest.$ac_objext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_lo
=$ac_mid; break
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.
$ac_ext >&5
5063 ac_hi
=`expr '(' $ac_mid ')' - 1`
5064 if test $ac_mid -le $ac_hi; then
5068 ac_mid
=`expr 2 '*' $ac_mid`
5070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.
$ac_ext >&5
5078 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5080 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5081 # Binary search between lo and hi bounds.
5082 while test "x$ac_lo" != "x$ac_hi"; do
5083 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5084 cat >conftest.
$ac_ext <<_ACEOF
5087 cat confdefs.h
>>conftest.
$ac_ext
5088 cat >>conftest.
$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5094 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5101 rm -f conftest.
$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>conftest.er1
5105 grep -v '^ *+' conftest.er1
>conftest.err
5107 cat conftest.err
>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try
='test -z "$ac_c_werror_flag"
5111 || test ! -s conftest.err'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try
='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.
$ac_ext >&5
5128 ac_lo
=`expr '(' $ac_mid ')' + 1`
5130 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5133 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: cannot compute sizeof (long), 77
5137 See \`config.log' for more details." >&2;}
5138 { (exit 1); exit 1; }; } ;;
5141 if test "$cross_compiling" = yes; then
5142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot run test program while cross compiling
5145 See \`config.log' for more details." >&2;}
5146 { (exit 1); exit 1; }; }
5148 cat >conftest.
$ac_ext <<_ACEOF
5151 cat confdefs.h
>>conftest.
$ac_ext
5152 cat >>conftest.
$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5155 long longval () { return (long) (sizeof (long)); }
5156 unsigned long ulongval () { return (long) (sizeof (long)); }
5163 FILE *f = fopen ("conftest.val", "w");
5166 if (((long) (sizeof (long))) < 0)
5168 long i = longval ();
5169 if (i != ((long) (sizeof (long))))
5171 fprintf (f, "%ld\n", i);
5175 unsigned long i = ulongval ();
5176 if (i != ((long) (sizeof (long))))
5178 fprintf (f, "%lu\n", i);
5180 exit (ferror (f) || fclose (f) != 0);
5186 rm -f conftest
$ac_exeext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188 (eval $ac_link) 2>&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 ac_cv_sizeof_long
=`cat conftest.val`
5199 echo "$as_me: program exited with status $ac_status" >&5
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.
$ac_ext >&5
5204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5205 See \`config.log' for more details." >&5
5206 echo "$as_me: error: cannot compute sizeof (long), 77
5207 See \`config.log' for more details." >&2;}
5208 { (exit 1); exit 1; }; }
5210 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5219 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5220 cat >>confdefs.h
<<_ACEOF
5221 #define SIZEOF_LONG $ac_cv_sizeof_long
5225 if test $ac_cv_c_long_long = yes; then
5226 echo "$as_me:$LINENO: checking for long long" >&5
5227 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5228 if test "${ac_cv_type_long_long+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 cat >conftest.
$ac_ext <<_ACEOF
5234 cat confdefs.h
>>conftest.
$ac_ext
5235 cat >>conftest.
$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5241 if ((long long *) 0)
5243 if (sizeof (long long))
5249 rm -f conftest.
$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1
>conftest.err
5255 cat conftest.err
>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try
='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try
='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_type_long_long
=yes
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.
$ac_ext >&5
5276 ac_cv_type_long_long
=no
5278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5280 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5281 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5283 echo "$as_me:$LINENO: checking size of long long" >&5
5284 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5285 if test "${ac_cv_sizeof_long_long+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 if test "$ac_cv_type_long_long" = yes; then
5289 # The cast to unsigned long works around a bug in the HP C Compiler
5290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5292 # This bug is HP SR number 8606223364.
5293 if test "$cross_compiling" = yes; then
5294 # Depending upon the size, compute the lo and hi bounds.
5295 cat >conftest.
$ac_ext <<_ACEOF
5298 cat confdefs.h
>>conftest.
$ac_ext
5299 cat >>conftest.
$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 $ac_includes_default
5305 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5312 rm -f conftest.
$ac_objext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314 (eval $ac_compile) 2>conftest.er1
5316 grep -v '^ *+' conftest.er1
>conftest.err
5318 cat conftest.err
>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try
='test -z "$ac_c_werror_flag"
5322 || 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
5336 cat >conftest.
$ac_ext <<_ACEOF
5339 cat confdefs.h
>>conftest.
$ac_ext
5340 cat >>conftest.
$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 $ac_includes_default
5346 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5353 rm -f conftest.
$ac_objext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355 (eval $ac_compile) 2>conftest.er1
5357 grep -v '^ *+' conftest.er1
>conftest.err
5359 cat conftest.err
>&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } &&
5362 { ac_try
='test -z "$ac_c_werror_flag"
5363 || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try
='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 ac_hi
=$ac_mid; break
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.
$ac_ext >&5
5380 ac_lo
=`expr $ac_mid + 1`
5381 if test $ac_lo -le $ac_mid; then
5385 ac_mid
=`expr 2 '*' $ac_mid + 1`
5387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.
$ac_ext >&5
5393 cat >conftest.
$ac_ext <<_ACEOF
5396 cat confdefs.h
>>conftest.
$ac_ext
5397 cat >>conftest.
$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 $ac_includes_default
5403 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5410 rm -f conftest.
$ac_objext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412 (eval $ac_compile) 2>conftest.er1
5414 grep -v '^ *+' conftest.er1
>conftest.err
5416 cat conftest.err
>&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } &&
5419 { ac_try
='test -z "$ac_c_werror_flag"
5420 || test ! -s conftest.err'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; } &&
5426 { ac_try
='test -s conftest.$ac_objext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5434 cat >conftest.
$ac_ext <<_ACEOF
5437 cat confdefs.h
>>conftest.
$ac_ext
5438 cat >>conftest.
$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 $ac_includes_default
5444 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5451 rm -f conftest.
$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>conftest.er1
5455 grep -v '^ *+' conftest.er1
>conftest.err
5457 cat conftest.err
>&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try
='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try
='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_lo
=$ac_mid; break
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.
$ac_ext >&5
5478 ac_hi
=`expr '(' $ac_mid ')' - 1`
5479 if test $ac_mid -le $ac_hi; then
5483 ac_mid
=`expr 2 '*' $ac_mid`
5485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.
$ac_ext >&5
5493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5496 # Binary search between lo and hi bounds.
5497 while test "x$ac_lo" != "x$ac_hi"; do
5498 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5499 cat >conftest.
$ac_ext <<_ACEOF
5502 cat confdefs.h
>>conftest.
$ac_ext
5503 cat >>conftest.
$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5509 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5516 rm -f conftest.
$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>conftest.er1
5520 grep -v '^ *+' conftest.er1
>conftest.err
5522 cat conftest.err
>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try
='test -z "$ac_c_werror_flag"
5526 || test ! -s conftest.err'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try
='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.
$ac_ext >&5
5543 ac_lo
=`expr '(' $ac_mid ')' + 1`
5545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5548 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5549 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: cannot compute sizeof (long long), 77
5552 See \`config.log' for more details." >&2;}
5553 { (exit 1); exit 1; }; } ;;
5556 if test "$cross_compiling" = yes; then
5557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5558 See \`config.log' for more details." >&5
5559 echo "$as_me: error: cannot run test program while cross compiling
5560 See \`config.log' for more details." >&2;}
5561 { (exit 1); exit 1; }; }
5563 cat >conftest.
$ac_ext <<_ACEOF
5566 cat confdefs.h
>>conftest.
$ac_ext
5567 cat >>conftest.
$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 $ac_includes_default
5570 long longval () { return (long) (sizeof (long long)); }
5571 unsigned long ulongval () { return (long) (sizeof (long long)); }
5578 FILE *f = fopen ("conftest.val", "w");
5581 if (((long) (sizeof (long long))) < 0)
5583 long i = longval ();
5584 if (i != ((long) (sizeof (long long))))
5586 fprintf (f, "%ld\n", i);
5590 unsigned long i = ulongval ();
5591 if (i != ((long) (sizeof (long long))))
5593 fprintf (f, "%lu\n", i);
5595 exit (ferror (f) || fclose (f) != 0);
5601 rm -f conftest
$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_sizeof_long_long
=`cat conftest.val`
5614 echo "$as_me: program exited with status $ac_status" >&5
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.
$ac_ext >&5
5619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5620 See \`config.log' for more details." >&5
5621 echo "$as_me: error: cannot compute sizeof (long long), 77
5622 See \`config.log' for more details." >&2;}
5623 { (exit 1); exit 1; }; }
5625 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5630 ac_cv_sizeof_long_long
=0
5633 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5634 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5635 cat >>confdefs.h
<<_ACEOF
5636 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5641 if test $ac_cv_c___int64 = yes; then
5642 echo "$as_me:$LINENO: checking for __int64" >&5
5643 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5644 if test "${ac_cv_type___int64+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 cat >conftest.
$ac_ext <<_ACEOF
5650 cat confdefs.h
>>conftest.
$ac_ext
5651 cat >>conftest.
$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 $ac_includes_default
5659 if (sizeof (__int64))
5665 rm -f conftest.
$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>conftest.er1
5669 grep -v '^ *+' conftest.er1
>conftest.err
5671 cat conftest.err
>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try
='test -z "$ac_c_werror_flag"
5675 || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try
='test -s conftest.$ac_objext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_type___int64
=yes
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.
$ac_ext >&5
5692 ac_cv_type___int64
=no
5694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5696 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5697 echo "${ECHO_T}$ac_cv_type___int64" >&6
5699 echo "$as_me:$LINENO: checking size of __int64" >&5
5700 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5701 if test "${ac_cv_sizeof___int64+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 if test "$ac_cv_type___int64" = yes; then
5705 # The cast to unsigned long works around a bug in the HP C Compiler
5706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5708 # This bug is HP SR number 8606223364.
5709 if test "$cross_compiling" = yes; then
5710 # Depending upon the size, compute the lo and hi bounds.
5711 cat >conftest.
$ac_ext <<_ACEOF
5714 cat confdefs.h
>>conftest.
$ac_ext
5715 cat >>conftest.
$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 $ac_includes_default
5721 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5728 rm -f conftest.
$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5732 grep -v '^ *+' conftest.er1
>conftest.err
5734 cat conftest.err
>&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try
='test -z "$ac_c_werror_flag"
5738 || test ! -s conftest.err'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; } &&
5744 { ac_try
='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5752 cat >conftest.
$ac_ext <<_ACEOF
5755 cat confdefs.h
>>conftest.
$ac_ext
5756 cat >>conftest.
$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 $ac_includes_default
5762 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5769 rm -f conftest.
$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>conftest.er1
5773 grep -v '^ *+' conftest.er1
>conftest.err
5775 cat conftest.err
>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try
='test -z "$ac_c_werror_flag"
5779 || test ! -s conftest.err'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try
='test -s conftest.$ac_objext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_hi
=$ac_mid; break
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.
$ac_ext >&5
5796 ac_lo
=`expr $ac_mid + 1`
5797 if test $ac_lo -le $ac_mid; then
5801 ac_mid
=`expr 2 '*' $ac_mid + 1`
5803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.
$ac_ext >&5
5809 cat >conftest.
$ac_ext <<_ACEOF
5812 cat confdefs.h
>>conftest.
$ac_ext
5813 cat >>conftest.
$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 $ac_includes_default
5819 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5826 rm -f conftest.
$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1
>conftest.err
5832 cat conftest.err
>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try
='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try
='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5850 cat >conftest.
$ac_ext <<_ACEOF
5853 cat confdefs.h
>>conftest.
$ac_ext
5854 cat >>conftest.
$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 $ac_includes_default
5860 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5867 rm -f conftest.
$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>conftest.er1
5871 grep -v '^ *+' conftest.er1
>conftest.err
5873 cat conftest.err
>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try
='test -z "$ac_c_werror_flag"
5877 || test ! -s conftest.err'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try
='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_lo
=$ac_mid; break
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.
$ac_ext >&5
5894 ac_hi
=`expr '(' $ac_mid ')' - 1`
5895 if test $ac_mid -le $ac_hi; then
5899 ac_mid
=`expr 2 '*' $ac_mid`
5901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.
$ac_ext >&5
5909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 # Binary search between lo and hi bounds.
5913 while test "x$ac_lo" != "x$ac_hi"; do
5914 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5915 cat >conftest.
$ac_ext <<_ACEOF
5918 cat confdefs.h
>>conftest.
$ac_ext
5919 cat >>conftest.
$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 $ac_includes_default
5925 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5932 rm -f conftest.
$ac_objext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5936 grep -v '^ *+' conftest.er1
>conftest.err
5938 cat conftest.err
>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try
='test -z "$ac_c_werror_flag"
5942 || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try
='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.
$ac_ext >&5
5959 ac_lo
=`expr '(' $ac_mid ')' + 1`
5961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5964 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5966 See \`config.log' for more details." >&5
5967 echo "$as_me: error: cannot compute sizeof (__int64), 77
5968 See \`config.log' for more details." >&2;}
5969 { (exit 1); exit 1; }; } ;;
5972 if test "$cross_compiling" = yes; then
5973 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5974 See \`config.log' for more details." >&5
5975 echo "$as_me: error: cannot run test program while cross compiling
5976 See \`config.log' for more details." >&2;}
5977 { (exit 1); exit 1; }; }
5979 cat >conftest.
$ac_ext <<_ACEOF
5982 cat confdefs.h
>>conftest.
$ac_ext
5983 cat >>conftest.
$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 $ac_includes_default
5986 long longval () { return (long) (sizeof (__int64)); }
5987 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5994 FILE *f = fopen ("conftest.val", "w");
5997 if (((long) (sizeof (__int64))) < 0)
5999 long i = longval ();
6000 if (i != ((long) (sizeof (__int64))))
6002 fprintf (f, "%ld\n", i);
6006 unsigned long i = ulongval ();
6007 if (i != ((long) (sizeof (__int64))))
6009 fprintf (f, "%lu\n", i);
6011 exit (ferror (f) || fclose (f) != 0);
6017 rm -f conftest
$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_sizeof___int64
=`cat conftest.val`
6030 echo "$as_me: program exited with status $ac_status" >&5
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.
$ac_ext >&5
6035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6036 See \`config.log' for more details." >&5
6037 echo "$as_me: error: cannot compute sizeof (__int64), 77
6038 See \`config.log' for more details." >&2;}
6039 { (exit 1); exit 1; }; }
6041 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6046 ac_cv_sizeof___int64
=0
6049 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6050 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6051 cat >>confdefs.h
<<_ACEOF
6052 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6058 # ---------------------
6059 # Warnings and checking
6060 # ---------------------
6062 # Check $CC warning features (if it's GCC).
6063 # We want to use -pedantic, but we don't want warnings about
6066 # So, we only use -pedantic if we can disable those warnings.
6068 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6069 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6070 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 save_CFLAGS
="$CFLAGS"
6074 CFLAGS
="-Wno-long-long"
6075 cat >conftest.
$ac_ext <<_ACEOF
6078 cat confdefs.h
>>conftest.
$ac_ext
6079 cat >>conftest.
$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6083 rm -f conftest.
$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6087 grep -v '^ *+' conftest.er1
>conftest.err
6089 cat conftest.err
>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try
='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try
='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_prog_cc_w_no_long_long
=yes
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.
$ac_ext >&5
6110 ac_cv_prog_cc_w_no_long_long
=no
6112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6113 CFLAGS
="$save_CFLAGS"
6116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6117 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6119 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6120 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6121 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 save_CFLAGS
="$CFLAGS"
6125 CFLAGS
="-Wno-variadic-macros"
6126 cat >conftest.
$ac_ext <<_ACEOF
6129 cat confdefs.h
>>conftest.
$ac_ext
6130 cat >>conftest.
$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6134 rm -f conftest.
$ac_objext
6135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136 (eval $ac_compile) 2>conftest.er1
6138 grep -v '^ *+' conftest.er1
>conftest.err
6140 cat conftest.err
>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try
='test -z "$ac_c_werror_flag"
6144 || test ! -s conftest.err'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; } &&
6150 { ac_try
='test -s conftest.$ac_objext'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6156 ac_cv_prog_cc_w_no_variadic_macros
=yes
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.
$ac_ext >&5
6161 ac_cv_prog_cc_w_no_variadic_macros
=no
6163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6164 CFLAGS
="$save_CFLAGS"
6167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6168 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6171 if test $ac_cv_prog_cc_w_no_long_long = yes \
6172 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6173 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6177 # Add -Wold-style-definition if it's accepted
6178 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6179 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6180 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 save_CFLAGS
="$CFLAGS"
6184 CFLAGS
="-Wold-style-definition"
6185 cat >conftest.
$ac_ext <<_ACEOF
6188 cat confdefs.h
>>conftest.
$ac_ext
6189 cat >>conftest.
$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6193 rm -f conftest.
$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>conftest.er1
6197 grep -v '^ *+' conftest.er1
>conftest.err
6199 cat conftest.err
>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try
='test -z "$ac_c_werror_flag"
6203 || test ! -s conftest.err'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try
='test -s conftest.$ac_objext'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; }; then
6215 ac_cv_prog_cc_w_old_style_definition
=yes
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.
$ac_ext >&5
6220 ac_cv_prog_cc_w_old_style_definition
=no
6222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6223 CFLAGS
="$save_CFLAGS"
6226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6227 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6228 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6229 strict1_warn
="${strict1_warn} -Wold-style-definition"
6232 # Enable -Werror, period.
6233 # Check whether --enable-werror_always or --disable-werror_always was given.
6234 if test "${enable_werror_always+set}" = set; then
6235 enableval
="$enable_werror_always"
6238 enable_werror_always
=no
6240 if test x
${enable_werror_always} = xyes
; then
6241 strict1_warn
="${strict1_warn} -Werror"
6245 # If the native compiler is GCC, we can enable warnings even in stage1.
6246 # That's useful for people building cross-compilers, or just running a
6249 if test "x$GCC" = "xyes"; then
6250 warn_cflags
='$(GCC_WARN_CFLAGS)'
6254 # Enable -Werror in bootstrap stage2 and later.
6255 # Check whether --enable-werror or --disable-werror was given.
6256 if test "${enable_werror+set}" = set; then
6257 enableval
="$enable_werror"
6260 if test x
$is_release = x
; then
6261 # Default to "yes" on development branches.
6264 # Default to "no" on release branches.
6268 if test x
$enable_werror = xyes
; then
6273 # Enable expensive internal checks
6274 # Check whether --enable-checking or --disable-checking was given.
6275 if test "${enable_checking+set}" = set; then
6276 enableval
="$enable_checking"
6277 ac_checking_flags
="${enableval}"
6280 # Determine the default checks.
6281 if test x
$is_release = x
; then
6282 ac_checking_flags
=yes
6284 ac_checking_flags
=release
6287 ac_assert_checking
=1
6291 ac_rtlflag_checking
=
6293 ac_gc_always_collect
=
6295 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6296 for check
in $ac_checking_flags
6299 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6300 ac_tree_checking
=1 ; ac_gc_checking
=1 ;
6301 ac_rtlflag_checking
=1 ;;
6302 no
) ac_assert_checking
= ; ac_checking
= ;
6303 ac_tree_checking
= ; ac_rtl_checking
= ;
6304 ac_rtlflag_checking
= ; ac_gc_checking
= ;
6305 ac_gc_always_collect
= ; ac_fold_checking
= ;;
6306 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6307 ac_tree_checking
=1 ; ac_rtl_checking
=1 ;
6308 ac_rtlflag_checking
=1 ; ac_gc_checking
=1 ;
6309 ac_gc_always_collect
=1 ; ac_fold_checking
=1 ;;
6310 release
) ac_assert_checking
=1 ;;
6311 assert
) ac_assert_checking
=1 ;;
6312 fold) ac_fold_checking
=1 ;;
6313 gc
) ac_gc_checking
=1 ;;
6314 gcac
) ac_gc_always_collect
=1 ;;
6315 misc
) ac_checking
=1 ;;
6316 rtlflag
) ac_rtlflag_checking
=1 ;;
6317 rtl
) ac_rtl_checking
=1 ;;
6318 tree
) ac_tree_checking
=1 ;;
6319 valgrind
) ac_checking_valgrind
=1 ;;
6320 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6321 echo "$as_me: error: unknown check category $check" >&2;}
6322 { (exit 1); exit 1; }; } ;;
6328 if test x
$ac_checking != x
; then
6330 cat >>confdefs.h
<<\_ACEOF
6331 #define ENABLE_CHECKING 1
6334 nocommon_flag
=-fno-common
6337 if test x
$ac_assert_checking != x
; then
6339 cat >>confdefs.h
<<\_ACEOF
6340 #define ENABLE_ASSERT_CHECKING 1
6344 if test x
$ac_tree_checking != x
; then
6346 cat >>confdefs.h
<<\_ACEOF
6347 #define ENABLE_TREE_CHECKING 1
6350 TREEBROWSER
=tree-browser.o
6353 if test x
$ac_rtl_checking != x
; then
6355 cat >>confdefs.h
<<\_ACEOF
6356 #define ENABLE_RTL_CHECKING 1
6360 if test x
$ac_rtlflag_checking != x
; then
6362 cat >>confdefs.h
<<\_ACEOF
6363 #define ENABLE_RTL_FLAG_CHECKING 1
6367 if test x
$ac_gc_checking != x
; then
6369 cat >>confdefs.h
<<\_ACEOF
6370 #define ENABLE_GC_CHECKING 1
6374 if test x
$ac_gc_always_collect != x
; then
6376 cat >>confdefs.h
<<\_ACEOF
6377 #define ENABLE_GC_ALWAYS_COLLECT 1
6381 if test x
$ac_fold_checking != x
; then
6383 cat >>confdefs.h
<<\_ACEOF
6384 #define ENABLE_FOLD_CHECKING 1
6388 valgrind_path_defines
=
6391 if test "${ac_cv_header_valgrind_h+set}" = set; then
6392 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6393 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6394 if test "${ac_cv_header_valgrind_h+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6398 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6400 # Is the header compilable?
6401 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6402 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6403 cat >conftest.
$ac_ext <<_ACEOF
6406 cat confdefs.h
>>conftest.
$ac_ext
6407 cat >>conftest.
$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 $ac_includes_default
6410 #include <valgrind.h>
6412 rm -f conftest.
$ac_objext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414 (eval $ac_compile) 2>conftest.er1
6416 grep -v '^ *+' conftest.er1
>conftest.err
6418 cat conftest.err
>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try
='test -z "$ac_c_werror_flag"
6422 || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try
='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_header_compiler
=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.
$ac_ext >&5
6439 ac_header_compiler
=no
6441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6443 echo "${ECHO_T}$ac_header_compiler" >&6
6445 # Is the header present?
6446 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6447 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6448 cat >conftest.
$ac_ext <<_ACEOF
6451 cat confdefs.h
>>conftest.
$ac_ext
6452 cat >>conftest.
$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 #include <valgrind.h>
6456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6457 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6459 grep -v '^ *+' conftest.er1
>conftest.err
6461 cat conftest.err
>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } >/dev
/null
; then
6464 if test -s conftest.err
; then
6465 ac_cpp_err
=$ac_c_preproc_warn_flag
6466 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6473 if test -z "$ac_cpp_err"; then
6474 ac_header_preproc
=yes
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.
$ac_ext >&5
6479 ac_header_preproc
=no
6481 rm -f conftest.err conftest.
$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6483 echo "${ECHO_T}$ac_header_preproc" >&6
6485 # So? What about this header?
6486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6488 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6489 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6491 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6492 ac_header_preproc
=yes
6495 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6496 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6498 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6500 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6502 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6504 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6506 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6509 ## ------------------------------------------ ##
6510 ## Report this to the AC_PACKAGE_NAME lists. ##
6511 ## ------------------------------------------ ##
6514 sed "s/^/$as_me: WARNING: /" >&2
6517 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6518 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6519 if test "${ac_cv_header_valgrind_h+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 ac_cv_header_valgrind_h
=$ac_header_preproc
6524 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6525 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6528 if test $ac_cv_header_valgrind_h = yes; then
6536 if test x
$ac_checking_valgrind != x
; then
6537 # It is certainly possible that there's valgrind but no valgrind.h.
6538 # GCC relies on making annotations so we must have both.
6539 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6540 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6541 cat >conftest.
$ac_ext <<_ACEOF
6544 cat confdefs.h
>>conftest.
$ac_ext
6545 cat >>conftest.
$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 #include <valgrind/memcheck.h>
6548 #ifndef VALGRIND_DISCARD
6549 #error VALGRIND_DISCARD not defined
6552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6553 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6555 grep -v '^ *+' conftest.er1
>conftest.err
6557 cat conftest.err
>&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } >/dev
/null
; then
6560 if test -s conftest.err
; then
6561 ac_cpp_err
=$ac_c_preproc_warn_flag
6562 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6569 if test -z "$ac_cpp_err"; then
6570 gcc_cv_header_valgrind_memcheck_h
=yes
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6575 gcc_cv_header_valgrind_memcheck_h
=no
6577 rm -f conftest.err conftest.
$ac_ext
6578 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6579 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6580 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6581 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6582 cat >conftest.
$ac_ext <<_ACEOF
6585 cat confdefs.h
>>conftest.
$ac_ext
6586 cat >>conftest.
$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #include <memcheck.h>
6589 #ifndef VALGRIND_DISCARD
6590 #error VALGRIND_DISCARD not defined
6593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6594 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6596 grep -v '^ *+' conftest.er1
>conftest.err
6598 cat conftest.err
>&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } >/dev
/null
; then
6601 if test -s conftest.err
; then
6602 ac_cpp_err
=$ac_c_preproc_warn_flag
6603 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6610 if test -z "$ac_cpp_err"; then
6611 gcc_cv_header_memcheck_h
=yes
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.
$ac_ext >&5
6616 gcc_cv_header_memcheck_h
=no
6618 rm -f conftest.err conftest.
$ac_ext
6619 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6620 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6622 # Prepare PATH_SEPARATOR.
6623 # The user is always right.
6624 if test "${PATH_SEPARATOR+set}" != set; then
6625 echo "#! /bin/sh" >conf$$.sh
6626 echo "exit 0" >>conf$$.sh
6628 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6636 # Find out how to test for executable files. Don't use a zero-byte file,
6637 # as systems may use methods other than mode bits to determine executability.
6638 cat >conf$$.
file <<_ASEOF
6642 chmod +x conf$$.
file
6643 if test -x conf$$.
file >/dev
/null
2>&1; then
6644 ac_executable_p
="test -x"
6646 ac_executable_p
="test -f"
6650 # Extract the first word of "valgrind", so it can be a program name with args.
6651 set dummy valgrind
; ac_word
=$2
6652 echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6654 if test "${ac_cv_path_valgrind_path+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 case "$valgrind_path" in
6659 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6662 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6663 for ac_dir
in $PATH; do
6665 test -z "$ac_dir" && ac_dir
=.
6666 for ac_exec_ext
in '' $ac_executable_extensions; do
6667 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6668 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6669 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6679 valgrind_path
="$ac_cv_path_valgrind_path"
6680 if test -n "$valgrind_path"; then
6681 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6682 echo "${ECHO_T}$valgrind_path" >&6
6684 echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6
6688 if test "x$valgrind_path" = "x" \
6689 ||
(test $have_valgrind_h = no \
6690 && test $gcc_cv_header_memcheck_h = no \
6691 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6692 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6693 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6694 { (exit 1); exit 1; }; }
6696 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6697 valgrind_command
="$valgrind_path -q"
6699 cat >>confdefs.h
<<\_ACEOF
6700 #define ENABLE_VALGRIND_CHECKING 1
6703 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6705 cat >>confdefs.h
<<\_ACEOF
6706 #define HAVE_VALGRIND_MEMCHECK_H 1
6710 if test $gcc_cv_header_memcheck_h = yes; then
6712 cat >>confdefs.h
<<\_ACEOF
6713 #define HAVE_MEMCHECK_H 1
6721 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6722 if test "${enable_mapped_location+set}" = set; then
6723 enableval
="$enable_mapped_location"
6726 enable_mapped_location
=no
6729 if test "$enable_mapped_location" = yes ; then
6731 cat >>confdefs.h
<<\_ACEOF
6732 #define USE_MAPPED_LOCATION 1
6737 # Enable code coverage collection
6738 # Check whether --enable-coverage or --disable-coverage was given.
6739 if test "${enable_coverage+set}" = set; then
6740 enableval
="$enable_coverage"
6741 case "${enableval}" in
6743 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6746 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6749 # a.k.a. --disable-coverage
6753 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6754 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6755 { (exit 1); exit 1; }; }
6763 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6764 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6765 enableval
="$enable_gather_detailed_mem_stats"
6768 enable_gather_detailed_mem_stats
=no
6770 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6772 cat >>confdefs.h
<<\_ACEOF
6773 #define GATHER_STATISTICS 1
6778 # -------------------------------
6779 # Miscenalleous configure options
6780 # -------------------------------
6784 # Check whether --with-stabs or --without-stabs was given.
6785 if test "${with_stabs+set}" = set; then
6786 withval
="$with_stabs"
6792 # Determine whether or not multilibs are enabled.
6793 # Check whether --enable-multilib or --disable-multilib was given.
6794 if test "${enable_multilib+set}" = set; then
6795 enableval
="$enable_multilib"
6802 # Enable __cxa_atexit for C++.
6803 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6804 if test "${enable___cxa_atexit+set}" = set; then
6805 enableval
="$enable___cxa_atexit"
6810 # Pass with no value to take the default
6811 # Pass with a value to specify a thread package
6812 # Check whether --enable-threads or --disable-threads was given.
6813 if test "${enable_threads+set}" = set; then
6814 enableval
="$enable_threads"
6820 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6821 if test "${enable_objc_gc+set}" = set; then
6822 enableval
="$enable_objc_gc"
6823 if test x
$enable_objc_gc = xno
; then
6833 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6834 if test "${with_dwarf2+set}" = set; then
6835 withval
="$with_dwarf2"
6836 dwarf2
="$with_dwarf2"
6841 # Check whether --enable-shared or --disable-shared was given.
6842 if test "${enable_shared+set}" = set; then
6843 enableval
="$enable_shared"
6845 case $enable_shared in
6849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6850 for pkg
in $enableval; do
6851 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6865 # Check whether --with-sysroot or --without-sysroot was given.
6866 if test "${with_sysroot+set}" = set; then
6867 withval
="$with_sysroot"
6869 case ${with_sysroot} in
6870 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6871 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6874 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6875 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6877 if test "x$exec_prefix" = xNONE
; then
6878 if test "x$prefix" = xNONE
; then
6879 test_prefix
=/usr
/local
6884 test_prefix
=$exec_prefix
6886 case ${TARGET_SYSTEM_ROOT} in
6887 "${test_prefix}"|
"${test_prefix}/"*|\
6888 '${exec_prefix}'|
'${exec_prefix}/'*)
6889 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6890 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6897 TARGET_SYSTEM_ROOT_DEFINE
=
6898 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6905 # Build with intermodule optimisations
6906 # Check whether --enable-intermodule or --disable-intermodule was given.
6907 if test "${enable_intermodule+set}" = set; then
6908 enableval
="$enable_intermodule"
6909 case ${enable_intermodule} in
6910 yes) onestep
="-onestep";;
6918 # Sanity check enable_languages in case someone does not run the toplevel
6919 # configure # script.
6920 # Check whether --enable-languages or --disable-languages was given.
6921 if test "${enable_languages+set}" = set; then
6922 enableval
="$enable_languages"
6923 case ,${enable_languages}, in
6925 # go safe -- we cannot be much sure without the toplevel
6927 # analysis of which target libs are present and usable
6931 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6932 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6933 { (exit 1); exit 1; }; }
6938 enable_languages
=c
,${enable_languages}
6946 for lang
in ${srcdir}/*/config-lang.
in
6949 # The odd quoting in the next line works around
6950 # an apparent bug in bash 1.12 on linux.
6951 ${srcdir}/[*]/config-lang.
in) ;;
6953 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6954 if test "x$lang_alias" = x
6956 echo "$lang doesn't set \$language." 1>&2
6959 case ",$enable_languages," in
6961 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6968 # -------------------------
6969 # Checks for other programs
6970 # -------------------------
6972 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6973 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6974 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6975 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 cat >conftest.
make <<\_ACEOF
6980 @
echo 'ac_maketemp="$(MAKE)"'
6982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6983 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6984 if test -n "$ac_maketemp"; then
6985 eval ac_cv_prog_make_
${ac_make}_set
=yes
6987 eval ac_cv_prog_make_
${ac_make}_set
=no
6991 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6
6996 echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
6998 SET_MAKE
="MAKE=${MAKE-make}"
7002 # Find some useful tools
7003 for ac_prog
in gawk mawk nawk
awk
7005 # Extract the first word of "$ac_prog", so it can be a program name with args.
7006 set dummy
$ac_prog; ac_word
=$2
7007 echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7009 if test "${ac_cv_prog_AWK+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 if test -n "$AWK"; then
7013 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir
=.
7020 for ac_exec_ext
in '' $ac_executable_extensions; do
7021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_AWK
="$ac_prog"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 if test -n "$AWK"; then
7033 echo "$as_me:$LINENO: result: $AWK" >&5
7034 echo "${ECHO_T}$AWK" >&6
7036 echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6
7040 test -n "$AWK" && break
7043 # We need awk to create options.c and options.h.
7044 # Bail out if it's missing.
7046 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7047 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7048 { (exit 1); exit 1; }; } ;;
7051 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7052 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7053 if test "${gcc_cv_prog_LN_S+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 rm -f conftestdata_t
7057 echo >conftestdata_f
7058 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7060 gcc_cv_prog_LN_S
="ln -s"
7062 if ln conftestdata_f conftestdata_t
2>/dev
/null
7066 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7068 gcc_cv_prog_LN_S
="cp -p"
7074 rm -f conftestdata_f conftestdata_t
7077 LN_S
="$gcc_cv_prog_LN_S"
7078 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7079 echo "$as_me:$LINENO: result: yes" >&5
7080 echo "${ECHO_T}yes" >&6
7082 if test "$gcc_cv_prog_LN_S" = "ln"; then
7083 echo "$as_me:$LINENO: result: no, using ln" >&5
7084 echo "${ECHO_T}no, using ln" >&6
7086 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7087 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7091 echo "$as_me:$LINENO: checking whether ln works" >&5
7092 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7093 if test "${acx_cv_prog_LN+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 rm -f conftestdata_t
7097 echo >conftestdata_f
7098 if ln conftestdata_f conftestdata_t
2>/dev
/null
7104 rm -f conftestdata_f conftestdata_t
7107 if test $acx_cv_prog_LN = no
; then
7109 echo "$as_me:$LINENO: result: no, using $LN" >&5
7110 echo "${ECHO_T}no, using $LN" >&6
7112 LN
="$acx_cv_prog_LN"
7113 echo "$as_me:$LINENO: result: yes" >&5
7114 echo "${ECHO_T}yes" >&6
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7119 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_RANLIB+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 if test -n "$RANLIB"; then
7126 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir
=.
7133 for ac_exec_ext
in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 RANLIB
=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146 echo "$as_me:$LINENO: result: $RANLIB" >&5
7147 echo "${ECHO_T}$RANLIB" >&6
7149 echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7154 if test -z "$ac_cv_prog_RANLIB"; then
7155 ac_ct_RANLIB
=$RANLIB
7156 # Extract the first word of "ranlib", so it can be a program name with args.
7157 set dummy ranlib
; ac_word
=$2
7158 echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 if test -n "$ac_ct_RANLIB"; then
7164 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir
=.
7171 for ac_exec_ext
in '' $ac_executable_extensions; do
7172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7183 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7184 if test -n "$ac_ct_RANLIB"; then
7185 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7186 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7188 echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7192 RANLIB
=$ac_ct_RANLIB
7194 RANLIB
="$ac_cv_prog_RANLIB"
7199 # By default, the Darwin ranlib will not treat common symbols as
7200 # definitions when building the archive table of contents. Other
7201 # ranlibs do that; pass an option to the Darwin ranlib that makes
7202 # it behave similarly.
7210 # Find a good install program. We prefer a C program (faster),
7211 # so one script is as good as another. But avoid the broken or
7212 # incompatible versions:
7213 # SysV /etc/install, /usr/sbin/install
7214 # SunOS /usr/etc/install
7215 # IRIX /sbin/install
7217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7219 # ./install, which can be erroneously created by make from ./install.sh.
7220 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7221 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7222 if test -z "$INSTALL"; then
7223 if test "${ac_cv_path_install+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7227 for ac_dir
in $PATH; do
7228 # Account for people who put trailing slashes in PATH elements.
7230 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7232 # OSF1 and SCO ODT 3.0 have their own names for install.
7233 for ac_prog
in ginstall scoinst
install; do
7234 if test -f $ac_dir/$ac_prog; then
7235 if test $ac_prog = install &&
7236 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7237 # AIX install. It has an incompatible calling convention.
7238 # OSF/1 installbsd also uses dspmsg, but is usable.
7241 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7252 if test "${ac_cv_path_install+set}" = set; then
7253 INSTALL
="$ac_cv_path_install"
7255 # As a last resort, use the slow shell script. We don't cache a
7256 # path for INSTALL within a source directory, because that will
7257 # break other packages using the cache if that directory is
7258 # removed, or if the path is relative.
7259 INSTALL
="$ac_install_sh"
7262 echo "$as_me:$LINENO: result: $INSTALL" >&5
7263 echo "${ECHO_T}$INSTALL" >&6
7265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7266 # It thinks the first close brace ends the variable substitution.
7267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7269 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7272 # See if cmp has --ignore-initial.
7273 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7274 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7275 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 gcc_cv_prog_cmp_skip
=slowcompare
7281 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7282 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7285 gcc_cv_prog_cmp_skip
=gnucompare
7288 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7289 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7290 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7293 gcc_cv_prog_cmp_skip
=fastcompare
7300 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7301 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7302 make_compare_target
=$gcc_cv_prog_cmp_skip
7306 # See if we have the mktemp command.
7307 # Extract the first word of "mktemp", so it can be a program name with args.
7308 set dummy mktemp
; ac_word
=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 if test -n "$have_mktemp_command"; then
7315 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir
=.
7322 for ac_exec_ext
in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_have_mktemp_command
="yes"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7334 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7335 if test -n "$have_mktemp_command"; then
7336 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7337 echo "${ECHO_T}$have_mktemp_command" >&6
7339 echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7344 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7346 # See if makeinfo has been installed and is modern enough
7347 # that we can use it.
7348 # Extract the first word of "makeinfo", so it can be a program name with args.
7349 set dummy makeinfo
; ac_word
=$2
7350 echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 if test -n "$MAKEINFO"; then
7356 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir
=.
7363 for ac_exec_ext
in '' $ac_executable_extensions; do
7364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_MAKEINFO
="makeinfo"
7366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 MAKEINFO
=$ac_cv_prog_MAKEINFO
7375 if test -n "$MAKEINFO"; then
7376 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7377 echo "${ECHO_T}$MAKEINFO" >&6
7379 echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7383 if test -n "$MAKEINFO"; then
7384 # Found it, now check the version.
7385 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7386 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7387 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7391 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7392 echo "configure:7392: version of makeinfo is $ac_prog_version" >&5
7393 case $ac_prog_version in
7394 '') gcc_cv_prog_makeinfo_modern
=no
;;
7396 gcc_cv_prog_makeinfo_modern
=yes;;
7397 *) gcc_cv_prog_makeinfo_modern
=no
;;
7401 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7402 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7404 gcc_cv_prog_makeinfo_modern
=no
7407 if test $gcc_cv_prog_makeinfo_modern = no
; then
7408 MAKEINFO
="$MISSING makeinfo"
7409 { echo "$as_me:$LINENO: WARNING:
7410 *** Makeinfo is missing or too old.
7411 *** Info documentation will not be built." >&5
7412 echo "$as_me: WARNING:
7413 *** Makeinfo is missing or too old.
7414 *** Info documentation will not be built." >&2;}
7421 # Is pod2man recent enough to regenerate manpages?
7422 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7423 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7424 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7425 echo "$as_me:$LINENO: result: yes" >&5
7426 echo "${ECHO_T}yes" >&6
7427 GENERATED_MANPAGES
=generated-manpages
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7438 # Extract the first word of "$ac_prog", so it can be a program name with args.
7439 set dummy
$ac_prog; ac_word
=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_prog_FLEX+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 if test -n "$FLEX"; then
7446 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir
=.
7453 for ac_exec_ext
in '' $ac_executable_extensions; do
7454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_FLEX
="$ac_prog"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 FLEX
=$ac_cv_prog_FLEX
7465 if test -n "$FLEX"; then
7466 echo "$as_me:$LINENO: result: $FLEX" >&5
7467 echo "${ECHO_T}$FLEX" >&6
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7473 test -n "$FLEX" && break
7475 test -n "$FLEX" || FLEX
="$MISSING flex"
7479 for ac_prog
in bison
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy
$ac_prog; ac_word
=$2
7483 echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7485 if test "${ac_cv_prog_BISON+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 if test -n "$BISON"; then
7489 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir
=.
7496 for ac_exec_ext
in '' $ac_executable_extensions; do
7497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_BISON
="$ac_prog"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 BISON
=$ac_cv_prog_BISON
7508 if test -n "$BISON"; then
7509 echo "$as_me:$LINENO: result: $BISON" >&5
7510 echo "${ECHO_T}$BISON" >&6
7512 echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7516 test -n "$BISON" && break
7518 test -n "$BISON" || BISON
="$MISSING bison"
7521 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7522 # check for build == host before using them.
7525 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7526 && test -d ..
/binutils
; then
7527 NM
='$(objdir)/../binutils/nm-new'
7529 # Extract the first word of "nm", so it can be a program name with args.
7530 set dummy nm
; ac_word
=$2
7531 echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7533 if test "${ac_cv_prog_NM+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 if test -n "$NM"; then
7537 ac_cv_prog_NM
="$NM" # Let the user override the test.
7539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir
=.
7544 for ac_exec_ext
in '' $ac_executable_extensions; do
7545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7557 if test -n "$NM"; then
7558 echo "$as_me:$LINENO: result: $NM" >&5
7559 echo "${ECHO_T}$NM" >&6
7561 echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6
7568 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7569 && test -d ..
/binutils
; then
7570 AR
='$(objdir)/../binutils/ar'
7572 # Extract the first word of "ar", so it can be a program name with args.
7573 set dummy
ar; ac_word
=$2
7574 echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7576 if test "${ac_cv_prog_AR+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 if test -n "$AR"; then
7580 ac_cv_prog_AR
="$AR" # Let the user override the test.
7582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir
=.
7587 for ac_exec_ext
in '' $ac_executable_extensions; do
7588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7600 if test -n "$AR"; then
7601 echo "$as_me:$LINENO: result: $AR" >&5
7602 echo "${ECHO_T}$AR" >&6
7604 echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7611 # --------------------
7612 # Checks for C headers
7613 # --------------------
7615 echo "$as_me:$LINENO: checking for GNU C library" >&5
7616 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7617 if test "${gcc_cv_glibc+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 cat >conftest.
$ac_ext <<_ACEOF
7623 cat confdefs.h
>>conftest.
$ac_ext
7624 cat >>conftest.
$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 #include <features.h>
7631 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7632 #error Not a GNU C library system
7638 rm -f conftest.
$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>conftest.er1
7642 grep -v '^ *+' conftest.er1
>conftest.err
7644 cat conftest.err
>&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try
='test -z "$ac_c_werror_flag"
7648 || test ! -s conftest.err'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; } &&
7654 { ac_try
='test -s conftest.$ac_objext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.
$ac_ext >&5
7667 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7670 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7671 echo "${ECHO_T}$gcc_cv_glibc" >&6
7672 if test $gcc_cv_glibc = yes; then
7674 cat >>confdefs.h
<<\_ACEOF
7675 #define _GNU_SOURCE 1
7680 # Need to reject headers which give warnings, so that the -Werror bootstrap
7681 # works later. *sigh* This needs to come before all header checks.
7683 ac_c_preproc_warn_flag
=yes
7685 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7687 if test "${ac_cv_header_stdc+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 cat >conftest.
$ac_ext <<_ACEOF
7693 cat confdefs.h
>>conftest.
$ac_ext
7694 cat >>conftest.
$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7709 rm -f conftest.
$ac_objext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711 (eval $ac_compile) 2>conftest.er1
7713 grep -v '^ *+' conftest.er1
>conftest.err
7715 cat conftest.err
>&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try
='test -z "$ac_c_werror_flag"
7719 || test ! -s conftest.err'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; } &&
7725 { ac_try
='test -s conftest.$ac_objext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_cv_header_stdc
=yes
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.
$ac_ext >&5
7736 ac_cv_header_stdc
=no
7738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7740 if test $ac_cv_header_stdc = yes; then
7741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7742 cat >conftest.
$ac_ext <<_ACEOF
7745 cat confdefs.h
>>conftest.
$ac_ext
7746 cat >>conftest.
$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752 $EGREP "memchr" >/dev
/null
2>&1; then
7755 ac_cv_header_stdc
=no
7761 if test $ac_cv_header_stdc = yes; then
7762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763 cat >conftest.
$ac_ext <<_ACEOF
7766 cat confdefs.h
>>conftest.
$ac_ext
7767 cat >>conftest.
$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773 $EGREP "free" >/dev
/null
2>&1; then
7776 ac_cv_header_stdc
=no
7782 if test $ac_cv_header_stdc = yes; then
7783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7784 if test "$cross_compiling" = yes; then
7787 cat >conftest.
$ac_ext <<_ACEOF
7790 cat confdefs.h
>>conftest.
$ac_ext
7791 cat >>conftest.
$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7794 #if ((' ' & 0x0FF) == 0x020)
7795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7798 # define ISLOWER(c) \
7799 (('a' <= (c) && (c) <= 'i') \
7800 || ('j' <= (c) && (c) <= 'r') \
7801 || ('s' <= (c) && (c) <= 'z'))
7802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7810 for (i = 0; i < 256; i++)
7811 if (XOR (islower (i), ISLOWER (i))
7812 || toupper (i) != TOUPPER (i))
7817 rm -f conftest
$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7830 echo "$as_me: program exited with status $ac_status" >&5
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.
$ac_ext >&5
7835 ac_cv_header_stdc
=no
7837 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7843 if test $ac_cv_header_stdc = yes; then
7845 cat >>confdefs.h
<<\_ACEOF
7846 #define STDC_HEADERS 1
7851 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7852 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7853 if test "${ac_cv_header_time+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 cat >conftest.
$ac_ext <<_ACEOF
7859 cat confdefs.h
>>conftest.
$ac_ext
7860 cat >>conftest.
$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 #include <sys/types.h>
7863 #include <sys/time.h>
7869 if ((struct tm *) 0)
7875 rm -f conftest.
$ac_objext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7877 (eval $ac_compile) 2>conftest.er1
7879 grep -v '^ *+' conftest.er1
>conftest.err
7881 cat conftest.err
>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try
='test -z "$ac_c_werror_flag"
7885 || 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 ac_cv_header_time
=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.
$ac_ext >&5
7902 ac_cv_header_time
=no
7904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7906 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7907 echo "${ECHO_T}$ac_cv_header_time" >&6
7908 if test $ac_cv_header_time = yes; then
7910 cat >>confdefs.h
<<\_ACEOF
7911 #define TIME_WITH_SYS_TIME 1
7916 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7917 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7918 if test "${gcc_cv_header_string+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. */
7928 #include <strings.h>
7937 rm -f conftest.
$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>conftest.er1
7941 grep -v '^ *+' conftest.er1
>conftest.err
7943 cat conftest.err
>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try
='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try
='test -s conftest.$ac_objext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 gcc_cv_header_string
=yes
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.
$ac_ext >&5
7964 gcc_cv_header_string
=no
7966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7968 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7969 echo "${ECHO_T}$gcc_cv_header_string" >&6
7970 if test $gcc_cv_header_string = yes; then
7972 cat >>confdefs.h
<<\_ACEOF
7973 #define STRING_WITH_STRINGS 1
7978 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7979 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7980 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.
$ac_ext <<_ACEOF
7986 cat confdefs.h
>>conftest.
$ac_ext
7987 cat >>conftest.
$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <sys/types.h>
7990 #include <sys/wait.h>
7992 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7995 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8003 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8008 rm -f conftest.
$ac_objext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8010 (eval $ac_compile) 2>conftest.er1
8012 grep -v '^ *+' conftest.er1
>conftest.err
8014 cat conftest.err
>&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try
='test -z "$ac_c_werror_flag"
8018 || test ! -s conftest.err'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; } &&
8024 { ac_try
='test -s conftest.$ac_objext'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030 ac_cv_header_sys_wait_h
=yes
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.
$ac_ext >&5
8035 ac_cv_header_sys_wait_h
=no
8037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8039 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8040 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8041 if test $ac_cv_header_sys_wait_h = yes; then
8043 cat >>confdefs.h
<<\_ACEOF
8044 #define HAVE_SYS_WAIT_H 1
8071 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8072 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8073 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8074 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8076 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8077 echo "$as_me:$LINENO: checking for $ac_header" >&5
8078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 cat >conftest.
$ac_ext <<_ACEOF
8085 cat confdefs.h
>>conftest.
$ac_ext
8086 cat >>conftest.
$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <$ac_header>
8090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8091 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8093 grep -v '^ *+' conftest.er1
>conftest.err
8095 cat conftest.err
>&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } >/dev
/null
; then
8098 if test -s conftest.err
; then
8099 ac_cpp_err
=$ac_c_preproc_warn_flag
8100 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8107 if test -z "$ac_cpp_err"; then
8108 eval "$as_ac_Header=yes"
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.
$ac_ext >&5
8113 eval "$as_ac_Header=no"
8115 rm -f conftest.err conftest.
$ac_ext
8117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8120 cat >>confdefs.h
<<_ACEOF
8121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8128 # Check for thread headers.
8129 echo "$as_me:$LINENO: checking for thread.h" >&5
8130 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8131 if test "${ac_cv_header_thread_h+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 cat >conftest.
$ac_ext <<_ACEOF
8137 cat confdefs.h
>>conftest.
$ac_ext
8138 cat >>conftest.
$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8143 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8145 grep -v '^ *+' conftest.er1
>conftest.err
8147 cat conftest.err
>&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } >/dev
/null
; then
8150 if test -s conftest.err
; then
8151 ac_cpp_err
=$ac_c_preproc_warn_flag
8152 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8159 if test -z "$ac_cpp_err"; then
8160 ac_cv_header_thread_h
=yes
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.
$ac_ext >&5
8165 ac_cv_header_thread_h
=no
8167 rm -f conftest.err conftest.
$ac_ext
8169 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8170 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8171 if test $ac_cv_header_thread_h = yes; then
8177 echo "$as_me:$LINENO: checking for pthread.h" >&5
8178 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8179 if test "${ac_cv_header_pthread_h+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 cat >conftest.
$ac_ext <<_ACEOF
8185 cat confdefs.h
>>conftest.
$ac_ext
8186 cat >>conftest.
$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <pthread.h>
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8193 grep -v '^ *+' conftest.er1
>conftest.err
8195 cat conftest.err
>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } >/dev
/null
; then
8198 if test -s conftest.err
; then
8199 ac_cpp_err
=$ac_c_preproc_warn_flag
8200 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8207 if test -z "$ac_cpp_err"; then
8208 ac_cv_header_pthread_h
=yes
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.
$ac_ext >&5
8213 ac_cv_header_pthread_h
=no
8215 rm -f conftest.err conftest.
$ac_ext
8217 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8218 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8219 if test $ac_cv_header_pthread_h = yes; then
8226 # These tests can't be done till we know if we have limits.h.
8227 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8228 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8229 if test "${gcc_cv_decl_char_bit+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.
$ac_ext <<_ACEOF
8235 cat confdefs.h
>>conftest.
$ac_ext
8236 cat >>conftest.
$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 #ifdef HAVE_LIMITS_H
8245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246 $EGREP "found" >/dev
/null
2>&1; then
8247 gcc_cv_decl_char_bit
=yes
8249 gcc_cv_decl_char_bit
=no
8255 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8256 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8257 if test $gcc_cv_decl_char_bit = no
; then
8258 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8259 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8260 if test "${gcc_cv_c_nbby+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 while test $i -lt 65; do
8266 cat >conftest.
$ac_ext <<_ACEOF
8269 cat confdefs.h
>>conftest.
$ac_ext
8270 cat >>conftest.
$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8277 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8278 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8284 rm -f conftest.
$ac_objext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286 (eval $ac_compile) 2>conftest.er1
8288 grep -v '^ *+' conftest.er1
>conftest.err
8290 cat conftest.err
>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try
='test -z "$ac_c_werror_flag"
8294 || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try
='test -s conftest.$ac_objext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 gcc_cv_c_nbby
=$i; break
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.
$ac_ext >&5
8312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8315 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8318 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8319 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8320 if test $gcc_cv_c_nbby = failed
; then
8321 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8322 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8323 { (exit 1); exit 1; }; }
8326 cat >>confdefs.h
<<_ACEOF
8327 #define CHAR_BIT $gcc_cv_c_nbby
8332 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8333 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8334 if test "${ac_cv_c_bigendian+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 ac_cv_c_bigendian
=unknown
8338 # See if sys/param.h defines the BYTE_ORDER macro.
8339 cat >conftest.
$ac_ext <<_ACEOF
8342 cat confdefs.h
>>conftest.
$ac_ext
8343 cat >>conftest.
$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 #include <sys/types.h>
8346 #include <sys/param.h>
8351 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8358 rm -f conftest.
$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>conftest.er1
8362 grep -v '^ *+' conftest.er1
>conftest.err
8364 cat conftest.err
>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try
='test -z "$ac_c_werror_flag"
8368 || test ! -s conftest.err'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try
='test -s conftest.$ac_objext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 # It does; now see whether it defined to BIG_ENDIAN or not.
8381 cat >conftest.
$ac_ext <<_ACEOF
8384 cat confdefs.h
>>conftest.
$ac_ext
8385 cat >>conftest.
$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 #include <sys/types.h>
8388 #include <sys/param.h>
8393 #if BYTE_ORDER != BIG_ENDIAN
8400 rm -f conftest.
$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>conftest.er1
8404 grep -v '^ *+' conftest.er1
>conftest.err
8406 cat conftest.err
>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try
='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try
='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_c_bigendian
=yes
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.
$ac_ext >&5
8427 ac_cv_c_bigendian
=no
8429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.
$ac_ext >&5
8435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8436 if test $ac_cv_c_bigendian = unknown
; then
8437 if test "$cross_compiling" = yes; then
8438 echo $ac_n "cross-compiling... " 2>&6
8440 cat >conftest.
$ac_ext <<_ACEOF
8443 cat confdefs.h
>>conftest.
$ac_ext
8444 cat >>conftest.
$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8447 /* Are we little or big endian? From Harbison&Steele. */
8451 char c[sizeof (long)];
8454 exit (u.c[sizeof (long) - 1] == 1);
8457 rm -f conftest
$ac_exeext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459 (eval $ac_link) 2>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_c_bigendian
=no
8470 echo "$as_me: program exited with status $ac_status" >&5
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.
$ac_ext >&5
8475 ac_cv_c_bigendian
=yes
8477 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8481 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8482 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8483 if test $ac_cv_c_bigendian = unknown
; then
8484 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8485 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8487 cat >conftest.c
<<EOF
8488 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8489 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8490 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8491 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8492 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8493 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8494 int main() { _ascii (); _ebcdic (); return 0; }
8496 if test -f conftest.c
; then
8497 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
8498 if test `grep -l BIGenDianSyS conftest.o` ; then
8499 echo $ac_n ' big endian probe OK, ' 1>&6
8500 ac_cv_c_bigendian
=yes
8502 if test `grep -l LiTTleEnDian conftest.o` ; then
8503 echo $ac_n ' little endian probe OK, ' 1>&6
8504 if test $ac_cv_c_bigendian = yes ; then
8505 ac_cv_c_bigendian
=unknown
;
8507 ac_cv_c_bigendian
=no
8510 echo $ac_n 'guessing bigendian ... ' >&6
8513 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8514 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8516 if test $ac_cv_c_bigendian = yes; then
8518 cat >>confdefs.h
<<\_ACEOF
8519 #define WORDS_BIGENDIAN 1
8523 cat >>confdefs.h
<<\_ACEOF
8524 #define HOST_WORDS_BIG_ENDIAN 1
8532 cat >>confdefs.h
<<_ACEOF
8533 #define BYTEORDER $BYTEORDER
8536 if test $ac_cv_c_bigendian = unknown
; then
8537 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8538 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8539 { (exit 1); exit 1; }; }
8547 # Stage specific cflags for build.
8551 if test x
$GCC = xyes
8553 stage1_cflags
="-Wa,-J"
8559 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8560 # sources; use -no-cpp-precomp to get to GNU cpp.
8561 # Apple's GCC has bugs in designated initializer handling, so disable
8563 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8568 # These libraries may be used by collect2.
8569 # We may need a special search path to get them linked.
8570 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8571 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8572 if test "${gcc_cv_collect2_libs+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 for libs
in '' -lld -lmld \
8577 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8578 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8581 cat >conftest.
$ac_ext <<_ACEOF
8584 cat confdefs.h
>>conftest.
$ac_ext
8585 cat >>conftest.
$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8588 /* Override any gcc2 internal prototype to avoid an error. */
8592 /* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */
8603 rm -f conftest.
$ac_objext conftest
$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>conftest.er1
8607 grep -v '^ *+' conftest.er1
>conftest.err
8609 cat conftest.err
>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try
='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try
='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 gcc_cv_collect2_libs
="$libs"; break
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.
$ac_ext >&5
8631 rm -f conftest.err conftest.
$ac_objext \
8632 conftest
$ac_exeext conftest.
$ac_ext
8635 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8637 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8638 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8639 case $gcc_cv_collect2_libs in
8641 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8645 # When building Ada code on Alpha, we need exc_resume which is usually in
8646 # -lexc. So test for it.
8649 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8650 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8651 if test "${ac_cv_search_exc_resume+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 ac_func_search_save_LIBS
=$LIBS
8655 ac_cv_search_exc_resume
=no
8656 cat >conftest.
$ac_ext <<_ACEOF
8659 cat confdefs.h
>>conftest.
$ac_ext
8660 cat >>conftest.
$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8678 rm -f conftest.
$ac_objext conftest
$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>conftest.er1
8682 grep -v '^ *+' conftest.er1
>conftest.err
8684 cat conftest.err
>&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try
='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try
='test -s conftest$ac_exeext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_search_exc_resume
="none required"
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.
$ac_ext >&5
8706 rm -f conftest.err conftest.
$ac_objext \
8707 conftest
$ac_exeext conftest.
$ac_ext
8708 if test "$ac_cv_search_exc_resume" = no
; then
8709 for ac_lib
in exc
; do
8710 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8711 cat >conftest.
$ac_ext <<_ACEOF
8714 cat confdefs.h
>>conftest.
$ac_ext
8715 cat >>conftest.
$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8718 /* Override any gcc2 internal prototype to avoid an error. */
8722 /* We use char because int might match the return type of a gcc2
8723 builtin and then its argument prototype would still apply. */
8733 rm -f conftest.
$ac_objext conftest
$ac_exeext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735 (eval $ac_link) 2>conftest.er1
8737 grep -v '^ *+' conftest.er1
>conftest.err
8739 cat conftest.err
>&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try
='test -z "$ac_c_werror_flag"
8743 || test ! -s conftest.err'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try
='test -s conftest$ac_exeext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 ac_cv_search_exc_resume
="-l$ac_lib"
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.
$ac_ext >&5
8762 rm -f conftest.err conftest.
$ac_objext \
8763 conftest
$ac_exeext conftest.
$ac_ext
8766 LIBS
=$ac_func_search_save_LIBS
8768 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8769 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8770 if test "$ac_cv_search_exc_resume" != no
; then
8771 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8779 # Some systems put ldexp and frexp in libm instead of libc; assume
8780 # they're both in the same place. jcf-dump needs them.
8783 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8784 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8785 if test "${ac_cv_search_ldexp+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 ac_func_search_save_LIBS
=$LIBS
8789 ac_cv_search_ldexp
=no
8790 cat >conftest.
$ac_ext <<_ACEOF
8793 cat confdefs.h
>>conftest.
$ac_ext
8794 cat >>conftest.
$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8797 /* Override any gcc2 internal prototype to avoid an error. */
8801 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */
8812 rm -f conftest.
$ac_objext conftest
$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8816 grep -v '^ *+' conftest.er1
>conftest.err
8818 cat conftest.err
>&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try
='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try
='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_search_ldexp
="none required"
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.
$ac_ext >&5
8840 rm -f conftest.err conftest.
$ac_objext \
8841 conftest
$ac_exeext conftest.
$ac_ext
8842 if test "$ac_cv_search_ldexp" = no
; then
8844 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8845 cat >conftest.
$ac_ext <<_ACEOF
8848 cat confdefs.h
>>conftest.
$ac_ext
8849 cat >>conftest.
$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 /* Override any gcc2 internal prototype to avoid an error. */
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8867 rm -f conftest.
$ac_objext conftest
$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
8871 grep -v '^ *+' conftest.er1
>conftest.err
8873 cat conftest.err
>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try
='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try
='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_search_ldexp
="-l$ac_lib"
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.
$ac_ext >&5
8896 rm -f conftest.err conftest.
$ac_objext \
8897 conftest
$ac_exeext conftest.
$ac_ext
8900 LIBS
=$ac_func_search_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8903 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8904 if test "$ac_cv_search_ldexp" != no
; then
8905 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8913 # Use <inttypes.h> only if it exists,
8914 # doesn't clash with <sys/types.h>, and declares intmax_t.
8915 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8916 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8917 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 cat >conftest.
$ac_ext <<_ACEOF
8923 cat confdefs.h
>>conftest.
$ac_ext
8924 cat >>conftest.
$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8926 #include <sys/types.h>
8927 #include <inttypes.h>
8936 rm -f conftest.
$ac_objext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>conftest.er1
8940 grep -v '^ *+' conftest.er1
>conftest.err
8942 cat conftest.err
>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try
='test -z "$ac_c_werror_flag"
8946 || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try
='test -s conftest.$ac_objext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 gcc_cv_header_inttypes_h
=yes
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.
$ac_ext >&5
8963 gcc_cv_header_inttypes_h
=no
8965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8968 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8969 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8970 if test $gcc_cv_header_inttypes_h = yes; then
8972 cat >>confdefs.h
<<\_ACEOF
8973 #define HAVE_INTTYPES_H 1
9004 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
9005 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
9006 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
9007 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
9010 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9011 echo "$as_me:$LINENO: checking for $ac_func" >&5
9012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9013 if eval "test \"\${$as_ac_var+set}\" = set"; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 cat >conftest.
$ac_ext <<_ACEOF
9019 cat confdefs.h
>>conftest.
$ac_ext
9020 cat >>conftest.
$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9024 #define $ac_func innocuous_$ac_func
9026 /* System header to define __stub macros and hopefully few prototypes,
9027 which can conflict with char $ac_func (); below.
9028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9029 <limits.h> exists even on freestanding compilers. */
9032 # include <limits.h>
9034 # include <assert.h>
9039 /* Override any gcc2 internal prototype to avoid an error. */
9044 /* We use char because int might match the return type of a gcc2
9045 builtin and then its argument prototype would still apply. */
9047 /* The GNU C library defines this for functions which it implements
9048 to always fail with ENOSYS. Some functions are actually named
9049 something starting with __ and the normal name is an alias. */
9050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9053 char (*f) () = $ac_func;
9062 return f != $ac_func;
9067 rm -f conftest.
$ac_objext conftest
$ac_exeext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069 (eval $ac_link) 2>conftest.er1
9071 grep -v '^ *+' conftest.er1
>conftest.err
9073 cat conftest.err
>&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try
='test -z "$ac_c_werror_flag"
9077 || test ! -s conftest.err'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; } &&
9083 { ac_try
='test -s conftest$ac_exeext'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; }; then
9089 eval "$as_ac_var=yes"
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.
$ac_ext >&5
9094 eval "$as_ac_var=no"
9096 rm -f conftest.err conftest.
$ac_objext \
9097 conftest
$ac_exeext conftest.
$ac_ext
9099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9101 if test `eval echo '${'$as_ac_var'}'` = yes; then
9102 cat >>confdefs.h
<<_ACEOF
9103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9110 if test x
$ac_cv_func_mbstowcs = xyes
; then
9111 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9112 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9113 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 if test "$cross_compiling" = yes; then
9117 gcc_cv_func_mbstowcs_works
=yes
9119 cat >conftest.
$ac_ext <<_ACEOF
9122 cat confdefs.h
>>conftest.
$ac_ext
9123 cat >>conftest.
$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9132 rm -f conftest
$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 gcc_cv_func_mbstowcs_works
=yes
9145 echo "$as_me: program exited with status $ac_status" >&5
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.
$ac_ext >&5
9150 gcc_cv_func_mbstowcs_works
=no
9152 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9155 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9156 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9157 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9159 cat >>confdefs.h
<<\_ACEOF
9160 #define HAVE_WORKING_MBSTOWCS 1
9166 echo "$as_me:$LINENO: checking for ssize_t" >&5
9167 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9168 if test "${ac_cv_type_ssize_t+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 cat >conftest.
$ac_ext <<_ACEOF
9174 cat confdefs.h
>>conftest.
$ac_ext
9175 cat >>conftest.
$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 $ac_includes_default
9183 if (sizeof (ssize_t))
9189 rm -f conftest.
$ac_objext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191 (eval $ac_compile) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1
>conftest.err
9195 cat conftest.err
>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try
='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try
='test -s conftest.$ac_objext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_cv_type_ssize_t
=yes
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.
$ac_ext >&5
9216 ac_cv_type_ssize_t
=no
9218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9221 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9222 if test $ac_cv_type_ssize_t = yes; then
9226 cat >>confdefs.h
<<_ACEOF
9233 # Try to determine the array type of the second argument of getgroups
9234 # for the target system (int or gid_t).
9235 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9236 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9237 if test "${ac_cv_type_uid_t+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 #include <sys/types.h>
9249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9250 $EGREP "uid_t" >/dev
/null
2>&1; then
9251 ac_cv_type_uid_t
=yes
9258 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9259 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9260 if test $ac_cv_type_uid_t = no
; then
9262 cat >>confdefs.h
<<\_ACEOF
9267 cat >>confdefs.h
<<\_ACEOF
9273 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9274 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9275 if test "${ac_cv_type_getgroups+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 if test "$cross_compiling" = yes; then
9279 ac_cv_type_getgroups
=cross
9281 cat >conftest.
$ac_ext <<_ACEOF
9284 cat confdefs.h
>>conftest.
$ac_ext
9285 cat >>conftest.
$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 /* Thanks to Mike Rendell for this test. */
9288 #include <sys/types.h>
9291 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9298 union { gid_t gval; long lval; } val;
9301 for (i = 0; i < NGID; i++)
9302 gidset[i] = val.gval;
9303 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9305 /* Exit non-zero if getgroups seems to require an array of ints. This
9306 happens when gid_t is short but getgroups modifies an array of ints. */
9307 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9310 rm -f conftest
$ac_exeext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_type_getgroups
=gid_t
9323 echo "$as_me: program exited with status $ac_status" >&5
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.
$ac_ext >&5
9328 ac_cv_type_getgroups
=int
9330 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9332 if test $ac_cv_type_getgroups = cross
; then
9333 cat >conftest.
$ac_ext <<_ACEOF
9336 cat confdefs.h
>>conftest.
$ac_ext
9337 cat >>conftest.
$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9343 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9344 ac_cv_type_getgroups
=gid_t
9346 ac_cv_type_getgroups
=int
9352 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9353 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9355 cat >>confdefs.h
<<_ACEOF
9356 #define GETGROUPS_T $ac_cv_type_getgroups
9360 if test "${target}" = "${build}"; then
9361 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9364 # This condition may need some tweaking. It should include all
9365 # targets where the array type of the second argument of getgroups
9366 # is int and the type of gid_t is not equivalent to int.
9367 *-*-sunos* |
*-*-ultrix*)
9368 TARGET_GETGROUPS_T
=int
9371 TARGET_GETGROUPS_T
=gid_t
9377 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9378 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9379 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 if test "$cross_compiling" = yes; then
9383 gcc_cv_func_printf_ptr
=no
9385 cat >conftest.
$ac_ext <<_ACEOF
9388 cat confdefs.h
>>conftest.
$ac_ext
9389 cat >>conftest.
$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9396 char *p = buf, *q = NULL;
9397 sprintf(buf, "%p", p);
9398 sscanf(buf, "%p", &q);
9402 rm -f conftest
$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 gcc_cv_func_printf_ptr
=yes
9415 echo "$as_me: program exited with status $ac_status" >&5
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.
$ac_ext >&5
9420 gcc_cv_func_printf_ptr
=no
9422 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9424 rm -f core core.
* *.core
9426 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9427 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9428 if test $gcc_cv_func_printf_ptr = yes ; then
9430 cat >>confdefs.h
<<\_ACEOF
9431 #define HAVE_PRINTF_PTR 1
9437 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9438 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9439 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 cat >conftest.
$ac_ext <<_ACEOF
9445 cat confdefs.h
>>conftest.
$ac_ext
9446 cat >>conftest.
$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 #include <sys/mman.h>
9450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9451 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9453 grep -v '^ *+' conftest.er1
>conftest.err
9455 cat conftest.err
>&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } >/dev
/null
; then
9458 if test -s conftest.err
; then
9459 ac_cpp_err
=$ac_c_preproc_warn_flag
9460 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9467 if test -z "$ac_cpp_err"; then
9468 ac_cv_header_sys_mman_h
=yes
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.
$ac_ext >&5
9473 ac_cv_header_sys_mman_h
=no
9475 rm -f conftest.err conftest.
$ac_ext
9477 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9478 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9479 if test $ac_cv_header_sys_mman_h = yes; then
9480 gcc_header_sys_mman_h
=yes
9482 gcc_header_sys_mman_h
=no
9485 echo "$as_me:$LINENO: checking for mmap" >&5
9486 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9487 if test "${ac_cv_func_mmap+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 cat >conftest.
$ac_ext <<_ACEOF
9493 cat confdefs.h
>>conftest.
$ac_ext
9494 cat >>conftest.
$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9498 #define mmap innocuous_mmap
9500 /* System header to define __stub macros and hopefully few prototypes,
9501 which can conflict with char mmap (); below.
9502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503 <limits.h> exists even on freestanding compilers. */
9506 # include <limits.h>
9508 # include <assert.h>
9513 /* Override any gcc2 internal prototype to avoid an error. */
9518 /* We use char because int might match the return type of a gcc2
9519 builtin and then its argument prototype would still apply. */
9521 /* The GNU C library defines this for functions which it implements
9522 to always fail with ENOSYS. Some functions are actually named
9523 something starting with __ and the normal name is an alias. */
9524 #if defined (__stub_mmap) || defined (__stub___mmap)
9527 char (*f) () = mmap;
9541 rm -f conftest.
$ac_objext conftest
$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>conftest.er1
9545 grep -v '^ *+' conftest.er1
>conftest.err
9547 cat conftest.err
>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try
='test -z "$ac_c_werror_flag"
9551 || test ! -s conftest.err'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try
='test -s conftest$ac_exeext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.
$ac_ext >&5
9570 rm -f conftest.err conftest.
$ac_objext \
9571 conftest
$ac_exeext conftest.
$ac_ext
9573 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9574 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9575 if test $ac_cv_func_mmap = yes; then
9581 if test "$gcc_header_sys_mman_h" != yes \
9582 ||
test "$gcc_func_mmap" != yes; then
9583 gcc_cv_func_mmap_file
=no
9584 gcc_cv_func_mmap_dev_zero
=no
9585 gcc_cv_func_mmap_anon
=no
9587 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9588 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9589 if test "${gcc_cv_func_mmap_file+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 # Add a system to this blacklist if
9593 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9594 # memory area containing the same data that you'd get if you applied
9595 # read() to the same fd. The only system known to have a problem here
9596 # is VMS, where text files have record structure.
9599 gcc_cv_func_mmap_file
=no
;;
9601 gcc_cv_func_mmap_file
=yes;;
9604 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9605 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9606 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9607 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9608 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 # Add a system to this blacklist if it has mmap() but /dev/zero
9612 # does not exist, or if mmapping /dev/zero does not give anonymous
9613 # zeroed pages with both the following properties:
9614 # 1. If you map N consecutive pages in with one call, and then
9615 # unmap any subset of those pages, the pages that were not
9616 # explicitly unmapped remain accessible.
9617 # 2. If you map two adjacent blocks of memory and then unmap them
9618 # both at once, they must both go away.
9619 # Systems known to be in this category are Windows (all variants),
9622 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9623 gcc_cv_func_mmap_dev_zero
=no
;;
9625 gcc_cv_func_mmap_dev_zero
=yes;;
9628 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9629 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9631 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9632 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9633 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9634 if test "${gcc_cv_decl_map_anon+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 cat >conftest.
$ac_ext <<_ACEOF
9640 cat confdefs.h
>>conftest.
$ac_ext
9641 cat >>conftest.
$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 #include <sys/types.h>
9644 #include <sys/mman.h>
9647 #ifndef MAP_ANONYMOUS
9648 #define MAP_ANONYMOUS MAP_ANON
9654 int n = MAP_ANONYMOUS;
9659 rm -f conftest.
$ac_objext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9661 (eval $ac_compile) 2>conftest.er1
9663 grep -v '^ *+' conftest.er1
>conftest.err
9665 cat conftest.err
>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try
='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try
='test -s conftest.$ac_objext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 gcc_cv_decl_map_anon
=yes
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.
$ac_ext >&5
9686 gcc_cv_decl_map_anon
=no
9688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9690 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9691 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9693 if test $gcc_cv_decl_map_anon = no
; then
9694 gcc_cv_func_mmap_anon
=no
9696 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9697 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9698 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9702 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9703 # doesn't give anonymous zeroed pages with the same properties listed
9704 # above for use of /dev/zero.
9705 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9707 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9708 gcc_cv_func_mmap_anon
=no
;;
9710 gcc_cv_func_mmap_anon
=yes;;
9713 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9714 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9718 if test $gcc_cv_func_mmap_file = yes; then
9720 cat >>confdefs.h
<<\_ACEOF
9721 #define HAVE_MMAP_FILE 1
9725 if test $gcc_cv_func_mmap_dev_zero = yes; then
9727 cat >>confdefs.h
<<\_ACEOF
9728 #define HAVE_MMAP_DEV_ZERO 1
9732 if test $gcc_cv_func_mmap_anon = yes; then
9734 cat >>confdefs.h
<<\_ACEOF
9735 #define HAVE_MMAP_ANON 1
9743 # Under VMS, vfork works very differently than on Unix. The standard test
9744 # won't work, and it isn't easily adaptable. It makes more sense to
9746 ac_cv_func_vfork_works
=yes
9749 echo "$as_me:$LINENO: checking for pid_t" >&5
9750 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9751 if test "${ac_cv_type_pid_t+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 cat >conftest.
$ac_ext <<_ACEOF
9757 cat confdefs.h
>>conftest.
$ac_ext
9758 cat >>conftest.
$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 $ac_includes_default
9772 rm -f conftest.
$ac_objext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9774 (eval $ac_compile) 2>conftest.er1
9776 grep -v '^ *+' conftest.er1
>conftest.err
9778 cat conftest.err
>&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try
='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try
='test -s conftest.$ac_objext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_type_pid_t
=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.
$ac_ext >&5
9801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9803 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9804 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9805 if test $ac_cv_type_pid_t = yes; then
9809 cat >>confdefs.h
<<_ACEOF
9817 for ac_header
in unistd.h vfork.h
9819 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 echo "$as_me:$LINENO: checking for $ac_header" >&5
9821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 cat >conftest.
$ac_ext <<_ACEOF
9828 cat confdefs.h
>>conftest.
$ac_ext
9829 cat >>conftest.
$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 #include <$ac_header>
9833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9834 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9836 grep -v '^ *+' conftest.er1
>conftest.err
9838 cat conftest.err
>&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } >/dev
/null
; then
9841 if test -s conftest.err
; then
9842 ac_cpp_err
=$ac_c_preproc_warn_flag
9843 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9850 if test -z "$ac_cpp_err"; then
9851 eval "$as_ac_Header=yes"
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.
$ac_ext >&5
9856 eval "$as_ac_Header=no"
9858 rm -f conftest.err conftest.
$ac_ext
9860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9863 cat >>confdefs.h
<<_ACEOF
9864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9872 for ac_func
in fork vfork
9874 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9875 echo "$as_me:$LINENO: checking for $ac_func" >&5
9876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9877 if eval "test \"\${$as_ac_var+set}\" = set"; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 cat >conftest.
$ac_ext <<_ACEOF
9883 cat confdefs.h
>>conftest.
$ac_ext
9884 cat >>conftest.
$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888 #define $ac_func innocuous_$ac_func
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char $ac_func (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9896 # include <limits.h>
9898 # include <assert.h>
9903 /* Override any gcc2 internal prototype to avoid an error. */
9908 /* We use char because int might match the return type of a gcc2
9909 builtin and then its argument prototype would still apply. */
9911 /* The GNU C library defines this for functions which it implements
9912 to always fail with ENOSYS. Some functions are actually named
9913 something starting with __ and the normal name is an alias. */
9914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9917 char (*f) () = $ac_func;
9926 return f != $ac_func;
9931 rm -f conftest.
$ac_objext conftest
$ac_exeext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>conftest.er1
9935 grep -v '^ *+' conftest.er1
>conftest.err
9937 cat conftest.err
>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try
='test -z "$ac_c_werror_flag"
9941 || test ! -s conftest.err'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try
='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 eval "$as_ac_var=yes"
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.
$ac_ext >&5
9958 eval "$as_ac_var=no"
9960 rm -f conftest.err conftest.
$ac_objext \
9961 conftest
$ac_exeext conftest.
$ac_ext
9963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9965 if test `eval echo '${'$as_ac_var'}'` = yes; then
9966 cat >>confdefs.h
<<_ACEOF
9967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9973 if test "x$ac_cv_func_fork" = xyes
; then
9974 echo "$as_me:$LINENO: checking for working fork" >&5
9975 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9976 if test "${ac_cv_func_fork_works+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 if test "$cross_compiling" = yes; then
9980 ac_cv_func_fork_works
=cross
9982 cat >conftest.
$ac_ext <<_ACEOF
9983 /* By Ruediger Kuhlmann. */
9984 #include <sys/types.h>
9986 # include <unistd.h>
9988 /* Some systems only have a dummy stub for fork() */
9996 rm -f conftest
$ac_exeext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9998 (eval $ac_link) 2>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_func_fork_works
=yes
10009 echo "$as_me: program exited with status $ac_status" >&5
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.
$ac_ext >&5
10013 ( exit $ac_status )
10014 ac_cv_func_fork_works
=no
10016 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10019 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10020 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10023 ac_cv_func_fork_works
=$ac_cv_func_fork
10025 if test "x$ac_cv_func_fork_works" = xcross
; then
10027 *-*-amigaos* |
*-*-msdosdjgpp*)
10028 # Override, as these systems have only a dummy fork() stub
10029 ac_cv_func_fork_works
=no
10032 ac_cv_func_fork_works
=yes
10035 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10036 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10038 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10039 if test "x$ac_cv_func_vfork" = xyes
; then
10040 echo "$as_me:$LINENO: checking for working vfork" >&5
10041 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10042 if test "${ac_cv_func_vfork_works+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 if test "$cross_compiling" = yes; then
10046 ac_cv_func_vfork_works
=cross
10048 cat >conftest.
$ac_ext <<_ACEOF
10051 cat confdefs.h
>>conftest.
$ac_ext
10052 cat >>conftest.
$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10054 /* Thanks to Paul Eggert for this test. */
10056 #include <stdlib.h>
10057 #include <sys/types.h>
10058 #include <sys/stat.h>
10059 #include <sys/wait.h>
10061 # include <unistd.h>
10064 # include <vfork.h>
10066 /* On some sparc systems, changes by the child to local and incoming
10067 argument registers are propagated back to the parent. The compiler
10068 is told about this with #include <vfork.h>, but some compilers
10069 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10070 static variable whose address is put into a register that is
10071 clobbered by the vfork. */
10074 sparc_address_test (int arg)
10076 sparc_address_test (arg) int arg;
10079 static pid_t child;
10097 pid_t parent = getpid ();
10100 sparc_address_test (0);
10105 /* Here is another test for sparc vfork register problems. This
10106 test uses lots of local variables, at least as many local
10107 variables as main has allocated so far including compiler
10108 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10109 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10110 reuse the register of parent for one of the local variables,
10111 since it will think that parent can't possibly be used any more
10112 in this routine. Assigning to the local variable will thus
10113 munge parent in the parent process. */
10115 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10116 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10117 /* Convince the compiler that p..p7 are live; otherwise, it might
10118 use the same hardware register for all 8 local variables. */
10119 if (p != p1 || p != p2 || p != p3 || p != p4
10120 || p != p5 || p != p6 || p != p7)
10123 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10124 from child file descriptors. If the child closes a descriptor
10125 before it execs or exits, this munges the parent's descriptor
10126 as well. Test for this by closing stdout in the child. */
10127 _exit(close(fileno(stdout)) != 0);
10132 while (wait(&status) != child)
10135 /* Was there some problem with vforking? */
10138 /* Did the child fail? (This shouldn't happen.) */
10141 /* Did the vfork/compiler bug occur? */
10142 || parent != getpid()
10144 /* Did the file descriptor bug occur? */
10145 || fstat(fileno(stdout), &st) != 0
10150 rm -f conftest
$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152 (eval $ac_link) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_func_vfork_works
=yes
10163 echo "$as_me: program exited with status $ac_status" >&5
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.
$ac_ext >&5
10167 ( exit $ac_status )
10168 ac_cv_func_vfork_works
=no
10170 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10173 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10174 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10177 if test "x$ac_cv_func_fork_works" = xcross
; then
10178 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10179 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10180 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10183 if test "x$ac_cv_func_vfork_works" = xyes
; then
10185 cat >>confdefs.h
<<\_ACEOF
10186 #define HAVE_WORKING_VFORK 1
10191 cat >>confdefs.h
<<\_ACEOF
10196 if test "x$ac_cv_func_fork_works" = xyes
; then
10198 cat >>confdefs.h
<<\_ACEOF
10199 #define HAVE_WORKING_FORK 1
10206 if test "X$prefix" = "XNONE"; then
10207 acl_final_prefix
="$ac_default_prefix"
10209 acl_final_prefix
="$prefix"
10211 if test "X$exec_prefix" = "XNONE"; then
10212 acl_final_exec_prefix
='${prefix}'
10214 acl_final_exec_prefix
="$exec_prefix"
10216 acl_save_prefix
="$prefix"
10217 prefix
="$acl_final_prefix"
10218 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10219 prefix
="$acl_save_prefix"
10222 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10223 if test "${with_gnu_ld+set}" = set; then
10224 withval
="$with_gnu_ld"
10225 test "$withval" = no || with_gnu_ld
=yes
10229 # Prepare PATH_SEPARATOR.
10230 # The user is always right.
10231 if test "${PATH_SEPARATOR+set}" != set; then
10232 echo "#! /bin/sh" >conf$$.sh
10233 echo "exit 0" >>conf$$.sh
10235 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10243 if test "$GCC" = yes; then
10244 # Check if gcc -print-prog-name=ld gives a path.
10245 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10246 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10249 # gcc leaves a trailing carriage return which upsets mingw
10250 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10252 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10255 # Accept absolute paths.
10256 [\\/]* |
[A-Za-z
]:[\\/]*)
10257 re_direlt
='/[^/][^/]*/\.\./'
10258 # Canonicalize the path of ld
10259 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10260 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10261 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10263 test -z "$LD" && LD
="$ac_prog"
10266 # If it fails, then pretend we aren't using GCC.
10270 # If it is relative, then search for the first ld in PATH.
10271 with_gnu_ld
=unknown
10274 elif test "$with_gnu_ld" = yes; then
10275 echo "$as_me:$LINENO: checking for GNU ld" >&5
10276 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10278 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10279 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10281 if test "${acl_cv_path_LD+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 if test -z "$LD"; then
10285 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10286 for ac_dir
in $PATH; do
10287 test -z "$ac_dir" && ac_dir
=.
10288 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10289 acl_cv_path_LD
="$ac_dir/$ac_prog"
10290 # Check to see if the program is GNU ld. I'd rather use --version,
10291 # but apparently some GNU ld's only accept -v.
10292 # Break only if it was the GNU/non-GNU ld that we prefer.
10293 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10294 test "$with_gnu_ld" != no
&& break
10296 test "$with_gnu_ld" != yes && break
10302 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10306 LD
="$acl_cv_path_LD"
10307 if test -n "$LD"; then
10308 echo "$as_me:$LINENO: result: $LD" >&5
10309 echo "${ECHO_T}$LD" >&6
10311 echo "$as_me:$LINENO: result: no" >&5
10312 echo "${ECHO_T}no" >&6
10314 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10315 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10316 { (exit 1); exit 1; }; }
10317 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10318 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10319 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10323 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10324 acl_cv_prog_gnu_ld
=yes
10326 acl_cv_prog_gnu_ld
=no
10329 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10330 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10331 with_gnu_ld
=$acl_cv_prog_gnu_ld
10335 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10336 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10337 if test "${acl_cv_rpath+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10342 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10344 rm -f .
/conftest.sh
10348 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10349 echo "${ECHO_T}$acl_cv_rpath" >&6
10351 libext
="$acl_cv_libext"
10352 shlibext
="$acl_cv_shlibext"
10353 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10354 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10355 hardcode_direct
="$acl_cv_hardcode_direct"
10356 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10357 # Check whether --enable-rpath or --disable-rpath was given.
10358 if test "${enable_rpath+set}" = set; then
10359 enableval
="$enable_rpath"
10373 acl_save_prefix
="$prefix"
10374 prefix
="$acl_final_prefix"
10375 acl_save_exec_prefix
="$exec_prefix"
10376 exec_prefix
="$acl_final_exec_prefix"
10378 eval additional_includedir
=\"$includedir\"
10379 eval additional_libdir
=\"$libdir\"
10381 exec_prefix
="$acl_save_exec_prefix"
10382 prefix
="$acl_save_prefix"
10385 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10386 if test "${with_libiconv_prefix+set}" = set; then
10387 withval
="$with_libiconv_prefix"
10389 if test "X$withval" = "Xno"; then
10392 if test "X$withval" = "X"; then
10394 acl_save_prefix
="$prefix"
10395 prefix
="$acl_final_prefix"
10396 acl_save_exec_prefix
="$exec_prefix"
10397 exec_prefix
="$acl_final_exec_prefix"
10399 eval additional_includedir
=\"$includedir\"
10400 eval additional_libdir
=\"$libdir\"
10402 exec_prefix
="$acl_save_exec_prefix"
10403 prefix
="$acl_save_prefix"
10406 additional_includedir
="$withval/include"
10407 additional_libdir
="$withval/lib"
10417 names_already_handled
=
10418 names_next_round
='iconv '
10419 while test -n "$names_next_round"; do
10420 names_this_round
="$names_next_round"
10422 for name
in $names_this_round; do
10424 for n
in $names_already_handled; do
10425 if test "$n" = "$name"; then
10426 already_handled
=yes
10430 if test -z "$already_handled"; then
10431 names_already_handled
="$names_already_handled $name"
10432 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10433 eval value
=\"\
$HAVE_LIB$uppername\"
10434 if test -n "$value"; then
10435 if test "$value" = yes; then
10436 eval value
=\"\
$LIB$uppername\"
10437 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10438 eval value
=\"\
$LTLIB$uppername\"
10439 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10448 if test $use_additional = yes; then
10449 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10450 found_dir
="$additional_libdir"
10451 found_so
="$additional_libdir/lib$name.$shlibext"
10452 if test -f "$additional_libdir/lib$name.la"; then
10453 found_la
="$additional_libdir/lib$name.la"
10456 if test -f "$additional_libdir/lib$name.$libext"; then
10457 found_dir
="$additional_libdir"
10458 found_a
="$additional_libdir/lib$name.$libext"
10459 if test -f "$additional_libdir/lib$name.la"; then
10460 found_la
="$additional_libdir/lib$name.la"
10465 if test "X$found_dir" = "X"; then
10466 for x
in $LDFLAGS $LTLIBICONV; do
10468 acl_save_prefix
="$prefix"
10469 prefix
="$acl_final_prefix"
10470 acl_save_exec_prefix
="$exec_prefix"
10471 exec_prefix
="$acl_final_exec_prefix"
10473 exec_prefix
="$acl_save_exec_prefix"
10474 prefix
="$acl_save_prefix"
10478 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10479 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10481 found_so
="$dir/lib$name.$shlibext"
10482 if test -f "$dir/lib$name.la"; then
10483 found_la
="$dir/lib$name.la"
10486 if test -f "$dir/lib$name.$libext"; then
10488 found_a
="$dir/lib$name.$libext"
10489 if test -f "$dir/lib$name.la"; then
10490 found_la
="$dir/lib$name.la"
10496 if test "X$found_dir" != "X"; then
10501 if test "X$found_dir" != "X"; then
10502 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10503 if test "X$found_so" != "X"; then
10504 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10505 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10508 for x
in $ltrpathdirs; do
10509 if test "X$x" = "X$found_dir"; then
10514 if test -z "$haveit"; then
10515 ltrpathdirs
="$ltrpathdirs $found_dir"
10517 if test "$hardcode_direct" = yes; then
10518 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10520 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10521 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10523 for x
in $rpathdirs; do
10524 if test "X$x" = "X$found_dir"; then
10529 if test -z "$haveit"; then
10530 rpathdirs
="$rpathdirs $found_dir"
10534 for x
in $LDFLAGS $LIBICONV; do
10536 acl_save_prefix
="$prefix"
10537 prefix
="$acl_final_prefix"
10538 acl_save_exec_prefix
="$exec_prefix"
10539 exec_prefix
="$acl_final_exec_prefix"
10541 exec_prefix
="$acl_save_exec_prefix"
10542 prefix
="$acl_save_prefix"
10544 if test "X$x" = "X-L$found_dir"; then
10549 if test -z "$haveit"; then
10550 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10552 if test "$hardcode_minus_L" != no
; then
10553 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10555 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10561 if test "X$found_a" != "X"; then
10562 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10564 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10567 additional_includedir
=
10568 case "$found_dir" in
10570 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10571 additional_includedir
="$basedir/include"
10574 if test "X$additional_includedir" != "X"; then
10575 if test "X$additional_includedir" != "X/usr/include"; then
10577 if test "X$additional_includedir" = "X/usr/local/include"; then
10578 if test -n "$GCC"; then
10580 linux
*) haveit
=yes;;
10584 if test -z "$haveit"; then
10585 for x
in $CPPFLAGS $INCICONV; do
10587 acl_save_prefix
="$prefix"
10588 prefix
="$acl_final_prefix"
10589 acl_save_exec_prefix
="$exec_prefix"
10590 exec_prefix
="$acl_final_exec_prefix"
10592 exec_prefix
="$acl_save_exec_prefix"
10593 prefix
="$acl_save_prefix"
10595 if test "X$x" = "X-I$additional_includedir"; then
10600 if test -z "$haveit"; then
10601 if test -d "$additional_includedir"; then
10602 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10608 if test -n "$found_la"; then
10609 save_libdir
="$libdir"
10610 case "$found_la" in
10611 */* |
*\\*) .
"$found_la" ;;
10612 *) .
"./$found_la" ;;
10614 libdir
="$save_libdir"
10615 for dep
in $dependency_libs; do
10618 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10619 if test "X$additional_libdir" != "X/usr/lib"; then
10621 if test "X$additional_libdir" = "X/usr/local/lib"; then
10622 if test -n "$GCC"; then
10624 linux
*) haveit
=yes;;
10628 if test -z "$haveit"; then
10630 for x
in $LDFLAGS $LIBICONV; do
10632 acl_save_prefix
="$prefix"
10633 prefix
="$acl_final_prefix"
10634 acl_save_exec_prefix
="$exec_prefix"
10635 exec_prefix
="$acl_final_exec_prefix"
10637 exec_prefix
="$acl_save_exec_prefix"
10638 prefix
="$acl_save_prefix"
10640 if test "X$x" = "X-L$additional_libdir"; then
10645 if test -z "$haveit"; then
10646 if test -d "$additional_libdir"; then
10647 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10651 for x
in $LDFLAGS $LTLIBICONV; do
10653 acl_save_prefix
="$prefix"
10654 prefix
="$acl_final_prefix"
10655 acl_save_exec_prefix
="$exec_prefix"
10656 exec_prefix
="$acl_final_exec_prefix"
10658 exec_prefix
="$acl_save_exec_prefix"
10659 prefix
="$acl_save_prefix"
10661 if test "X$x" = "X-L$additional_libdir"; then
10666 if test -z "$haveit"; then
10667 if test -d "$additional_libdir"; then
10668 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10675 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10676 if test "$enable_rpath" != no
; then
10678 for x
in $rpathdirs; do
10679 if test "X$x" = "X$dir"; then
10684 if test -z "$haveit"; then
10685 rpathdirs
="$rpathdirs $dir"
10688 for x
in $ltrpathdirs; do
10689 if test "X$x" = "X$dir"; then
10694 if test -z "$haveit"; then
10695 ltrpathdirs
="$ltrpathdirs $dir"
10700 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10703 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10706 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10707 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10713 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10714 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10720 if test "X$rpathdirs" != "X"; then
10721 if test -n "$hardcode_libdir_separator"; then
10723 for found_dir
in $rpathdirs; do
10724 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10726 acl_save_libdir
="$libdir"
10728 eval flag
=\"$hardcode_libdir_flag_spec\"
10729 libdir
="$acl_save_libdir"
10730 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10732 for found_dir
in $rpathdirs; do
10733 acl_save_libdir
="$libdir"
10734 libdir
="$found_dir"
10735 eval flag
=\"$hardcode_libdir_flag_spec\"
10736 libdir
="$acl_save_libdir"
10737 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10741 if test "X$ltrpathdirs" != "X"; then
10742 for found_dir
in $ltrpathdirs; do
10743 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10753 am_save_CPPFLAGS
="$CPPFLAGS"
10755 for element
in $INCICONV; do
10757 for x
in $CPPFLAGS; do
10759 acl_save_prefix
="$prefix"
10760 prefix
="$acl_final_prefix"
10761 acl_save_exec_prefix
="$exec_prefix"
10762 exec_prefix
="$acl_final_exec_prefix"
10764 exec_prefix
="$acl_save_exec_prefix"
10765 prefix
="$acl_save_prefix"
10767 if test "X$x" = "X$element"; then
10772 if test -z "$haveit"; then
10773 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10778 echo "$as_me:$LINENO: checking for iconv" >&5
10779 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10780 if test "${am_cv_func_iconv+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 am_cv_func_iconv
="no, consider installing GNU libiconv"
10786 cat >conftest.
$ac_ext <<_ACEOF
10789 cat confdefs.h
>>conftest.
$ac_ext
10790 cat >>conftest.
$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 #include <stdlib.h>
10797 iconv_t cd = iconv_open("","");
10798 iconv(cd,NULL,NULL,NULL,NULL);
10804 rm -f conftest.
$ac_objext conftest
$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806 (eval $ac_link) 2>conftest.er1
10808 grep -v '^ *+' conftest.er1
>conftest.err
10810 cat conftest.err
>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try
='test -z "$ac_c_werror_flag"
10814 || test ! -s conftest.err'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try
='test -s conftest$ac_exeext'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 am_cv_func_iconv
=yes
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.
$ac_ext >&5
10832 rm -f conftest.err conftest.
$ac_objext \
10833 conftest
$ac_exeext conftest.
$ac_ext
10834 if test "$am_cv_func_iconv" != yes; then
10835 am_save_LIBS
="$LIBS"
10836 LIBS
="$LIBS $LIBICONV"
10837 cat >conftest.
$ac_ext <<_ACEOF
10840 cat confdefs.h
>>conftest.
$ac_ext
10841 cat >>conftest.
$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <stdlib.h>
10848 iconv_t cd = iconv_open("","");
10849 iconv(cd,NULL,NULL,NULL,NULL);
10855 rm -f conftest.
$ac_objext conftest
$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>conftest.er1
10859 grep -v '^ *+' conftest.er1
>conftest.err
10861 cat conftest.err
>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try
='test -z "$ac_c_werror_flag"
10865 || test ! -s conftest.err'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; } &&
10871 { ac_try
='test -s conftest$ac_exeext'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 am_cv_lib_iconv
=yes
10878 am_cv_func_iconv
=yes
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.
$ac_ext >&5
10884 rm -f conftest.err conftest.
$ac_objext \
10885 conftest
$ac_exeext conftest.
$ac_ext
10886 LIBS
="$am_save_LIBS"
10890 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10891 echo "${ECHO_T}$am_cv_func_iconv" >&6
10892 if test "$am_cv_func_iconv" = yes; then
10894 cat >>confdefs.h
<<\_ACEOF
10895 #define HAVE_ICONV 1
10899 if test "$am_cv_lib_iconv" = yes; then
10900 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10901 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10902 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10903 echo "${ECHO_T}$LIBICONV" >&6
10905 CPPFLAGS
="$am_save_CPPFLAGS"
10912 if test "$am_cv_func_iconv" = yes; then
10913 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10914 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10915 if test "${am_cv_proto_iconv+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 cat >conftest.
$ac_ext <<_ACEOF
10922 cat confdefs.h
>>conftest.
$ac_ext
10923 cat >>conftest.
$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10926 #include <stdlib.h>
10932 #if defined(__STDC__) || defined(__cplusplus)
10933 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10946 rm -f conftest.
$ac_objext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10948 (eval $ac_compile) 2>conftest.er1
10950 grep -v '^ *+' conftest.er1
>conftest.err
10952 cat conftest.err
>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try
='test -z "$ac_c_werror_flag"
10956 || test ! -s conftest.err'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } &&
10962 { ac_try
='test -s conftest.$ac_objext'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 am_cv_proto_iconv_arg1
=""
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.
$ac_ext >&5
10973 am_cv_proto_iconv_arg1
="const"
10975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10976 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);"
10979 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10980 echo "$as_me:$LINENO: result: ${ac_t:-
10981 }$am_cv_proto_iconv" >&5
10982 echo "${ECHO_T}${ac_t:-
10983 }$am_cv_proto_iconv" >&6
10985 cat >>confdefs.h
<<_ACEOF
10986 #define ICONV_CONST $am_cv_proto_iconv_arg1
10991 # Until we have in-tree GNU iconv:
10996 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10997 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10998 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 cat >conftest.
$ac_ext <<_ACEOF
11004 cat confdefs.h
>>conftest.
$ac_ext
11005 cat >>conftest.
$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 #include <locale.h>
11016 rm -f conftest.
$ac_objext conftest
$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018 (eval $ac_link) 2>conftest.er1
11020 grep -v '^ *+' conftest.er1
>conftest.err
11022 cat conftest.err
>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try
='test -z "$ac_c_werror_flag"
11026 || test ! -s conftest.err'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try
='test -s conftest$ac_exeext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 am_cv_val_LC_MESSAGES
=yes
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.
$ac_ext >&5
11043 am_cv_val_LC_MESSAGES
=no
11045 rm -f conftest.err conftest.
$ac_objext \
11046 conftest
$ac_exeext conftest.
$ac_ext
11048 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11049 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11050 if test $am_cv_val_LC_MESSAGES = yes; then
11052 cat >>confdefs.h
<<\_ACEOF
11053 #define HAVE_LC_MESSAGES 1
11060 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11061 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11062 if test "${am_cv_langinfo_codeset+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 cat >conftest.
$ac_ext <<_ACEOF
11068 cat confdefs.h
>>conftest.
$ac_ext
11069 cat >>conftest.
$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071 #include <langinfo.h>
11075 char* cs = nl_langinfo(CODESET);
11080 rm -f conftest.
$ac_objext conftest
$ac_exeext
11081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11082 (eval $ac_link) 2>conftest.er1
11084 grep -v '^ *+' conftest.er1
>conftest.err
11086 cat conftest.err
>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try
='test -z "$ac_c_werror_flag"
11090 || test ! -s conftest.err'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; } &&
11096 { ac_try
='test -s conftest$ac_exeext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 am_cv_langinfo_codeset
=yes
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.
$ac_ext >&5
11107 am_cv_langinfo_codeset
=no
11109 rm -f conftest.err conftest.
$ac_objext \
11110 conftest
$ac_exeext conftest.
$ac_ext
11113 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11114 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11115 if test $am_cv_langinfo_codeset = yes; then
11117 cat >>confdefs.h
<<\_ACEOF
11118 #define HAVE_LANGINFO_CODESET 1
11124 # We will need to find libiberty.h and ansidecl.h
11125 saved_CFLAGS
="$CFLAGS"
11126 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11151 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
11152 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11153 fprintf_unlocked strstr errno snprintf vasprintf \
11154 malloc realloc calloc free
basename getopt
clock getpagesize
11156 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11157 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11158 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11159 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 cat >conftest.
$ac_ext <<_ACEOF
11165 cat confdefs.h
>>conftest.
$ac_ext
11166 cat >>conftest.
$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11169 #define $ac_tr_decl 1
11171 #include "ansidecl.h"
11172 #include "system.h"
11178 char *(*pfn) = (char *(*)) $ac_func ;
11184 rm -f conftest.
$ac_objext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11186 (eval $ac_compile) 2>conftest.er1
11188 grep -v '^ *+' conftest.er1
>conftest.err
11190 cat conftest.err
>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
11193 { ac_try
='test -z "$ac_c_werror_flag"
11194 || test ! -s conftest.err'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try
='test -s conftest.$ac_objext'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 eval "gcc_cv_have_decl_$ac_func=yes"
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.
$ac_ext >&5
11211 eval "gcc_cv_have_decl_$ac_func=no"
11213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11216 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11217 echo "$as_me:$LINENO: result: yes" >&5
11218 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11219 #define $ac_tr_decl 1
11223 echo "$as_me:$LINENO: result: no" >&5
11224 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11225 #define $ac_tr_decl 0
11236 for ac_func
in getrlimit setrlimit getrusage
11238 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11239 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11240 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11241 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 cat >conftest.
$ac_ext <<_ACEOF
11247 cat confdefs.h
>>conftest.
$ac_ext
11248 cat >>conftest.
$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11251 #define $ac_tr_decl 1
11253 #include "ansidecl.h"
11254 #include "system.h"
11255 #ifdef HAVE_SYS_RESOURCE_H
11256 #include <sys/resource.h>
11264 char *(*pfn) = (char *(*)) $ac_func ;
11270 rm -f conftest.
$ac_objext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11272 (eval $ac_compile) 2>conftest.er1
11274 grep -v '^ *+' conftest.er1
>conftest.err
11276 cat conftest.err
>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try
='test -z "$ac_c_werror_flag"
11280 || test ! -s conftest.err'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try
='test -s conftest.$ac_objext'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 eval "gcc_cv_have_decl_$ac_func=yes"
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.
$ac_ext >&5
11297 eval "gcc_cv_have_decl_$ac_func=no"
11299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11302 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11303 echo "$as_me:$LINENO: result: yes" >&5
11304 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11305 #define $ac_tr_decl 1
11309 echo "$as_me:$LINENO: result: no" >&5
11310 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11311 #define $ac_tr_decl 0
11319 cat >conftest.
$ac_ext <<_ACEOF
11322 cat confdefs.h
>>conftest.
$ac_ext
11323 cat >>conftest.
$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11326 #include "ansidecl.h"
11327 #include "system.h"
11328 #ifdef HAVE_SYS_RESOURCE_H
11329 #include <sys/resource.h>
11340 rm -f conftest.
$ac_objext
11341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11342 (eval $ac_compile) 2>conftest.er1
11344 grep -v '^ *+' conftest.er1
>conftest.err
11346 cat conftest.err
>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try
='test -z "$ac_c_werror_flag"
11350 || test ! -s conftest.err'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; } &&
11356 { ac_try
='test -s conftest.$ac_objext'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.
$ac_ext >&5
11368 cat >>confdefs.h
<<\_ACEOF
11369 #define rlim_t long
11373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11375 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11376 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11377 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11378 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11380 for ac_func
in ldgetname
11382 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11383 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11384 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11385 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 cat >conftest.
$ac_ext <<_ACEOF
11391 cat confdefs.h
>>conftest.
$ac_ext
11392 cat >>conftest.
$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11395 #define $ac_tr_decl 1
11397 #include "ansidecl.h"
11398 #include "system.h"
11399 #ifdef HAVE_LDFCN_H
11410 char *(*pfn) = (char *(*)) $ac_func ;
11416 rm -f conftest.
$ac_objext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418 (eval $ac_compile) 2>conftest.er1
11420 grep -v '^ *+' conftest.er1
>conftest.err
11422 cat conftest.err
>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try
='test -z "$ac_c_werror_flag"
11426 || test ! -s conftest.err'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; } &&
11432 { ac_try
='test -s conftest.$ac_objext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438 eval "gcc_cv_have_decl_$ac_func=yes"
11440 echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.
$ac_ext >&5
11443 eval "gcc_cv_have_decl_$ac_func=no"
11445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11448 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11449 echo "$as_me:$LINENO: result: yes" >&5
11450 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11451 #define $ac_tr_decl 1
11455 echo "$as_me:$LINENO: result: no" >&5
11456 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11457 #define $ac_tr_decl 0
11466 for ac_func
in times
11468 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11469 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11470 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11471 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 cat >conftest.
$ac_ext <<_ACEOF
11477 cat confdefs.h
>>conftest.
$ac_ext
11478 cat >>conftest.
$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11481 #define $ac_tr_decl 1
11483 #include "ansidecl.h"
11484 #include "system.h"
11485 #ifdef HAVE_SYS_TIMES_H
11486 #include <sys/times.h>
11494 char *(*pfn) = (char *(*)) $ac_func ;
11500 rm -f conftest.
$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>conftest.er1
11504 grep -v '^ *+' conftest.er1
>conftest.err
11506 cat conftest.err
>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try
='test -z "$ac_c_werror_flag"
11510 || test ! -s conftest.err'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try
='test -s conftest.$ac_objext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 eval "gcc_cv_have_decl_$ac_func=yes"
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.
$ac_ext >&5
11527 eval "gcc_cv_have_decl_$ac_func=no"
11529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11532 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11533 echo "$as_me:$LINENO: result: yes" >&5
11534 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11535 #define $ac_tr_decl 1
11539 echo "$as_me:$LINENO: result: no" >&5
11540 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11541 #define $ac_tr_decl 0
11549 # More time-related stuff.
11550 echo "$as_me:$LINENO: checking for struct tms" >&5
11551 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11552 if test "${ac_cv_struct_tms+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 cat >conftest.
$ac_ext <<_ACEOF
11559 cat confdefs.h
>>conftest.
$ac_ext
11560 cat >>conftest.
$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11563 #include "ansidecl.h"
11564 #include "system.h"
11565 #ifdef HAVE_SYS_TIMES_H
11566 #include <sys/times.h>
11577 rm -f conftest.
$ac_objext
11578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11579 (eval $ac_compile) 2>conftest.er1
11581 grep -v '^ *+' conftest.er1
>conftest.err
11583 cat conftest.err
>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try
='test -z "$ac_c_werror_flag"
11587 || test ! -s conftest.err'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try
='test -s conftest.$ac_objext'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_struct_tms
=yes
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.
$ac_ext >&5
11604 ac_cv_struct_tms
=no
11606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11608 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11609 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11610 if test $ac_cv_struct_tms = yes; then
11612 cat >>confdefs.h
<<\_ACEOF
11613 #define HAVE_STRUCT_TMS 1
11618 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11619 # revisit after autoconf 2.50.
11620 echo "$as_me:$LINENO: checking for clock_t" >&5
11621 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11622 if test "${gcc_cv_type_clock_t+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 cat >conftest.
$ac_ext <<_ACEOF
11629 cat confdefs.h
>>conftest.
$ac_ext
11630 cat >>conftest.
$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 #include "ansidecl.h"
11634 #include "system.h"
11644 rm -f conftest.
$ac_objext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 2>conftest.er1
11648 grep -v '^ *+' conftest.er1
>conftest.err
11650 cat conftest.err
>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try
='test -z "$ac_c_werror_flag"
11654 || test ! -s conftest.err'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try
='test -s conftest.$ac_objext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 gcc_cv_type_clock_t
=yes
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.
$ac_ext >&5
11671 gcc_cv_type_clock_t
=no
11673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11675 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11676 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11677 if test $gcc_cv_type_clock_t = yes; then
11679 cat >>confdefs.h
<<\_ACEOF
11680 #define HAVE_CLOCK_T 1
11685 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11686 CFLAGS
="$saved_CFLAGS"
11688 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11689 if test "${enable_initfini_array+set}" = set; then
11690 enableval
="$enable_initfini_array"
11694 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11695 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11696 if test "${gcc_cv_initfini_array+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 if test "$cross_compiling" = yes; then
11700 gcc_cv_initfini_array
=no
11702 cat >conftest.
$ac_ext <<_ACEOF
11705 cat confdefs.h
>>conftest.
$ac_ext
11706 cat >>conftest.
$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11710 int main (void) { return x; }
11711 int foo (void) { x = 0; }
11712 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11714 rm -f conftest
$ac_exeext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716 (eval $ac_link) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 gcc_cv_initfini_array
=yes
11727 echo "$as_me: program exited with status $ac_status" >&5
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.
$ac_ext >&5
11731 ( exit $ac_status )
11732 gcc_cv_initfini_array
=no
11734 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11737 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11738 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11739 enable_initfini_array
=$gcc_cv_initfini_array
11742 if test $enable_initfini_array = yes; then
11744 cat >>confdefs.h
<<\_ACEOF
11745 #define HAVE_INITFINI_ARRAY 1
11750 # mkdir takes a single argument on some systems.
11751 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11752 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11753 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 cat >conftest.
$ac_ext <<_ACEOF
11759 cat confdefs.h
>>conftest.
$ac_ext
11760 cat >>conftest.
$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11763 #include <sys/types.h>
11764 #ifdef HAVE_SYS_STAT_H
11765 # include <sys/stat.h>
11767 #ifdef HAVE_UNISTD_H
11768 # include <unistd.h>
11770 #ifdef HAVE_DIRECT_H
11771 # include <direct.h>
11781 rm -f conftest.
$ac_objext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11783 (eval $ac_compile) 2>conftest.er1
11785 grep -v '^ *+' conftest.er1
>conftest.err
11787 cat conftest.err
>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } &&
11790 { ac_try
='test -z "$ac_c_werror_flag"
11791 || test ! -s conftest.err'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try
='test -s conftest.$ac_objext'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803 gcc_cv_mkdir_takes_one_arg
=no
11805 echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.
$ac_ext >&5
11808 gcc_cv_mkdir_takes_one_arg
=yes
11810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11812 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11813 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11814 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11816 cat >>confdefs.h
<<\_ACEOF
11817 #define MKDIR_TAKES_ONE_ARG 1
11829 # With Setjmp/Longjmp based exception handling.
11830 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11831 if test "${enable_sjlj_exceptions+set}" = set; then
11832 enableval
="$enable_sjlj_exceptions"
11833 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11835 cat >>confdefs.h
<<_ACEOF
11836 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11841 # For platforms with the unwind ABI which includes an unwind library,
11842 # libunwind, we can choose to use the system libunwind.
11844 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11845 if test "${with_system_libunwind+set}" = set; then
11846 withval
="$with_system_libunwind"
11850 # --------------------------------------------------------
11851 # Build, host, and target specific configuration fragments
11852 # --------------------------------------------------------
11854 # Collect build-machine-specific information.
11855 .
${srcdir}/config.build
11857 # Collect host-machine-specific information.
11858 .
${srcdir}/config.
host
11862 # Collect target-machine-specific information.
11863 .
${srcdir}/config.gcc
11865 extra_objs
="${host_extra_objs} ${extra_objs}"
11866 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11868 # Default the target-machine variables that were not explicitly set.
11869 if test x
"$tm_file" = x
11870 then tm_file
=$cpu_type/$cpu_type.h
; fi
11872 if test x
"$extra_headers" = x
11873 then extra_headers
=; fi
11875 if test x
$md_file = x
11876 then md_file
=$cpu_type/$cpu_type.md
; fi
11878 if test x
$out_file = x
11879 then out_file
=$cpu_type/$cpu_type.c
; fi
11881 if test x
"$tmake_file" = x
11882 then tmake_file
=$cpu_type/t-
$cpu_type
11885 if test x
"$dwarf2" = xyes
11886 then tm_file
="$tm_file tm-dwarf2.h"
11889 # Say what files are being used for the output code and MD file.
11890 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11891 echo "Using \`$srcdir/config/$md_file' as machine description file."
11893 # If any of the xm_file variables contain nonexistent files, warn
11894 # about them and drop them.
11897 for x
in $build_xm_file; do
11898 if test -f $srcdir/config
/$x
11900 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11901 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11904 build_xm_file
="$bx"
11907 for x
in $host_xm_file; do
11908 if test -f $srcdir/config
/$x
11910 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11911 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11917 for x
in $xm_file; do
11918 if test -f $srcdir/config
/$x
11920 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11921 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11927 for f
in $tm_file; do
11930 if test $count = ax
; then
11931 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11933 echo "Using the following target machine macro files:"
11934 for f
in $tm_file; do
11935 echo " $srcdir/config/$f"
11939 if test x
$need_64bit_hwint = xyes
; then
11941 cat >>confdefs.h
<<\_ACEOF
11942 #define NEED_64BIT_HOST_WIDE_INT 1
11947 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11949 cat >>confdefs.h
<<\_ACEOF
11950 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11956 for f
in $host_xm_file; do
11959 if test $count = a
; then
11961 elif test $count = ax
; then
11962 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11964 echo "Using the following host machine macro files:"
11965 for f
in $host_xm_file; do
11966 echo " $srcdir/config/$f"
11969 echo "Using ${out_host_hook_obj} for host machine hooks."
11971 if test "$host_xm_file" != "$build_xm_file"; then
11973 for f
in $build_xm_file; do
11976 if test $count = a
; then
11978 elif test $count = ax
; then
11979 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11981 echo "Using the following build machine macro files:"
11982 for f
in $build_xm_file; do
11983 echo " $srcdir/config/$f"
11992 # Check if a valid thread package
11993 case ${enable_threads} in
11996 target_thread_file
='single'
12000 target_thread_file
='single'
12002 aix | dce | gnat | irix | posix | posix95 | rtems | \
12003 single | solaris | vxworks | win32
)
12004 target_thread_file
=${enable_threads}
12007 echo "${enable_threads} is an unknown thread package" 1>&2
12012 if test x
${thread_file} = x
; then
12013 # No thread file set by target-specific clauses in config.gcc,
12014 # so use file chosen by default logic above
12015 thread_file
=${target_thread_file}
12018 # Make gthr-default.h if we have a thread file.
12020 if test $thread_file != single
; then
12021 rm -f gthr-default.h
12022 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12023 gthread_flags
=-DHAVE_GTHR_DEFAULT
12032 if test x
$enable___cxa_atexit = xyes || \
12033 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12034 if test x
$host = x
$target; then
12035 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12036 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12037 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 cat >conftest.
$ac_ext <<_ACEOF
12043 cat confdefs.h
>>conftest.
$ac_ext
12044 cat >>conftest.
$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12048 #define __cxa_atexit innocuous___cxa_atexit
12050 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char __cxa_atexit (); below.
12052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053 <limits.h> exists even on freestanding compilers. */
12056 # include <limits.h>
12058 # include <assert.h>
12061 #undef __cxa_atexit
12063 /* Override any gcc2 internal prototype to avoid an error. */
12068 /* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12070 char __cxa_atexit ();
12071 /* The GNU C library defines this for functions which it implements
12072 to always fail with ENOSYS. Some functions are actually named
12073 something starting with __ and the normal name is an alias. */
12074 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12077 char (*f) () = __cxa_atexit;
12086 return f != __cxa_atexit;
12091 rm -f conftest.
$ac_objext conftest
$ac_exeext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093 (eval $ac_link) 2>conftest.er1
12095 grep -v '^ *+' conftest.er1
>conftest.err
12097 cat conftest.err
>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try
='test -z "$ac_c_werror_flag"
12101 || test ! -s conftest.err'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; } &&
12107 { ac_try
='test -s conftest$ac_exeext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 ac_cv_func___cxa_atexit
=yes
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.
$ac_ext >&5
12118 ac_cv_func___cxa_atexit
=no
12120 rm -f conftest.err conftest.
$ac_objext \
12121 conftest
$ac_exeext conftest.
$ac_ext
12123 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12124 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12125 if test $ac_cv_func___cxa_atexit = yes; then
12128 echo "__cxa_atexit can't be enabled on this target"
12132 # We can't check for __cxa_atexit when building a cross, so assume
12136 if test x
$use_cxa_atexit = xyes
; then
12138 cat >>confdefs.h
<<\_ACEOF
12139 #define DEFAULT_USE_CXA_ATEXIT 1
12145 # Look for a file containing extra machine modes.
12146 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12147 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12150 cat >>confdefs.h
<<_ACEOF
12151 #define EXTRA_MODES_FILE "config/$extra_modes"
12156 # auto-host.h is the file containing items generated by autoconf and is
12157 # the first file included by config.h.
12158 # If host=build, it is correct to have bconfig include auto-host.h
12159 # as well. If host!=build, we are in error and need to do more
12160 # work to find out the build config parameters.
12161 if test x
$host = x
$build
12163 build_auto
=auto-host.h
12165 # We create a subdir, then run autoconf in the subdir.
12166 # To prevent recursion we set host and build for the new
12167 # invocation of configure to the build for this invocation
12174 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12175 *) realsrcdir
=..
/${srcdir};;
12177 saved_CFLAGS
="${CFLAGS}"
12178 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12179 ${realsrcdir}/configure \
12180 --enable-languages=${enable_languages-all} \
12181 --target=$target_alias --host=$build_alias --build=$build_alias
12182 CFLAGS
="${saved_CFLAGS}"
12184 # We just finished tests for the build machine, so rename
12185 # the file auto-build.h in the gcc directory.
12186 mv auto-host.h ..
/auto-build.h
12189 build_auto
=auto-build.h
12193 tm_file
="${tm_file} defaults.h"
12194 tm_p_file
="${tm_p_file} tm-preds.h"
12195 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12196 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12197 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12198 # put this back in temporarily.
12199 xm_file
="ansidecl.h ${xm_file}"
12205 # Compile in configure arguments.
12206 if test -f configargs.h
; then
12207 # Being re-configured.
12208 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12209 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12211 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12214 # Double all backslashes and backslash all quotes to turn
12215 # gcc_config_arguments into a C string.
12216 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12217 $gcc_config_arguments
12219 gcc_config_arguments_str
=`cat conftest.out`
12222 cat > configargs.h
<<EOF
12223 /* Generated automatically. */
12224 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12225 static const char thread_model[] = "$thread_file";
12227 static const struct {
12228 const char *name, *value;
12229 } configure_default_options[] = $configure_default_options;
12232 # Internationalization
12234 VERSION
="$gcc_version"
12236 cat >>confdefs.h
<<_ACEOF
12237 #define PACKAGE "$PACKAGE"
12243 # If we haven't got the data from the intl directory,
12244 # assume NLS is disabled.
12252 if test -f ..
/intl
/config.intl
; then
12253 . ..
/intl
/config.intl
12255 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12256 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12257 if test x
"$USE_NLS" != xyes
; then
12258 echo "$as_me:$LINENO: result: no" >&5
12259 echo "${ECHO_T}no" >&6
12261 echo "$as_me:$LINENO: result: yes" >&5
12262 echo "${ECHO_T}yes" >&6
12264 cat >>confdefs.h
<<\_ACEOF
12265 #define ENABLE_NLS 1
12269 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12270 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12271 # Look for .po and .gmo files in the source directory.
12274 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12275 # If there aren't any .gmo files the shell will give us the
12276 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12278 case "$cat" in *\
**)
12281 # The quadruple backslash is collapsed to a double backslash
12282 # by the backticks, then collapsed again by the double quotes,
12283 # leaving us with one backslash in the sed expression (right
12284 # before the dot that mustn't act as a wildcard).
12285 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12286 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12287 # The user is allowed to set LINGUAS to a list of languages to
12288 # install catalogs for. If it's empty that means "all of them."
12289 if test "x$LINGUAS" = x
; then
12290 CATALOGS
="$CATALOGS $cat"
12291 XLINGUAS
="$XLINGUAS $lang"
12293 case "$LINGUAS" in *$lang*)
12294 CATALOGS
="$CATALOGS $cat"
12295 XLINGUAS
="$XLINGUAS $lang"
12300 LINGUAS
="$XLINGUAS"
12301 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12302 echo "${ECHO_T}$LINGUAS" >&6
12305 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12306 # -liconv on the link line twice.
12307 case "$LIBINTL" in *$LIBICONV*)
12311 # Windows32 Registry support for specifying GCC installation paths.
12312 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12313 if test "${enable_win32_registry+set}" = set; then
12314 enableval
="$enable_win32_registry"
12318 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12319 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12320 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12321 if test "x$enable_win32_registry" != xno
; then
12323 cat >>confdefs.h
<<\_ACEOF
12324 #define ENABLE_WIN32_REGISTRY 1
12327 echo "$as_me:$LINENO: result: yes" >&5
12328 echo "${ECHO_T}yes" >&6
12329 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12330 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12331 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 ac_func_search_save_LIBS
=$LIBS
12335 ac_cv_search_RegOpenKeyExA
=no
12336 cat >conftest.
$ac_ext <<_ACEOF
12339 cat confdefs.h
>>conftest.
$ac_ext
12340 cat >>conftest.
$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12343 /* Override any gcc2 internal prototype to avoid an error. */
12347 /* We use char because int might match the return type of a gcc2
12348 builtin and then its argument prototype would still apply. */
12349 char RegOpenKeyExA ();
12358 rm -f conftest.
$ac_objext conftest
$ac_exeext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>conftest.er1
12362 grep -v '^ *+' conftest.er1
>conftest.err
12364 cat conftest.err
>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try
='test -z "$ac_c_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try
='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 ac_cv_search_RegOpenKeyExA
="none required"
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.
$ac_ext >&5
12386 rm -f conftest.err conftest.
$ac_objext \
12387 conftest
$ac_exeext conftest.
$ac_ext
12388 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12389 for ac_lib
in advapi32
; do
12390 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12391 cat >conftest.
$ac_ext <<_ACEOF
12394 cat confdefs.h
>>conftest.
$ac_ext
12395 cat >>conftest.
$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 /* Override any gcc2 internal prototype to avoid an error. */
12402 /* We use char because int might match the return type of a gcc2
12403 builtin and then its argument prototype would still apply. */
12404 char RegOpenKeyExA ();
12413 rm -f conftest.
$ac_objext conftest
$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415 (eval $ac_link) 2>conftest.er1
12417 grep -v '^ *+' conftest.er1
>conftest.err
12419 cat conftest.err
>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try
='test -z "$ac_c_werror_flag"
12423 || test ! -s conftest.err'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try
='test -s conftest$ac_exeext'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.
$ac_ext >&5
12442 rm -f conftest.err conftest.
$ac_objext \
12443 conftest
$ac_exeext conftest.
$ac_ext
12446 LIBS
=$ac_func_search_save_LIBS
12448 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12449 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12450 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12451 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12456 echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6
12460 # Check if user specified a different registry key.
12461 case "x${enable_win32_registry}" in
12464 gcc_cv_win32_registry_key
="$VERSION"
12467 # no registry lookup.
12468 gcc_cv_win32_registry_key
=''
12471 # user-specified key.
12472 gcc_cv_win32_registry_key
="$enable_win32_registry"
12476 if test "x$enable_win32_registry" != xno
; then
12477 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12478 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12480 cat >>confdefs.h
<<_ACEOF
12481 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12484 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12485 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12490 # Get an absolute path to the GCC top-level source directory
12491 holddir
=`${PWDCMD-pwd}`
12493 topdir
=`${PWDCMD-pwd}`
12496 # Conditionalize the makefile for this host machine.
12498 for f
in ${host_xmake_file}
12500 if test -f ${srcdir}/config
/$f
12502 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12506 # Conditionalize the makefile for this target machine.
12508 for f
in ${tmake_file}
12510 if test -f ${srcdir}/config
/$f
12512 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12515 tmake_file
="${tmake_file_}"
12517 # If the host doesn't support symlinks, modify CC in
12518 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12519 # Otherwise, we can use "CC=$(CC)".
12523 cc_set_by_configure
="\$(CC)"
12524 quoted_cc_set_by_configure
="\$(CC)"
12525 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12526 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12529 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12530 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12531 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12532 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12536 out_object_file
=`basename $out_file .c`.o
12540 for f
in $tm_file; do
12543 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12544 tm_include_list
="${tm_include_list} $f"
12547 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12548 tm_include_list
="${tm_include_list} config/$f"
12555 for f
in $tm_p_file; do
12558 tm_p_file_list
="${tm_p_file_list} $f"
12559 tm_p_include_list
="${tm_p_include_list} $f"
12562 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12563 tm_p_include_list
="${tm_p_include_list} config/$f"
12569 for f
in $xm_file; do
12572 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12573 xm_include_list
="${xm_include_list} $f"
12576 xm_file_list
="${xm_file_list} $f"
12577 xm_include_list
="${xm_include_list} $f"
12580 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12581 xm_include_list
="${xm_include_list} config/$f"
12587 host_xm_include_list
=
12588 for f
in $host_xm_file; do
12591 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12592 host_xm_include_list
="${host_xm_include_list} $f"
12595 host_xm_file_list
="${host_xm_file_list} $f"
12596 host_xm_include_list
="${host_xm_include_list} $f"
12599 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12600 host_xm_include_list
="${host_xm_include_list} config/$f"
12605 build_xm_file_list
=
12606 for f
in $build_xm_file; do
12609 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12610 build_xm_include_list
="${build_xm_include_list} $f"
12612 auto-build.h | auto-host.h
)
12613 build_xm_file_list
="${build_xm_file_list} $f"
12614 build_xm_include_list
="${build_xm_include_list} $f"
12617 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12618 build_xm_include_list
="${build_xm_include_list} config/$f"
12623 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12624 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12627 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12628 if test x
$host != x
$target
12630 CROSS
="-DCROSS_COMPILE"
12632 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12633 case "$host","$target" in
12634 # Darwin crosses can use the host system's libraries and headers,
12635 # because of the fat library support. Of course, it must be the
12636 # same version of Darwin on both sides. Allow the user to
12637 # just say --target=foo-darwin without a version number to mean
12638 # "the version on this system".
12639 *-*-darwin*,*-*-darwin*)
12640 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12641 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12642 if test $hostos = $targetos -o $targetos = darwin
; then
12644 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12649 i?
86-*-*,x86_64-
*-* \
12650 | powerpc
*-*-*,powerpc64
*-*-*)
12651 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12653 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12654 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12655 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12658 # If this is a cross-compiler that does not
12659 # have its own set of headers then define
12662 # If this is using newlib, without having the headers available now,
12663 # then define inhibit_libc in LIBGCC2_CFLAGS.
12664 # This prevents libgcc2 from containing any code which requires libc
12667 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12668 test x
$with_newlib = xyes
; } &&
12669 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12670 inhibit_libc
=-Dinhibit_libc
12674 # When building gcc with a cross-compiler, we need to adjust things so
12675 # that the generator programs are still built with the native compiler.
12676 # Also, we cannot run fixincludes or fix-header.
12678 # These are the normal (build=host) settings:
12679 CC_FOR_BUILD
='$(CC)'
12680 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12681 STMP_FIXINC
=stmp-fixinc
12683 # Possibly disable fixproto, on a per-target basis.
12684 case ${use_fixproto} in
12689 STMP_FIXPROTO
=stmp-fixproto
12694 # And these apply if build != host, or we are generating coverage data
12695 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12697 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12699 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12700 if "x$STMP_FIXPROTO" != x
; then
12701 STMP_FIXPROTO
=stmp-install-fixproto
12706 # Expand extra_headers to include complete path.
12707 # This substitutes for lots of t-* files.
12708 extra_headers_list
=
12709 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12710 for file in ${extra_headers} ; do
12711 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12714 # Define collect2 in Makefile.
12715 case $host_can_use_collect2 in
12717 *) collect2
='collect2$(exeext)' ;;
12721 # Add a definition of USE_COLLECT2 if system wants one.
12722 case $use_collect2 in
12723 no
) use_collect2
= ;;
12726 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12727 xm_defines
="${xm_defines} USE_COLLECT2"
12728 case $host_can_use_collect2 in
12730 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12731 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12732 { (exit 1); exit 1; }; }
12738 # ---------------------------
12739 # Assembler & linker features
12740 # ---------------------------
12742 # Identify the assembler which will work hand-in-glove with the newly
12743 # built GCC, so that we can examine its features. This is the assembler
12744 # which will be driven by the driver program.
12746 # If build != host, and we aren't building gas in-tree, we identify a
12747 # build->target assembler and hope that it will have the same features
12748 # as the host->target assembler we'll be using.
12749 echo "$as_me:$LINENO: checking what assembler to use" >&5
12750 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12753 gcc_cv_gas_major_version
=
12754 gcc_cv_gas_minor_version
=
12755 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12756 if test -x "$DEFAULT_ASSEMBLER"; then
12757 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12758 elif test -x as
$build_exeext; then
12759 # Build using assembler in the current directory.
12760 gcc_cv_as
=.
/as
$build_exeext
12761 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12762 && test -f ..
/gas
/Makefile \
12763 && test x
$build = x
$host; then
12764 # Single tree build which includes gas. We want to prefer it
12765 # over whatever linker top-level may have detected, since
12766 # we'll use what we're building after installation anyway.
12768 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12769 for f
in $gcc_cv_as_bfd_srcdir/configure \
12770 $gcc_cv_as_gas_srcdir/configure \
12771 $gcc_cv_as_gas_srcdir/configure.
in \
12772 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12773 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12774 if test x
$gcc_cv_gas_version != x
; then
12778 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12779 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12780 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12781 case $gcc_cv_gas_patch_version in
12782 "") gcc_cv_gas_patch_version
="0" ;;
12784 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12785 + $gcc_cv_gas_minor_version \) \* 1000 \
12786 + $gcc_cv_gas_patch_version`
12788 rm -f as
$build_exeext
12789 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12790 in_tree_gas_is_elf
=no
12791 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12792 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12793 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12795 in_tree_gas_is_elf
=yes
12797 elif test -x "$AS_FOR_TARGET"; then
12798 gcc_cv_as
="$AS_FOR_TARGET"
12799 elif test -x "$AS" && test x
$host = x
$target; then
12803 if test "x$gcc_cv_as" = x
; then
12804 # Search the same directories that the installed compiler will
12805 # search. Else we may find the wrong assembler and lose. If we
12806 # do not find a suitable assembler binary, then try the user's
12809 # Also note we have to check MD_EXEC_PREFIX before checking the
12810 # user's path. Unfortunately, there is no good way to get at the
12811 # value of MD_EXEC_PREFIX here. So we do a brute force search
12812 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12813 # to be fixed as part of the make/configure rewrite too.
12815 if test "x$exec_prefix" = xNONE
; then
12816 if test "x$prefix" = xNONE
; then
12817 test_prefix
=/usr
/local
12819 test_prefix
=$prefix
12822 test_prefix
=$exec_prefix
12825 # If the loop below does not find an assembler, then use whatever
12826 # one we can find in the users's path.
12828 if test "x$program_prefix" != xNONE
; then
12829 gcc_cv_as
=${program_prefix}as
$build_exeext
12831 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12834 if test x
$host = x
$build; then
12835 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12836 $test_prefix/libexec/gcc/$target_noncanonical \
12837 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12838 /usr/lib/gcc/$target_noncanonical \
12839 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12840 $test_prefix/$target_noncanonical/bin"
12845 if test x
$host = x
$target; then
12846 test_dirs
="$test_dirs \
12851 /bsd43/usr/lib/cmplrs/cc \
12852 /usr/cross64/usr/bin \
12853 /usr/lib/cmplrs/cc \
12854 /sysv/usr/lib/cmplrs/cc \
12855 /svr4/usr/lib/cmplrs/cc \
12859 for dir
in $test_dirs; do
12860 if test -x $dir/as
$build_exeext; then
12861 gcc_cv_as
=$dir/as
$build_exeext
12866 case $in_tree_gas in
12868 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12869 echo "${ECHO_T}\"newly built gas\"" >&6
12872 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12873 echo "${ECHO_T}$gcc_cv_as" >&6
12877 # Identify the linker which will work hand-in-glove with the newly
12878 # built GCC, so that we can examine its features. This is the linker
12879 # which will be driven by the driver program.
12881 # If build != host, and we aren't building gas in-tree, we identify a
12882 # build->target linker and hope that it will have the same features
12883 # as the host->target linker we'll be using.
12884 echo "$as_me:$LINENO: checking what linker to use" >&5
12885 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12888 gcc_cv_gld_major_version
=
12889 gcc_cv_gld_minor_version
=
12890 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12891 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12892 if test -x "$DEFAULT_LINKER"; then
12893 gcc_cv_ld
="$DEFAULT_LINKER"
12894 elif test -x collect-ld
$build_exeext; then
12895 # Build using linker in the current directory.
12896 gcc_cv_ld
=.
/collect-ld
$build_exeext
12897 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12898 && test -f ..
/ld
/Makefile \
12899 && test x
$build = x
$host; then
12900 # Single tree build which includes ld. We want to prefer it
12901 # over whatever linker top-level may have detected, since
12902 # we'll use what we're building after installation anyway.
12904 in_tree_ld_is_elf
=no
12905 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12906 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12907 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12908 in_tree_ld_is_elf
=yes
12910 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
12912 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12913 if test x
$gcc_cv_gld_version != x
; then
12917 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12918 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12919 rm -f collect-ld
$build_exeext
12920 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12921 elif test -x "$LD_FOR_TARGET"; then
12922 gcc_cv_ld
="$LD_FOR_TARGET"
12923 elif test -x "$LD" && test x
$host = x
$target; then
12927 if test "x$gcc_cv_ld" = x
; then
12928 # Search the same directories that the installed compiler will
12929 # search. Else we may find the wrong linker and lose. If we
12930 # do not find a suitable linker binary, then try the user's
12933 # Also note we have to check MD_EXEC_PREFIX before checking the
12934 # user's path. Unfortunately, there is no good way to get at the
12935 # value of MD_EXEC_PREFIX here. So we do a brute force search
12936 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12937 # to be fixed as part of the make/configure rewrite too.
12939 if test "x$exec_prefix" = xNONE
; then
12940 if test "x$prefix" = xNONE
; then
12941 test_prefix
=/usr
/local
12943 test_prefix
=$prefix
12946 test_prefix
=$exec_prefix
12949 # If the loop below does not find an linker, then use whatever
12950 # one we can find in the users's path.
12952 if test "x$program_prefix" != xNONE
; then
12953 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12955 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
12958 if test x
$host = x
$build; then
12959 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12960 $test_prefix/libexec/gcc/$target_noncanonical \
12961 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12962 /usr/lib/gcc/$target_noncanonical \
12963 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12964 $test_prefix/$target_noncanonical/bin"
12969 if test x
$host = x
$target; then
12970 test_dirs
="$test_dirs \
12975 /bsd43/usr/lib/cmplrs/cc \
12976 /usr/cross64/usr/bin \
12977 /usr/lib/cmplrs/cc \
12978 /sysv/usr/lib/cmplrs/cc \
12979 /svr4/usr/lib/cmplrs/cc \
12983 for dir
in $test_dirs; do
12984 if test -x $dir/ld
$build_exeext; then
12985 gcc_cv_ld
=$dir/ld
$build_exeext
12990 case $in_tree_ld in
12992 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12993 echo "${ECHO_T}\"newly built ld\"" >&6
12996 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12997 echo "${ECHO_T}$gcc_cv_ld" >&6
13001 # Figure out what nm we will be using.
13002 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13003 echo "$as_me:$LINENO: checking what nm to use" >&5
13004 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13006 if test -x nm
$build_exeext; then
13007 gcc_cv_nm
=.
/nm
$build_exeext
13008 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13009 && test -f ..
/binutils
/Makefile
; then
13010 # Single tree build which includes binutils.
13012 gcc_cv_nm
=.
/nm
$build_exeext
13013 rm -f nm
$build_exeext
13014 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
13015 elif test "x$program_prefix" != xNONE
; then
13016 gcc_cv_nm
=${program_prefix}nm
$build_exeext
13018 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
13020 case $in_tree_nm in
13021 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13022 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13023 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13024 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13027 # Figure out what objdump we will be using.
13028 echo "$as_me:$LINENO: checking what objdump to use" >&5
13029 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13031 if test -x objdump
$build_exeext; then
13032 gcc_cv_objdump
=.
/objdump
$build_exeext
13033 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13034 && test -f ..
/binutils
/Makefile
; then
13035 # Single tree build which includes binutils.
13036 in_tree_objdump
=yes
13037 gcc_cv_objdump
=.
/objdump
$build_exeext
13038 rm -f objdump
$build_exeext
13039 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
13040 elif test "x$program_prefix" != xNONE
; then
13041 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
13043 gcc_cv_objdump
=`echo objdump | \
13044 sed "${program_transform_name}"`$build_exeext
13046 case $in_tree_objdump in
13047 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13048 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13049 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13050 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13053 # Figure out what assembler alignment features are present.
13054 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13055 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13056 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 gcc_cv_as_balign_and_p2align
=no
13060 if test $in_tree_gas = yes; then
13061 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13062 then gcc_cv_as_balign_and_p2align
=yes
13064 elif test x
$gcc_cv_as != x
; then
13066 .p2align 2' > conftest.s
13067 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }
13074 gcc_cv_as_balign_and_p2align
=yes
13076 echo "configure: failed program was" >&5
13079 rm -f conftest.o conftest.s
13082 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13083 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13084 if test $gcc_cv_as_balign_and_p2align = yes; then
13086 cat >>confdefs.h
<<\_ACEOF
13087 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13092 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13093 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13094 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 gcc_cv_as_max_skip_p2align
=no
13098 if test $in_tree_gas = yes; then
13099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13100 then gcc_cv_as_max_skip_p2align
=yes
13102 elif test x
$gcc_cv_as != x
; then
13103 echo '.p2align 4,,7' > conftest.s
13104 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }
13111 gcc_cv_as_max_skip_p2align
=yes
13113 echo "configure: failed program was" >&5
13116 rm -f conftest.o conftest.s
13119 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13120 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13121 if test $gcc_cv_as_max_skip_p2align = yes; then
13123 cat >>confdefs.h
<<\_ACEOF
13124 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13129 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13130 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13131 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 gcc_cv_as_subsection_m1
=no
13135 if test $in_tree_gas = yes; then
13136 if test $in_tree_gas_is_elf = yes \
13137 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13138 then gcc_cv_as_subsection_m1
=yes
13140 elif test x
$gcc_cv_as != x
; then
13141 echo 'conftest_label1: .word 0
13143 conftest_label2: .word 0
13144 .previous' > conftest.s
13145 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }
13152 if test x
$gcc_cv_nm != x
; then
13153 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13154 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13155 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13157 else gcc_cv_as_subsection_m1
=yes
13159 rm -f conftest.nm1 conftest.nm2
13162 echo "configure: failed program was" >&5
13165 rm -f conftest.o conftest.s
13168 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13169 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13170 if test $gcc_cv_as_subsection_m1 = yes; then
13172 cat >>confdefs.h
<<\_ACEOF
13173 #define HAVE_GAS_SUBSECTION_ORDERING 1
13178 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13179 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13180 if test "${gcc_cv_as_weak+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 if test $in_tree_gas = yes; then
13185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13186 then gcc_cv_as_weak
=yes
13188 elif test x
$gcc_cv_as != x
; then
13189 echo ' .weak foobar' > conftest.s
13190 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }
13199 echo "configure: failed program was" >&5
13202 rm -f conftest.o conftest.s
13205 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13206 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13207 if test $gcc_cv_as_weak = yes; then
13209 cat >>confdefs.h
<<\_ACEOF
13210 #define HAVE_GAS_WEAK 1
13215 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13216 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13217 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 gcc_cv_as_nsubspa_comdat
=no
13221 if test $in_tree_gas = yes; then
13222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13223 then gcc_cv_as_nsubspa_comdat
=yes
13225 elif test x
$gcc_cv_as != x
; then
13226 echo ' .SPACE $TEXT$
13227 .NSUBSPA $CODE$,COMDAT' > conftest.s
13228 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; }
13235 gcc_cv_as_nsubspa_comdat
=yes
13237 echo "configure: failed program was" >&5
13240 rm -f conftest.o conftest.s
13243 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13244 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13245 if test $gcc_cv_as_nsubspa_comdat = yes; then
13247 cat >>confdefs.h
<<\_ACEOF
13248 #define HAVE_GAS_NSUBSPA_COMDAT 1
13253 # .hidden needs to be supported in both the assembler and the linker,
13254 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13255 # This is irritatingly difficult to feature test for; we have to check the
13256 # date string after the version number. If we've got an in-tree
13257 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13259 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13260 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13261 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13262 if test "${gcc_cv_as_hidden+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 gcc_cv_as_hidden
=no
13266 if test $in_tree_gas = yes; then
13267 if test $in_tree_gas_is_elf = yes \
13268 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13269 then gcc_cv_as_hidden
=yes
13271 elif test x
$gcc_cv_as != x
; then
13272 echo ' .hidden foobar
13273 foobar:' > conftest.s
13274 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }
13281 gcc_cv_as_hidden
=yes
13283 echo "configure: failed program was" >&5
13286 rm -f conftest.o conftest.s
13289 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13290 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13293 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13294 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13295 if test "${gcc_cv_ld_hidden+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 if test $in_tree_ld = yes ; then
13299 gcc_cv_ld_hidden
=no
13300 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 \
13301 && test $in_tree_ld_is_elf = yes; then
13302 gcc_cv_ld_hidden
=yes
13305 gcc_cv_ld_hidden
=yes
13306 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13307 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13308 ld_vers
=`echo $ld_ver | sed -n \
13309 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13310 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13311 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13312 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13313 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13314 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13315 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'`
13316 if test 0"$ld_date" -lt 20020404; then
13317 if test -n "$ld_date"; then
13318 # If there was date string, but was earlier than 2002-04-04, fail
13319 gcc_cv_ld_hidden
=no
13320 elif test -z "$ld_vers"; then
13321 # If there was no date string nor ld version number, something is wrong
13322 gcc_cv_ld_hidden
=no
13324 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13325 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13326 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13327 test -z "$ld_vers_patch" && ld_vers_patch
=0
13328 if test "$ld_vers_major" -lt 2; then
13329 gcc_cv_ld_hidden
=no
13330 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13331 gcc_cv_ld_hidden
="no"
13332 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13333 gcc_cv_ld_hidden
=no
13338 case "${target}" in
13339 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13340 gcc_cv_ld_hidden
=yes
13343 gcc_cv_ld_hidden
=no
13349 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13350 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13351 libgcc_visibility
=no
13353 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13354 libgcc_visibility
=yes
13356 cat >>confdefs.h
<<\_ACEOF
13357 #define HAVE_GAS_HIDDEN 1
13362 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13363 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13364 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13365 if test "${gcc_cv_as_leb128+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 gcc_cv_as_leb128
=no
13369 if test $in_tree_gas = yes; then
13370 if test $in_tree_gas_is_elf = yes \
13371 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13372 then gcc_cv_as_leb128
=yes
13374 elif test x
$gcc_cv_as != x
; then
13381 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }
13388 # GAS versions before 2.11 do not support uleb128,
13389 # despite appearing to.
13390 # ??? There exists an elf-specific test that will crash
13391 # the assembler. Perhaps it's better to figure out whether
13392 # arbitrary sections are supported and try the test.
13393 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13394 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13395 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13396 as_major
=`echo $as_ver | sed 's/\..*//'`
13397 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13398 if test $as_major -eq 2 && test $as_minor -lt 11
13400 else gcc_cv_as_leb128
=yes
13404 echo "configure: failed program was" >&5
13407 rm -f conftest.o conftest.s
13410 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13411 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13412 if test $gcc_cv_as_leb128 = yes; then
13414 cat >>confdefs.h
<<\_ACEOF
13415 #define HAVE_AS_LEB128 1
13420 # GAS versions up to and including 2.11.0 may mis-optimize
13422 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13423 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13424 if test "${gcc_cv_as_eh_frame+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 gcc_cv_as_eh_frame
=no
13428 if test $in_tree_gas = yes; then
13429 if test $in_tree_gas_is_elf = yes \
13430 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13431 then gcc_cv_as_eh_frame
=yes
13433 elif test x
$gcc_cv_as != x
; then
13440 .section .eh_frame,"aw",@progbits
13442 .4byte .LECIE1-.LSCIE1
13456 .4byte .LEFDE1-.LASFDE1
13458 .4byte .LASFDE1-__FRAME_BEGIN__
13465 .LEFDE1:' > conftest.s
13466 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }
13473 cat > conftest.lit
<<EOF
13474 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13475 0010 01000000 12000000 18000000 00000000 ................
13476 0020 08000000 04080000 0044 .........D
13478 cat > conftest.big
<<EOF
13479 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13480 0010 00000001 00000012 00000018 00000000 ................
13481 0020 00000008 04000000 0844 .........D
13483 # If the assembler didn't choke, and we can objdump,
13484 # and we got the correct data, then succeed.
13485 if test x
$gcc_cv_objdump != x \
13486 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13487 |
tail -3 > conftest.got \
13488 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13489 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13491 gcc_cv_as_eh_frame
=yes
13492 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 gcc_cv_as_eh_frame
=buggy
13500 # Uh oh, what do we do now?
13501 gcc_cv_as_eh_frame
=no
13504 echo "configure: failed program was" >&5
13507 rm -f conftest.o conftest.s
13510 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13511 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13514 if test $gcc_cv_as_eh_frame = buggy
; then
13516 cat >>confdefs.h
<<\_ACEOF
13517 #define USE_AS_TRADITIONAL_FORMAT 1
13522 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13523 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13524 if test "${gcc_cv_as_shf_merge+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 gcc_cv_as_shf_merge
=no
13528 if test $in_tree_gas = yes; then
13529 if test $in_tree_gas_is_elf = yes \
13530 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13531 then gcc_cv_as_shf_merge
=yes
13533 elif test x
$gcc_cv_as != x
; then
13534 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13535 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }
13542 gcc_cv_as_shf_merge
=yes
13544 echo "configure: failed program was" >&5
13547 rm -f conftest.o conftest.s
13550 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13551 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13553 if test $gcc_cv_as_shf_merge = no
; then
13554 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13555 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13556 if test "${gcc_cv_as_shf_merge+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 gcc_cv_as_shf_merge
=no
13560 if test $in_tree_gas = yes; then
13561 if test $in_tree_gas_is_elf = yes \
13562 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13563 then gcc_cv_as_shf_merge
=yes
13565 elif test x
$gcc_cv_as != x
; then
13566 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13567 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }
13574 gcc_cv_as_shf_merge
=yes
13576 echo "configure: failed program was" >&5
13579 rm -f conftest.o conftest.s
13582 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13583 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13587 cat >>confdefs.h
<<_ACEOF
13588 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13592 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13593 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13594 if test "${gcc_cv_as_comdat_group+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 gcc_cv_as_comdat_group
=no
13598 if test $in_tree_gas = yes; then
13599 if test $in_tree_gas_is_elf = yes \
13600 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13601 then gcc_cv_as_comdat_group
=yes
13603 elif test x
$gcc_cv_as != x
; then
13604 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13605 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }
13612 gcc_cv_as_comdat_group
=yes
13614 echo "configure: failed program was" >&5
13617 rm -f conftest.o conftest.s
13620 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13621 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13623 if test $gcc_cv_as_comdat_group = yes; then
13624 gcc_cv_as_comdat_group_percent
=no
13626 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13627 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13628 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 gcc_cv_as_comdat_group_percent
=no
13632 if test $in_tree_gas = yes; then
13633 if test $in_tree_gas_is_elf = yes \
13634 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13635 then gcc_cv_as_comdat_group_percent
=yes
13637 elif test x
$gcc_cv_as != x
; then
13638 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13639 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }
13646 gcc_cv_as_comdat_group_percent
=yes
13648 echo "configure: failed program was" >&5
13651 rm -f conftest.o conftest.s
13654 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13655 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13659 cat >>confdefs.h
<<_ACEOF
13660 #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`
13664 # Thread-local storage - the check is heavily parametrized.
13672 .section ".tdata","awT",@progbits
13675 ldq $27,__tls_get_addr($29) !literal!1
13676 lda $16,foo($29) !tlsgd!1
13677 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13678 ldq $27,__tls_get_addr($29) !literal!2
13679 lda $16,foo($29) !tlsldm!2
13680 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13681 ldq $1,foo($29) !gotdtprel
13682 ldah $2,foo($29) !dtprelhi
13683 lda $3,foo($2) !dtprello
13684 lda $4,foo($29) !dtprel
13685 ldq $1,foo($29) !gottprel
13686 ldah $2,foo($29) !tprelhi
13687 lda $3,foo($2) !tprello
13688 lda $4,foo($29) !tprel'
13691 tls_as_opt
=--fatal-warnings
13695 .section ".tdata","awT",@progbits
13699 leal foo@TLSGD(,%ebx,1), %eax
13700 leal foo@TLSLDM(%ebx), %eax
13701 leal foo@DTPOFF(%eax), %edx
13702 movl foo@GOTTPOFF(%ebx), %eax
13703 subl foo@GOTTPOFF(%ebx), %eax
13704 addl foo@GOTNTPOFF(%ebx), %eax
13705 movl foo@INDNTPOFF, %eax
13706 movl $foo@TPOFF, %eax
13707 subl $foo@TPOFF, %eax
13708 leal foo@NTPOFF(%ecx), %eax'
13711 tls_as_opt
=--fatal-warnings
13715 .section ".tdata","awT",@progbits
13719 leaq foo@TLSGD(%rip), %rdi
13720 leaq foo@TLSLD(%rip), %rdi
13721 leaq foo@DTPOFF(%rax), %rdx
13722 movq foo@GOTTPOFF(%rip), %rax
13723 movq $foo@TPOFF, %rax'
13726 tls_as_opt
=--fatal-warnings
13730 .section ".tdata","awT",@progbits
13733 addl r16 = @ltoff(@dtpmod(foo#)), gp
13734 addl r17 = @ltoff(@dtprel(foo#)), gp
13735 addl r18 = @ltoff(@tprel(foo#)), gp
13736 addl r19 = @dtprel(foo#), gp
13737 adds r21 = @dtprel(foo#), r13
13738 movl r23 = @dtprel(foo#)
13739 addl r20 = @tprel(foo#), gp
13740 adds r22 = @tprel(foo#), r13
13741 movl r24 = @tprel(foo#)'
13744 tls_as_opt
=--fatal-warnings
13748 .section ".tdata","awT",@progbits
13756 addi 3,31,ld0@got@tlsgd
13758 addi 3,31,x1@got@tlsld
13761 addis 9,3,x2@dtprel@ha
13762 addi 9,9,x2@dtprel@l
13763 lwz 9,x3@got@tprel(31)
13766 addis 9,2,x2@tprel@ha
13767 addi 9,9,x2@tprel@l'
13770 tls_as_opt
="-a32 --fatal-warnings"
13774 .section ".tdata","awT",@progbits
13782 addi 3,2,ld0@got@tlsgd
13788 addi 3,2,x1@got@tlsld
13794 addis 9,3,x2@dtprel@ha
13795 addi 9,9,x2@dtprel@l
13798 ld 9,x3@got@dtprel(2)
13804 tls_as_opt
="-a64 --fatal-warnings"
13808 .section ".tdata","awT",@progbits
13815 .long foo@GOTNTPOFF
13816 .long foo@INDNTPOFF
13817 l %r1,foo@GOTNTPOFF(%r12)
13818 l %r1,0(%r1):tls_load:foo
13819 bas %r14,0(%r1,%r13):tls_gdcall:foo
13820 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13823 tls_as_opt
="-m31 --fatal-warnings"
13827 .section ".tdata","awT",@progbits
13834 .quad foo@GOTNTPOFF
13835 lg %r1,foo@GOTNTPOFF(%r12)
13836 larl %r1,foo@INDNTPOFF
13837 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13838 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13841 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13843 sh-
*-* | sh
[34]-*-*)
13845 .section ".tdata","awT",@progbits
13855 tls_as_opt
=--fatal-warnings
13859 sparc
*-sun-solaris2.
*)
13866 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13868 .section ".tdata",#alloc,#write,#tls
13871 sethi %tgd_hi22(foo), %o0
13872 add %o0, %tgd_lo10(foo), %o1
13873 add %l7, %o1, %o0, %tgd_add(foo)
13874 call __tls_get_addr, %tgd_call(foo)
13875 sethi %tldm_hi22(foo), %l1
13876 add %l1, %tldm_lo10(foo), %l2
13877 add %l7, %l2, %o0, %tldm_add(foo)
13878 call __tls_get_addr, %tldm_call(foo)
13879 sethi %tldo_hix22(foo), %l3
13880 xor %l3, %tldo_lox10(foo), %l4
13881 add %o0, %l4, %l5, %tldo_add(foo)
13882 sethi %tie_hi22(foo), %o3
13883 add %o3, %tie_lo10(foo), %o3
13884 ld [%l7 + %o3], %o2, %tie_ld(foo)
13885 add %g7, %o2, %o4, %tie_add(foo)
13886 sethi %tle_hix22(foo), %l1
13887 xor %l1, %tle_lox10(foo), %o5
13888 ld [%g7 + %o5], %o1'
13893 .section ".tdata","awT",@progbits
13896 sethi %tgd_hi22(foo), %o0
13897 add %o0, %tgd_lo10(foo), %o1
13898 add %l7, %o1, %o0, %tgd_add(foo)
13899 call __tls_get_addr, %tgd_call(foo)
13900 sethi %tldm_hi22(foo), %l1
13901 add %l1, %tldm_lo10(foo), %l2
13902 add %l7, %l2, %o0, %tldm_add(foo)
13903 call __tls_get_addr, %tldm_call(foo)
13904 sethi %tldo_hix22(foo), %l3
13905 xor %l3, %tldo_lox10(foo), %l4
13906 add %o0, %l4, %l5, %tldo_add(foo)
13907 sethi %tie_hi22(foo), %o3
13908 add %o3, %tie_lo10(foo), %o3
13909 ld [%l7 + %o3], %o2, %tie_ld(foo)
13910 add %g7, %o2, %o4, %tie_add(foo)
13911 sethi %tle_hix22(foo), %l1
13912 xor %l1, %tle_lox10(foo), %o5
13913 ld [%g7 + %o5], %o1'
13916 tls_as_opt
="-32 --fatal-warnings"
13920 if test -z "$tls_first_major"; then
13921 : # If we don't have a check, assume no support.
13923 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13924 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13925 if test "${gcc_cv_as_tls+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 if test $in_tree_gas = yes; then
13930 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13931 then gcc_cv_as_tls
=yes
13933 elif test x
$gcc_cv_as != x
; then
13934 echo "$conftest_s" > conftest.s
13935 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }
13944 echo "configure: failed program was" >&5
13947 rm -f conftest.o conftest.s
13950 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13951 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13952 if test $gcc_cv_as_tls = yes; then
13954 cat >>confdefs.h
<<\_ACEOF
13955 #define HAVE_AS_TLS 1
13961 # Target-specific assembler checks.
13963 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13964 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13965 gcc_cv_ld_static_dynamic
=no
13966 if test $in_tree_ld = yes ; then
13967 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13968 gcc_cv_ld_static_dynamic
=yes
13970 elif test x
$gcc_cv_ld != x
; then
13971 # Check if linker supports -Bstatic/-Bdynamic option
13972 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
13973 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
13974 gcc_cv_ld_static_dynamic
=yes
13977 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
13979 cat >>confdefs.h
<<\_ACEOF
13980 #define HAVE_LD_STATIC_DYNAMIC 1
13984 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13985 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13987 if test x
"$demangler_in_ld" = xyes
; then
13988 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13989 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13990 gcc_cv_ld_demangle
=no
13991 if test $in_tree_ld = yes; then
13992 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 \
13993 gcc_cv_ld_demangle
=yes
13995 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
13996 # Check if the GNU linker supports --demangle option
13997 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
13998 gcc_cv_ld_demangle
=yes
14001 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14003 cat >>confdefs.h
<<\_ACEOF
14004 #define HAVE_LD_DEMANGLE 1
14008 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14009 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14013 # All TARGET_ABI_OSF targets.
14014 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14015 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14016 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14017 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 gcc_cv_as_alpha_explicit_relocs
=no
14021 if test $in_tree_gas = yes; then
14022 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14023 then gcc_cv_as_alpha_explicit_relocs
=yes
14025 elif test x
$gcc_cv_as != x
; then
14026 echo ' .set nomacro
14028 extbl $3, $2, $3 !lituse_bytoff!1
14029 ldq $2, a($29) !literal!1
14030 ldq $4, b($29) !literal!2
14031 ldq_u $3, 0($2) !lituse_base!1
14032 ldq $27, f($29) !literal!5
14033 jsr $26, ($27), f !lituse_jsr!5
14034 ldah $29, 0($26) !gpdisp!3
14035 lda $0, c($29) !gprel
14036 ldah $1, d($29) !gprelhigh
14037 lda $1, d($1) !gprellow
14038 lda $29, 0($29) !gpdisp!3' > conftest.s
14039 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }
14046 gcc_cv_as_alpha_explicit_relocs
=yes
14048 echo "configure: failed program was" >&5
14051 rm -f conftest.o conftest.s
14054 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14055 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14056 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14058 cat >>confdefs.h
<<\_ACEOF
14059 #define HAVE_AS_EXPLICIT_RELOCS 1
14066 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14067 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14068 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 gcc_cv_as_cris_no_mul_bug
=no
14072 if test $in_tree_gas = yes; then
14073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14074 then gcc_cv_as_cris_no_mul_bug
=yes
14076 elif test x
$gcc_cv_as != x
; then
14077 echo '.text' > conftest.s
14078 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }
14085 gcc_cv_as_cris_no_mul_bug
=yes
14087 echo "configure: failed program was" >&5
14090 rm -f conftest.o conftest.s
14093 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14094 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14095 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14097 cat >>confdefs.h
<<\_ACEOF
14098 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14105 echo "$as_me:$LINENO: checking assembler for .register" >&5
14106 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14107 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 gcc_cv_as_sparc_register_op
=no
14111 if test x
$gcc_cv_as != x
; then
14112 echo '.register %g2, #scratch' > conftest.s
14113 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }
14120 gcc_cv_as_sparc_register_op
=yes
14122 echo "configure: failed program was" >&5
14125 rm -f conftest.o conftest.s
14128 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14129 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14130 if test $gcc_cv_as_sparc_register_op = yes; then
14132 cat >>confdefs.h
<<\_ACEOF
14133 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14138 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14139 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14140 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 gcc_cv_as_sparc_relax
=no
14144 if test x
$gcc_cv_as != x
; then
14145 echo '.text' > conftest.s
14146 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }
14153 gcc_cv_as_sparc_relax
=yes
14155 echo "configure: failed program was" >&5
14158 rm -f conftest.o conftest.s
14161 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14162 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14163 if test $gcc_cv_as_sparc_relax = yes; then
14165 cat >>confdefs.h
<<\_ACEOF
14166 #define HAVE_AS_RELAX_OPTION 1
14171 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14172 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14173 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 gcc_cv_as_sparc_ua_pcrel
=no
14177 if test x
$gcc_cv_as != x
; then
14184 .uaword %r_disp32(foo)' > conftest.s
14185 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }
14192 if test x
$gcc_cv_ld != x \
14193 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14194 gcc_cv_as_sparc_ua_pcrel
=yes
14198 echo "configure: failed program was" >&5
14201 rm -f conftest.o conftest.s
14204 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14205 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14206 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14208 cat >>confdefs.h
<<\_ACEOF
14209 #define HAVE_AS_SPARC_UA_PCREL 1
14213 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14214 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14215 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14219 if test x
$gcc_cv_as != x
; then
14223 .uaword %r_disp32(foo)
14224 .byte 0x32, 0x33, 0x34
14228 .skip 4' > conftest.s
14229 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }
14236 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14237 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14238 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14239 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14240 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14241 |
grep 'DISP32' > /dev
/null
2>&1; then
14244 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14249 echo "configure: failed program was" >&5
14252 rm -f conftest.o conftest.s
14255 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14256 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14257 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14259 cat >>confdefs.h
<<\_ACEOF
14260 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14265 fi # unaligned pcrel relocs
14267 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14268 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14269 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 gcc_cv_as_sparc_offsetable_lo10
=no
14273 if test x
$gcc_cv_as != x
; then
14275 or %g1, %lo(ab) + 12, %g1
14276 or %g1, %lo(ab + 12), %g1' > conftest.s
14277 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }
14284 if test x
$gcc_cv_objdump != x \
14285 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14286 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14287 gcc_cv_as_sparc_offsetable_lo10
=yes
14290 echo "configure: failed program was" >&5
14293 rm -f conftest.o conftest.s
14296 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14297 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14298 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14300 cat >>confdefs.h
<<\_ACEOF
14301 #define HAVE_AS_OFFSETABLE_LO10 1
14307 i
[34567]86-*-* | x86_64-
*-*)
14309 cygwin
* | pe | mingw32
*)
14310 # Used for DWARF 2 in PE
14311 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14312 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14313 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 gcc_cv_as_ix86_pe_secrel32
=no
14317 if test $in_tree_gas = yes; then
14318 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14319 then gcc_cv_as_ix86_pe_secrel32
=yes
14321 elif test x
$gcc_cv_as != x
; then
14325 .secrel32 foo' > conftest.s
14326 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }
14333 if test x
$gcc_cv_ld != x \
14334 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14335 gcc_cv_as_ix86_pe_secrel32
=yes
14339 echo "configure: failed program was" >&5
14342 rm -f conftest.o conftest.s
14345 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14346 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14347 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14349 cat >>confdefs.h
<<\_ACEOF
14350 #define HAVE_GAS_PE_SECREL32_RELOC 1
14357 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14358 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14359 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 gcc_cv_as_ix86_filds_fists
=no
14363 if test $in_tree_gas = yes; then
14364 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14365 then gcc_cv_as_ix86_filds_fists
=yes
14367 elif test x
$gcc_cv_as != x
; then
14368 echo 'filds mem; fists mem' > conftest.s
14369 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }
14376 gcc_cv_as_ix86_filds_fists
=yes
14378 echo "configure: failed program was" >&5
14381 rm -f conftest.o conftest.s
14384 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14385 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14386 if test $gcc_cv_as_ix86_filds_fists = yes; then
14388 cat >>confdefs.h
<<\_ACEOF
14389 #define HAVE_GAS_FILDS_FISTS 1
14394 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14395 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14396 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14399 gcc_cv_as_ix86_cmov_sun_syntax
=no
14400 if test x
$gcc_cv_as != x
; then
14401 echo 'cmovl.l %edx, %eax' > conftest.s
14402 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }
14409 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14411 echo "configure: failed program was" >&5
14414 rm -f conftest.o conftest.s
14417 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14418 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14419 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14421 cat >>confdefs.h
<<\_ACEOF
14422 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14427 # This one is used unconditionally by i386.[ch]; it is to be defined
14428 # to 1 if the feature is present, 0 otherwise.
14429 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14430 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14431 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 gcc_cv_as_ix86_gotoff_in_data
=no
14435 if test $in_tree_gas = yes; then
14436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14437 then gcc_cv_as_ix86_gotoff_in_data
=yes
14439 elif test x
$gcc_cv_as != x
; then
14444 .long .L0@GOTOFF' > conftest.s
14445 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }
14452 gcc_cv_as_ix86_gotoff_in_data
=yes
14454 echo "configure: failed program was" >&5
14457 rm -f conftest.o conftest.s
14460 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14461 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14464 cat >>confdefs.h
<<_ACEOF
14465 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14471 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14472 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14473 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14477 if test $in_tree_gas = yes; then
14478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14479 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14481 elif test x
$gcc_cv_as != x
; then
14483 addl r15 = @ltoffx(x#), gp
14485 ld8.mov r16 = [r15], x#' > conftest.s
14486 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }
14493 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14495 echo "configure: failed program was" >&5
14498 rm -f conftest.o conftest.s
14501 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14502 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14503 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14505 cat >>confdefs.h
<<\_ACEOF
14506 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14515 *-*-aix*) conftest_s
=' .csect .text[PR]
14518 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14519 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14520 if test "${gcc_cv_as_machine_directive+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 gcc_cv_as_machine_directive
=no
14524 if test x
$gcc_cv_as != x
; then
14525 echo ' .machine ppc7400' > conftest.s
14526 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }
14533 gcc_cv_as_machine_directive
=yes
14535 echo "configure: failed program was" >&5
14538 rm -f conftest.o conftest.s
14541 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14542 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14544 if test x
$gcc_cv_as_machine_directive != xyes
; then
14545 echo "*** This target requires an assembler supporting \".machine\"" >&2
14546 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14547 test x
$build = x
$target && exit 1
14551 *) conftest_s
=' .machine power4
14556 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14557 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14558 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 gcc_cv_as_powerpc_mfcrf
=no
14562 if test $in_tree_gas = yes; then
14563 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14564 then gcc_cv_as_powerpc_mfcrf
=yes
14566 elif test x
$gcc_cv_as != x
; then
14567 echo "$conftest_s" > conftest.s
14568 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }
14575 gcc_cv_as_powerpc_mfcrf
=yes
14577 echo "configure: failed program was" >&5
14580 rm -f conftest.o conftest.s
14583 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14584 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14585 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14587 cat >>confdefs.h
<<\_ACEOF
14588 #define HAVE_AS_MFCRF 1
14595 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14596 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14597 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 gcc_cv_as_mips_explicit_relocs
=no
14601 if test $in_tree_gas = yes; then
14602 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14603 then gcc_cv_as_mips_explicit_relocs
=yes
14605 elif test x
$gcc_cv_as != x
; then
14606 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14607 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }
14614 gcc_cv_as_mips_explicit_relocs
=yes
14616 echo "configure: failed program was" >&5
14619 rm -f conftest.o conftest.s
14622 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14623 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14624 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14625 if test x
$target_cpu_default = x
14626 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14627 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14631 if test x
$gas_flag = xyes \
14632 ||
test x
"$host" != x
"$build" \
14633 ||
test ! -x "$gcc_cv_as" \
14634 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14637 echo "*** This configuration requires the GNU assembler" >&2
14642 # ??? Not all targets support dwarf2 debug_line, even within a version
14643 # of gas. Moreover, we need to emit a valid instruction to trigger any
14644 # info to the output file. So, as supported targets are added to gas 2.11,
14645 # add some instruction here to (also) show we expect this might work.
14646 # ??? Once 2.11 is released, probably need to add first known working
14647 # version to the per-target configury.
14649 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14650 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14651 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14654 ia64
*-*-* | s390
*-*-*)
14661 if test x
"$insn" != x
; then
14663 .file 1 \"conftest.s\"
14666 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14667 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14668 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 gcc_cv_as_dwarf2_debug_line
=no
14672 if test $in_tree_gas = yes; then
14673 if test $in_tree_gas_is_elf = yes \
14674 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14675 then gcc_cv_as_dwarf2_debug_line
=yes
14677 elif test x
$gcc_cv_as != x
; then
14678 echo "$conftest_s" > conftest.s
14679 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }
14686 if test x
$gcc_cv_objdump != x \
14687 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14688 |
grep debug_line
> /dev
/null
2>&1; then
14689 gcc_cv_as_dwarf2_debug_line
=yes
14692 echo "configure: failed program was" >&5
14695 rm -f conftest.o conftest.s
14698 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14699 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14702 # The .debug_line file table must be in the exact order that
14703 # we specified the files, since these indices are also used
14704 # by DW_AT_decl_file. Approximate this test by testing if
14705 # the assembler bitches if the same index is assigned twice.
14706 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14707 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14708 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 gcc_cv_as_dwarf2_file_buggy
=no
14712 if test x
$gcc_cv_as != x
; then
14713 echo ' .file 1 "foo.s"
14714 .file 1 "bar.s"' > conftest.s
14715 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }
14722 gcc_cv_as_dwarf2_file_buggy
=yes
14724 echo "configure: failed program was" >&5
14727 rm -f conftest.o conftest.s
14730 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14731 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14734 if test $gcc_cv_as_dwarf2_debug_line = yes \
14735 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14737 cat >>confdefs.h
<<\_ACEOF
14738 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14743 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14744 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14745 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 gcc_cv_as_gdwarf2_flag
=no
14749 if test $in_tree_gas = yes; then
14750 if test $in_tree_gas_is_elf = yes \
14751 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14752 then gcc_cv_as_gdwarf2_flag
=yes
14754 elif test x
$gcc_cv_as != x
; then
14755 echo "$insn" > conftest.s
14756 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }
14763 gcc_cv_as_gdwarf2_flag
=yes
14765 echo "configure: failed program was" >&5
14768 rm -f conftest.o conftest.s
14771 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14772 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14773 if test $gcc_cv_as_gdwarf2_flag = yes; then
14775 cat >>confdefs.h
<<\_ACEOF
14776 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14781 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14782 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14783 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 gcc_cv_as_gstabs_flag
=no
14787 if test $in_tree_gas = yes; then
14788 if test $in_tree_gas_is_elf = yes \
14789 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14790 then gcc_cv_as_gstabs_flag
=yes
14792 elif test x
$gcc_cv_as != x
; then
14793 echo "$insn" > conftest.s
14794 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }
14801 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14802 # and warns about it, but still exits successfully. So check for
14804 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }
14811 else gcc_cv_as_gstabs_flag
=yes
14814 echo "configure: failed program was" >&5
14817 rm -f conftest.o conftest.s
14820 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14821 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14822 if test $gcc_cv_as_gstabs_flag = yes; then
14824 cat >>confdefs.h
<<\_ACEOF
14825 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14831 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14832 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14833 gcc_cv_ld_ro_rw_mix
=unknown
14834 if test $in_tree_ld = yes ; then
14835 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 \
14836 && test $in_tree_ld_is_elf = yes; then
14837 gcc_cv_ld_ro_rw_mix
=read-write
14839 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14840 echo '.section myfoosect, "a"' > conftest1.s
14841 echo '.section myfoosect, "aw"' > conftest2.s
14842 echo '.byte 1' >> conftest2.s
14843 echo '.section myfoosect, "a"' > conftest3.s
14844 echo '.byte 0' >> conftest3.s
14845 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14846 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14847 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14848 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14849 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14850 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14851 | sed -e '/myfoosect/!d' -e N`
14852 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14853 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14854 gcc_cv_ld_ro_rw_mix
=read-only
14856 gcc_cv_ld_ro_rw_mix
=read-write
14860 rm -f conftest.
* conftest
[123].
*
14862 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
14864 cat >>confdefs.h
<<\_ACEOF
14865 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14869 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14870 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14872 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14873 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14874 gcc_cv_ld_eh_frame_hdr
=no
14875 if test $in_tree_ld = yes ; then
14876 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 \
14877 && test $in_tree_ld_is_elf = yes; then
14878 gcc_cv_ld_eh_frame_hdr
=yes
14880 elif test x
$gcc_cv_ld != x
; then
14881 # Check if linker supports --eh-frame-hdr option
14882 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
14883 gcc_cv_ld_eh_frame_hdr
=yes
14886 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
14888 cat >>confdefs.h
<<\_ACEOF
14889 #define HAVE_LD_EH_FRAME_HDR 1
14893 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14894 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14896 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14897 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14899 if test $in_tree_ld = yes ; then
14900 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 \
14901 && test $in_tree_ld_is_elf = yes; then
14904 elif test x
$gcc_cv_ld != x
; then
14905 # Check if linker supports -pie option
14906 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
14910 if test x
"$gcc_cv_ld_pie" = xyes
; then
14912 cat >>confdefs.h
<<\_ACEOF
14913 #define HAVE_LD_PIE 1
14917 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14918 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14924 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14925 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14926 if test "${gcc_cv_ld_as_needed+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 gcc_cv_ld_as_needed
=no
14930 if test $in_tree_ld = yes ; then
14931 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 \
14932 && test $in_tree_ld_is_elf = yes; then
14933 gcc_cv_ld_as_needed
=yes
14935 elif test x
$gcc_cv_ld != x
; then
14936 # Check if linker supports --as-needed and --no-as-needed options
14937 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
14938 gcc_cv_ld_as_needed
=yes
14943 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14944 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14945 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
14947 cat >>confdefs.h
<<\_ACEOF
14948 #define HAVE_LD_AS_NEEDED 1
14954 powerpc64
*-*-linux*)
14955 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14956 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14957 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 gcc_cv_ld_no_dot_syms
=no
14961 if test $in_tree_ld = yes ; then
14962 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
14963 gcc_cv_ld_no_dot_syms
=yes
14965 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
14966 cat > conftest1.s
<<EOF
14970 cat > conftest2.s
<<EOF
14971 .section ".opd","aw"
14974 .type foo,@function
14976 .quad .LEfoo,.TOC.@tocbase,0
14982 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14983 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14984 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
14985 gcc_cv_ld_no_dot_syms
=yes
14987 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14991 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14992 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14993 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
14995 cat >>confdefs.h
<<\_ACEOF
14996 #define HAVE_LD_NO_DOT_SYMS 1
15003 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15004 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15006 cat >>confdefs.h
<<_ACEOF
15007 #define PREFIX_INCLUDE_DIR "$prefix/include"
15012 # Find out what GC implementation we want, or may, use.
15014 # Check whether --with-gc or --without-gc was given.
15015 if test "${with_gc+set}" = set; then
15022 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15023 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15024 { (exit 1); exit 1; }; }
15031 echo "Using $GGC for garbage collection."
15033 # Use the system's zlib library.
15035 zlibinc
="-I\$(srcdir)/../zlib"
15037 # Check whether --with-system-zlib or --without-system-zlib was given.
15038 if test "${with_system_zlib+set}" = set; then
15039 withval
="$with_system_zlib"
15048 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15049 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15050 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15051 if test "${enable_maintainer_mode+set}" = set; then
15052 enableval
="$enable_maintainer_mode"
15053 maintainer_mode
=$enableval
15058 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15059 echo "${ECHO_T}$maintainer_mode" >&6
15061 if test "$maintainer_mode" = "yes"; then
15071 # Make empty files to contain the specs and options for each language.
15072 # Then add #include lines to for a compiler that has specs and/or options.
15077 for subdir
in .
$subdirs
15079 if test -f $srcdir/$subdir/lang.opt
; then
15080 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15082 if test -f $srcdir/$subdir/lang-specs.h
; then
15083 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15085 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15086 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15090 # These (without "all_") are set in each config-lang.in.
15091 # `language' must be a single word so is spelled singularly.
15093 all_boot_languages
=
15096 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15097 # List of language makefile fragments.
15098 all_lang_makefrags
=
15099 # List of language subdirectory makefiles. Deprecated.
15100 all_lang_makefiles
=
15101 # Files for gengtype
15102 all_gtfiles
="$target_gtfiles"
15103 # Files for gengtype with language
15104 all_gtfiles_files_langs
=
15105 all_gtfiles_files_files
=
15107 # Add the language fragments.
15108 # Languages are added via two mechanisms. Some information must be
15109 # recorded in makefile variables, these are defined in config-lang.in.
15110 # We accumulate them and plug them into the main Makefile.
15111 # The other mechanism is a set of hooks for each of the main targets
15112 # like `clean', `install', etc.
15114 language_hooks
="Make-hooks"
15124 .
${srcdir}/$s/config-lang.
in
15125 if test "x$language" = x
15127 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15130 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15131 if test -f ${srcdir}/$s/Makefile.
in
15132 then all_lang_makefiles
="$s/Makefile"
15134 all_languages
="$all_languages $language"
15135 if test "x$boot_language" = xyes
15137 all_boot_languages
="$all_boot_languages $language"
15139 all_compilers
="$all_compilers $compilers"
15140 all_stagestuff
="$all_stagestuff $stagestuff"
15141 all_outputs
="$all_outputs $outputs"
15142 all_gtfiles
="$all_gtfiles $gtfiles"
15145 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15146 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15150 # Pick up gtfiles for c
15153 .
${srcdir}/c-config-lang.
in
15154 all_gtfiles
="$all_gtfiles $gtfiles"
15157 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15158 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15162 for language
in $all_languages
15164 check_languages
="$check_languages check-$language"
15167 # We link each language in with a set of hooks, reached indirectly via
15172 target_list
="all.build all.cross start.encap rest.encap tags \
15173 install-normal install-common install-man \
15174 uninstall info man srcextra srcman srcinfo \
15175 mostlyclean clean distclean maintainer-clean \
15176 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15177 for t
in $target_list
15180 for lang
in $all_languages
15184 echo "lang.$t: $x" >> Make-hooks
15193 echo "dir ." > .gdbinit
15194 echo "dir ${srcdir}" >> .gdbinit
15195 if test x
$gdb_needs_out_file_path = xyes
15197 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15199 if test "x$subdirs" != x
; then
15202 echo "dir ${srcdir}/$s" >> .gdbinit
15205 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15207 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15208 # absolute path for gcc_tooldir based on inserting the number of up-directory
15209 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15210 # $(libsubdir)/@(unlibsubdir) based path.
15211 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15212 # make and thus we'd get different behavior depending on where we built the
15214 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15215 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15217 # An explanation of the sed strings:
15218 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15219 # -e 's|/$||' match a trailing forward slash and eliminates it
15220 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15221 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15223 # (*) Note this pattern overwrites the first character of the string
15224 # with a forward slash if one is not already present. This is not a
15225 # problem because the exact names of the sub-directories concerned is
15226 # unimportant, just the number of them matters.
15228 # The practical upshot of these patterns is like this:
15230 # prefix exec_prefix result
15231 # ------ ----------- ------
15232 # /foo /foo/bar ../
15233 # /foo/ /foo/bar ../
15234 # /foo /foo/bar/ ../
15235 # /foo/ /foo/bar/ ../
15236 # /foo /foo/bar/ugg ../../
15239 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15244 # Find a directory in which to install a shared libgcc.
15246 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15247 if test "${enable_version_specific_runtime_libs+set}" = set; then
15248 enableval
="$enable_version_specific_runtime_libs"
15253 # Check whether --with-slibdir or --without-slibdir was given.
15254 if test "${with_slibdir+set}" = set; then
15255 withval
="$with_slibdir"
15256 slibdir
="$with_slibdir"
15258 if test "${enable_version_specific_runtime_libs+set}" = set; then
15259 slibdir
='$(libsubdir)'
15260 elif test "$host" != "$target"; then
15261 slibdir
='$(build_tooldir)/lib'
15263 slibdir
='$(libdir)'
15268 objdir
=`${PWDCMD-pwd}`
15271 # Substitute configuration variables
15336 if test x
"$SET_GCC_LIB_PATH_CMD" != x
; then
15337 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15339 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15341 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15342 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15343 set_gcc_lib_path
="export $set_gcc_lib_path"
15351 if test x
${build} = x
${host} ; then
15352 if test x
${host} = x
${target} ; then
15353 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15355 echo "Links are now set up to build a cross-compiler" 1>&2
15356 echo " from ${host} to ${target}." 1>&2
15359 if test x
${host} = x
${target} ; then
15360 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15361 echo " for ${target}." 1>&2
15363 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15364 echo " from ${host} to ${target}." 1>&2
15371 # Configure the subdirectories
15372 # AC_CONFIG_SUBDIRS($subdirs)
15374 # Create the Makefile
15375 # and configure language subdirectories
15376 ac_config_files
="$ac_config_files $all_outputs"
15379 ac_config_commands
="$ac_config_commands default"
15381 cat >confcache
<<\_ACEOF
15382 # This file is a shell script that caches the results of configure
15383 # tests run on this system so they can be shared between configure
15384 # scripts and configure runs, see configure's option --config-cache.
15385 # It is not useful on other systems. If it contains results you don't
15386 # want to keep, you may remove or edit it.
15388 # config.status only pays attention to the cache file if you give it
15389 # the --recheck option to rerun configure.
15391 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15392 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15393 # following values.
15397 # The following way of writing the cache mishandles newlines in values,
15398 # but we know of no workaround that is simple, portable, and efficient.
15399 # So, don't put newlines in cache variables' values.
15400 # Ultrix sh set writes to stderr and can't be redirected directly,
15401 # and sets the high bit in the cache file unless we assign to the vars.
15404 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15406 # `set' does not quote correctly, so add quotes (double-quote
15407 # substitution turns \\\\ into \\, and sed turns \\ into \).
15410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15413 # `set' quotes correctly as required by POSIX, so do not add quotes.
15415 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15424 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15426 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15427 if test -w $cache_file; then
15428 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15429 cat confcache
>$cache_file
15431 echo "not updating unwritable cache $cache_file"
15436 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15437 # Let make expand exec_prefix.
15438 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15440 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15441 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15442 # trailing colons and then remove the whole line if VPATH becomes empty
15443 # (actually we leave an empty line to preserve line numbers).
15444 if test "x$srcdir" = x.
; then
15445 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15446 s/:*\$(srcdir):*/:/;
15447 s/:*\${srcdir}:*/:/;
15449 s/^\([^=]*=[ ]*\):*/\1/;
15455 DEFS
=-DHAVE_CONFIG_H
15459 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15460 # 1. Remove the extension, and $U if already installed.
15461 ac_i
=`echo "$ac_i" |
15462 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15464 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15465 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15467 LIBOBJS
=$ac_libobjs
15469 LTLIBOBJS
=$ac_ltlibobjs
15473 : ${CONFIG_STATUS=./config.status}
15474 ac_clean_files_save
=$ac_clean_files
15475 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15476 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15477 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15478 cat >$CONFIG_STATUS <<_ACEOF
15480 # Generated by $as_me.
15481 # Run this file to recreate the current configuration.
15482 # Compiler output produced by configure, useful for debugging
15483 # configure, is in config.log if it exists.
15486 ac_cs_recheck=false
15488 SHELL=\${CONFIG_SHELL-$SHELL}
15491 cat >>$CONFIG_STATUS <<\_ACEOF
15492 ## --------------------- ##
15493 ## M4sh Initialization. ##
15494 ## --------------------- ##
15496 # Be Bourne compatible
15497 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15500 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15501 # is contrary to our usage. Disable this feature.
15502 alias -g '${1+"$@"}'='"$@"'
15503 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15506 DUALCASE
=1; export DUALCASE
# for MKS sh
15508 # Support unset when possible.
15509 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15516 # Work around bugs in pre-3.0 UWIN ksh.
15517 $as_unset ENV MAIL MAILPATH
15524 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15525 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15526 LC_TELEPHONE LC_TIME
15528 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15529 eval $as_var=C
; export $as_var
15535 # Required to use basename.
15536 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15542 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15543 as_basename
=basename
15549 # Name of the executable.
15550 as_me
=`$as_basename "$0" ||
15551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15552 X"$0" : 'X\(//\)$' \| \
15553 X"$0" : 'X\(/\)$' \| \
15554 . : '\(.\)' 2>/dev/null ||
15556 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15557 /^X\/\(\/\/\)$/{ s//\1/; q; }
15558 /^X\/\(\/\).*/{ s//\1/; q; }
15562 # PATH needs CR, and LINENO needs CR and PATH.
15563 # Avoid depending upon Character Ranges.
15564 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15565 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15566 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15567 as_cr_digits
='0123456789'
15568 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15570 # The user is always right.
15571 if test "${PATH_SEPARATOR+set}" != set; then
15572 echo "#! /bin/sh" >conf$$.sh
15573 echo "exit 0" >>conf$$.sh
15575 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15584 as_lineno_1
=$LINENO
15585 as_lineno_2
=$LINENO
15586 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15587 test "x$as_lineno_1" != "x$as_lineno_2" &&
15588 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15589 # Find who we are. Look in the path if we contain no path at all
15592 *[\\/]* ) as_myself
=$0 ;;
15593 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15594 for as_dir
in $PATH
15597 test -z "$as_dir" && as_dir
=.
15598 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15603 # We did not find ourselves, most probably we were run as `sh COMMAND'
15604 # in which case we are not to be found in the path.
15605 if test "x$as_myself" = x
; then
15608 if test ! -f "$as_myself"; then
15609 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15610 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15611 { (exit 1); exit 1; }; }
15613 case $CONFIG_SHELL in
15615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15616 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15619 test -z "$as_dir" && as_dir
=.
15620 for as_base
in sh bash ksh sh5
; do
15623 if ("$as_dir/$as_base" -c '
15624 as_lineno_1=$LINENO
15625 as_lineno_2=$LINENO
15626 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15627 test "x$as_lineno_1" != "x$as_lineno_2" &&
15628 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15629 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15630 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15631 CONFIG_SHELL
=$as_dir/$as_base
15632 export CONFIG_SHELL
15633 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15641 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15642 # uniformly replaced by the line number. The first 'sed' inserts a
15643 # line-number line before each line; the second 'sed' does the real
15644 # work. The second script uses 'N' to pair each line-number line
15645 # with the numbered line, and appends trailing '-' during
15646 # substitution so that $LINENO is not a special case at line end.
15647 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15648 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15649 sed '=' <$as_myself |
15654 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15657 s,^['$as_cr_digits']*\n,,
15658 ' >$as_me.lineno
&&
15659 chmod +x
$as_me.lineno ||
15660 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15661 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15662 { (exit 1); exit 1; }; }
15664 # Don't try to exec as it changes $[0], causing all sort of problems
15665 # (the dirname of $[0] is not the place where we might find the
15666 # original and so on. Autoconf is especially sensible to this).
15668 # Exit status is that of the last command.
15673 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15674 *c
*,-n*) ECHO_N
= ECHO_C
='
15676 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15677 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15680 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15686 rm -f conf$$ conf$$.exe conf$$.
file
15688 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15689 # We could just check for DJGPP; but this test a) works b) is more generic
15690 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15691 if test -f conf$$.exe
; then
15692 # Don't use ln at all; we don't have any links
15697 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15702 rm -f conf$$ conf$$.exe conf$$.
file
15704 if mkdir
-p .
2>/dev
/null
; then
15707 test -d .
/-p && rmdir .
/-p
15711 as_executable_p
="test -f"
15713 # Sed expression to map a string onto a valid CPP name.
15714 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15716 # Sed expression to map a string onto a valid variable name.
15717 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15721 # We need space, tab and new line, in precisely that order.
15731 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15732 # report actual input values of CONFIG_FILES etc. instead of their
15733 # values after options handling. Logging --version etc. is OK.
15737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15738 ## Running $as_me. ##
15743 This file was extended by $as_me, which was
15744 generated by GNU Autoconf 2.59. Invocation command line was
15746 CONFIG_FILES = $CONFIG_FILES
15747 CONFIG_HEADERS = $CONFIG_HEADERS
15748 CONFIG_LINKS = $CONFIG_LINKS
15749 CONFIG_COMMANDS = $CONFIG_COMMANDS
15753 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15757 # Files that config.status was made for.
15758 if test -n "$ac_config_files"; then
15759 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15762 if test -n "$ac_config_headers"; then
15763 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15766 if test -n "$ac_config_links"; then
15767 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15770 if test -n "$ac_config_commands"; then
15771 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15774 cat >>$CONFIG_STATUS <<\_ACEOF
15777 \`$as_me' instantiates files from templates according to the
15778 current configuration.
15780 Usage: $0 [OPTIONS] [FILE]...
15782 -h, --help print this help, then exit
15783 -V, --version print version number, then exit
15784 -q, --quiet do not print progress messages
15785 -d, --debug don't remove temporary files
15786 --recheck update $as_me by reconfiguring in the same conditions
15787 --file=FILE[:TEMPLATE]
15788 instantiate the configuration file FILE
15789 --header=FILE[:TEMPLATE]
15790 instantiate the configuration header FILE
15792 Configuration files:
15795 Configuration headers:
15798 Configuration commands:
15801 Report bugs to <bug-autoconf@gnu.org>."
15804 cat >>$CONFIG_STATUS <<_ACEOF
15807 configured by $0, generated by GNU Autoconf 2.59,
15808 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15810 Copyright (C) 2003 Free Software Foundation, Inc.
15811 This config.status script is free software; the Free Software Foundation
15812 gives unlimited permission to copy, distribute and modify it."
15816 cat >>$CONFIG_STATUS <<\_ACEOF
15817 # If no file are specified by the user, then we need to provide default
15818 # value. By we need to know if files were specified by the user.
15824 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15825 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15833 *) # This is not an option, so the user has probably given explicit
15836 ac_need_defaults
=false
;;
15840 # Handling of the options.
15842 cat >>$CONFIG_STATUS <<\_ACEOF
15843 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15845 --version |
--vers* |
-V )
15846 echo "$ac_cs_version"; exit 0 ;;
15848 # Conflict between --help and --header
15849 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15850 Try \`$0 --help' for more information." >&5
15851 echo "$as_me: error: ambiguous option: $1
15852 Try \`$0 --help' for more information." >&2;}
15853 { (exit 1); exit 1; }; };;
15854 --help |
--hel |
-h )
15855 echo "$ac_cs_usage"; exit 0 ;;
15856 --debug |
--d* |
-d )
15858 --file |
--fil |
--fi |
--f )
15860 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15861 ac_need_defaults
=false
;;
15862 --header |
--heade |
--head |
--hea )
15864 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15865 ac_need_defaults
=false
;;
15866 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15867 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15870 # This is an error.
15871 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15872 Try \`$0 --help' for more information." >&5
15873 echo "$as_me: error: unrecognized option: $1
15874 Try \`$0 --help' for more information." >&2;}
15875 { (exit 1); exit 1; }; } ;;
15877 *) ac_config_targets
="$ac_config_targets $1" ;;
15883 ac_configure_extra_args
=
15885 if $ac_cs_silent; then
15887 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15891 cat >>$CONFIG_STATUS <<_ACEOF
15892 if \$ac_cs_recheck; then
15893 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15894 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15899 cat >>$CONFIG_STATUS <<_ACEOF
15901 # INIT-COMMANDS section.
15910 cat >>$CONFIG_STATUS <<\_ACEOF
15911 for ac_config_target
in $ac_config_targets
15913 case "$ac_config_target" in
15914 # Handling of arguments.
15915 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
15916 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15917 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
15918 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15919 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15920 { (exit 1); exit 1; }; };;
15924 # If the user did not use the arguments to specify the items to instantiate,
15925 # then the envvar interface is used. Set only those that are not.
15926 # We use the long form for the default assignment because of an extremely
15927 # bizarre bug on SunOS 4.1.3.
15928 if $ac_need_defaults; then
15929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15931 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15934 # Have a temporary directory for convenience. Make it in the build tree
15935 # simply because there is no reason to put it here, and in addition,
15936 # creating and moving files from /tmp can sometimes cause problems.
15937 # Create a temporary directory, and hook for its removal unless debugging.
15940 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15941 trap '{ (exit 1); exit 1; }' 1 2 13 15
15944 # Create a (secure) tmp directory for tmp files.
15947 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15948 test -n "$tmp" && test -d "$tmp"
15951 tmp
=.
/confstat$$
-$RANDOM
15952 (umask 077 && mkdir
$tmp)
15955 echo "$me: cannot create a temporary directory in ." >&2
15956 { (exit 1); exit 1; }
15961 cat >>$CONFIG_STATUS <<_ACEOF
15964 # CONFIG_FILES section.
15967 # No need to generate the scripts if there are no CONFIG_FILES.
15968 # This happens for instance when ./config.status config.h
15969 if test -n "\$CONFIG_FILES"; then
15970 # Protect against being on the right side of a sed subst in config.status.
15971 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15972 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15973 s,@SHELL@,$SHELL,;t t
15974 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15975 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15976 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15977 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15978 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15979 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15980 s,@exec_prefix@,$exec_prefix,;t t
15981 s,@prefix@,$prefix,;t t
15982 s,@program_transform_name@,$program_transform_name,;t t
15983 s,@bindir@,$bindir,;t t
15984 s,@sbindir@,$sbindir,;t t
15985 s,@libexecdir@,$libexecdir,;t t
15986 s,@datadir@,$datadir,;t t
15987 s,@sysconfdir@,$sysconfdir,;t t
15988 s,@sharedstatedir@,$sharedstatedir,;t t
15989 s,@localstatedir@,$localstatedir,;t t
15990 s,@libdir@,$libdir,;t t
15991 s,@includedir@,$includedir,;t t
15992 s,@oldincludedir@,$oldincludedir,;t t
15993 s,@infodir@,$infodir,;t t
15994 s,@mandir@,$mandir,;t t
15995 s,@build_alias@,$build_alias,;t t
15996 s,@host_alias@,$host_alias,;t t
15997 s,@target_alias@,$target_alias,;t t
15998 s,@DEFS@,$DEFS,;t t
15999 s,@ECHO_C@,$ECHO_C,;t t
16000 s,@ECHO_N@,$ECHO_N,;t t
16001 s,@ECHO_T@,$ECHO_T,;t t
16002 s,@LIBS@,$LIBS,;t t
16003 s,@build@,$build,;t t
16004 s,@build_cpu@,$build_cpu,;t t
16005 s,@build_vendor@,$build_vendor,;t t
16006 s,@build_os@,$build_os,;t t
16007 s,@host@,$host,;t t
16008 s,@host_cpu@,$host_cpu,;t t
16009 s,@host_vendor@,$host_vendor,;t t
16010 s,@host_os@,$host_os,;t t
16011 s,@target@,$target,;t t
16012 s,@target_cpu@,$target_cpu,;t t
16013 s,@target_vendor@,$target_vendor,;t t
16014 s,@target_os@,$target_os,;t t
16015 s,@target_noncanonical@,$target_noncanonical,;t t
16016 s,@build_subdir@,$build_subdir,;t t
16017 s,@host_subdir@,$host_subdir,;t t
16018 s,@target_subdir@,$target_subdir,;t t
16019 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16020 s,@gcc_version_full@,$gcc_version_full,;t t
16021 s,@gcc_version@,$gcc_version,;t t
16022 s,@GENINSRC@,$GENINSRC,;t t
16024 s,@CFLAGS@,$CFLAGS,;t t
16025 s,@LDFLAGS@,$LDFLAGS,;t t
16026 s,@CPPFLAGS@,$CPPFLAGS,;t t
16027 s,@ac_ct_CC@,$ac_ct_CC,;t t
16028 s,@EXEEXT@,$EXEEXT,;t t
16029 s,@OBJEXT@,$OBJEXT,;t t
16030 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16031 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16033 s,@EGREP@,$EGREP,;t t
16034 s,@strict1_warn@,$strict1_warn,;t t
16035 s,@warn_cflags@,$warn_cflags,;t t
16036 s,@WERROR@,$WERROR,;t t
16037 s,@nocommon_flag@,$nocommon_flag,;t t
16038 s,@TREEBROWSER@,$TREEBROWSER,;t t
16039 s,@valgrind_path@,$valgrind_path,;t t
16040 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16041 s,@valgrind_command@,$valgrind_command,;t t
16042 s,@coverage_flags@,$coverage_flags,;t t
16043 s,@enable_multilib@,$enable_multilib,;t t
16044 s,@enable_shared@,$enable_shared,;t t
16045 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16046 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16047 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16048 s,@onestep@,$onestep,;t t
16049 s,@SET_MAKE@,$SET_MAKE,;t t
16051 s,@LN_S@,$LN_S,;t t
16053 s,@RANLIB@,$RANLIB,;t t
16054 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16055 s,@ranlib_flags@,$ranlib_flags,;t t
16056 s,@INSTALL@,$INSTALL,;t t
16057 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16058 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16059 s,@make_compare_target@,$make_compare_target,;t t
16060 s,@have_mktemp_command@,$have_mktemp_command,;t t
16061 s,@MAKEINFO@,$MAKEINFO,;t t
16062 s,@BUILD_INFO@,$BUILD_INFO,;t t
16063 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16064 s,@FLEX@,$FLEX,;t t
16065 s,@BISON@,$BISON,;t t
16068 s,@stage1_cflags@,$stage1_cflags,;t t
16069 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16070 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16071 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16072 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16073 s,@LIBICONV@,$LIBICONV,;t t
16074 s,@LTLIBICONV@,$LTLIBICONV,;t t
16075 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16076 s,@manext@,$manext,;t t
16077 s,@objext@,$objext,;t t
16078 s,@gthread_flags@,$gthread_flags,;t t
16079 s,@extra_modes_file@,$extra_modes_file,;t t
16080 s,@PACKAGE@,$PACKAGE,;t t
16081 s,@VERSION@,$VERSION,;t t
16082 s,@USE_NLS@,$USE_NLS,;t t
16083 s,@LIBINTL@,$LIBINTL,;t t
16084 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16085 s,@INCINTL@,$INCINTL,;t t
16086 s,@XGETTEXT@,$XGETTEXT,;t t
16087 s,@GMSGFMT@,$GMSGFMT,;t t
16088 s,@POSUB@,$POSUB,;t t
16089 s,@CATALOGS@,$CATALOGS,;t t
16090 s,@CROSS@,$CROSS,;t t
16092 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16093 s,@inhibit_libc@,$inhibit_libc,;t t
16094 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16095 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16096 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16097 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16098 s,@collect2@,$collect2,;t t
16099 s,@libgcc_visibility@,$libgcc_visibility,;t t
16101 s,@zlibdir@,$zlibdir,;t t
16102 s,@zlibinc@,$zlibinc,;t t
16103 s,@MAINT@,$MAINT,;t t
16104 s,@gcc_tooldir@,$gcc_tooldir,;t t
16105 s,@dollar@,$dollar,;t t
16106 s,@slibdir@,$slibdir,;t t
16107 s,@objdir@,$objdir,;t t
16108 s,@subdirs@,$subdirs,;t t
16109 s,@srcdir@,$srcdir,;t t
16110 s,@all_boot_languages@,$all_boot_languages,;t t
16111 s,@all_compilers@,$all_compilers,;t t
16112 s,@all_gtfiles@,$all_gtfiles,;t t
16113 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16114 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16115 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16116 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16117 s,@all_languages@,$all_languages,;t t
16118 s,@all_stagestuff@,$all_stagestuff,;t t
16119 s,@build_exeext@,$build_exeext,;t t
16120 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16121 s,@build_xm_file_list@,$build_xm_file_list,;t t
16122 s,@build_xm_include_list@,$build_xm_include_list,;t t
16123 s,@build_xm_defines@,$build_xm_defines,;t t
16124 s,@check_languages@,$check_languages,;t t
16125 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16126 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16127 s,@cpp_install_dir@,$cpp_install_dir,;t t
16128 s,@xmake_file@,$xmake_file,;t t
16129 s,@tmake_file@,$tmake_file,;t t
16130 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16131 s,@extra_headers_list@,$extra_headers_list,;t t
16132 s,@extra_objs@,$extra_objs,;t t
16133 s,@extra_parts@,$extra_parts,;t t
16134 s,@extra_passes@,$extra_passes,;t t
16135 s,@extra_programs@,$extra_programs,;t t
16136 s,@float_h_file@,$float_h_file,;t t
16137 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16138 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16139 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16140 s,@host_exeext@,$host_exeext,;t t
16141 s,@host_xm_file_list@,$host_xm_file_list,;t t
16142 s,@host_xm_include_list@,$host_xm_include_list,;t t
16143 s,@host_xm_defines@,$host_xm_defines,;t t
16144 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16145 s,@install@,$install,;t t
16146 s,@lang_opt_files@,$lang_opt_files,;t t
16147 s,@lang_specs_files@,$lang_specs_files,;t t
16148 s,@lang_tree_files@,$lang_tree_files,;t t
16149 s,@local_prefix@,$local_prefix,;t t
16150 s,@md_file@,$md_file,;t t
16151 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16152 s,@out_file@,$out_file,;t t
16153 s,@out_object_file@,$out_object_file,;t t
16154 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16155 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16156 s,@thread_file@,$thread_file,;t t
16157 s,@tm_file_list@,$tm_file_list,;t t
16158 s,@tm_include_list@,$tm_include_list,;t t
16159 s,@tm_defines@,$tm_defines,;t t
16160 s,@tm_p_file_list@,$tm_p_file_list,;t t
16161 s,@tm_p_include_list@,$tm_p_include_list,;t t
16162 s,@xm_file_list@,$xm_file_list,;t t
16163 s,@xm_include_list@,$xm_include_list,;t t
16164 s,@xm_defines@,$xm_defines,;t t
16165 s,@c_target_objs@,$c_target_objs,;t t
16166 s,@cxx_target_objs@,$cxx_target_objs,;t t
16167 s,@target_cpu_default@,$target_cpu_default,;t t
16168 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16169 s,@GMPLIBS@,$GMPLIBS,;t t
16170 s,@GMPINC@,$GMPINC,;t t
16171 s,@LIBOBJS@,$LIBOBJS,;t t
16172 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16173 /@language_hooks@/r $language_hooks
16174 s,@language_hooks@,,;t t
16179 cat >>$CONFIG_STATUS <<\_ACEOF
16180 # Split the substitutions into bite-sized pieces for seds with
16181 # small command number limits, like on Digital OSF/1 and HP-UX.
16182 ac_max_sed_lines
=48
16183 ac_sed_frag
=1 # Number of current file.
16184 ac_beg
=1 # First line for current file.
16185 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16188 while $ac_more_lines; do
16189 if test $ac_beg -gt 1; then
16190 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16192 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16194 if test ! -s $tmp/subs.frag
; then
16195 ac_more_lines
=false
16197 # The purpose of the label and of the branching condition is to
16198 # speed up the sed processing (if there are no `@' at all, there
16199 # is no need to browse any of the substitutions).
16200 # These are the two extra sed commands mentioned above.
16202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16203 if test -z "$ac_sed_cmds"; then
16204 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16206 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16208 ac_sed_frag
=`expr $ac_sed_frag + 1`
16210 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16213 if test -z "$ac_sed_cmds"; then
16216 fi # test -n "$CONFIG_FILES"
16219 cat >>$CONFIG_STATUS <<\_ACEOF
16220 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16221 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16223 - |
*:- |
*:-:* ) # input from stdin
16225 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16226 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16227 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16228 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16229 * ) ac_file_in
=$ac_file.
in ;;
16232 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16233 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16235 X"$ac_file" : 'X\(//\)[^/]' \| \
16236 X"$ac_file" : 'X\(//\)$' \| \
16237 X"$ac_file" : 'X\(/\)' \| \
16238 . : '\(.\)' 2>/dev/null ||
16240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16242 /^X\(\/\/\)$/{ s//\1/; q; }
16243 /^X\(\/\).*/{ s//\1/; q; }
16245 { if $as_mkdir_p; then
16250 while test ! -d "$as_dir"; do
16251 as_dirs
="$as_dir $as_dirs"
16252 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16254 X"$as_dir" : 'X\(//\)[^/]' \| \
16255 X"$as_dir" : 'X\(//\)$' \| \
16256 X"$as_dir" : 'X\(/\)' \| \
16257 . : '\(.\)' 2>/dev/null ||
16259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16261 /^X\(\/\/\)$/{ s//\1/; q; }
16262 /^X\(\/\).*/{ s//\1/; q; }
16265 test ! -n "$as_dirs" || mkdir
$as_dirs
16266 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16267 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16268 { (exit 1); exit 1; }; }; }
16272 if test "$ac_dir" != .
; then
16273 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16274 # A "../" for each directory in $ac_dir_suffix.
16275 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16277 ac_dir_suffix
= ac_top_builddir
=
16281 .
) # No --srcdir option. We are building in place.
16283 if test -z "$ac_top_builddir"; then
16286 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16288 [\\/]* | ?
:[\\/]* ) # Absolute path.
16289 ac_srcdir
=$srcdir$ac_dir_suffix;
16290 ac_top_srcdir
=$srcdir ;;
16291 *) # Relative path.
16292 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16293 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16296 # Do not use `cd foo && pwd` to compute absolute paths, because
16297 # the directories may not exist.
16299 .
) ac_abs_builddir
="$ac_dir";;
16302 .
) ac_abs_builddir
=`pwd`;;
16303 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16304 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16307 case $ac_abs_builddir in
16308 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16310 case ${ac_top_builddir}.
in
16311 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16312 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16313 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16316 case $ac_abs_builddir in
16317 .
) ac_abs_srcdir
=$ac_srcdir;;
16320 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16321 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16322 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16325 case $ac_abs_builddir in
16326 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16328 case $ac_top_srcdir in
16329 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16330 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16331 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16337 if test x
"$ac_file" != x-
; then
16338 { echo "$as_me:$LINENO: creating $ac_file" >&5
16339 echo "$as_me: creating $ac_file" >&6;}
16342 # Let's still pretend it is `configure' which instantiates (i.e., don't
16343 # use $as_me), people would be surprised to read:
16344 # /* config.h. Generated by config.status. */
16345 if test x
"$ac_file" = x-
; then
16348 configure_input
="$ac_file. "
16350 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16351 sed 's,.*/,,'` by configure."
16353 # First look for the input files in the build tree, otherwise in the
16355 ac_file_inputs
=`IFS=:
16356 for f in $ac_file_in; do
16358 -) echo $tmp/stdin ;;
16360 # Absolute (can't be DOS-style, as IFS=:)
16361 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16362 echo "$as_me: error: cannot find input file: $f" >&2;}
16363 { (exit 1); exit 1; }; }
16366 if test -f "$f"; then
16369 elif test -f "$srcdir/$f"; then
16374 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16375 echo "$as_me: error: cannot find input file: $f" >&2;}
16376 { (exit 1); exit 1; }; }
16379 done` ||
{ (exit 1); exit 1; }
16381 cat >>$CONFIG_STATUS <<_ACEOF
16385 cat >>$CONFIG_STATUS <<\_ACEOF
16387 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16388 s
,@configure_input@
,$configure_input,;t t
16389 s
,@srcdir@
,$ac_srcdir,;t t
16390 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16391 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16392 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16393 s
,@builddir@
,$ac_builddir,;t t
16394 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16395 s
,@top_builddir@
,$ac_top_builddir,;t t
16396 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16397 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16399 if test x"$ac_file" != x-; then
16400 mv $tmp/out $ac_file
16408 cat >>$CONFIG_STATUS <<\_ACEOF
16411 # CONFIG_HEADER section.
16414 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16415 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16417 # ac_d sets the value in "#define NAME VALUE" lines.
16418 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16419 ac_dB
='[ ].*$,\1#\2'
16422 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16423 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16424 ac_uB
='$,\1#\2define\3'
16428 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16429 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16431 - |
*:- |
*:-:* ) # input from stdin
16433 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16434 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16435 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16436 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16437 * ) ac_file_in
=$ac_file.
in ;;
16440 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16441 echo "$as_me: creating $ac_file" >&6;}
16443 # First look for the input files in the build tree, otherwise in the
16445 ac_file_inputs
=`IFS=:
16446 for f in $ac_file_in; do
16448 -) echo $tmp/stdin ;;
16450 # Absolute (can't be DOS-style, as IFS=:)
16451 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16452 echo "$as_me: error: cannot find input file: $f" >&2;}
16453 { (exit 1); exit 1; }; }
16454 # Do quote $f, to prevent DOS paths from being IFS'd.
16457 if test -f "$f"; then
16460 elif test -f "$srcdir/$f"; then
16465 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16466 echo "$as_me: error: cannot find input file: $f" >&2;}
16467 { (exit 1); exit 1; }; }
16470 done` ||
{ (exit 1); exit 1; }
16471 # Remove the trailing spaces.
16472 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16476 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16477 # `conftest.undefs', that substitutes the proper values into
16478 # config.h.in to produce config.h. The first handles `#define'
16479 # templates, and the second `#undef' templates.
16480 # And first: Protect against being on the right side of a sed subst in
16481 # config.status. Protect against being in an unquoted here document
16482 # in config.status.
16483 rm -f conftest.defines conftest.undefs
16484 # Using a here document instead of a string reduces the quoting nightmare.
16485 # Putting comments in sed scripts is not portable.
16487 # `end' is used to avoid that the second main sed command (meant for
16488 # 0-ary CPP macros) applies to n-ary macro definitions.
16489 # See the Autoconf documentation for `clear'.
16490 cat >confdef2sed.
sed <<\_ACEOF
16495 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16497 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16500 # If some macros were called several times there might be several times
16501 # the same #defines, which is useless. Nevertheless, we may not want to
16502 # sort them, since we want the *last* AC-DEFINE to be honored.
16503 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16504 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16505 rm -f confdef2sed.sed
16507 # This sed command replaces #undef with comments. This is necessary, for
16508 # example, in the case of _POSIX_SOURCE, which is predefined and required
16509 # on some systems where configure will not decide to define it.
16510 cat >>conftest.undefs <<\_ACEOF
16511 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16514 # Break up conftest.defines because some shells have a limit on the size
16515 # of here documents, and old seds have small limits too (100 cmds).
16516 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16517 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16518 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16519 echo ' :' >>$CONFIG_STATUS
16520 rm -f conftest.tail
16521 while grep . conftest.defines >/dev/null
16523 # Write a limited-size here document to $tmp/defines.sed.
16524 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16525 # Speed up: don't consider the non `#define' lines.
16526 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16527 # Work around the forget-to-reset-the-flag bug.
16528 echo 't clr' >>$CONFIG_STATUS
16529 echo ': clr' >>$CONFIG_STATUS
16530 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16532 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16534 mv $tmp/out $tmp/in
16536 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16537 rm -f conftest.defines
16538 mv conftest.
tail conftest.defines
16540 rm -f conftest.defines
16541 echo ' fi # grep' >>$CONFIG_STATUS
16542 echo >>$CONFIG_STATUS
16544 # Break up conftest.undefs because some shells have a limit on the size
16545 # of here documents, and old seds have small limits too (100 cmds).
16546 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16547 rm -f conftest.
tail
16548 while grep . conftest.undefs
>/dev
/null
16550 # Write a limited-size here document to $tmp/undefs.sed.
16551 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16552 # Speed up: don't consider the non
`#undef'
16553 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16554 # Work around the forget-to-reset-the-flag bug.
16555 echo 't clr' >>$CONFIG_STATUS
16556 echo ': clr' >>$CONFIG_STATUS
16557 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16559 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16561 mv $tmp/out $tmp/in
16563 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16564 rm -f conftest.undefs
16565 mv conftest.tail conftest.undefs
16567 rm -f conftest.undefs
16569 cat >>$CONFIG_STATUS <<\_ACEOF
16570 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16571 # use $as_me), people would be surprised to read:
16572 # /* config.h. Generated by config.status. */
16573 if test x
"$ac_file" = x-
; then
16574 echo "/* Generated by configure. */" >$tmp/config.h
16576 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16578 cat $tmp/in >>$tmp/config.h
16580 if test x
"$ac_file" != x-
; then
16581 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16582 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16583 echo "$as_me: $ac_file is unchanged" >&6;}
16585 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16587 X"$ac_file" : 'X\(//\)[^/]' \| \
16588 X"$ac_file" : 'X\(//\)$' \| \
16589 X"$ac_file" : 'X\(/\)' \| \
16590 . : '\(.\)' 2>/dev/null ||
16592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16594 /^X\(\/\/\)$/{ s//\1/; q; }
16595 /^X\(\/\).*/{ s//\1/; q; }
16597 { if $as_mkdir_p; then
16602 while test ! -d "$as_dir"; do
16603 as_dirs
="$as_dir $as_dirs"
16604 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16606 X"$as_dir" : 'X\(//\)[^/]' \| \
16607 X"$as_dir" : 'X\(//\)$' \| \
16608 X"$as_dir" : 'X\(/\)' \| \
16609 . : '\(.\)' 2>/dev/null ||
16611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16613 /^X\(\/\/\)$/{ s//\1/; q; }
16614 /^X\(\/\).*/{ s//\1/; q; }
16617 test ! -n "$as_dirs" || mkdir
$as_dirs
16618 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16620 { (exit 1); exit 1; }; }; }
16623 mv $tmp/config.h
$ac_file
16627 rm -f $tmp/config.h
16631 cat >>$CONFIG_STATUS <<\_ACEOF
16634 # CONFIG_COMMANDS section.
16636 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16637 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16638 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16639 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16640 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16641 X"$ac_dest" : 'X\(//\)[^/]' \| \
16642 X"$ac_dest" : 'X\(//\)$' \| \
16643 X"$ac_dest" : 'X\(/\)' \| \
16644 . : '\(.\)' 2>/dev/null ||
16646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16648 /^X\(\/\/\)$/{ s//\1/; q; }
16649 /^X\(\/\).*/{ s//\1/; q; }
16651 { if $as_mkdir_p; then
16656 while test ! -d "$as_dir"; do
16657 as_dirs
="$as_dir $as_dirs"
16658 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16660 X"$as_dir" : 'X\(//\)[^/]' \| \
16661 X"$as_dir" : 'X\(//\)$' \| \
16662 X"$as_dir" : 'X\(/\)' \| \
16663 . : '\(.\)' 2>/dev/null ||
16665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16667 /^X\(\/\/\)$/{ s//\1/; q; }
16668 /^X\(\/\).*/{ s//\1/; q; }
16671 test ! -n "$as_dirs" || mkdir
$as_dirs
16672 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16673 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16674 { (exit 1); exit 1; }; }; }
16678 if test "$ac_dir" != .
; then
16679 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16680 # A "../" for each directory in $ac_dir_suffix.
16681 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16683 ac_dir_suffix
= ac_top_builddir
=
16687 .
) # No --srcdir option. We are building in place.
16689 if test -z "$ac_top_builddir"; then
16692 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16694 [\\/]* | ?
:[\\/]* ) # Absolute path.
16695 ac_srcdir
=$srcdir$ac_dir_suffix;
16696 ac_top_srcdir
=$srcdir ;;
16697 *) # Relative path.
16698 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16699 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16702 # Do not use `cd foo && pwd` to compute absolute paths, because
16703 # the directories may not exist.
16705 .
) ac_abs_builddir
="$ac_dir";;
16708 .
) ac_abs_builddir
=`pwd`;;
16709 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16710 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16713 case $ac_abs_builddir in
16714 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16716 case ${ac_top_builddir}.
in
16717 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16718 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16719 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16722 case $ac_abs_builddir in
16723 .
) ac_abs_srcdir
=$ac_srcdir;;
16726 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16727 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16728 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16731 case $ac_abs_builddir in
16732 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16734 case $ac_top_srcdir in
16735 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16736 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16737 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16742 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16743 echo "$as_me: executing $ac_dest commands" >&6;}
16746 case ${CONFIG_HEADERS} in
16747 *auto-host.h
:config.
in*)
16750 # Make sure all the subdirs exist.
16751 for d
in $subdirs doc build
16753 test -d $d || mkdir
$d
16755 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16756 # bootstrapping and the installation procedure can still use
16757 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16758 # FLAGS_TO_PASS has been modified to solve the problem there.
16759 # This is virtually a duplicate of what happens in configure.lang; we do
16760 # an extra check to make sure this only happens if ln -s can be used.
16763 for d
in ${subdirs} ; do
16764 STARTDIR
=`${PWDCMD-pwd}`
16766 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16769 $LN_S ..
/$t $t 2>/dev
/null
16780 cat >>$CONFIG_STATUS <<\_ACEOF
16782 { (exit 0); exit 0; }
16784 chmod +x
$CONFIG_STATUS
16785 ac_clean_files
=$ac_clean_files_save
16788 # configure is writing to config.log, and then calls config.status.
16789 # config.status does its own redirection, appending to config.log.
16790 # Unfortunately, on DOS this fails, as config.log is still kept open
16791 # by configure, so config.status won't be able to write to it; its
16792 # output is simply discarded. So we exec the FD to /dev/null,
16793 # effectively closing config.log, so it can be properly (re)opened and
16794 # appended to by config.status. When coming back to configure, we
16795 # need to make the FD available again.
16796 if test "$no_create" != yes; then
16798 ac_config_status_args
=
16799 test "$silent" = yes &&
16800 ac_config_status_args
="$ac_config_status_args --quiet"
16802 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16804 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16805 # would make configure fail if this is the last instruction.
16806 $ac_cs_success ||
{ (exit 1); exit 1; }