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 extra_opt_files PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default set_gcc_lib_path GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: assert
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,tree
,valgrind
,release
,yes,all
;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler
's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don
't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page
,zone
} choose the garbage collection mechanism to use
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries
in DIR LIBDIR
933 Some influential environment variables
:
934 CC C compiler
command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
937 nonstandard directory
<lib dir
>
938 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
939 headers
in a nonstandard directory
<include dir
>
941 GMPLIBS How to link GMP
942 GMPINC How to
find GMP include files
944 Use these variables to override the choices made by
`configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
962 ac_dir_suffix= ac_top_builddir=
966 .) # No --srcdir option. We are building in place.
968 if test -z "$ac_top_builddir"; then
971 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 # Do not use `cd foo
&& pwd` to compute absolute paths, because
982 # the directories may not exist.
984 .) ac_abs_builddir="$ac_dir";;
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1031 $ac_configure --help
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1066 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1067 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1068 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1069 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1070 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1072 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1073 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1075 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1076 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1077 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1078 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1079 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1080 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1081 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1114 ac_must_keep_next=false
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143 -* ) ac_must_keep_next=true ;;
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close
' the trap.
1161 trap 'exit_status
=$?
1162 # Save into config.log some information that might help in debugging.
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1172 # The following way of writing the cache mishandles newlines in values,
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1195 for ac_var
in $ac_subst_vars
1197 eval ac_val
=$
`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1202 if test -n "$ac_subst_files"; then
1209 for ac_var
in $ac_subst_files
1211 eval ac_val
=$
`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1217 if test -s confdefs.h
; then
1224 sed "/^$/d" confdefs.h |
sort
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1231 rm -f core
*.core
&&
1232 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's
/^
/|
/' "$ac_site_file" >&5
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1307 # Check that the precious variables saved in the cache have kept the same
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1320 ac_cache_corrupted=: ;;
1322 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1329 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1354 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1361 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386 #Set to 1 on a release branch
1389 # Determine the host, build, and target systems
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392 if test -f $ac_dir/install-sh; then
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1396 elif test -f $ac_dir/install.sh; then
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1400 elif test -f $ac_dir/shtool; then
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409 { (exit 1); exit 1; }; }
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428 ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432 { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1442 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1444 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454 ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1464 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1466 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476 ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1488 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494 test "$program_prefix$program_suffix$program_transform_name" = \
1496 program_prefix=${target_alias}-
1498 # Determine the noncanonical target name, for directory use.
1499 case ${build_alias} in
1500 "") build_noncanonical=${build} ;;
1501 *) build_noncanonical=${build_alias} ;;
1504 case ${host_alias} in
1505 "") host_noncanonical=${build_noncanonical} ;;
1506 *) host_noncanonical=${host_alias} ;;
1509 case ${target_alias} in
1510 "") target_noncanonical=${host_noncanonical} ;;
1511 *) target_noncanonical=${target_alias} ;;
1517 # Determine the target- and build-specific subdirectories
1518 # Prefix 'build-
' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1521 if ( test $srcdir = . && test -d gcc ) \
1522 || test -d $srcdir/../host-${host_noncanonical}; then
1523 host_subdir="host-${host_noncanonical}"
1528 target_subdir=${target_noncanonical}
1531 # Set program_transform_name
1532 test "$program_prefix" != NONE &&
1533 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1534 # Use a double $ so make ignores it.
1535 test "$program_suffix" != NONE &&
1536 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1537 # Double any \ or $. echo might interpret backslashes.
1538 # By default was `s,x,x', remove it
if useless.
1539 cat <<\_ACEOF
>conftest.
sed
1540 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1542 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1546 # Check for bogus environment variables.
1547 # Test if LIBRARY_PATH contains the notation for the current directory
1548 # since this would lead to problems installing/building glibc.
1549 # LIBRARY_PATH contains the current directory if one of the following
1551 # - one of the terminals (":" and ";") is the first or last sign
1552 # - two terminals occur directly after each other
1553 # - the path contains an element with a dot in it
1554 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1555 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1556 case ${LIBRARY_PATH} in
1557 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1558 library_path_setting
="contains current directory"
1561 library_path_setting
="ok"
1564 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1565 echo "${ECHO_T}$library_path_setting" >&6
1566 if test "$library_path_setting" != "ok"; then
1567 { { echo "$as_me:$LINENO: error:
1568 *** LIBRARY_PATH shouldn't contain the current directory when
1569 *** building gcc. Please change the environment variable
1570 *** and run configure again." >&5
1571 echo "$as_me: error:
1572 *** LIBRARY_PATH shouldn't contain the current directory when
1573 *** building gcc. Please change the environment variable
1574 *** and run configure again." >&2;}
1575 { (exit 1); exit 1; }; }
1578 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # GCC_EXEC_PREFIX contains the current directory if one of the following
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1586 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1587 case ${GCC_EXEC_PREFIX} in
1588 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1589 gcc_exec_prefix_setting
="contains current directory"
1592 gcc_exec_prefix_setting
="ok"
1595 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1596 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1597 if test "$gcc_exec_prefix_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1610 if test "${with_gcc_version_trigger+set}" = set; then
1611 gcc_version_trigger
=$with_gcc_version_trigger
1613 gcc_version_trigger
=$srcdir/..
/gcc
/version.c
1615 if test -f "${gcc_version_trigger}"; then
1616 gcc_version_full
=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1618 gcc_version_full
=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1620 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1630 # Specify the local prefix
1633 # Check whether --with-local-prefix or --without-local-prefix was given.
1634 if test "${with_local_prefix+set}" = set; then
1635 withval
="$with_local_prefix"
1636 case "${withval}" in
1637 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1638 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1639 { (exit 1); exit 1; }; } ;;
1641 *) local_prefix
=$with_local_prefix ;;
1645 # Default local prefix if it is empty
1646 if test x
$local_prefix = x
; then
1647 local_prefix
=/usr
/local
1650 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1651 # passed in by the toplevel make and thus we'd get different behavior
1652 # depending on where we built the sources.
1653 gcc_gxx_include_dir
=
1654 # Specify the g++ header file directory
1656 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1657 if test "${with_gxx_include_dir+set}" = set; then
1658 withval
="$with_gxx_include_dir"
1659 case "${withval}" in
1660 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1661 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1662 { (exit 1); exit 1; }; } ;;
1664 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1668 if test x
${gcc_gxx_include_dir} = x
; then
1669 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1670 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1672 libstdcxx_incdir
=c
++/${gcc_version}
1673 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1678 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1679 if test "${with_cpp_install_dir+set}" = set; then
1680 withval
="$with_cpp_install_dir"
1681 if test x
$withval = xyes
; then
1682 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1683 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1684 { (exit 1); exit 1; }; }
1685 elif test x
$withval != xno
; then
1686 cpp_install_dir
=$withval
1690 # We would like to our source tree to be readonly. However when releases or
1691 # pre-releases are generated, the flex/bison generated files as well as the
1692 # various formats of manuals need to be included along with the rest of the
1693 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1696 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1697 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1698 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1699 if test "${enable_generated_files_in_srcdir+set}" = set; then
1700 enableval
="$enable_generated_files_in_srcdir"
1701 generated_files_in_srcdir
=$enableval
1703 generated_files_in_srcdir
=no
1706 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1707 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1709 if test "$generated_files_in_srcdir" = "yes"; then
1716 # -------------------
1717 # Find default linker
1718 # -------------------
1722 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1723 if test "${with_gnu_ld+set}" = set; then
1724 withval
="$with_gnu_ld"
1725 gnu_ld_flag
="$with_gnu_ld"
1730 # With pre-defined ld
1732 # Check whether --with-ld or --without-ld was given.
1733 if test "${with_ld+set}" = set; then
1735 DEFAULT_LINKER
="$with_ld"
1737 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1738 if test ! -x "$DEFAULT_LINKER"; then
1739 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1740 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1741 { (exit 1); exit 1; }; }
1742 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1746 cat >>confdefs.h
<<_ACEOF
1747 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1752 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1753 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1754 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1755 if test x
"$gnu_ld_flag" = x
"no"; then
1756 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1757 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1759 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1760 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 # With demangler in GNU ld
1769 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1770 if test "${with_demangler_in_ld+set}" = set; then
1771 withval
="$with_demangler_in_ld"
1772 demangler_in_ld
="$with_demangler_in_ld"
1777 # ----------------------
1778 # Find default assembler
1779 # ----------------------
1783 # Check whether --with-gnu-as or --without-gnu-as was given.
1784 if test "${with_gnu_as+set}" = set; then
1785 withval
="$with_gnu_as"
1786 gas_flag
="$with_gnu_as"
1792 # Check whether --with-as or --without-as was given.
1793 if test "${with_as+set}" = set; then
1795 DEFAULT_ASSEMBLER
="$with_as"
1797 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1798 if test ! -x "$DEFAULT_ASSEMBLER"; then
1799 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1800 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1801 { (exit 1); exit 1; }; }
1802 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1806 cat >>confdefs.h
<<_ACEOF
1807 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1812 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1813 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1814 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1815 if test x
"$gas_flag" = x
"no"; then
1816 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1817 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1819 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1820 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1831 # If a non-executable a.out is present (e.g. created by GNU as above even if
1832 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1833 # file, even when creating an executable, so an execution test fails.
1834 # Remove possible default executable files to avoid this.
1836 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1837 # Autoconf includes it.
1838 rm -f a.out a.exe b.out
1840 # Find the native compiler
1842 ac_cpp
='$CPP $CPPFLAGS'
1843 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1848 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC
="$CC" # Let the user override the test.
1857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1861 test -z "$as_dir" && as_dir
=.
1862 for ac_exec_ext
in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 if test -n "$CC"; then
1875 echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1883 if test -z "$ac_cv_prog_CC"; then
1885 # Extract the first word of "gcc", so it can be a program name with args.
1886 set dummy gcc
; ac_word
=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$ac_ct_CC"; then
1893 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir
=.
1900 for ac_exec_ext
in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_CC
="gcc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1912 if test -n "$ac_ct_CC"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914 echo "${ECHO_T}$ac_ct_CC" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1925 if test -z "$CC"; then
1926 if test -n "$ac_tool_prefix"; then
1927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1928 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC
="$CC" # Let the user override the test.
1937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir
=.
1942 for ac_exec_ext
in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 if test -n "$CC"; then
1955 echo "$as_me:$LINENO: result: $CC" >&5
1956 echo "${ECHO_T}$CC" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1963 if test -z "$ac_cv_prog_CC"; then
1965 # Extract the first word of "cc", so it can be a program name with args.
1966 set dummy cc
; ac_word
=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$ac_ct_CC"; then
1973 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir
=.
1980 for ac_exec_ext
in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_ac_ct_CC
="cc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1992 if test -n "$ac_ct_CC"; then
1993 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1994 echo "${ECHO_T}$ac_ct_CC" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc
; ac_word
=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC
="$CC" # Let the user override the test.
2018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir
=.
2023 for ac_exec_ext
in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026 ac_prog_rejected
=yes
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test $ac_prog_rejected = yes; then
2037 # We found a bogon in the path, so make sure we never use it.
2038 set dummy
$ac_cv_prog_CC
2040 if test $# != 0; then
2041 # We chose a different compiler from the bogus one.
2042 # However, it has the same basename, so the bogon will be chosen
2043 # first if we set CC to just the basename; use the full file name.
2045 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2060 if test -z "$CC"; then
2061 if test -n "$ac_tool_prefix"; then
2064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2065 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 if test -n "$CC"; then
2072 ac_cv_prog_CC
="$CC" # Let the user override the test.
2074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2078 test -z "$as_dir" && as_dir
=.
2079 for ac_exec_ext
in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 if test -n "$CC"; then
2092 echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2099 test -n "$CC" && break
2102 if test -z "$CC"; then
2106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy
$ac_prog; ac_word
=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir
=.
2121 for ac_exec_ext
in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_ac_ct_CC
="$ac_prog"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2133 if test -n "$ac_ct_CC"; then
2134 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135 echo "${ECHO_T}$ac_ct_CC" >&6
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2141 test -n "$ac_ct_CC" && break
2150 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: no acceptable C compiler found in \$PATH
2153 See \`config.log' for more details." >&2;}
2154 { (exit 1); exit 1; }; }
2156 # Provide some information about the compiler.
2157 echo "$as_me:$LINENO:" \
2158 "checking for C compiler version" >&5
2159 ac_compiler
=`set X $ac_compile; echo $2`
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2161 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2166 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2170 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2171 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }
2176 cat >conftest.
$ac_ext <<_ACEOF
2179 cat confdefs.h
>>conftest.
$ac_ext
2180 cat >>conftest.
$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2191 ac_clean_files_save
=$ac_clean_files
2192 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2193 # Try to create an executable without -o first, disregard a.out.
2194 # It will help us diagnose broken compilers, and finding out an intuition
2196 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2198 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2200 (eval $ac_link_default) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 # Find the output, starting from the most likely. This scheme is
2205 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2208 # Be careful to initialize this variable, since it used to be cached.
2209 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2211 # b.out is created by i960 compilers.
2212 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2214 test -f "$ac_file" ||
continue
2216 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2219 # This is the source file.
2222 # We found the default executable, but exeext='' is most
2226 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # FIXME: I believe we export ac_cv_exeext for Libtool,
2228 # but it would be cool to find out if it's true. Does anybody
2229 # maintain Libtool? --akim.
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.
$ac_ext >&5
2240 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: C compiler cannot create executables
2243 See \`config.log' for more details." >&2;}
2244 { (exit 77); exit 77; }; }
2247 ac_exeext
=$ac_cv_exeext
2248 echo "$as_me:$LINENO: result: $ac_file" >&5
2249 echo "${ECHO_T}$ac_file" >&6
2251 # Check the compiler produces executables we can run. If not, either
2252 # the compiler is broken, or we cross compile.
2253 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256 # If not cross compiling, check that we can run a simple program.
2257 if test "$cross_compiling" != yes; then
2258 if { ac_try
='./$ac_file'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2266 if test "$cross_compiling" = maybe
; then
2269 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2279 echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6
2282 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2283 ac_clean_files
=$ac_clean_files_save
2284 # Check the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2288 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289 echo "${ECHO_T}$cross_compiling" >&6
2291 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294 (eval $ac_link) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 for ac_file
in conftest.exe conftest conftest.
*; do
2303 test -f "$ac_file" ||
continue
2305 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2306 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2320 rm -f conftest
$ac_cv_exeext
2321 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6
2324 rm -f conftest.
$ac_ext
2325 EXEEXT
=$ac_cv_exeext
2327 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2329 if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.
$ac_ext <<_ACEOF
2335 cat confdefs.h
>>conftest.
$ac_ext
2336 cat >>conftest.
$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2347 rm -f conftest.o conftest.obj
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2355 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2356 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.
$ac_ext >&5
2364 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2371 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2373 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2374 echo "${ECHO_T}$ac_cv_objext" >&6
2375 OBJEXT
=$ac_cv_objext
2377 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2378 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2379 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 cat >conftest.
$ac_ext <<_ACEOF
2385 cat confdefs.h
>>conftest.
$ac_ext
2386 cat >>conftest.
$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2400 rm -f conftest.
$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1
>conftest.err
2406 cat conftest.err
>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try
='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.
$ac_ext >&5
2428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2429 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2432 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2434 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS
=${CFLAGS+set}
2436 ac_save_CFLAGS
=$CFLAGS
2438 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2439 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2440 if test "${ac_cv_prog_cc_g+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 cat >conftest.
$ac_ext <<_ACEOF
2446 cat confdefs.h
>>conftest.
$ac_ext
2447 cat >>conftest.
$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2458 rm -f conftest.
$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>conftest.er1
2462 grep -v '^ *+' conftest.er1
>conftest.err
2464 cat conftest.err
>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try
='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.
$ac_ext >&5
2486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2488 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2490 if test "$ac_test_CFLAGS" = set; then
2491 CFLAGS
=$ac_save_CFLAGS
2492 elif test $ac_cv_prog_cc_g = yes; then
2493 if test "$GCC" = yes; then
2499 if test "$GCC" = yes; then
2505 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2506 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2507 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 ac_cv_prog_cc_stdc
=no
2512 cat >conftest.
$ac_ext <<_ACEOF
2515 cat confdefs.h
>>conftest.
$ac_ext
2516 cat >>conftest.
$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2520 #include <sys/types.h>
2521 #include <sys/stat.h>
2522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2523 struct buf { int x; };
2524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2525 static char *e (p, i)
2531 static char *f (char * (*g) (char **, int), char **p, ...)
2536 s = g (p, va_arg (v,int));
2541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2542 function prototypes and stuff, but not '\xHH' hex character constants.
2543 These don't provoke an error unfortunately, instead are silently treated
2544 as 'x'. The following induces an error, until -std1 is added to get
2545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2546 array size at least. It's necessary to write '\x00'==0 to get something
2547 that's true only with -std1. */
2548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2550 int test (int i, double x);
2551 struct s1 {int (*f) (int a);};
2552 struct s2 {int (*f) (double a);};
2553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2564 # Don't try gcc -ansi; that turns off useful extensions and
2565 # breaks some systems' header files.
2566 # AIX -qlanglvl=ansi
2567 # Ultrix and OSF/1 -std1
2568 # HP-UX 10.20 and later -Ae
2569 # HP-UX older versions -Aa -D_HPUX_SOURCE
2570 # SVR4 -Xc -D__EXTENSIONS__
2571 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2573 CC
="$ac_save_CC $ac_arg"
2574 rm -f conftest.
$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2578 grep -v '^ *+' conftest.er1
>conftest.err
2580 cat conftest.err
>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try
='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 ac_cv_prog_cc_stdc
=$ac_arg
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.
$ac_ext >&5
2602 rm -f conftest.err conftest.
$ac_objext
2604 rm -f conftest.
$ac_ext conftest.
$ac_objext
2609 case "x$ac_cv_prog_cc_stdc" in
2611 echo "$as_me:$LINENO: result: none needed" >&5
2612 echo "${ECHO_T}none needed" >&6 ;;
2614 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2615 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2616 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2619 # Some people use a C++ compiler to compile C. Since we use `exit',
2620 # in C++ we need to declare it. In case someone uses the same compiler
2621 # for both compiling C and C++ we need to have the C++ compiler decide
2622 # the declaration of exit, since it's the most demanding environment.
2623 cat >conftest.
$ac_ext <<_ACEOF
2628 rm -f conftest.
$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2632 grep -v '^ *+' conftest.er1
>conftest.err
2634 cat conftest.err
>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try
='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 for ac_declaration
in \
2651 'extern "C" void std::exit (int) throw (); using std::exit;' \
2652 'extern "C" void std::exit (int); using std::exit;' \
2653 'extern "C" void exit (int) throw ();' \
2654 'extern "C" void exit (int);' \
2657 cat >conftest.
$ac_ext <<_ACEOF
2660 cat confdefs.h
>>conftest.
$ac_ext
2661 cat >>conftest.
$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2673 rm -f conftest.
$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>conftest.er1
2677 grep -v '^ *+' conftest.er1
>conftest.err
2679 cat conftest.err
>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try
='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.
$ac_ext >&5
2701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2702 cat >conftest.
$ac_ext <<_ACEOF
2705 cat confdefs.h
>>conftest.
$ac_ext
2706 cat >>conftest.
$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2717 rm -f conftest.
$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2721 grep -v '^ *+' conftest.er1
>conftest.err
2723 cat conftest.err
>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try
='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.
$ac_ext >&5
2744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2747 if test -n "$ac_declaration"; then
2748 echo '#ifdef __cplusplus' >>confdefs.h
2749 echo $ac_declaration >>confdefs.h
2750 echo '#endif' >>confdefs.h
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.
$ac_ext >&5
2758 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2760 ac_cpp
='$CPP $CPPFLAGS'
2761 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2765 if test "x$CC" != xcc
; then
2766 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2767 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2769 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2770 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2772 set dummy
$CC; ac_cc
=`echo $2 |
2773 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2774 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 cat >conftest.
$ac_ext <<_ACEOF
2780 cat confdefs.h
>>conftest.
$ac_ext
2781 cat >>conftest.
$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2792 # Make sure it works both with $CC and with simple cc.
2793 # We do the test twice because some compilers refuse to overwrite an
2794 # existing .o file with -o, though they will create one.
2795 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2796 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); };
2807 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2808 if test "x$CC" != xcc
; then
2809 # Test first that cc exists at all.
2810 if { ac_try
='cc -c conftest.$ac_ext >&5'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2817 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); };
2831 # cc exists but doesn't like -o.
2832 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2837 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2842 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2843 echo "$as_me:$LINENO: result: yes" >&5
2844 echo "${ECHO_T}yes" >&6
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2849 cat >>confdefs.h
<<\_ACEOF
2850 #define NO_MINUS_C_MINUS_O 1
2855 # expand $ac_aux_dir to an absolute path
2856 am_aux_dir
=`cd $ac_aux_dir && pwd`
2858 # FIXME: we rely on the cache variable name because
2859 # there is no other way.
2861 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2862 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2863 # Losing compiler, so override with the script.
2864 # FIXME: It is wrong to rewrite CC.
2865 # But if we don't then we get into trouble of one sort or another.
2866 # A longer-term fix would be to have automake use am__CC in this case,
2867 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2868 CC
="$am_aux_dir/compile $CC"
2871 # autoconf is lame and doesn't give us any substitution variable for this.
2872 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2873 NO_MINUS_C_MINUS_O
=yes
2875 OUTPUT_OPTION
='-o $@'
2880 # -------------------------
2881 # Check C compiler features
2882 # -------------------------
2885 ac_cpp
='$CPP $CPPFLAGS'
2886 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2889 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2890 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2891 # On Suns, sometimes $CPP names a directory.
2892 if test -n "$CPP" && test -d "$CPP"; then
2895 if test -z "$CPP"; then
2896 if test "${ac_cv_prog_CPP+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 # Double quotes because CPP needs to be expanded
2900 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2903 for ac_c_preproc_warn_flag
in '' yes
2905 # Use a header file that comes with gcc, so configuring glibc
2906 # with a fresh cross-compiler works.
2907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2908 # <limits.h> exists even on freestanding compilers.
2909 # On the NeXT, cc -E runs the code through the compiler's parser,
2910 # not just through cpp. "Syntax error" is here to catch this case.
2911 cat >conftest.
$ac_ext <<_ACEOF
2914 cat confdefs.h
>>conftest.
$ac_ext
2915 cat >>conftest.
$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2918 # include <limits.h>
2920 # include <assert.h>
2924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2925 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2927 grep -v '^ *+' conftest.er1
>conftest.err
2929 cat conftest.err
>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } >/dev
/null
; then
2932 if test -s conftest.err
; then
2933 ac_cpp_err
=$ac_c_preproc_warn_flag
2934 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2941 if test -z "$ac_cpp_err"; then
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.
$ac_ext >&5
2947 # Broken: fails on valid input.
2950 rm -f conftest.err conftest.
$ac_ext
2952 # OK, works on sane cases. Now check whether non-existent headers
2953 # can be detected and how.
2954 cat >conftest.
$ac_ext <<_ACEOF
2957 cat confdefs.h
>>conftest.
$ac_ext
2958 cat >>conftest.
$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 #include <ac_nonexistent.h>
2962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2963 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2965 grep -v '^ *+' conftest.er1
>conftest.err
2967 cat conftest.err
>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } >/dev
/null
; then
2970 if test -s conftest.err
; then
2971 ac_cpp_err
=$ac_c_preproc_warn_flag
2972 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2979 if test -z "$ac_cpp_err"; then
2980 # Broken: success on invalid input.
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.
$ac_ext >&5
2986 # Passes both tests.
2990 rm -f conftest.err conftest.
$ac_ext
2993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2994 rm -f conftest.err conftest.
$ac_ext
2995 if $ac_preproc_ok; then
3007 echo "$as_me:$LINENO: result: $CPP" >&5
3008 echo "${ECHO_T}$CPP" >&6
3010 for ac_c_preproc_warn_flag
in '' yes
3012 # Use a header file that comes with gcc, so configuring glibc
3013 # with a fresh cross-compiler works.
3014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3015 # <limits.h> exists even on freestanding compilers.
3016 # On the NeXT, cc -E runs the code through the compiler's parser,
3017 # not just through cpp. "Syntax error" is here to catch this case.
3018 cat >conftest.
$ac_ext <<_ACEOF
3021 cat confdefs.h
>>conftest.
$ac_ext
3022 cat >>conftest.
$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3025 # include <limits.h>
3027 # include <assert.h>
3031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3032 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3034 grep -v '^ *+' conftest.er1
>conftest.err
3036 cat conftest.err
>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } >/dev
/null
; then
3039 if test -s conftest.err
; then
3040 ac_cpp_err
=$ac_c_preproc_warn_flag
3041 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3048 if test -z "$ac_cpp_err"; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.
$ac_ext >&5
3054 # Broken: fails on valid input.
3057 rm -f conftest.err conftest.
$ac_ext
3059 # OK, works on sane cases. Now check whether non-existent headers
3060 # can be detected and how.
3061 cat >conftest.
$ac_ext <<_ACEOF
3064 cat confdefs.h
>>conftest.
$ac_ext
3065 cat >>conftest.
$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 #include <ac_nonexistent.h>
3069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3070 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3072 grep -v '^ *+' conftest.er1
>conftest.err
3074 cat conftest.err
>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } >/dev
/null
; then
3077 if test -s conftest.err
; then
3078 ac_cpp_err
=$ac_c_preproc_warn_flag
3079 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3086 if test -z "$ac_cpp_err"; then
3087 # Broken: success on invalid input.
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.
$ac_ext >&5
3093 # Passes both tests.
3097 rm -f conftest.err conftest.
$ac_ext
3100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3101 rm -f conftest.err conftest.
$ac_ext
3102 if $ac_preproc_ok; then
3105 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3106 See \`config.log' for more details." >&5
3107 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3108 See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3113 ac_cpp
='$CPP $CPPFLAGS'
3114 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3119 echo "$as_me:$LINENO: checking for inline" >&5
3120 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3121 if test "${ac_cv_c_inline+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 for ac_kw
in inline __inline__ __inline
; do
3126 cat >conftest.
$ac_ext <<_ACEOF
3129 cat confdefs.h
>>conftest.
$ac_ext
3130 cat >>conftest.
$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3134 static $ac_kw foo_t static_foo () {return 0; }
3135 $ac_kw foo_t foo () {return 0; }
3139 rm -f conftest.
$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>conftest.er1
3143 grep -v '^ *+' conftest.er1
>conftest.err
3145 cat conftest.err
>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try
='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_c_inline
=$ac_kw; break
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.
$ac_ext >&5
3166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3170 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3171 echo "${ECHO_T}$ac_cv_c_inline" >&6
3174 case $ac_cv_c_inline in
3177 case $ac_cv_c_inline in
3179 *) ac_val
=$ac_cv_c_inline;;
3181 cat >>confdefs.h
<<_ACEOF
3183 #define inline $ac_val
3190 echo "$as_me:$LINENO: checking for long long int" >&5
3191 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3192 if test "${ac_cv_c_long_long+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 cat >conftest.
$ac_ext <<_ACEOF
3198 cat confdefs.h
>>conftest.
$ac_ext
3199 cat >>conftest.
$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3210 rm -f conftest.
$ac_objext
3211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212 (eval $ac_compile) 2>conftest.er1
3214 grep -v '^ *+' conftest.er1
>conftest.err
3216 cat conftest.err
>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } &&
3219 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try
='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 ac_cv_c_long_long
=yes
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.
$ac_ext >&5
3236 ac_cv_c_long_long
=no
3238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3240 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3241 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3242 if test $ac_cv_c_long_long = yes; then
3244 cat >>confdefs.h
<<\_ACEOF
3245 #define HAVE_LONG_LONG 1
3249 echo "$as_me:$LINENO: checking for __int64" >&5
3250 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3251 if test "${ac_cv_c___int64+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.
$ac_ext <<_ACEOF
3257 cat confdefs.h
>>conftest.
$ac_ext
3258 cat >>conftest.
$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3269 rm -f conftest.
$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>conftest.er1
3273 grep -v '^ *+' conftest.er1
>conftest.err
3275 cat conftest.err
>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; } &&
3284 { ac_try
='test -s conftest.$ac_objext'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; }; then
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.
$ac_ext >&5
3297 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3299 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3300 echo "${ECHO_T}$ac_cv_c___int64" >&6
3301 if test $ac_cv_c___int64 = yes; then
3303 cat >>confdefs.h
<<\_ACEOF
3304 #define HAVE___INT64 1
3310 # sizeof(char) is 1 by definition.
3312 echo "$as_me:$LINENO: checking for egrep" >&5
3313 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3314 if test "${ac_cv_prog_egrep+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3318 then ac_cv_prog_egrep
='grep -E'
3319 else ac_cv_prog_egrep
='egrep'
3322 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3323 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3324 EGREP
=$ac_cv_prog_egrep
3327 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3329 if test "${ac_cv_header_stdc+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 cat >conftest.
$ac_ext <<_ACEOF
3335 cat confdefs.h
>>conftest.
$ac_ext
3336 cat >>conftest.
$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3351 rm -f conftest.
$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>conftest.er1
3355 grep -v '^ *+' conftest.er1
>conftest.err
3357 cat conftest.err
>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; } &&
3366 { ac_try
='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_cv_header_stdc
=yes
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.
$ac_ext >&5
3377 ac_cv_header_stdc
=no
3379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3381 if test $ac_cv_header_stdc = yes; then
3382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3383 cat >conftest.
$ac_ext <<_ACEOF
3386 cat confdefs.h
>>conftest.
$ac_ext
3387 cat >>conftest.
$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 $EGREP "memchr" >/dev
/null
2>&1; then
3396 ac_cv_header_stdc
=no
3402 if test $ac_cv_header_stdc = yes; then
3403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3404 cat >conftest.
$ac_ext <<_ACEOF
3407 cat confdefs.h
>>conftest.
$ac_ext
3408 cat >>conftest.
$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 $EGREP "free" >/dev
/null
2>&1; then
3417 ac_cv_header_stdc
=no
3423 if test $ac_cv_header_stdc = yes; then
3424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3425 if test "$cross_compiling" = yes; then
3428 cat >conftest.
$ac_ext <<_ACEOF
3431 cat confdefs.h
>>conftest.
$ac_ext
3432 cat >>conftest.
$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3435 #if ((' ' & 0x0FF) == 0x020)
3436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3439 # define ISLOWER(c) \
3440 (('a' <= (c) && (c) <= 'i') \
3441 || ('j' <= (c) && (c) <= 'r') \
3442 || ('s' <= (c) && (c) <= 'z'))
3443 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3451 for (i = 0; i < 256; i++)
3452 if (XOR (islower (i), ISLOWER (i))
3453 || toupper (i) != TOUPPER (i))
3458 rm -f conftest
$ac_exeext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460 (eval $ac_link) 2>&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3471 echo "$as_me: program exited with status $ac_status" >&5
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.
$ac_ext >&5
3476 ac_cv_header_stdc
=no
3478 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3482 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3483 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3484 if test $ac_cv_header_stdc = yes; then
3486 cat >>confdefs.h
<<\_ACEOF
3487 #define STDC_HEADERS 1
3492 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3502 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3503 inttypes.h stdint.h unistd.h
3505 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3506 echo "$as_me:$LINENO: checking for $ac_header" >&5
3507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 cat >conftest.
$ac_ext <<_ACEOF
3514 cat confdefs.h
>>conftest.
$ac_ext
3515 cat >>conftest.
$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 $ac_includes_default
3519 #include <$ac_header>
3521 rm -f conftest.
$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try
='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 eval "$as_ac_Header=yes"
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.
$ac_ext >&5
3547 eval "$as_ac_Header=no"
3549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3554 cat >>confdefs.h
<<_ACEOF
3555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3563 echo "$as_me:$LINENO: checking for void *" >&5
3564 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3565 if test "${ac_cv_type_void_p+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 cat >conftest.
$ac_ext <<_ACEOF
3571 cat confdefs.h
>>conftest.
$ac_ext
3572 cat >>conftest.
$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 $ac_includes_default
3580 if (sizeof (void *))
3586 rm -f conftest.
$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3590 grep -v '^ *+' conftest.er1
>conftest.err
3592 cat conftest.err
>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try
='test -s conftest.$ac_objext'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3607 ac_cv_type_void_p
=yes
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.
$ac_ext >&5
3612 ac_cv_type_void_p
=no
3614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3616 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3617 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3619 echo "$as_me:$LINENO: checking size of void *" >&5
3620 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3621 if test "${ac_cv_sizeof_void_p+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 if test "$ac_cv_type_void_p" = yes; then
3625 # The cast to unsigned long works around a bug in the HP C Compiler
3626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3628 # This bug is HP SR number 8606223364.
3629 if test "$cross_compiling" = yes; then
3630 # Depending upon the size, compute the lo and hi bounds.
3631 cat >conftest.
$ac_ext <<_ACEOF
3634 cat confdefs.h
>>conftest.
$ac_ext
3635 cat >>conftest.
$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637 $ac_includes_default
3641 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3648 rm -f conftest.
$ac_objext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>conftest.er1
3652 grep -v '^ *+' conftest.er1
>conftest.err
3654 cat conftest.err
>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try
='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3671 cat >conftest.
$ac_ext <<_ACEOF
3674 cat confdefs.h
>>conftest.
$ac_ext
3675 cat >>conftest.
$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 $ac_includes_default
3681 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3688 rm -f conftest.
$ac_objext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>conftest.er1
3692 grep -v '^ *+' conftest.er1
>conftest.err
3694 cat conftest.err
>&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try
='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_hi
=$ac_mid; break
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.
$ac_ext >&5
3714 ac_lo
=`expr $ac_mid + 1`
3715 if test $ac_lo -le $ac_mid; then
3719 ac_mid
=`expr 2 '*' $ac_mid + 1`
3721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.
$ac_ext >&5
3727 cat >conftest.
$ac_ext <<_ACEOF
3730 cat confdefs.h
>>conftest.
$ac_ext
3731 cat >>conftest.
$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 $ac_includes_default
3737 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3744 rm -f conftest.
$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>conftest.er1
3748 grep -v '^ *+' conftest.er1
>conftest.err
3750 cat conftest.err
>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try
='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3767 cat >conftest.
$ac_ext <<_ACEOF
3770 cat confdefs.h
>>conftest.
$ac_ext
3771 cat >>conftest.
$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 $ac_includes_default
3777 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3784 rm -f conftest.
$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1
>conftest.err
3790 cat conftest.err
>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try
='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_lo
=$ac_mid; break
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.
$ac_ext >&5
3810 ac_hi
=`expr '(' $ac_mid ')' - 1`
3811 if test $ac_mid -le $ac_hi; then
3815 ac_mid
=`expr 2 '*' $ac_mid`
3817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.
$ac_ext >&5
3825 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3828 # Binary search between lo and hi bounds.
3829 while test "x$ac_lo" != "x$ac_hi"; do
3830 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3831 cat >conftest.
$ac_ext <<_ACEOF
3834 cat confdefs.h
>>conftest.
$ac_ext
3835 cat >>conftest.
$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 $ac_includes_default
3841 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3848 rm -f conftest.
$ac_objext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>conftest.er1
3852 grep -v '^ *+' conftest.er1
>conftest.err
3854 cat conftest.err
>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try
='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.
$ac_ext >&5
3874 ac_lo
=`expr '(' $ac_mid ')' + 1`
3876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3879 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3880 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3881 See \`config.log' for more details." >&5
3882 echo "$as_me: error: cannot compute sizeof (void *), 77
3883 See \`config.log' for more details." >&2;}
3884 { (exit 1); exit 1; }; } ;;
3887 if test "$cross_compiling" = yes; then
3888 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3889 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3890 { (exit 1); exit 1; }; }
3892 cat >conftest.
$ac_ext <<_ACEOF
3895 cat confdefs.h
>>conftest.
$ac_ext
3896 cat >>conftest.
$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 $ac_includes_default
3899 long longval () { return (long) (sizeof (void *)); }
3900 unsigned long ulongval () { return (long) (sizeof (void *)); }
3907 FILE *f = fopen ("conftest.val", "w");
3910 if (((long) (sizeof (void *))) < 0)
3912 long i = longval ();
3913 if (i != ((long) (sizeof (void *))))
3915 fprintf (f, "%ld\n", i);
3919 unsigned long i = ulongval ();
3920 if (i != ((long) (sizeof (void *))))
3922 fprintf (f, "%lu\n", i);
3924 exit (ferror (f) || fclose (f) != 0);
3930 rm -f conftest
$ac_exeext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 ac_cv_sizeof_void_p
=`cat conftest.val`
3943 echo "$as_me: program exited with status $ac_status" >&5
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.
$ac_ext >&5
3948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3949 See \`config.log' for more details." >&5
3950 echo "$as_me: error: cannot compute sizeof (void *), 77
3951 See \`config.log' for more details." >&2;}
3952 { (exit 1); exit 1; }; }
3954 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3959 ac_cv_sizeof_void_p
=0
3962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3963 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3964 cat >>confdefs.h
<<_ACEOF
3965 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3969 echo "$as_me:$LINENO: checking for short" >&5
3970 echo $ECHO_N "checking for short... $ECHO_C" >&6
3971 if test "${ac_cv_type_short+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 cat >conftest.
$ac_ext <<_ACEOF
3977 cat confdefs.h
>>conftest.
$ac_ext
3978 cat >>conftest.
$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3980 $ac_includes_default
3992 rm -f conftest.
$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1
>conftest.err
3998 cat conftest.err
>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try
='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_type_short
=yes
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.
$ac_ext >&5
4020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4023 echo "${ECHO_T}$ac_cv_type_short" >&6
4025 echo "$as_me:$LINENO: checking size of short" >&5
4026 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4027 if test "${ac_cv_sizeof_short+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test "$ac_cv_type_short" = yes; then
4031 # The cast to unsigned long works around a bug in the HP C Compiler
4032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4034 # This bug is HP SR number 8606223364.
4035 if test "$cross_compiling" = yes; then
4036 # Depending upon the size, compute the lo and hi bounds.
4037 cat >conftest.
$ac_ext <<_ACEOF
4040 cat confdefs.h
>>conftest.
$ac_ext
4041 cat >>conftest.
$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 $ac_includes_default
4047 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4054 rm -f conftest.
$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>conftest.er1
4058 grep -v '^ *+' conftest.er1
>conftest.err
4060 cat conftest.err
>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try
='test -s conftest.$ac_objext'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4077 cat >conftest.
$ac_ext <<_ACEOF
4080 cat confdefs.h
>>conftest.
$ac_ext
4081 cat >>conftest.
$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 $ac_includes_default
4087 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4094 rm -f conftest.
$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>conftest.er1
4098 grep -v '^ *+' conftest.er1
>conftest.err
4100 cat conftest.err
>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } &&
4103 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try
='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 ac_hi
=$ac_mid; break
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.
$ac_ext >&5
4120 ac_lo
=`expr $ac_mid + 1`
4121 if test $ac_lo -le $ac_mid; then
4125 ac_mid
=`expr 2 '*' $ac_mid + 1`
4127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.
$ac_ext >&5
4133 cat >conftest.
$ac_ext <<_ACEOF
4136 cat confdefs.h
>>conftest.
$ac_ext
4137 cat >>conftest.
$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 $ac_includes_default
4143 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4150 rm -f conftest.
$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4154 grep -v '^ *+' conftest.er1
>conftest.err
4156 cat conftest.err
>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try
='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4173 cat >conftest.
$ac_ext <<_ACEOF
4176 cat confdefs.h
>>conftest.
$ac_ext
4177 cat >>conftest.
$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 $ac_includes_default
4183 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4190 rm -f conftest.
$ac_objext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>conftest.er1
4194 grep -v '^ *+' conftest.er1
>conftest.err
4196 cat conftest.err
>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try
='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_lo
=$ac_mid; break
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.
$ac_ext >&5
4216 ac_hi
=`expr '(' $ac_mid ')' - 1`
4217 if test $ac_mid -le $ac_hi; then
4221 ac_mid
=`expr 2 '*' $ac_mid`
4223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.
$ac_ext >&5
4231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4234 # Binary search between lo and hi bounds.
4235 while test "x$ac_lo" != "x$ac_hi"; do
4236 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4237 cat >conftest.
$ac_ext <<_ACEOF
4240 cat confdefs.h
>>conftest.
$ac_ext
4241 cat >>conftest.
$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 $ac_includes_default
4247 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4254 rm -f conftest.
$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>conftest.er1
4258 grep -v '^ *+' conftest.er1
>conftest.err
4260 cat conftest.err
>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try
='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.
$ac_ext >&5
4280 ac_lo
=`expr '(' $ac_mid ')' + 1`
4282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4285 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4287 See \`config.log' for more details." >&5
4288 echo "$as_me: error: cannot compute sizeof (short), 77
4289 See \`config.log' for more details." >&2;}
4290 { (exit 1); exit 1; }; } ;;
4293 if test "$cross_compiling" = yes; then
4294 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4295 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4296 { (exit 1); exit 1; }; }
4298 cat >conftest.
$ac_ext <<_ACEOF
4301 cat confdefs.h
>>conftest.
$ac_ext
4302 cat >>conftest.
$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 $ac_includes_default
4305 long longval () { return (long) (sizeof (short)); }
4306 unsigned long ulongval () { return (long) (sizeof (short)); }
4313 FILE *f = fopen ("conftest.val", "w");
4316 if (((long) (sizeof (short))) < 0)
4318 long i = longval ();
4319 if (i != ((long) (sizeof (short))))
4321 fprintf (f, "%ld\n", i);
4325 unsigned long i = ulongval ();
4326 if (i != ((long) (sizeof (short))))
4328 fprintf (f, "%lu\n", i);
4330 exit (ferror (f) || fclose (f) != 0);
4336 rm -f conftest
$ac_exeext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338 (eval $ac_link) 2>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_sizeof_short
=`cat conftest.val`
4349 echo "$as_me: program exited with status $ac_status" >&5
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.
$ac_ext >&5
4354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4355 See \`config.log' for more details." >&5
4356 echo "$as_me: error: cannot compute sizeof (short), 77
4357 See \`config.log' for more details." >&2;}
4358 { (exit 1); exit 1; }; }
4360 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4365 ac_cv_sizeof_short
=0
4368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4369 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4370 cat >>confdefs.h
<<_ACEOF
4371 #define SIZEOF_SHORT $ac_cv_sizeof_short
4375 echo "$as_me:$LINENO: checking for int" >&5
4376 echo $ECHO_N "checking for int... $ECHO_C" >&6
4377 if test "${ac_cv_type_int+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 cat >conftest.
$ac_ext <<_ACEOF
4383 cat confdefs.h
>>conftest.
$ac_ext
4384 cat >>conftest.
$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 $ac_includes_default
4398 rm -f conftest.
$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>conftest.er1
4402 grep -v '^ *+' conftest.er1
>conftest.err
4404 cat conftest.err
>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try
='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.
$ac_ext >&5
4426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4428 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4429 echo "${ECHO_T}$ac_cv_type_int" >&6
4431 echo "$as_me:$LINENO: checking size of int" >&5
4432 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4433 if test "${ac_cv_sizeof_int+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 if test "$ac_cv_type_int" = yes; then
4437 # The cast to unsigned long works around a bug in the HP C Compiler
4438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4440 # This bug is HP SR number 8606223364.
4441 if test "$cross_compiling" = yes; then
4442 # Depending upon the size, compute the lo and hi bounds.
4443 cat >conftest.
$ac_ext <<_ACEOF
4446 cat confdefs.h
>>conftest.
$ac_ext
4447 cat >>conftest.
$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 $ac_includes_default
4453 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4460 rm -f conftest.
$ac_objext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>conftest.er1
4464 grep -v '^ *+' conftest.er1
>conftest.err
4466 cat conftest.err
>&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try
='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4483 cat >conftest.
$ac_ext <<_ACEOF
4486 cat confdefs.h
>>conftest.
$ac_ext
4487 cat >>conftest.
$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 $ac_includes_default
4493 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4500 rm -f conftest.
$ac_objext
4501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4502 (eval $ac_compile) 2>conftest.er1
4504 grep -v '^ *+' conftest.er1
>conftest.err
4506 cat conftest.err
>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; } &&
4515 { ac_try
='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_hi
=$ac_mid; break
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.
$ac_ext >&5
4526 ac_lo
=`expr $ac_mid + 1`
4527 if test $ac_lo -le $ac_mid; then
4531 ac_mid
=`expr 2 '*' $ac_mid + 1`
4533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.
$ac_ext >&5
4539 cat >conftest.
$ac_ext <<_ACEOF
4542 cat confdefs.h
>>conftest.
$ac_ext
4543 cat >>conftest.
$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 $ac_includes_default
4549 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4556 rm -f conftest.
$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>conftest.er1
4560 grep -v '^ *+' conftest.er1
>conftest.err
4562 cat conftest.err
>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try
='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4579 cat >conftest.
$ac_ext <<_ACEOF
4582 cat confdefs.h
>>conftest.
$ac_ext
4583 cat >>conftest.
$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 $ac_includes_default
4589 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4596 rm -f conftest.
$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1
>conftest.err
4602 cat conftest.err
>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try
='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_lo
=$ac_mid; break
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.
$ac_ext >&5
4622 ac_hi
=`expr '(' $ac_mid ')' - 1`
4623 if test $ac_mid -le $ac_hi; then
4627 ac_mid
=`expr 2 '*' $ac_mid`
4629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.
$ac_ext >&5
4637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4640 # Binary search between lo and hi bounds.
4641 while test "x$ac_lo" != "x$ac_hi"; do
4642 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4643 cat >conftest.
$ac_ext <<_ACEOF
4646 cat confdefs.h
>>conftest.
$ac_ext
4647 cat >>conftest.
$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4653 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4660 rm -f conftest.
$ac_objext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>conftest.er1
4664 grep -v '^ *+' conftest.er1
>conftest.err
4666 cat conftest.err
>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
4669 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try
='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.
$ac_ext >&5
4686 ac_lo
=`expr '(' $ac_mid ')' + 1`
4688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4691 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4693 See \`config.log' for more details." >&5
4694 echo "$as_me: error: cannot compute sizeof (int), 77
4695 See \`config.log' for more details." >&2;}
4696 { (exit 1); exit 1; }; } ;;
4699 if test "$cross_compiling" = yes; then
4700 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4701 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4702 { (exit 1); exit 1; }; }
4704 cat >conftest.
$ac_ext <<_ACEOF
4707 cat confdefs.h
>>conftest.
$ac_ext
4708 cat >>conftest.
$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 $ac_includes_default
4711 long longval () { return (long) (sizeof (int)); }
4712 unsigned long ulongval () { return (long) (sizeof (int)); }
4719 FILE *f = fopen ("conftest.val", "w");
4722 if (((long) (sizeof (int))) < 0)
4724 long i = longval ();
4725 if (i != ((long) (sizeof (int))))
4727 fprintf (f, "%ld\n", i);
4731 unsigned long i = ulongval ();
4732 if (i != ((long) (sizeof (int))))
4734 fprintf (f, "%lu\n", i);
4736 exit (ferror (f) || fclose (f) != 0);
4742 rm -f conftest
$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 ac_cv_sizeof_int
=`cat conftest.val`
4755 echo "$as_me: program exited with status $ac_status" >&5
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.
$ac_ext >&5
4760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4761 See \`config.log' for more details." >&5
4762 echo "$as_me: error: cannot compute sizeof (int), 77
4763 See \`config.log' for more details." >&2;}
4764 { (exit 1); exit 1; }; }
4766 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4774 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4775 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4776 cat >>confdefs.h
<<_ACEOF
4777 #define SIZEOF_INT $ac_cv_sizeof_int
4781 echo "$as_me:$LINENO: checking for long" >&5
4782 echo $ECHO_N "checking for long... $ECHO_C" >&6
4783 if test "${ac_cv_type_long+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 cat >conftest.
$ac_ext <<_ACEOF
4789 cat confdefs.h
>>conftest.
$ac_ext
4790 cat >>conftest.
$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4804 rm -f conftest.
$ac_objext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>conftest.er1
4808 grep -v '^ *+' conftest.er1
>conftest.err
4810 cat conftest.err
>&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try
='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.
$ac_ext >&5
4832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4834 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4835 echo "${ECHO_T}$ac_cv_type_long" >&6
4837 echo "$as_me:$LINENO: checking size of long" >&5
4838 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4839 if test "${ac_cv_sizeof_long+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 if test "$ac_cv_type_long" = yes; then
4843 # The cast to unsigned long works around a bug in the HP C Compiler
4844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4846 # This bug is HP SR number 8606223364.
4847 if test "$cross_compiling" = yes; then
4848 # Depending upon the size, compute the lo and hi bounds.
4849 cat >conftest.
$ac_ext <<_ACEOF
4852 cat confdefs.h
>>conftest.
$ac_ext
4853 cat >>conftest.
$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4859 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4866 rm -f conftest.
$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4870 grep -v '^ *+' conftest.er1
>conftest.err
4872 cat conftest.err
>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try
='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4889 cat >conftest.
$ac_ext <<_ACEOF
4892 cat confdefs.h
>>conftest.
$ac_ext
4893 cat >>conftest.
$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 $ac_includes_default
4899 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4906 rm -f conftest.
$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908 (eval $ac_compile) 2>conftest.er1
4910 grep -v '^ *+' conftest.er1
>conftest.err
4912 cat conftest.err
>&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try
='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_hi
=$ac_mid; break
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.
$ac_ext >&5
4932 ac_lo
=`expr $ac_mid + 1`
4933 if test $ac_lo -le $ac_mid; then
4937 ac_mid
=`expr 2 '*' $ac_mid + 1`
4939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.
$ac_ext >&5
4945 cat >conftest.
$ac_ext <<_ACEOF
4948 cat confdefs.h
>>conftest.
$ac_ext
4949 cat >>conftest.
$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 $ac_includes_default
4955 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4962 rm -f conftest.
$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1
>conftest.err
4968 cat conftest.err
>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try
='test -s conftest.$ac_objext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4985 cat >conftest.
$ac_ext <<_ACEOF
4988 cat confdefs.h
>>conftest.
$ac_ext
4989 cat >>conftest.
$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 $ac_includes_default
4995 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5002 rm -f conftest.
$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1
>conftest.err
5008 cat conftest.err
>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try
='test -s conftest.$ac_objext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 ac_lo
=$ac_mid; break
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.
$ac_ext >&5
5028 ac_hi
=`expr '(' $ac_mid ')' - 1`
5029 if test $ac_mid -le $ac_hi; then
5033 ac_mid
=`expr 2 '*' $ac_mid`
5035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.
$ac_ext >&5
5043 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5046 # Binary search between lo and hi bounds.
5047 while test "x$ac_lo" != "x$ac_hi"; do
5048 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5049 cat >conftest.
$ac_ext <<_ACEOF
5052 cat confdefs.h
>>conftest.
$ac_ext
5053 cat >>conftest.
$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 $ac_includes_default
5059 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5066 rm -f conftest.
$ac_objext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>conftest.er1
5070 grep -v '^ *+' conftest.er1
>conftest.err
5072 cat conftest.err
>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try
='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.
$ac_ext >&5
5092 ac_lo
=`expr '(' $ac_mid ')' + 1`
5094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5097 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5099 See \`config.log' for more details." >&5
5100 echo "$as_me: error: cannot compute sizeof (long), 77
5101 See \`config.log' for more details." >&2;}
5102 { (exit 1); exit 1; }; } ;;
5105 if test "$cross_compiling" = yes; then
5106 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5107 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5108 { (exit 1); exit 1; }; }
5110 cat >conftest.
$ac_ext <<_ACEOF
5113 cat confdefs.h
>>conftest.
$ac_ext
5114 cat >>conftest.
$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5117 long longval () { return (long) (sizeof (long)); }
5118 unsigned long ulongval () { return (long) (sizeof (long)); }
5125 FILE *f = fopen ("conftest.val", "w");
5128 if (((long) (sizeof (long))) < 0)
5130 long i = longval ();
5131 if (i != ((long) (sizeof (long))))
5133 fprintf (f, "%ld\n", i);
5137 unsigned long i = ulongval ();
5138 if (i != ((long) (sizeof (long))))
5140 fprintf (f, "%lu\n", i);
5142 exit (ferror (f) || fclose (f) != 0);
5148 rm -f conftest
$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 ac_cv_sizeof_long
=`cat conftest.val`
5161 echo "$as_me: program exited with status $ac_status" >&5
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.
$ac_ext >&5
5166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5167 See \`config.log' for more details." >&5
5168 echo "$as_me: error: cannot compute sizeof (long), 77
5169 See \`config.log' for more details." >&2;}
5170 { (exit 1); exit 1; }; }
5172 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5180 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5181 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5182 cat >>confdefs.h
<<_ACEOF
5183 #define SIZEOF_LONG $ac_cv_sizeof_long
5187 if test $ac_cv_c_long_long = yes; then
5188 echo "$as_me:$LINENO: checking for long long" >&5
5189 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5190 if test "${ac_cv_type_long_long+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 cat >conftest.
$ac_ext <<_ACEOF
5196 cat confdefs.h
>>conftest.
$ac_ext
5197 cat >>conftest.
$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 $ac_includes_default
5203 if ((long long *) 0)
5205 if (sizeof (long long))
5211 rm -f conftest.
$ac_objext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213 (eval $ac_compile) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1
>conftest.err
5217 cat conftest.err
>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try
='test -s conftest.$ac_objext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_cv_type_long_long
=yes
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.
$ac_ext >&5
5237 ac_cv_type_long_long
=no
5239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5241 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5242 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5244 echo "$as_me:$LINENO: checking size of long long" >&5
5245 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5246 if test "${ac_cv_sizeof_long_long+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 if test "$ac_cv_type_long_long" = yes; then
5250 # The cast to unsigned long works around a bug in the HP C Compiler
5251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5253 # This bug is HP SR number 8606223364.
5254 if test "$cross_compiling" = yes; then
5255 # Depending upon the size, compute the lo and hi bounds.
5256 cat >conftest.
$ac_ext <<_ACEOF
5259 cat confdefs.h
>>conftest.
$ac_ext
5260 cat >>conftest.
$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 $ac_includes_default
5266 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5273 rm -f conftest.
$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>conftest.er1
5277 grep -v '^ *+' conftest.er1
>conftest.err
5279 cat conftest.err
>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try
='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5296 cat >conftest.
$ac_ext <<_ACEOF
5299 cat confdefs.h
>>conftest.
$ac_ext
5300 cat >>conftest.
$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 $ac_includes_default
5306 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5313 rm -f conftest.
$ac_objext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>conftest.er1
5317 grep -v '^ *+' conftest.er1
>conftest.err
5319 cat conftest.err
>&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; } &&
5328 { ac_try
='test -s conftest.$ac_objext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_hi
=$ac_mid; break
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.
$ac_ext >&5
5339 ac_lo
=`expr $ac_mid + 1`
5340 if test $ac_lo -le $ac_mid; then
5344 ac_mid
=`expr 2 '*' $ac_mid + 1`
5346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.
$ac_ext >&5
5352 cat >conftest.
$ac_ext <<_ACEOF
5355 cat confdefs.h
>>conftest.
$ac_ext
5356 cat >>conftest.
$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 $ac_includes_default
5362 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5369 rm -f conftest.
$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5373 grep -v '^ *+' conftest.er1
>conftest.err
5375 cat conftest.err
>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try
='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5392 cat >conftest.
$ac_ext <<_ACEOF
5395 cat confdefs.h
>>conftest.
$ac_ext
5396 cat >>conftest.
$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5402 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5409 rm -f conftest.
$ac_objext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411 (eval $ac_compile) 2>conftest.er1
5413 grep -v '^ *+' conftest.er1
>conftest.err
5415 cat conftest.err
>&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; } &&
5424 { ac_try
='test -s conftest.$ac_objext'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5430 ac_lo
=$ac_mid; break
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.
$ac_ext >&5
5435 ac_hi
=`expr '(' $ac_mid ')' - 1`
5436 if test $ac_mid -le $ac_hi; then
5440 ac_mid
=`expr 2 '*' $ac_mid`
5442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.
$ac_ext >&5
5450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5453 # Binary search between lo and hi bounds.
5454 while test "x$ac_lo" != "x$ac_hi"; do
5455 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5456 cat >conftest.
$ac_ext <<_ACEOF
5459 cat confdefs.h
>>conftest.
$ac_ext
5460 cat >>conftest.
$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 $ac_includes_default
5466 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5473 rm -f conftest.
$ac_objext
5474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475 (eval $ac_compile) 2>conftest.er1
5477 grep -v '^ *+' conftest.er1
>conftest.err
5479 cat conftest.err
>&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; } &&
5488 { ac_try
='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.
$ac_ext >&5
5499 ac_lo
=`expr '(' $ac_mid ')' + 1`
5501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5504 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5505 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5506 See \`config.log' for more details." >&5
5507 echo "$as_me: error: cannot compute sizeof (long long), 77
5508 See \`config.log' for more details." >&2;}
5509 { (exit 1); exit 1; }; } ;;
5512 if test "$cross_compiling" = yes; then
5513 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5514 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5515 { (exit 1); exit 1; }; }
5517 cat >conftest.
$ac_ext <<_ACEOF
5520 cat confdefs.h
>>conftest.
$ac_ext
5521 cat >>conftest.
$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5524 long longval () { return (long) (sizeof (long long)); }
5525 unsigned long ulongval () { return (long) (sizeof (long long)); }
5532 FILE *f = fopen ("conftest.val", "w");
5535 if (((long) (sizeof (long long))) < 0)
5537 long i = longval ();
5538 if (i != ((long) (sizeof (long long))))
5540 fprintf (f, "%ld\n", i);
5544 unsigned long i = ulongval ();
5545 if (i != ((long) (sizeof (long long))))
5547 fprintf (f, "%lu\n", i);
5549 exit (ferror (f) || fclose (f) != 0);
5555 rm -f conftest
$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 ac_cv_sizeof_long_long
=`cat conftest.val`
5568 echo "$as_me: program exited with status $ac_status" >&5
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.
$ac_ext >&5
5573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5574 See \`config.log' for more details." >&5
5575 echo "$as_me: error: cannot compute sizeof (long long), 77
5576 See \`config.log' for more details." >&2;}
5577 { (exit 1); exit 1; }; }
5579 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5584 ac_cv_sizeof_long_long
=0
5587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5588 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5589 cat >>confdefs.h
<<_ACEOF
5590 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5595 if test $ac_cv_c___int64 = yes; then
5596 echo "$as_me:$LINENO: checking for __int64" >&5
5597 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5598 if test "${ac_cv_type___int64+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 cat >conftest.
$ac_ext <<_ACEOF
5604 cat confdefs.h
>>conftest.
$ac_ext
5605 cat >>conftest.
$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 $ac_includes_default
5613 if (sizeof (__int64))
5619 rm -f conftest.
$ac_objext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>conftest.er1
5623 grep -v '^ *+' conftest.er1
>conftest.err
5625 cat conftest.err
>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try
='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_cv_type___int64
=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.
$ac_ext >&5
5645 ac_cv_type___int64
=no
5647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5649 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5650 echo "${ECHO_T}$ac_cv_type___int64" >&6
5652 echo "$as_me:$LINENO: checking size of __int64" >&5
5653 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5654 if test "${ac_cv_sizeof___int64+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 if test "$ac_cv_type___int64" = yes; then
5658 # The cast to unsigned long works around a bug in the HP C Compiler
5659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5661 # This bug is HP SR number 8606223364.
5662 if test "$cross_compiling" = yes; then
5663 # Depending upon the size, compute the lo and hi bounds.
5664 cat >conftest.
$ac_ext <<_ACEOF
5667 cat confdefs.h
>>conftest.
$ac_ext
5668 cat >>conftest.
$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 $ac_includes_default
5674 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5681 rm -f conftest.
$ac_objext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683 (eval $ac_compile) 2>conftest.er1
5685 grep -v '^ *+' conftest.er1
>conftest.err
5687 cat conftest.err
>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; } &&
5696 { ac_try
='test -s conftest.$ac_objext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5704 cat >conftest.
$ac_ext <<_ACEOF
5707 cat confdefs.h
>>conftest.
$ac_ext
5708 cat >>conftest.
$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 $ac_includes_default
5714 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5721 rm -f conftest.
$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>conftest.er1
5725 grep -v '^ *+' conftest.er1
>conftest.err
5727 cat conftest.err
>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try
='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_hi
=$ac_mid; break
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.
$ac_ext >&5
5747 ac_lo
=`expr $ac_mid + 1`
5748 if test $ac_lo -le $ac_mid; then
5752 ac_mid
=`expr 2 '*' $ac_mid + 1`
5754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.
$ac_ext >&5
5760 cat >conftest.
$ac_ext <<_ACEOF
5763 cat confdefs.h
>>conftest.
$ac_ext
5764 cat >>conftest.
$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5770 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5777 rm -f conftest.
$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5781 grep -v '^ *+' conftest.er1
>conftest.err
5783 cat conftest.err
>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try
='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5800 cat >conftest.
$ac_ext <<_ACEOF
5803 cat confdefs.h
>>conftest.
$ac_ext
5804 cat >>conftest.
$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 $ac_includes_default
5810 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5817 rm -f conftest.
$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5821 grep -v '^ *+' conftest.er1
>conftest.err
5823 cat conftest.err
>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try
='test -s conftest.$ac_objext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_lo
=$ac_mid; break
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.
$ac_ext >&5
5843 ac_hi
=`expr '(' $ac_mid ')' - 1`
5844 if test $ac_mid -le $ac_hi; then
5848 ac_mid
=`expr 2 '*' $ac_mid`
5850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.
$ac_ext >&5
5858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5861 # Binary search between lo and hi bounds.
5862 while test "x$ac_lo" != "x$ac_hi"; do
5863 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5864 cat >conftest.
$ac_ext <<_ACEOF
5867 cat confdefs.h
>>conftest.
$ac_ext
5868 cat >>conftest.
$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 $ac_includes_default
5874 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5881 rm -f conftest.
$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>conftest.er1
5885 grep -v '^ *+' conftest.er1
>conftest.err
5887 cat conftest.err
>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try
='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.
$ac_ext >&5
5907 ac_lo
=`expr '(' $ac_mid ')' + 1`
5909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5913 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5914 See \`config.log' for more details." >&5
5915 echo "$as_me: error: cannot compute sizeof (__int64), 77
5916 See \`config.log' for more details." >&2;}
5917 { (exit 1); exit 1; }; } ;;
5920 if test "$cross_compiling" = yes; then
5921 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5922 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5923 { (exit 1); exit 1; }; }
5925 cat >conftest.
$ac_ext <<_ACEOF
5928 cat confdefs.h
>>conftest.
$ac_ext
5929 cat >>conftest.
$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5932 long longval () { return (long) (sizeof (__int64)); }
5933 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5940 FILE *f = fopen ("conftest.val", "w");
5943 if (((long) (sizeof (__int64))) < 0)
5945 long i = longval ();
5946 if (i != ((long) (sizeof (__int64))))
5948 fprintf (f, "%ld\n", i);
5952 unsigned long i = ulongval ();
5953 if (i != ((long) (sizeof (__int64))))
5955 fprintf (f, "%lu\n", i);
5957 exit (ferror (f) || fclose (f) != 0);
5963 rm -f conftest
$ac_exeext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5965 (eval $ac_link) 2>&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 ac_cv_sizeof___int64
=`cat conftest.val`
5976 echo "$as_me: program exited with status $ac_status" >&5
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.
$ac_ext >&5
5981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5982 See \`config.log' for more details." >&5
5983 echo "$as_me: error: cannot compute sizeof (__int64), 77
5984 See \`config.log' for more details." >&2;}
5985 { (exit 1); exit 1; }; }
5987 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5992 ac_cv_sizeof___int64
=0
5995 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5996 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5997 cat >>confdefs.h
<<_ACEOF
5998 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6004 # ---------------------
6005 # Warnings and checking
6006 # ---------------------
6008 # Check $CC warning features (if it's GCC).
6009 # We want to use -pedantic, but we don't want warnings about
6012 # So, we only use -pedantic if we can disable those warnings.
6014 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6015 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6016 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 save_CFLAGS
="$CFLAGS"
6020 CFLAGS
="-Wno-long-long"
6021 cat >conftest.
$ac_ext <<_ACEOF
6024 cat confdefs.h
>>conftest.
$ac_ext
6025 cat >>conftest.
$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6029 rm -f conftest.
$ac_objext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031 (eval $ac_compile) 2>conftest.er1
6033 grep -v '^ *+' conftest.er1
>conftest.err
6035 cat conftest.err
>&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try
='test -s conftest.$ac_objext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_prog_cc_w_no_long_long
=yes
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.
$ac_ext >&5
6055 ac_cv_prog_cc_w_no_long_long
=no
6057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6058 CFLAGS
="$save_CFLAGS"
6061 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6062 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6064 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6065 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6066 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 save_CFLAGS
="$CFLAGS"
6070 CFLAGS
="-Wno-variadic-macros"
6071 cat >conftest.
$ac_ext <<_ACEOF
6074 cat confdefs.h
>>conftest.
$ac_ext
6075 cat >>conftest.
$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6079 rm -f conftest.
$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081 (eval $ac_compile) 2>conftest.er1
6083 grep -v '^ *+' conftest.er1
>conftest.err
6085 cat conftest.err
>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try
='test -s conftest.$ac_objext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_prog_cc_w_no_variadic_macros
=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.
$ac_ext >&5
6105 ac_cv_prog_cc_w_no_variadic_macros
=no
6107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6108 CFLAGS
="$save_CFLAGS"
6111 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6112 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6115 if test $ac_cv_prog_cc_w_no_long_long = yes \
6116 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6117 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6121 # Add -Wold-style-definition if it's accepted
6122 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6123 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6124 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 save_CFLAGS
="$CFLAGS"
6128 CFLAGS
="-Wold-style-definition"
6129 cat >conftest.
$ac_ext <<_ACEOF
6132 cat confdefs.h
>>conftest.
$ac_ext
6133 cat >>conftest.
$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6137 rm -f conftest.
$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>conftest.er1
6141 grep -v '^ *+' conftest.er1
>conftest.err
6143 cat conftest.err
>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try
='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_prog_cc_w_old_style_definition
=yes
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.
$ac_ext >&5
6163 ac_cv_prog_cc_w_old_style_definition
=no
6165 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6166 CFLAGS
="$save_CFLAGS"
6169 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6170 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6171 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6172 strict1_warn
="${strict1_warn} -Wold-style-definition"
6175 # Enable -Werror, period.
6176 # Check whether --enable-werror_always or --disable-werror_always was given.
6177 if test "${enable_werror_always+set}" = set; then
6178 enableval
="$enable_werror_always"
6181 enable_werror_always
=no
6183 if test x
${enable_werror_always} = xyes
; then
6184 strict1_warn
="${strict1_warn} -Werror"
6188 # If the native compiler is GCC, we can enable warnings even in stage1.
6189 # That's useful for people building cross-compilers, or just running a
6192 if test "x$GCC" = "xyes"; then
6193 warn_cflags
='$(GCC_WARN_CFLAGS)'
6197 # Enable -Werror in bootstrap stage2 and later.
6198 # Check whether --enable-werror or --disable-werror was given.
6199 if test "${enable_werror+set}" = set; then
6200 enableval
="$enable_werror"
6203 if test x
$is_release = x
; then
6204 # Default to "yes" on development branches.
6207 # Default to "no" on release branches.
6211 if test x
$enable_werror = xyes
; then
6216 # Enable expensive internal checks
6217 # Check whether --enable-checking or --disable-checking was given.
6218 if test "${enable_checking+set}" = set; then
6219 enableval
="$enable_checking"
6220 ac_checking_flags
="${enableval}"
6223 # Determine the default checks.
6224 if test x
$is_release = x
; then
6225 ac_checking_flags
=yes
6227 ac_checking_flags
=release
6230 ac_assert_checking
=1
6234 ac_rtlflag_checking
=
6236 ac_gc_always_collect
=
6238 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6239 for check
in $ac_checking_flags
6242 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6243 ac_tree_checking
=1 ; ac_gc_checking
=1 ;
6244 ac_rtlflag_checking
=1 ;;
6245 no
) ac_assert_checking
= ; ac_checking
= ;
6246 ac_tree_checking
= ; ac_rtl_checking
= ;
6247 ac_rtlflag_checking
= ; ac_gc_checking
= ;
6248 ac_gc_always_collect
= ; ac_fold_checking
= ;;
6249 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6250 ac_tree_checking
=1 ; ac_rtl_checking
=1 ;
6251 ac_rtlflag_checking
=1 ; ac_gc_checking
=1 ;
6252 ac_gc_always_collect
=1 ; ac_fold_checking
=1 ;;
6253 release
) ac_assert_checking
=1 ;;
6254 assert
) ac_assert_checking
=1 ;;
6255 fold) ac_fold_checking
=1 ;;
6256 gc
) ac_gc_checking
=1 ;;
6257 gcac
) ac_gc_always_collect
=1 ;;
6258 misc
) ac_checking
=1 ;;
6259 rtlflag
) ac_rtlflag_checking
=1 ;;
6260 rtl
) ac_rtl_checking
=1 ;;
6261 tree
) ac_tree_checking
=1 ;;
6262 valgrind
) ac_checking_valgrind
=1 ;;
6263 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6264 echo "$as_me: error: unknown check category $check" >&2;}
6265 { (exit 1); exit 1; }; } ;;
6271 if test x
$ac_checking != x
; then
6273 cat >>confdefs.h
<<\_ACEOF
6274 #define ENABLE_CHECKING 1
6277 nocommon_flag
=-fno-common
6280 if test x
$ac_assert_checking != x
; then
6282 cat >>confdefs.h
<<\_ACEOF
6283 #define ENABLE_ASSERT_CHECKING 1
6287 if test x
$ac_tree_checking != x
; then
6289 cat >>confdefs.h
<<\_ACEOF
6290 #define ENABLE_TREE_CHECKING 1
6293 TREEBROWSER
=tree-browser.o
6296 if test x
$ac_rtl_checking != x
; then
6298 cat >>confdefs.h
<<\_ACEOF
6299 #define ENABLE_RTL_CHECKING 1
6303 if test x
$ac_rtlflag_checking != x
; then
6305 cat >>confdefs.h
<<\_ACEOF
6306 #define ENABLE_RTL_FLAG_CHECKING 1
6310 if test x
$ac_gc_checking != x
; then
6312 cat >>confdefs.h
<<\_ACEOF
6313 #define ENABLE_GC_CHECKING 1
6317 if test x
$ac_gc_always_collect != x
; then
6319 cat >>confdefs.h
<<\_ACEOF
6320 #define ENABLE_GC_ALWAYS_COLLECT 1
6324 if test x
$ac_fold_checking != x
; then
6326 cat >>confdefs.h
<<\_ACEOF
6327 #define ENABLE_FOLD_CHECKING 1
6331 valgrind_path_defines
=
6334 if test "${ac_cv_header_valgrind_h+set}" = set; then
6335 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6336 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6337 if test "${ac_cv_header_valgrind_h+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6341 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6343 # Is the header compilable?
6344 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6345 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6346 cat >conftest.
$ac_ext <<_ACEOF
6349 cat confdefs.h
>>conftest.
$ac_ext
6350 cat >>conftest.
$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 $ac_includes_default
6353 #include <valgrind.h>
6355 rm -f conftest.
$ac_objext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357 (eval $ac_compile) 2>conftest.er1
6359 grep -v '^ *+' conftest.er1
>conftest.err
6361 cat conftest.err
>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try
='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_header_compiler
=yes
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.
$ac_ext >&5
6381 ac_header_compiler
=no
6383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6385 echo "${ECHO_T}$ac_header_compiler" >&6
6387 # Is the header present?
6388 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6389 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 #include <valgrind.h>
6398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6399 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6401 grep -v '^ *+' conftest.er1
>conftest.err
6403 cat conftest.err
>&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } >/dev
/null
; then
6406 if test -s conftest.err
; then
6407 ac_cpp_err
=$ac_c_preproc_warn_flag
6408 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6415 if test -z "$ac_cpp_err"; then
6416 ac_header_preproc
=yes
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.
$ac_ext >&5
6421 ac_header_preproc
=no
6423 rm -f conftest.err conftest.
$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6425 echo "${ECHO_T}$ac_header_preproc" >&6
6427 # So? What about this header?
6428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6430 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6431 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6433 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6434 ac_header_preproc
=yes
6437 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6438 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6440 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6442 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6444 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6446 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6448 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6451 ## ------------------------------------------ ##
6452 ## Report this to the AC_PACKAGE_NAME lists. ##
6453 ## ------------------------------------------ ##
6456 sed "s/^/$as_me: WARNING: /" >&2
6459 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6460 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6461 if test "${ac_cv_header_valgrind_h+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 ac_cv_header_valgrind_h
=$ac_header_preproc
6466 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6467 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6470 if test $ac_cv_header_valgrind_h = yes; then
6478 if test x
$ac_checking_valgrind != x
; then
6479 # It is certainly possible that there's valgrind but no valgrind.h.
6480 # GCC relies on making annotations so we must have both.
6481 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6482 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6483 cat >conftest.
$ac_ext <<_ACEOF
6486 cat confdefs.h
>>conftest.
$ac_ext
6487 cat >>conftest.
$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <valgrind/memcheck.h>
6490 #ifndef VALGRIND_DISCARD
6491 #error VALGRIND_DISCARD not defined
6494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6495 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6497 grep -v '^ *+' conftest.er1
>conftest.err
6499 cat conftest.err
>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } >/dev
/null
; then
6502 if test -s conftest.err
; then
6503 ac_cpp_err
=$ac_c_preproc_warn_flag
6504 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6511 if test -z "$ac_cpp_err"; then
6512 gcc_cv_header_valgrind_memcheck_h
=yes
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.
$ac_ext >&5
6517 gcc_cv_header_valgrind_memcheck_h
=no
6519 rm -f conftest.err conftest.
$ac_ext
6520 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6521 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6522 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6523 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6524 cat >conftest.
$ac_ext <<_ACEOF
6527 cat confdefs.h
>>conftest.
$ac_ext
6528 cat >>conftest.
$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 #include <memcheck.h>
6531 #ifndef VALGRIND_DISCARD
6532 #error VALGRIND_DISCARD not defined
6535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6536 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6538 grep -v '^ *+' conftest.er1
>conftest.err
6540 cat conftest.err
>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } >/dev
/null
; then
6543 if test -s conftest.err
; then
6544 ac_cpp_err
=$ac_c_preproc_warn_flag
6545 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6552 if test -z "$ac_cpp_err"; then
6553 gcc_cv_header_memcheck_h
=yes
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.
$ac_ext >&5
6558 gcc_cv_header_memcheck_h
=no
6560 rm -f conftest.err conftest.
$ac_ext
6561 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6562 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6564 # Prepare PATH_SEPARATOR.
6565 # The user is always right.
6566 if test "${PATH_SEPARATOR+set}" != set; then
6567 echo "#! /bin/sh" >conf$$.sh
6568 echo "exit 0" >>conf$$.sh
6570 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6578 # Find out how to test for executable files. Don't use a zero-byte file,
6579 # as systems may use methods other than mode bits to determine executability.
6580 cat >conf$$.
file <<_ASEOF
6584 chmod +x conf$$.
file
6585 if test -x conf$$.
file >/dev
/null
2>&1; then
6586 ac_executable_p
="test -x"
6588 ac_executable_p
="test -f"
6592 # Extract the first word of "valgrind", so it can be a program name with args.
6593 set dummy valgrind
; ac_word
=$2
6594 echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6596 if test "${ac_cv_path_valgrind_path+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 case "$valgrind_path" in
6601 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6604 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6605 for ac_dir
in $PATH; do
6607 test -z "$ac_dir" && ac_dir
=.
6608 for ac_exec_ext
in '' $ac_executable_extensions; do
6609 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6610 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6611 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6621 valgrind_path
="$ac_cv_path_valgrind_path"
6622 if test -n "$valgrind_path"; then
6623 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6624 echo "${ECHO_T}$valgrind_path" >&6
6626 echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6
6630 if test "x$valgrind_path" = "x" \
6631 ||
(test $have_valgrind_h = no \
6632 && test $gcc_cv_header_memcheck_h = no \
6633 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6634 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6635 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6636 { (exit 1); exit 1; }; }
6638 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6639 valgrind_command
="$valgrind_path -q"
6641 cat >>confdefs.h
<<\_ACEOF
6642 #define ENABLE_VALGRIND_CHECKING 1
6645 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6647 cat >>confdefs.h
<<\_ACEOF
6648 #define HAVE_VALGRIND_MEMCHECK_H 1
6652 if test $gcc_cv_header_memcheck_h = yes; then
6654 cat >>confdefs.h
<<\_ACEOF
6655 #define HAVE_MEMCHECK_H 1
6663 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6664 if test "${enable_mapped_location+set}" = set; then
6665 enableval
="$enable_mapped_location"
6668 enable_mapped_location
=no
6671 if test "$enable_mapped_location" = yes ; then
6673 cat >>confdefs.h
<<\_ACEOF
6674 #define USE_MAPPED_LOCATION 1
6679 # Enable code coverage collection
6680 # Check whether --enable-coverage or --disable-coverage was given.
6681 if test "${enable_coverage+set}" = set; then
6682 enableval
="$enable_coverage"
6683 case "${enableval}" in
6685 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6688 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6691 # a.k.a. --disable-coverage
6695 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6696 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6697 { (exit 1); exit 1; }; }
6705 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6706 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6707 enableval
="$enable_gather_detailed_mem_stats"
6710 enable_gather_detailed_mem_stats
=no
6712 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6714 cat >>confdefs.h
<<\_ACEOF
6715 #define GATHER_STATISTICS 1
6720 # -------------------------------
6721 # Miscenalleous configure options
6722 # -------------------------------
6726 # Check whether --with-stabs or --without-stabs was given.
6727 if test "${with_stabs+set}" = set; then
6728 withval
="$with_stabs"
6734 # Determine whether or not multilibs are enabled.
6735 # Check whether --enable-multilib or --disable-multilib was given.
6736 if test "${enable_multilib+set}" = set; then
6737 enableval
="$enable_multilib"
6744 # Enable __cxa_atexit for C++.
6745 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6746 if test "${enable___cxa_atexit+set}" = set; then
6747 enableval
="$enable___cxa_atexit"
6752 # Pass with no value to take the default
6753 # Pass with a value to specify a thread package
6754 # Check whether --enable-threads or --disable-threads was given.
6755 if test "${enable_threads+set}" = set; then
6756 enableval
="$enable_threads"
6762 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6763 if test "${enable_objc_gc+set}" = set; then
6764 enableval
="$enable_objc_gc"
6765 if test x
$enable_objc_gc = xno
; then
6775 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6776 if test "${with_dwarf2+set}" = set; then
6777 withval
="$with_dwarf2"
6778 dwarf2
="$with_dwarf2"
6783 # Check whether --enable-shared or --disable-shared was given.
6784 if test "${enable_shared+set}" = set; then
6785 enableval
="$enable_shared"
6787 case $enable_shared in
6791 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6792 for pkg
in $enableval; do
6793 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6807 # Check whether --with-sysroot or --without-sysroot was given.
6808 if test "${with_sysroot+set}" = set; then
6809 withval
="$with_sysroot"
6811 case ${with_sysroot} in
6812 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6813 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6816 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6817 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6819 if test "x$exec_prefix" = xNONE
; then
6820 if test "x$prefix" = xNONE
; then
6821 test_prefix
=/usr
/local
6826 test_prefix
=$exec_prefix
6828 case ${TARGET_SYSTEM_ROOT} in
6829 "${test_prefix}"|
"${test_prefix}/"*|\
6830 '${exec_prefix}'|
'${exec_prefix}/'*)
6831 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6832 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6839 TARGET_SYSTEM_ROOT_DEFINE
=
6840 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6847 # Build with intermodule optimisations
6848 # Check whether --enable-intermodule or --disable-intermodule was given.
6849 if test "${enable_intermodule+set}" = set; then
6850 enableval
="$enable_intermodule"
6851 case ${enable_intermodule} in
6852 yes) onestep
="-onestep";;
6860 # Sanity check enable_languages in case someone does not run the toplevel
6861 # configure # script.
6862 # Check whether --enable-languages or --disable-languages was given.
6863 if test "${enable_languages+set}" = set; then
6864 enableval
="$enable_languages"
6865 case ,${enable_languages}, in
6867 # go safe -- we cannot be much sure without the toplevel
6869 # analysis of which target libs are present and usable
6873 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6874 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6875 { (exit 1); exit 1; }; }
6880 enable_languages
=c
,${enable_languages}
6888 for lang
in ${srcdir}/*/config-lang.
in
6891 # The odd quoting in the next line works around
6892 # an apparent bug in bash 1.12 on linux.
6893 ${srcdir}/[*]/config-lang.
in) ;;
6895 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6896 if test "x$lang_alias" = x
6898 echo "$lang doesn't set \$language." 1>&2
6901 case ",$enable_languages," in
6903 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6910 # -------------------------
6911 # Checks for other programs
6912 # -------------------------
6914 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6915 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6916 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6917 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 cat >conftest.
make <<\_ACEOF
6922 @
echo 'ac_maketemp="$(MAKE)"'
6924 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6925 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6926 if test -n "$ac_maketemp"; then
6927 eval ac_cv_prog_make_
${ac_make}_set
=yes
6929 eval ac_cv_prog_make_
${ac_make}_set
=no
6933 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6934 echo "$as_me:$LINENO: result: yes" >&5
6935 echo "${ECHO_T}yes" >&6
6938 echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6
6940 SET_MAKE
="MAKE=${MAKE-make}"
6944 # Find some useful tools
6945 for ac_prog
in gawk mawk nawk
awk
6947 # Extract the first word of "$ac_prog", so it can be a program name with args.
6948 set dummy
$ac_prog; ac_word
=$2
6949 echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6951 if test "${ac_cv_prog_AWK+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 if test -n "$AWK"; then
6955 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir
=.
6962 for ac_exec_ext
in '' $ac_executable_extensions; do
6963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_AWK
="$ac_prog"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 if test -n "$AWK"; then
6975 echo "$as_me:$LINENO: result: $AWK" >&5
6976 echo "${ECHO_T}$AWK" >&6
6978 echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6
6982 test -n "$AWK" && break
6985 # We need awk to create options.c and options.h.
6986 # Bail out if it's missing.
6988 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
6989 echo "$as_me: error: can't build without awk, bailing out" >&2;}
6990 { (exit 1); exit 1; }; } ;;
6993 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6994 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6995 if test "${gcc_cv_prog_LN_S+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 rm -f conftestdata_t
6999 echo >conftestdata_f
7000 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7002 gcc_cv_prog_LN_S
="ln -s"
7004 if ln conftestdata_f conftestdata_t
2>/dev
/null
7008 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7010 gcc_cv_prog_LN_S
="cp -p"
7016 rm -f conftestdata_f conftestdata_t
7019 LN_S
="$gcc_cv_prog_LN_S"
7020 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7021 echo "$as_me:$LINENO: result: yes" >&5
7022 echo "${ECHO_T}yes" >&6
7024 if test "$gcc_cv_prog_LN_S" = "ln"; then
7025 echo "$as_me:$LINENO: result: no, using ln" >&5
7026 echo "${ECHO_T}no, using ln" >&6
7028 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7029 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7033 echo "$as_me:$LINENO: checking whether ln works" >&5
7034 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7035 if test "${acx_cv_prog_LN+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 rm -f conftestdata_t
7039 echo >conftestdata_f
7040 if ln conftestdata_f conftestdata_t
2>/dev
/null
7046 rm -f conftestdata_f conftestdata_t
7049 if test $acx_cv_prog_LN = no
; then
7051 echo "$as_me:$LINENO: result: no, using $LN" >&5
7052 echo "${ECHO_T}no, using $LN" >&6
7054 LN
="$acx_cv_prog_LN"
7055 echo "$as_me:$LINENO: result: yes" >&5
7056 echo "${ECHO_T}yes" >&6
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7061 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7062 echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7064 if test "${ac_cv_prog_RANLIB+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 if test -n "$RANLIB"; then
7068 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir
=.
7075 for ac_exec_ext
in '' $ac_executable_extensions; do
7076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 RANLIB
=$ac_cv_prog_RANLIB
7087 if test -n "$RANLIB"; then
7088 echo "$as_me:$LINENO: result: $RANLIB" >&5
7089 echo "${ECHO_T}$RANLIB" >&6
7091 echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6
7096 if test -z "$ac_cv_prog_RANLIB"; then
7097 ac_ct_RANLIB
=$RANLIB
7098 # Extract the first word of "ranlib", so it can be a program name with args.
7099 set dummy ranlib
; ac_word
=$2
7100 echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 if test -n "$ac_ct_RANLIB"; then
7106 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir
=.
7113 for ac_exec_ext
in '' $ac_executable_extensions; do
7114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7125 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7126 if test -n "$ac_ct_RANLIB"; then
7127 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7128 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7130 echo "$as_me:$LINENO: result: no" >&5
7131 echo "${ECHO_T}no" >&6
7134 RANLIB
=$ac_ct_RANLIB
7136 RANLIB
="$ac_cv_prog_RANLIB"
7141 # By default, the Darwin ranlib will not treat common symbols as
7142 # definitions when building the archive table of contents. Other
7143 # ranlibs do that; pass an option to the Darwin ranlib that makes
7144 # it behave similarly.
7152 # Find a good install program. We prefer a C program (faster),
7153 # so one script is as good as another. But avoid the broken or
7154 # incompatible versions:
7155 # SysV /etc/install, /usr/sbin/install
7156 # SunOS /usr/etc/install
7157 # IRIX /sbin/install
7159 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7160 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7161 # ./install, which can be erroneously created by make from ./install.sh.
7162 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7163 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7164 if test -z "$INSTALL"; then
7165 if test "${ac_cv_path_install+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7169 for ac_dir
in $PATH; do
7170 # Account for people who put trailing slashes in PATH elements.
7172 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7174 # OSF1 and SCO ODT 3.0 have their own names for install.
7175 for ac_prog
in ginstall scoinst
install; do
7176 if test -f $ac_dir/$ac_prog; then
7177 if test $ac_prog = install &&
7178 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7179 # AIX install. It has an incompatible calling convention.
7180 # OSF/1 installbsd also uses dspmsg, but is usable.
7183 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7194 if test "${ac_cv_path_install+set}" = set; then
7195 INSTALL
="$ac_cv_path_install"
7197 # As a last resort, use the slow shell script. We don't cache a
7198 # path for INSTALL within a source directory, because that will
7199 # break other packages using the cache if that directory is
7200 # removed, or if the path is relative.
7201 INSTALL
="$ac_install_sh"
7204 echo "$as_me:$LINENO: result: $INSTALL" >&5
7205 echo "${ECHO_T}$INSTALL" >&6
7207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7208 # It thinks the first close brace ends the variable substitution.
7209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7211 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7214 # See if cmp has --ignore-initial.
7215 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7216 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7217 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 gcc_cv_prog_cmp_skip
=slowcompare
7223 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7224 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7227 gcc_cv_prog_cmp_skip
=gnucompare
7230 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7231 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7232 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7235 gcc_cv_prog_cmp_skip
=fastcompare
7242 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7243 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7244 make_compare_target
=$gcc_cv_prog_cmp_skip
7248 # See if we have the mktemp command.
7249 # Extract the first word of "mktemp", so it can be a program name with args.
7250 set dummy mktemp
; ac_word
=$2
7251 echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7253 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 if test -n "$have_mktemp_command"; then
7257 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir
=.
7264 for ac_exec_ext
in '' $ac_executable_extensions; do
7265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_have_mktemp_command
="yes"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7276 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7277 if test -n "$have_mktemp_command"; then
7278 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7279 echo "${ECHO_T}$have_mktemp_command" >&6
7281 echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7286 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7288 # See if makeinfo has been installed and is modern enough
7289 # that we can use it.
7290 # Extract the first word of "makeinfo", so it can be a program name with args.
7291 set dummy makeinfo
; ac_word
=$2
7292 echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7294 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 if test -n "$MAKEINFO"; then
7298 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir
=.
7305 for ac_exec_ext
in '' $ac_executable_extensions; do
7306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_MAKEINFO
="makeinfo"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 MAKEINFO
=$ac_cv_prog_MAKEINFO
7317 if test -n "$MAKEINFO"; then
7318 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7319 echo "${ECHO_T}$MAKEINFO" >&6
7321 echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7325 if test -n "$MAKEINFO"; then
7326 # Found it, now check the version.
7327 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7328 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7329 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7333 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7334 echo "configure:7334: version of makeinfo is $ac_prog_version" >&5
7335 case $ac_prog_version in
7336 '') gcc_cv_prog_makeinfo_modern
=no
;;
7338 gcc_cv_prog_makeinfo_modern
=yes;;
7339 *) gcc_cv_prog_makeinfo_modern
=no
;;
7343 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7344 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7346 gcc_cv_prog_makeinfo_modern
=no
7349 if test $gcc_cv_prog_makeinfo_modern = no
; then
7350 MAKEINFO
="$MISSING makeinfo"
7351 { echo "$as_me:$LINENO: WARNING:
7352 *** Makeinfo is missing or too old.
7353 *** Info documentation will not be built." >&5
7354 echo "$as_me: WARNING:
7355 *** Makeinfo is missing or too old.
7356 *** Info documentation will not be built." >&2;}
7363 # Is pod2man recent enough to regenerate manpages?
7364 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7365 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7366 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7367 echo "$as_me:$LINENO: result: yes" >&5
7368 echo "${ECHO_T}yes" >&6
7369 GENERATED_MANPAGES
=generated-manpages
7371 echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7380 # Extract the first word of "$ac_prog", so it can be a program name with args.
7381 set dummy
$ac_prog; ac_word
=$2
7382 echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384 if test "${ac_cv_prog_FLEX+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 if test -n "$FLEX"; then
7388 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir
=.
7395 for ac_exec_ext
in '' $ac_executable_extensions; do
7396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_FLEX
="$ac_prog"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 FLEX
=$ac_cv_prog_FLEX
7407 if test -n "$FLEX"; then
7408 echo "$as_me:$LINENO: result: $FLEX" >&5
7409 echo "${ECHO_T}$FLEX" >&6
7411 echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7415 test -n "$FLEX" && break
7417 test -n "$FLEX" || FLEX
="$MISSING flex"
7421 for ac_prog
in bison
7423 # Extract the first word of "$ac_prog", so it can be a program name with args.
7424 set dummy
$ac_prog; ac_word
=$2
7425 echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7427 if test "${ac_cv_prog_BISON+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 if test -n "$BISON"; then
7431 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir
=.
7438 for ac_exec_ext
in '' $ac_executable_extensions; do
7439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_BISON
="$ac_prog"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 BISON
=$ac_cv_prog_BISON
7450 if test -n "$BISON"; then
7451 echo "$as_me:$LINENO: result: $BISON" >&5
7452 echo "${ECHO_T}$BISON" >&6
7454 echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6
7458 test -n "$BISON" && break
7460 test -n "$BISON" || BISON
="$MISSING bison"
7463 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7464 # check for build == host before using them.
7467 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7468 && test -d ..
/binutils
; then
7469 NM
='$(objdir)/../binutils/nm-new'
7471 # Extract the first word of "nm", so it can be a program name with args.
7472 set dummy nm
; ac_word
=$2
7473 echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7475 if test "${ac_cv_prog_NM+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 if test -n "$NM"; then
7479 ac_cv_prog_NM
="$NM" # Let the user override the test.
7481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir
=.
7486 for ac_exec_ext
in '' $ac_executable_extensions; do
7487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7499 if test -n "$NM"; then
7500 echo "$as_me:$LINENO: result: $NM" >&5
7501 echo "${ECHO_T}$NM" >&6
7503 echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6
7510 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7511 && test -d ..
/binutils
; then
7512 AR
='$(objdir)/../binutils/ar'
7514 # Extract the first word of "ar", so it can be a program name with args.
7515 set dummy
ar; ac_word
=$2
7516 echo "$as_me:$LINENO: checking for $ac_word" >&5
7517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518 if test "${ac_cv_prog_AR+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 if test -n "$AR"; then
7522 ac_cv_prog_AR
="$AR" # Let the user override the test.
7524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir
=.
7529 for ac_exec_ext
in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7542 if test -n "$AR"; then
7543 echo "$as_me:$LINENO: result: $AR" >&5
7544 echo "${ECHO_T}$AR" >&6
7546 echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7553 # --------------------
7554 # Checks for C headers
7555 # --------------------
7557 echo "$as_me:$LINENO: checking for GNU C library" >&5
7558 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7559 if test "${gcc_cv_glibc+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 cat >conftest.
$ac_ext <<_ACEOF
7565 cat confdefs.h
>>conftest.
$ac_ext
7566 cat >>conftest.
$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <features.h>
7573 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7574 #error Not a GNU C library system
7580 rm -f conftest.
$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>conftest.er1
7584 grep -v '^ *+' conftest.er1
>conftest.err
7586 cat conftest.err
>&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; } &&
7595 { ac_try
='test -s conftest.$ac_objext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.
$ac_ext >&5
7608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7611 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7612 echo "${ECHO_T}$gcc_cv_glibc" >&6
7613 if test $gcc_cv_glibc = yes; then
7615 cat >>confdefs.h
<<\_ACEOF
7616 #define _GNU_SOURCE 1
7621 # Need to reject headers which give warnings, so that the -Werror bootstrap
7622 # works later. *sigh* This needs to come before all header checks.
7624 ac_c_preproc_warn_flag
=yes
7626 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7627 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7628 if test "${ac_cv_header_stdc+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 cat >conftest.
$ac_ext <<_ACEOF
7634 cat confdefs.h
>>conftest.
$ac_ext
7635 cat >>conftest.
$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7650 rm -f conftest.
$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>conftest.er1
7654 grep -v '^ *+' conftest.er1
>conftest.err
7656 cat conftest.err
>&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
7659 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try
='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_cv_header_stdc
=yes
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.
$ac_ext >&5
7676 ac_cv_header_stdc
=no
7678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7680 if test $ac_cv_header_stdc = yes; then
7681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7682 cat >conftest.
$ac_ext <<_ACEOF
7685 cat confdefs.h
>>conftest.
$ac_ext
7686 cat >>conftest.
$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "memchr" >/dev
/null
2>&1; then
7695 ac_cv_header_stdc
=no
7701 if test $ac_cv_header_stdc = yes; then
7702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7703 cat >conftest.
$ac_ext <<_ACEOF
7706 cat confdefs.h
>>conftest.
$ac_ext
7707 cat >>conftest.
$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7713 $EGREP "free" >/dev
/null
2>&1; then
7716 ac_cv_header_stdc
=no
7722 if test $ac_cv_header_stdc = yes; then
7723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7724 if test "$cross_compiling" = yes; then
7727 cat >conftest.
$ac_ext <<_ACEOF
7730 cat confdefs.h
>>conftest.
$ac_ext
7731 cat >>conftest.
$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7734 #if ((' ' & 0x0FF) == 0x020)
7735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7738 # define ISLOWER(c) \
7739 (('a' <= (c) && (c) <= 'i') \
7740 || ('j' <= (c) && (c) <= 'r') \
7741 || ('s' <= (c) && (c) <= 'z'))
7742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7750 for (i = 0; i < 256; i++)
7751 if (XOR (islower (i), ISLOWER (i))
7752 || toupper (i) != TOUPPER (i))
7757 rm -f conftest
$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7770 echo "$as_me: program exited with status $ac_status" >&5
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.
$ac_ext >&5
7775 ac_cv_header_stdc
=no
7777 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7782 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7783 if test $ac_cv_header_stdc = yes; then
7785 cat >>confdefs.h
<<\_ACEOF
7786 #define STDC_HEADERS 1
7791 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7792 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7793 if test "${ac_cv_header_time+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 cat >conftest.
$ac_ext <<_ACEOF
7799 cat confdefs.h
>>conftest.
$ac_ext
7800 cat >>conftest.
$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 #include <sys/types.h>
7803 #include <sys/time.h>
7809 if ((struct tm *) 0)
7815 rm -f conftest.
$ac_objext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7817 (eval $ac_compile) 2>conftest.er1
7819 grep -v '^ *+' conftest.er1
>conftest.err
7821 cat conftest.err
>&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try
='test -s conftest.$ac_objext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_header_time
=yes
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.
$ac_ext >&5
7841 ac_cv_header_time
=no
7843 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7845 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7846 echo "${ECHO_T}$ac_cv_header_time" >&6
7847 if test $ac_cv_header_time = yes; then
7849 cat >>confdefs.h
<<\_ACEOF
7850 #define TIME_WITH_SYS_TIME 1
7855 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7856 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7857 if test "${gcc_cv_header_string+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 cat >conftest.
$ac_ext <<_ACEOF
7863 cat confdefs.h
>>conftest.
$ac_ext
7864 cat >>conftest.
$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7867 #include <strings.h>
7876 rm -f conftest.
$ac_objext
7877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7878 (eval $ac_compile) 2>conftest.er1
7880 grep -v '^ *+' conftest.er1
>conftest.err
7882 cat conftest.err
>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try
='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 gcc_cv_header_string
=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.
$ac_ext >&5
7902 gcc_cv_header_string
=no
7904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7906 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7907 echo "${ECHO_T}$gcc_cv_header_string" >&6
7908 if test $gcc_cv_header_string = yes; then
7910 cat >>confdefs.h
<<\_ACEOF
7911 #define STRING_WITH_STRINGS 1
7916 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7917 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7918 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 cat >conftest.
$ac_ext <<_ACEOF
7924 cat confdefs.h
>>conftest.
$ac_ext
7925 cat >>conftest.
$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <sys/types.h>
7928 #include <sys/wait.h>
7930 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7933 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7941 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7946 rm -f conftest.
$ac_objext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>conftest.er1
7950 grep -v '^ *+' conftest.er1
>conftest.err
7952 cat conftest.err
>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try
='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_header_sys_wait_h
=yes
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.
$ac_ext >&5
7972 ac_cv_header_sys_wait_h
=no
7974 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7976 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7977 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7978 if test $ac_cv_header_sys_wait_h = yes; then
7980 cat >>confdefs.h
<<\_ACEOF
7981 #define HAVE_SYS_WAIT_H 1
8008 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8009 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8010 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8011 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8013 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8014 echo "$as_me:$LINENO: checking for $ac_header" >&5
8015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 cat >conftest.
$ac_ext <<_ACEOF
8022 cat confdefs.h
>>conftest.
$ac_ext
8023 cat >>conftest.
$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <$ac_header>
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1
>conftest.err
8032 cat conftest.err
>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev
/null
; then
8035 if test -s conftest.err
; then
8036 ac_cpp_err
=$ac_c_preproc_warn_flag
8037 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8044 if test -z "$ac_cpp_err"; then
8045 eval "$as_ac_Header=yes"
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.
$ac_ext >&5
8050 eval "$as_ac_Header=no"
8052 rm -f conftest.err conftest.
$ac_ext
8054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8057 cat >>confdefs.h
<<_ACEOF
8058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8065 # Check for thread headers.
8066 echo "$as_me:$LINENO: checking for thread.h" >&5
8067 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8068 if test "${ac_cv_header_thread_h+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 cat >conftest.
$ac_ext <<_ACEOF
8074 cat confdefs.h
>>conftest.
$ac_ext
8075 cat >>conftest.
$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8080 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8082 grep -v '^ *+' conftest.er1
>conftest.err
8084 cat conftest.err
>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } >/dev
/null
; then
8087 if test -s conftest.err
; then
8088 ac_cpp_err
=$ac_c_preproc_warn_flag
8089 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8096 if test -z "$ac_cpp_err"; then
8097 ac_cv_header_thread_h
=yes
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.
$ac_ext >&5
8102 ac_cv_header_thread_h
=no
8104 rm -f conftest.err conftest.
$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8107 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8108 if test $ac_cv_header_thread_h = yes; then
8114 echo "$as_me:$LINENO: checking for pthread.h" >&5
8115 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8116 if test "${ac_cv_header_pthread_h+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 cat >conftest.
$ac_ext <<_ACEOF
8122 cat confdefs.h
>>conftest.
$ac_ext
8123 cat >>conftest.
$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 #include <pthread.h>
8127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8128 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8130 grep -v '^ *+' conftest.er1
>conftest.err
8132 cat conftest.err
>&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } >/dev
/null
; then
8135 if test -s conftest.err
; then
8136 ac_cpp_err
=$ac_c_preproc_warn_flag
8137 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8144 if test -z "$ac_cpp_err"; then
8145 ac_cv_header_pthread_h
=yes
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.
$ac_ext >&5
8150 ac_cv_header_pthread_h
=no
8152 rm -f conftest.err conftest.
$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8155 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8156 if test $ac_cv_header_pthread_h = yes; then
8163 # These tests can't be done till we know if we have limits.h.
8164 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8165 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8166 if test "${gcc_cv_decl_char_bit+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 cat >conftest.
$ac_ext <<_ACEOF
8172 cat confdefs.h
>>conftest.
$ac_ext
8173 cat >>conftest.
$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 #ifdef HAVE_LIMITS_H
8182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8183 $EGREP "found" >/dev
/null
2>&1; then
8184 gcc_cv_decl_char_bit
=yes
8186 gcc_cv_decl_char_bit
=no
8192 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8193 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8194 if test $gcc_cv_decl_char_bit = no
; then
8195 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8196 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8197 if test "${gcc_cv_c_nbby+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 while test $i -lt 65; do
8203 cat >conftest.
$ac_ext <<_ACEOF
8206 cat confdefs.h
>>conftest.
$ac_ext
8207 cat >>conftest.
$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8214 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8215 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8221 rm -f conftest.
$ac_objext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223 (eval $ac_compile) 2>conftest.er1
8225 grep -v '^ *+' conftest.er1
>conftest.err
8227 cat conftest.err
>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try
='test -s conftest.$ac_objext'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 gcc_cv_c_nbby
=$i; break
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.
$ac_ext >&5
8248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8251 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8254 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8255 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8256 if test $gcc_cv_c_nbby = failed
; then
8257 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8258 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8259 { (exit 1); exit 1; }; }
8262 cat >>confdefs.h
<<_ACEOF
8263 #define CHAR_BIT $gcc_cv_c_nbby
8268 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8269 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8270 if test "${ac_cv_c_bigendian+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 ac_cv_c_bigendian
=unknown
8274 # See if sys/param.h defines the BYTE_ORDER macro.
8275 cat >conftest.
$ac_ext <<_ACEOF
8278 cat confdefs.h
>>conftest.
$ac_ext
8279 cat >>conftest.
$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 #include <sys/types.h>
8282 #include <sys/param.h>
8287 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8294 rm -f conftest.
$ac_objext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8296 (eval $ac_compile) 2>conftest.er1
8298 grep -v '^ *+' conftest.er1
>conftest.err
8300 cat conftest.err
>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try
='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 # It does; now see whether it defined to BIG_ENDIAN or not.
8316 cat >conftest.
$ac_ext <<_ACEOF
8319 cat confdefs.h
>>conftest.
$ac_ext
8320 cat >>conftest.
$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <sys/types.h>
8323 #include <sys/param.h>
8328 #if BYTE_ORDER != BIG_ENDIAN
8335 rm -f conftest.
$ac_objext
8336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8337 (eval $ac_compile) 2>conftest.er1
8339 grep -v '^ *+' conftest.er1
>conftest.err
8341 cat conftest.err
>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try
='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_c_bigendian
=yes
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.
$ac_ext >&5
8361 ac_cv_c_bigendian
=no
8363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.
$ac_ext >&5
8369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8370 if test $ac_cv_c_bigendian = unknown
; then
8371 if test "$cross_compiling" = yes; then
8372 echo $ac_n "cross-compiling... " 2>&6
8374 cat >conftest.
$ac_ext <<_ACEOF
8377 cat confdefs.h
>>conftest.
$ac_ext
8378 cat >>conftest.
$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8381 /* Are we little or big endian? From Harbison&Steele. */
8385 char c[sizeof (long)];
8388 exit (u.c[sizeof (long) - 1] == 1);
8391 rm -f conftest
$ac_exeext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393 (eval $ac_link) 2>&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_c_bigendian
=no
8404 echo "$as_me: program exited with status $ac_status" >&5
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.
$ac_ext >&5
8409 ac_cv_c_bigendian
=yes
8411 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8415 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8416 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8417 if test $ac_cv_c_bigendian = unknown
; then
8418 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8419 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8421 cat >conftest.c
<<EOF
8422 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8423 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8424 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8425 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8426 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8427 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8428 int main() { _ascii (); _ebcdic (); return 0; }
8430 if test -f conftest.c
; then
8431 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
8432 if test `grep -l BIGenDianSyS conftest.o` ; then
8433 echo $ac_n ' big endian probe OK, ' 1>&6
8434 ac_cv_c_bigendian
=yes
8436 if test `grep -l LiTTleEnDian conftest.o` ; then
8437 echo $ac_n ' little endian probe OK, ' 1>&6
8438 if test $ac_cv_c_bigendian = yes ; then
8439 ac_cv_c_bigendian
=unknown
;
8441 ac_cv_c_bigendian
=no
8444 echo $ac_n 'guessing bigendian ... ' >&6
8447 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8448 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8450 if test $ac_cv_c_bigendian = yes; then
8452 cat >>confdefs.h
<<\_ACEOF
8453 #define WORDS_BIGENDIAN 1
8457 cat >>confdefs.h
<<\_ACEOF
8458 #define HOST_WORDS_BIG_ENDIAN 1
8466 cat >>confdefs.h
<<_ACEOF
8467 #define BYTEORDER $BYTEORDER
8470 if test $ac_cv_c_bigendian = unknown
; then
8471 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8472 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8473 { (exit 1); exit 1; }; }
8481 # Stage specific cflags for build.
8485 if test x
$GCC = xyes
8487 stage1_cflags
="-Wa,-J"
8493 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8494 # sources; use -no-cpp-precomp to get to GNU cpp.
8495 # Apple's GCC has bugs in designated initializer handling, so disable
8497 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8502 # These libraries may be used by collect2.
8503 # We may need a special search path to get them linked.
8504 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8505 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8506 if test "${gcc_cv_collect2_libs+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 for libs
in '' -lld -lmld \
8511 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8512 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8515 cat >conftest.
$ac_ext <<_ACEOF
8518 cat confdefs.h
>>conftest.
$ac_ext
8519 cat >>conftest.
$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8522 /* Override any gcc2 internal prototype to avoid an error. */
8526 /* We use char because int might match the return type of a gcc2
8527 builtin and then its argument prototype would still apply. */
8537 rm -f conftest.
$ac_objext conftest
$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>conftest.er1
8541 grep -v '^ *+' conftest.er1
>conftest.err
8543 cat conftest.err
>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try
='test -s conftest$ac_exeext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 gcc_cv_collect2_libs
="$libs"; break
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.
$ac_ext >&5
8564 rm -f conftest.err conftest.
$ac_objext \
8565 conftest
$ac_exeext conftest.
$ac_ext
8568 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8570 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8571 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8572 case $gcc_cv_collect2_libs in
8574 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8578 # When building Ada code on Alpha, we need exc_resume which is usually in
8579 # -lexc. So test for it.
8582 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8583 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8584 if test "${ac_cv_search_exc_resume+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 ac_func_search_save_LIBS
=$LIBS
8588 ac_cv_search_exc_resume
=no
8589 cat >conftest.
$ac_ext <<_ACEOF
8592 cat confdefs.h
>>conftest.
$ac_ext
8593 cat >>conftest.
$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8596 /* Override any gcc2 internal prototype to avoid an error. */
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8611 rm -f conftest.
$ac_objext conftest
$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>conftest.er1
8615 grep -v '^ *+' conftest.er1
>conftest.err
8617 cat conftest.err
>&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try
='test -s conftest$ac_exeext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 ac_cv_search_exc_resume
="none required"
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.
$ac_ext >&5
8638 rm -f conftest.err conftest.
$ac_objext \
8639 conftest
$ac_exeext conftest.
$ac_ext
8640 if test "$ac_cv_search_exc_resume" = no
; then
8641 for ac_lib
in exc
; do
8642 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8643 cat >conftest.
$ac_ext <<_ACEOF
8646 cat confdefs.h
>>conftest.
$ac_ext
8647 cat >>conftest.
$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8650 /* Override any gcc2 internal prototype to avoid an error. */
8654 /* We use char because int might match the return type of a gcc2
8655 builtin and then its argument prototype would still apply. */
8665 rm -f conftest.
$ac_objext conftest
$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>conftest.er1
8669 grep -v '^ *+' conftest.er1
>conftest.err
8671 cat conftest.err
>&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try
='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_cv_search_exc_resume
="-l$ac_lib"
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.
$ac_ext >&5
8693 rm -f conftest.err conftest.
$ac_objext \
8694 conftest
$ac_exeext conftest.
$ac_ext
8697 LIBS
=$ac_func_search_save_LIBS
8699 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8700 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8701 if test "$ac_cv_search_exc_resume" != no
; then
8702 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8710 # Some systems put ldexp and frexp in libm instead of libc; assume
8711 # they're both in the same place. jcf-dump needs them.
8714 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8715 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8716 if test "${ac_cv_search_ldexp+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 ac_func_search_save_LIBS
=$LIBS
8720 ac_cv_search_ldexp
=no
8721 cat >conftest.
$ac_ext <<_ACEOF
8724 cat confdefs.h
>>conftest.
$ac_ext
8725 cat >>conftest.
$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8728 /* Override any gcc2 internal prototype to avoid an error. */
8732 /* We use char because int might match the return type of a gcc2
8733 builtin and then its argument prototype would still apply. */
8743 rm -f conftest.
$ac_objext conftest
$ac_exeext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8745 (eval $ac_link) 2>conftest.er1
8747 grep -v '^ *+' conftest.er1
>conftest.err
8749 cat conftest.err
>&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try
='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_search_ldexp
="none required"
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.
$ac_ext >&5
8770 rm -f conftest.err conftest.
$ac_objext \
8771 conftest
$ac_exeext conftest.
$ac_ext
8772 if test "$ac_cv_search_ldexp" = no
; then
8774 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8775 cat >conftest.
$ac_ext <<_ACEOF
8778 cat confdefs.h
>>conftest.
$ac_ext
8779 cat >>conftest.
$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8782 /* Override any gcc2 internal prototype to avoid an error. */
8786 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */
8797 rm -f conftest.
$ac_objext conftest
$ac_exeext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799 (eval $ac_link) 2>conftest.er1
8801 grep -v '^ *+' conftest.er1
>conftest.err
8803 cat conftest.err
>&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try
='test -s conftest$ac_exeext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_search_ldexp
="-l$ac_lib"
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.
$ac_ext >&5
8825 rm -f conftest.err conftest.
$ac_objext \
8826 conftest
$ac_exeext conftest.
$ac_ext
8829 LIBS
=$ac_func_search_save_LIBS
8831 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8832 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8833 if test "$ac_cv_search_ldexp" != no
; then
8834 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8842 # Use <inttypes.h> only if it exists,
8843 # doesn't clash with <sys/types.h>, and declares intmax_t.
8844 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8845 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8846 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 cat >conftest.
$ac_ext <<_ACEOF
8852 cat confdefs.h
>>conftest.
$ac_ext
8853 cat >>conftest.
$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 #include <sys/types.h>
8856 #include <inttypes.h>
8865 rm -f conftest.
$ac_objext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8867 (eval $ac_compile) 2>conftest.er1
8869 grep -v '^ *+' conftest.er1
>conftest.err
8871 cat conftest.err
>&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; } &&
8880 { ac_try
='test -s conftest.$ac_objext'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; }; then
8886 gcc_cv_header_inttypes_h
=yes
8888 echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.
$ac_ext >&5
8891 gcc_cv_header_inttypes_h
=no
8893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8896 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8897 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8898 if test $gcc_cv_header_inttypes_h = yes; then
8900 cat >>confdefs.h
<<\_ACEOF
8901 #define HAVE_INTTYPES_H 1
8932 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
8933 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8934 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8935 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8938 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8939 echo "$as_me:$LINENO: checking for $ac_func" >&5
8940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8941 if eval "test \"\${$as_ac_var+set}\" = set"; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 cat >conftest.
$ac_ext <<_ACEOF
8947 cat confdefs.h
>>conftest.
$ac_ext
8948 cat >>conftest.
$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8952 #define $ac_func innocuous_$ac_func
8954 /* System header to define __stub macros and hopefully few prototypes,
8955 which can conflict with char $ac_func (); below.
8956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957 <limits.h> exists even on freestanding compilers. */
8960 # include <limits.h>
8962 # include <assert.h>
8967 /* Override any gcc2 internal prototype to avoid an error. */
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8975 /* The GNU C library defines this for functions which it implements
8976 to always fail with ENOSYS. Some functions are actually named
8977 something starting with __ and the normal name is an alias. */
8978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8981 char (*f) () = $ac_func;
8990 return f != $ac_func;
8995 rm -f conftest.
$ac_objext conftest
$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8999 grep -v '^ *+' conftest.er1
>conftest.err
9001 cat conftest.err
>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; } &&
9010 { ac_try
='test -s conftest$ac_exeext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 eval "$as_ac_var=yes"
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9021 eval "$as_ac_var=no"
9023 rm -f conftest.err conftest.
$ac_objext \
9024 conftest
$ac_exeext conftest.
$ac_ext
9026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9028 if test `eval echo '${'$as_ac_var'}'` = yes; then
9029 cat >>confdefs.h
<<_ACEOF
9030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9037 if test x
$ac_cv_func_mbstowcs = xyes
; then
9038 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9039 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9040 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 if test "$cross_compiling" = yes; then
9044 gcc_cv_func_mbstowcs_works
=yes
9046 cat >conftest.
$ac_ext <<_ACEOF
9049 cat confdefs.h
>>conftest.
$ac_ext
9050 cat >>conftest.
$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9059 rm -f conftest
$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 gcc_cv_func_mbstowcs_works
=yes
9072 echo "$as_me: program exited with status $ac_status" >&5
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.
$ac_ext >&5
9077 gcc_cv_func_mbstowcs_works
=no
9079 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9082 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9083 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9084 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9086 cat >>confdefs.h
<<\_ACEOF
9087 #define HAVE_WORKING_MBSTOWCS 1
9093 echo "$as_me:$LINENO: checking for ssize_t" >&5
9094 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9095 if test "${ac_cv_type_ssize_t+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 cat >conftest.
$ac_ext <<_ACEOF
9101 cat confdefs.h
>>conftest.
$ac_ext
9102 cat >>conftest.
$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9110 if (sizeof (ssize_t))
9116 rm -f conftest.
$ac_objext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9118 (eval $ac_compile) 2>conftest.er1
9120 grep -v '^ *+' conftest.er1
>conftest.err
9122 cat conftest.err
>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try
='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_type_ssize_t
=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.
$ac_ext >&5
9142 ac_cv_type_ssize_t
=no
9144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9146 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9147 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9148 if test $ac_cv_type_ssize_t = yes; then
9152 cat >>confdefs.h
<<_ACEOF
9159 # Try to determine the array type of the second argument of getgroups
9160 # for the target system (int or gid_t).
9161 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9162 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9163 if test "${ac_cv_type_uid_t+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 cat >conftest.
$ac_ext <<_ACEOF
9169 cat confdefs.h
>>conftest.
$ac_ext
9170 cat >>conftest.
$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9176 $EGREP "uid_t" >/dev
/null
2>&1; then
9177 ac_cv_type_uid_t
=yes
9184 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9185 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9186 if test $ac_cv_type_uid_t = no
; then
9188 cat >>confdefs.h
<<\_ACEOF
9193 cat >>confdefs.h
<<\_ACEOF
9199 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9200 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9201 if test "${ac_cv_type_getgroups+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 if test "$cross_compiling" = yes; then
9205 ac_cv_type_getgroups
=cross
9207 cat >conftest.
$ac_ext <<_ACEOF
9210 cat confdefs.h
>>conftest.
$ac_ext
9211 cat >>conftest.
$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 /* Thanks to Mike Rendell for this test. */
9214 #include <sys/types.h>
9217 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9224 union { gid_t gval; long lval; } val;
9227 for (i = 0; i < NGID; i++)
9228 gidset[i] = val.gval;
9229 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9231 /* Exit non-zero if getgroups seems to require an array of ints. This
9232 happens when gid_t is short but getgroups modifies an array of ints. */
9233 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9236 rm -f conftest
$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_cv_type_getgroups
=gid_t
9249 echo "$as_me: program exited with status $ac_status" >&5
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.
$ac_ext >&5
9254 ac_cv_type_getgroups
=int
9256 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9258 if test $ac_cv_type_getgroups = cross
; then
9259 cat >conftest.
$ac_ext <<_ACEOF
9262 cat confdefs.h
>>conftest.
$ac_ext
9263 cat >>conftest.
$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9269 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9270 ac_cv_type_getgroups
=gid_t
9272 ac_cv_type_getgroups
=int
9278 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9279 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9281 cat >>confdefs.h
<<_ACEOF
9282 #define GETGROUPS_T $ac_cv_type_getgroups
9286 if test "${target}" = "${build}"; then
9287 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9290 # This condition may need some tweaking. It should include all
9291 # targets where the array type of the second argument of getgroups
9292 # is int and the type of gid_t is not equivalent to int.
9293 *-*-sunos* |
*-*-ultrix*)
9294 TARGET_GETGROUPS_T
=int
9297 TARGET_GETGROUPS_T
=gid_t
9303 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9304 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9305 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 if test "$cross_compiling" = yes; then
9309 gcc_cv_func_printf_ptr
=no
9311 cat >conftest.
$ac_ext <<_ACEOF
9314 cat confdefs.h
>>conftest.
$ac_ext
9315 cat >>conftest.
$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9322 char *p = buf, *q = NULL;
9323 sprintf(buf, "%p", p);
9324 sscanf(buf, "%p", &q);
9328 rm -f conftest
$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 gcc_cv_func_printf_ptr
=yes
9341 echo "$as_me: program exited with status $ac_status" >&5
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.
$ac_ext >&5
9346 gcc_cv_func_printf_ptr
=no
9348 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9350 rm -f core core.
* *.core
9352 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9353 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9354 if test $gcc_cv_func_printf_ptr = yes ; then
9356 cat >>confdefs.h
<<\_ACEOF
9357 #define HAVE_PRINTF_PTR 1
9363 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9364 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9365 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 cat >conftest.
$ac_ext <<_ACEOF
9371 cat confdefs.h
>>conftest.
$ac_ext
9372 cat >>conftest.
$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 #include <sys/mman.h>
9376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9377 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9379 grep -v '^ *+' conftest.er1
>conftest.err
9381 cat conftest.err
>&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } >/dev
/null
; then
9384 if test -s conftest.err
; then
9385 ac_cpp_err
=$ac_c_preproc_warn_flag
9386 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9393 if test -z "$ac_cpp_err"; then
9394 ac_cv_header_sys_mman_h
=yes
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.
$ac_ext >&5
9399 ac_cv_header_sys_mman_h
=no
9401 rm -f conftest.err conftest.
$ac_ext
9403 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9404 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9405 if test $ac_cv_header_sys_mman_h = yes; then
9406 gcc_header_sys_mman_h
=yes
9408 gcc_header_sys_mman_h
=no
9411 echo "$as_me:$LINENO: checking for mmap" >&5
9412 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9413 if test "${ac_cv_func_mmap+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 cat >conftest.
$ac_ext <<_ACEOF
9419 cat confdefs.h
>>conftest.
$ac_ext
9420 cat >>conftest.
$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9424 #define mmap innocuous_mmap
9426 /* System header to define __stub macros and hopefully few prototypes,
9427 which can conflict with char mmap (); below.
9428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9429 <limits.h> exists even on freestanding compilers. */
9432 # include <limits.h>
9434 # include <assert.h>
9439 /* Override any gcc2 internal prototype to avoid an error. */
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9447 /* The GNU C library defines this for functions which it implements
9448 to always fail with ENOSYS. Some functions are actually named
9449 something starting with __ and the normal name is an alias. */
9450 #if defined (__stub_mmap) || defined (__stub___mmap)
9453 char (*f) () = mmap;
9467 rm -f conftest.
$ac_objext conftest
$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469 (eval $ac_link) 2>conftest.er1
9471 grep -v '^ *+' conftest.er1
>conftest.err
9473 cat conftest.err
>&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; } &&
9482 { ac_try
='test -s conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.
$ac_ext >&5
9495 rm -f conftest.err conftest.
$ac_objext \
9496 conftest
$ac_exeext conftest.
$ac_ext
9498 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9499 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9500 if test $ac_cv_func_mmap = yes; then
9506 if test "$gcc_header_sys_mman_h" != yes \
9507 ||
test "$gcc_func_mmap" != yes; then
9508 gcc_cv_func_mmap_file
=no
9509 gcc_cv_func_mmap_dev_zero
=no
9510 gcc_cv_func_mmap_anon
=no
9512 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9513 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9514 if test "${gcc_cv_func_mmap_file+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 # Add a system to this blacklist if
9518 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9519 # memory area containing the same data that you'd get if you applied
9520 # read() to the same fd. The only system known to have a problem here
9521 # is VMS, where text files have record structure.
9524 gcc_cv_func_mmap_file
=no
;;
9526 gcc_cv_func_mmap_file
=yes;;
9529 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9530 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9531 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9532 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9533 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 # Add a system to this blacklist if it has mmap() but /dev/zero
9537 # does not exist, or if mmapping /dev/zero does not give anonymous
9538 # zeroed pages with both the following properties:
9539 # 1. If you map N consecutive pages in with one call, and then
9540 # unmap any subset of those pages, the pages that were not
9541 # explicitly unmapped remain accessible.
9542 # 2. If you map two adjacent blocks of memory and then unmap them
9543 # both at once, they must both go away.
9544 # Systems known to be in this category are Windows (all variants),
9547 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9548 gcc_cv_func_mmap_dev_zero
=no
;;
9550 gcc_cv_func_mmap_dev_zero
=yes;;
9553 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9554 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9556 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9557 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9558 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9559 if test "${gcc_cv_decl_map_anon+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 cat >conftest.
$ac_ext <<_ACEOF
9565 cat confdefs.h
>>conftest.
$ac_ext
9566 cat >>conftest.
$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 #include <sys/types.h>
9569 #include <sys/mman.h>
9572 #ifndef MAP_ANONYMOUS
9573 #define MAP_ANONYMOUS MAP_ANON
9579 int n = MAP_ANONYMOUS;
9584 rm -f conftest.
$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9588 grep -v '^ *+' conftest.er1
>conftest.err
9590 cat conftest.err
>&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try
='test -s conftest.$ac_objext'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 gcc_cv_decl_map_anon
=yes
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.
$ac_ext >&5
9610 gcc_cv_decl_map_anon
=no
9612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9614 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9615 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9617 if test $gcc_cv_decl_map_anon = no
; then
9618 gcc_cv_func_mmap_anon
=no
9620 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9621 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9622 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9626 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9627 # doesn't give anonymous zeroed pages with the same properties listed
9628 # above for use of /dev/zero.
9629 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9631 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9632 gcc_cv_func_mmap_anon
=no
;;
9634 gcc_cv_func_mmap_anon
=yes;;
9637 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9638 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9642 if test $gcc_cv_func_mmap_file = yes; then
9644 cat >>confdefs.h
<<\_ACEOF
9645 #define HAVE_MMAP_FILE 1
9649 if test $gcc_cv_func_mmap_dev_zero = yes; then
9651 cat >>confdefs.h
<<\_ACEOF
9652 #define HAVE_MMAP_DEV_ZERO 1
9656 if test $gcc_cv_func_mmap_anon = yes; then
9658 cat >>confdefs.h
<<\_ACEOF
9659 #define HAVE_MMAP_ANON 1
9667 # Under VMS, vfork works very differently than on Unix. The standard test
9668 # won't work, and it isn't easily adaptable. It makes more sense to
9670 ac_cv_func_vfork_works
=yes
9673 echo "$as_me:$LINENO: checking for pid_t" >&5
9674 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9675 if test "${ac_cv_type_pid_t+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 cat >conftest.
$ac_ext <<_ACEOF
9681 cat confdefs.h
>>conftest.
$ac_ext
9682 cat >>conftest.
$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 $ac_includes_default
9696 rm -f conftest.
$ac_objext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9698 (eval $ac_compile) 2>conftest.er1
9700 grep -v '^ *+' conftest.er1
>conftest.err
9702 cat conftest.err
>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try
='test -s conftest.$ac_objext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_type_pid_t
=yes
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.
$ac_ext >&5
9724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9726 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9727 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9728 if test $ac_cv_type_pid_t = yes; then
9732 cat >>confdefs.h
<<_ACEOF
9740 for ac_header
in unistd.h vfork.h
9742 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9743 echo "$as_me:$LINENO: checking for $ac_header" >&5
9744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 cat >conftest.
$ac_ext <<_ACEOF
9751 cat confdefs.h
>>conftest.
$ac_ext
9752 cat >>conftest.
$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 #include <$ac_header>
9756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9757 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9759 grep -v '^ *+' conftest.er1
>conftest.err
9761 cat conftest.err
>&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } >/dev
/null
; then
9764 if test -s conftest.err
; then
9765 ac_cpp_err
=$ac_c_preproc_warn_flag
9766 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9773 if test -z "$ac_cpp_err"; then
9774 eval "$as_ac_Header=yes"
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.
$ac_ext >&5
9779 eval "$as_ac_Header=no"
9781 rm -f conftest.err conftest.
$ac_ext
9783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9786 cat >>confdefs.h
<<_ACEOF
9787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9795 for ac_func
in fork vfork
9797 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9798 echo "$as_me:$LINENO: checking for $ac_func" >&5
9799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_var+set}\" = set"; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 cat >conftest.
$ac_ext <<_ACEOF
9806 cat confdefs.h
>>conftest.
$ac_ext
9807 cat >>conftest.
$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9811 #define $ac_func innocuous_$ac_func
9813 /* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char $ac_func (); below.
9815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9816 <limits.h> exists even on freestanding compilers. */
9819 # include <limits.h>
9821 # include <assert.h>
9826 /* Override any gcc2 internal prototype to avoid an error. */
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9834 /* The GNU C library defines this for functions which it implements
9835 to always fail with ENOSYS. Some functions are actually named
9836 something starting with __ and the normal name is an alias. */
9837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9840 char (*f) () = $ac_func;
9849 return f != $ac_func;
9854 rm -f conftest.
$ac_objext conftest
$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856 (eval $ac_link) 2>conftest.er1
9858 grep -v '^ *+' conftest.er1
>conftest.err
9860 cat conftest.err
>&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try
='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 eval "$as_ac_var=yes"
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.
$ac_ext >&5
9880 eval "$as_ac_var=no"
9882 rm -f conftest.err conftest.
$ac_objext \
9883 conftest
$ac_exeext conftest.
$ac_ext
9885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9887 if test `eval echo '${'$as_ac_var'}'` = yes; then
9888 cat >>confdefs.h
<<_ACEOF
9889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9895 if test "x$ac_cv_func_fork" = xyes
; then
9896 echo "$as_me:$LINENO: checking for working fork" >&5
9897 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9898 if test "${ac_cv_func_fork_works+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 if test "$cross_compiling" = yes; then
9902 ac_cv_func_fork_works
=cross
9904 cat >conftest.
$ac_ext <<_ACEOF
9905 /* By Ruediger Kuhlmann. */
9906 #include <sys/types.h>
9908 # include <unistd.h>
9910 /* Some systems only have a dummy stub for fork() */
9918 rm -f conftest
$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_func_fork_works
=yes
9931 echo "$as_me: program exited with status $ac_status" >&5
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.
$ac_ext >&5
9936 ac_cv_func_fork_works
=no
9938 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9941 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9942 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9945 ac_cv_func_fork_works
=$ac_cv_func_fork
9947 if test "x$ac_cv_func_fork_works" = xcross
; then
9949 *-*-amigaos* |
*-*-msdosdjgpp*)
9950 # Override, as these systems have only a dummy fork() stub
9951 ac_cv_func_fork_works
=no
9954 ac_cv_func_fork_works
=yes
9957 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9958 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9960 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9961 if test "x$ac_cv_func_vfork" = xyes
; then
9962 echo "$as_me:$LINENO: checking for working vfork" >&5
9963 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9964 if test "${ac_cv_func_vfork_works+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 if test "$cross_compiling" = yes; then
9968 ac_cv_func_vfork_works
=cross
9970 cat >conftest.
$ac_ext <<_ACEOF
9973 cat confdefs.h
>>conftest.
$ac_ext
9974 cat >>conftest.
$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 /* Thanks to Paul Eggert for this test. */
9979 #include <sys/types.h>
9980 #include <sys/stat.h>
9981 #include <sys/wait.h>
9983 # include <unistd.h>
9988 /* On some sparc systems, changes by the child to local and incoming
9989 argument registers are propagated back to the parent. The compiler
9990 is told about this with #include <vfork.h>, but some compilers
9991 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9992 static variable whose address is put into a register that is
9993 clobbered by the vfork. */
9996 sparc_address_test (int arg)
9998 sparc_address_test (arg) int arg;
10001 static pid_t child;
10019 pid_t parent = getpid ();
10022 sparc_address_test (0);
10027 /* Here is another test for sparc vfork register problems. This
10028 test uses lots of local variables, at least as many local
10029 variables as main has allocated so far including compiler
10030 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10031 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10032 reuse the register of parent for one of the local variables,
10033 since it will think that parent can't possibly be used any more
10034 in this routine. Assigning to the local variable will thus
10035 munge parent in the parent process. */
10037 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10038 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10039 /* Convince the compiler that p..p7 are live; otherwise, it might
10040 use the same hardware register for all 8 local variables. */
10041 if (p != p1 || p != p2 || p != p3 || p != p4
10042 || p != p5 || p != p6 || p != p7)
10045 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10046 from child file descriptors. If the child closes a descriptor
10047 before it execs or exits, this munges the parent's descriptor
10048 as well. Test for this by closing stdout in the child. */
10049 _exit(close(fileno(stdout)) != 0);
10054 while (wait(&status) != child)
10057 /* Was there some problem with vforking? */
10060 /* Did the child fail? (This shouldn't happen.) */
10063 /* Did the vfork/compiler bug occur? */
10064 || parent != getpid()
10066 /* Did the file descriptor bug occur? */
10067 || fstat(fileno(stdout), &st) != 0
10072 rm -f conftest
$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074 (eval $ac_link) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_func_vfork_works
=yes
10085 echo "$as_me: program exited with status $ac_status" >&5
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.
$ac_ext >&5
10089 ( exit $ac_status )
10090 ac_cv_func_vfork_works
=no
10092 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10095 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10096 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10099 if test "x$ac_cv_func_fork_works" = xcross
; then
10100 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10101 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10102 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10105 if test "x$ac_cv_func_vfork_works" = xyes
; then
10107 cat >>confdefs.h
<<\_ACEOF
10108 #define HAVE_WORKING_VFORK 1
10113 cat >>confdefs.h
<<\_ACEOF
10118 if test "x$ac_cv_func_fork_works" = xyes
; then
10120 cat >>confdefs.h
<<\_ACEOF
10121 #define HAVE_WORKING_FORK 1
10128 if test "X$prefix" = "XNONE"; then
10129 acl_final_prefix
="$ac_default_prefix"
10131 acl_final_prefix
="$prefix"
10133 if test "X$exec_prefix" = "XNONE"; then
10134 acl_final_exec_prefix
='${prefix}'
10136 acl_final_exec_prefix
="$exec_prefix"
10138 acl_save_prefix
="$prefix"
10139 prefix
="$acl_final_prefix"
10140 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10141 prefix
="$acl_save_prefix"
10144 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10145 if test "${with_gnu_ld+set}" = set; then
10146 withval
="$with_gnu_ld"
10147 test "$withval" = no || with_gnu_ld
=yes
10151 # Prepare PATH_SEPARATOR.
10152 # The user is always right.
10153 if test "${PATH_SEPARATOR+set}" != set; then
10154 echo "#! /bin/sh" >conf$$.sh
10155 echo "exit 0" >>conf$$.sh
10157 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10165 if test "$GCC" = yes; then
10166 # Check if gcc -print-prog-name=ld gives a path.
10167 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10168 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10171 # gcc leaves a trailing carriage return which upsets mingw
10172 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10174 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10177 # Accept absolute paths.
10178 [\\/]* |
[A-Za-z
]:[\\/]*)
10179 re_direlt
='/[^/][^/]*/\.\./'
10180 # Canonicalize the path of ld
10181 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10182 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10183 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10185 test -z "$LD" && LD
="$ac_prog"
10188 # If it fails, then pretend we aren't using GCC.
10192 # If it is relative, then search for the first ld in PATH.
10193 with_gnu_ld
=unknown
10196 elif test "$with_gnu_ld" = yes; then
10197 echo "$as_me:$LINENO: checking for GNU ld" >&5
10198 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10200 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10201 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10203 if test "${acl_cv_path_LD+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 if test -z "$LD"; then
10207 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10208 for ac_dir
in $PATH; do
10209 test -z "$ac_dir" && ac_dir
=.
10210 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10211 acl_cv_path_LD
="$ac_dir/$ac_prog"
10212 # Check to see if the program is GNU ld. I'd rather use --version,
10213 # but apparently some GNU ld's only accept -v.
10214 # Break only if it was the GNU/non-GNU ld that we prefer.
10215 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10216 test "$with_gnu_ld" != no
&& break
10218 test "$with_gnu_ld" != yes && break
10224 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10228 LD
="$acl_cv_path_LD"
10229 if test -n "$LD"; then
10230 echo "$as_me:$LINENO: result: $LD" >&5
10231 echo "${ECHO_T}$LD" >&6
10233 echo "$as_me:$LINENO: result: no" >&5
10234 echo "${ECHO_T}no" >&6
10236 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10237 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10238 { (exit 1); exit 1; }; }
10239 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10240 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10241 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10245 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10246 acl_cv_prog_gnu_ld
=yes
10248 acl_cv_prog_gnu_ld
=no
10251 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10252 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10253 with_gnu_ld
=$acl_cv_prog_gnu_ld
10257 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10258 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10259 if test "${acl_cv_rpath+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10264 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10266 rm -f .
/conftest.sh
10270 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10271 echo "${ECHO_T}$acl_cv_rpath" >&6
10273 libext
="$acl_cv_libext"
10274 shlibext
="$acl_cv_shlibext"
10275 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10276 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10277 hardcode_direct
="$acl_cv_hardcode_direct"
10278 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10279 # Check whether --enable-rpath or --disable-rpath was given.
10280 if test "${enable_rpath+set}" = set; then
10281 enableval
="$enable_rpath"
10295 acl_save_prefix
="$prefix"
10296 prefix
="$acl_final_prefix"
10297 acl_save_exec_prefix
="$exec_prefix"
10298 exec_prefix
="$acl_final_exec_prefix"
10300 eval additional_includedir
=\"$includedir\"
10301 eval additional_libdir
=\"$libdir\"
10303 exec_prefix
="$acl_save_exec_prefix"
10304 prefix
="$acl_save_prefix"
10307 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10308 if test "${with_libiconv_prefix+set}" = set; then
10309 withval
="$with_libiconv_prefix"
10311 if test "X$withval" = "Xno"; then
10314 if test "X$withval" = "X"; then
10316 acl_save_prefix
="$prefix"
10317 prefix
="$acl_final_prefix"
10318 acl_save_exec_prefix
="$exec_prefix"
10319 exec_prefix
="$acl_final_exec_prefix"
10321 eval additional_includedir
=\"$includedir\"
10322 eval additional_libdir
=\"$libdir\"
10324 exec_prefix
="$acl_save_exec_prefix"
10325 prefix
="$acl_save_prefix"
10328 additional_includedir
="$withval/include"
10329 additional_libdir
="$withval/lib"
10339 names_already_handled
=
10340 names_next_round
='iconv '
10341 while test -n "$names_next_round"; do
10342 names_this_round
="$names_next_round"
10344 for name
in $names_this_round; do
10346 for n
in $names_already_handled; do
10347 if test "$n" = "$name"; then
10348 already_handled
=yes
10352 if test -z "$already_handled"; then
10353 names_already_handled
="$names_already_handled $name"
10354 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10355 eval value
=\"\
$HAVE_LIB$uppername\"
10356 if test -n "$value"; then
10357 if test "$value" = yes; then
10358 eval value
=\"\
$LIB$uppername\"
10359 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10360 eval value
=\"\
$LTLIB$uppername\"
10361 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10370 if test $use_additional = yes; then
10371 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10372 found_dir
="$additional_libdir"
10373 found_so
="$additional_libdir/lib$name.$shlibext"
10374 if test -f "$additional_libdir/lib$name.la"; then
10375 found_la
="$additional_libdir/lib$name.la"
10378 if test -f "$additional_libdir/lib$name.$libext"; then
10379 found_dir
="$additional_libdir"
10380 found_a
="$additional_libdir/lib$name.$libext"
10381 if test -f "$additional_libdir/lib$name.la"; then
10382 found_la
="$additional_libdir/lib$name.la"
10387 if test "X$found_dir" = "X"; then
10388 for x
in $LDFLAGS $LTLIBICONV; do
10390 acl_save_prefix
="$prefix"
10391 prefix
="$acl_final_prefix"
10392 acl_save_exec_prefix
="$exec_prefix"
10393 exec_prefix
="$acl_final_exec_prefix"
10395 exec_prefix
="$acl_save_exec_prefix"
10396 prefix
="$acl_save_prefix"
10400 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10401 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10403 found_so
="$dir/lib$name.$shlibext"
10404 if test -f "$dir/lib$name.la"; then
10405 found_la
="$dir/lib$name.la"
10408 if test -f "$dir/lib$name.$libext"; then
10410 found_a
="$dir/lib$name.$libext"
10411 if test -f "$dir/lib$name.la"; then
10412 found_la
="$dir/lib$name.la"
10418 if test "X$found_dir" != "X"; then
10423 if test "X$found_dir" != "X"; then
10424 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10425 if test "X$found_so" != "X"; then
10426 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10427 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10430 for x
in $ltrpathdirs; do
10431 if test "X$x" = "X$found_dir"; then
10436 if test -z "$haveit"; then
10437 ltrpathdirs
="$ltrpathdirs $found_dir"
10439 if test "$hardcode_direct" = yes; then
10440 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10442 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10443 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10445 for x
in $rpathdirs; do
10446 if test "X$x" = "X$found_dir"; then
10451 if test -z "$haveit"; then
10452 rpathdirs
="$rpathdirs $found_dir"
10456 for x
in $LDFLAGS $LIBICONV; do
10458 acl_save_prefix
="$prefix"
10459 prefix
="$acl_final_prefix"
10460 acl_save_exec_prefix
="$exec_prefix"
10461 exec_prefix
="$acl_final_exec_prefix"
10463 exec_prefix
="$acl_save_exec_prefix"
10464 prefix
="$acl_save_prefix"
10466 if test "X$x" = "X-L$found_dir"; then
10471 if test -z "$haveit"; then
10472 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10474 if test "$hardcode_minus_L" != no
; then
10475 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10477 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10483 if test "X$found_a" != "X"; then
10484 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10486 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10489 additional_includedir
=
10490 case "$found_dir" in
10492 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10493 additional_includedir
="$basedir/include"
10496 if test "X$additional_includedir" != "X"; then
10497 if test "X$additional_includedir" != "X/usr/include"; then
10499 if test "X$additional_includedir" = "X/usr/local/include"; then
10500 if test -n "$GCC"; then
10502 linux
*) haveit
=yes;;
10506 if test -z "$haveit"; then
10507 for x
in $CPPFLAGS $INCICONV; do
10509 acl_save_prefix
="$prefix"
10510 prefix
="$acl_final_prefix"
10511 acl_save_exec_prefix
="$exec_prefix"
10512 exec_prefix
="$acl_final_exec_prefix"
10514 exec_prefix
="$acl_save_exec_prefix"
10515 prefix
="$acl_save_prefix"
10517 if test "X$x" = "X-I$additional_includedir"; then
10522 if test -z "$haveit"; then
10523 if test -d "$additional_includedir"; then
10524 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10530 if test -n "$found_la"; then
10531 save_libdir
="$libdir"
10532 case "$found_la" in
10533 */* |
*\\*) .
"$found_la" ;;
10534 *) .
"./$found_la" ;;
10536 libdir
="$save_libdir"
10537 for dep
in $dependency_libs; do
10540 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10541 if test "X$additional_libdir" != "X/usr/lib"; then
10543 if test "X$additional_libdir" = "X/usr/local/lib"; then
10544 if test -n "$GCC"; then
10546 linux
*) haveit
=yes;;
10550 if test -z "$haveit"; then
10552 for x
in $LDFLAGS $LIBICONV; do
10554 acl_save_prefix
="$prefix"
10555 prefix
="$acl_final_prefix"
10556 acl_save_exec_prefix
="$exec_prefix"
10557 exec_prefix
="$acl_final_exec_prefix"
10559 exec_prefix
="$acl_save_exec_prefix"
10560 prefix
="$acl_save_prefix"
10562 if test "X$x" = "X-L$additional_libdir"; then
10567 if test -z "$haveit"; then
10568 if test -d "$additional_libdir"; then
10569 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10573 for x
in $LDFLAGS $LTLIBICONV; do
10575 acl_save_prefix
="$prefix"
10576 prefix
="$acl_final_prefix"
10577 acl_save_exec_prefix
="$exec_prefix"
10578 exec_prefix
="$acl_final_exec_prefix"
10580 exec_prefix
="$acl_save_exec_prefix"
10581 prefix
="$acl_save_prefix"
10583 if test "X$x" = "X-L$additional_libdir"; then
10588 if test -z "$haveit"; then
10589 if test -d "$additional_libdir"; then
10590 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10597 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10598 if test "$enable_rpath" != no
; then
10600 for x
in $rpathdirs; do
10601 if test "X$x" = "X$dir"; then
10606 if test -z "$haveit"; then
10607 rpathdirs
="$rpathdirs $dir"
10610 for x
in $ltrpathdirs; do
10611 if test "X$x" = "X$dir"; then
10616 if test -z "$haveit"; then
10617 ltrpathdirs
="$ltrpathdirs $dir"
10622 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10625 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10628 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10629 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10635 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10636 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10642 if test "X$rpathdirs" != "X"; then
10643 if test -n "$hardcode_libdir_separator"; then
10645 for found_dir
in $rpathdirs; do
10646 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10648 acl_save_libdir
="$libdir"
10650 eval flag
=\"$hardcode_libdir_flag_spec\"
10651 libdir
="$acl_save_libdir"
10652 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10654 for found_dir
in $rpathdirs; do
10655 acl_save_libdir
="$libdir"
10656 libdir
="$found_dir"
10657 eval flag
=\"$hardcode_libdir_flag_spec\"
10658 libdir
="$acl_save_libdir"
10659 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10663 if test "X$ltrpathdirs" != "X"; then
10664 for found_dir
in $ltrpathdirs; do
10665 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10675 am_save_CPPFLAGS
="$CPPFLAGS"
10677 for element
in $INCICONV; do
10679 for x
in $CPPFLAGS; do
10681 acl_save_prefix
="$prefix"
10682 prefix
="$acl_final_prefix"
10683 acl_save_exec_prefix
="$exec_prefix"
10684 exec_prefix
="$acl_final_exec_prefix"
10686 exec_prefix
="$acl_save_exec_prefix"
10687 prefix
="$acl_save_prefix"
10689 if test "X$x" = "X$element"; then
10694 if test -z "$haveit"; then
10695 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10700 echo "$as_me:$LINENO: checking for iconv" >&5
10701 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10702 if test "${am_cv_func_iconv+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 am_cv_func_iconv
="no, consider installing GNU libiconv"
10708 cat >conftest.
$ac_ext <<_ACEOF
10711 cat confdefs.h
>>conftest.
$ac_ext
10712 cat >>conftest.
$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 #include <stdlib.h>
10719 iconv_t cd = iconv_open("","");
10720 iconv(cd,NULL,NULL,NULL,NULL);
10726 rm -f conftest.
$ac_objext conftest
$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>conftest.er1
10730 grep -v '^ *+' conftest.er1
>conftest.err
10732 cat conftest.err
>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try
='test -s conftest$ac_exeext'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 am_cv_func_iconv
=yes
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.
$ac_ext >&5
10753 rm -f conftest.err conftest.
$ac_objext \
10754 conftest
$ac_exeext conftest.
$ac_ext
10755 if test "$am_cv_func_iconv" != yes; then
10756 am_save_LIBS
="$LIBS"
10757 LIBS
="$LIBS $LIBICONV"
10758 cat >conftest.
$ac_ext <<_ACEOF
10761 cat confdefs.h
>>conftest.
$ac_ext
10762 cat >>conftest.
$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 #include <stdlib.h>
10769 iconv_t cd = iconv_open("","");
10770 iconv(cd,NULL,NULL,NULL,NULL);
10776 rm -f conftest.
$ac_objext conftest
$ac_exeext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10778 (eval $ac_link) 2>conftest.er1
10780 grep -v '^ *+' conftest.er1
>conftest.err
10782 cat conftest.err
>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; } &&
10791 { ac_try
='test -s conftest$ac_exeext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 am_cv_lib_iconv
=yes
10798 am_cv_func_iconv
=yes
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.
$ac_ext >&5
10804 rm -f conftest.err conftest.
$ac_objext \
10805 conftest
$ac_exeext conftest.
$ac_ext
10806 LIBS
="$am_save_LIBS"
10810 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10811 echo "${ECHO_T}$am_cv_func_iconv" >&6
10812 if test "$am_cv_func_iconv" = yes; then
10814 cat >>confdefs.h
<<\_ACEOF
10815 #define HAVE_ICONV 1
10819 if test "$am_cv_lib_iconv" = yes; then
10820 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10821 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10822 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10823 echo "${ECHO_T}$LIBICONV" >&6
10825 CPPFLAGS
="$am_save_CPPFLAGS"
10832 if test "$am_cv_func_iconv" = yes; then
10833 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10834 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10835 if test "${am_cv_proto_iconv+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 cat >conftest.
$ac_ext <<_ACEOF
10842 cat confdefs.h
>>conftest.
$ac_ext
10843 cat >>conftest.
$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10846 #include <stdlib.h>
10852 #if defined(__STDC__) || defined(__cplusplus)
10853 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10866 rm -f conftest.
$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>conftest.er1
10870 grep -v '^ *+' conftest.er1
>conftest.err
10872 cat conftest.err
>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try
='test -s conftest.$ac_objext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 am_cv_proto_iconv_arg1
=""
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.
$ac_ext >&5
10892 am_cv_proto_iconv_arg1
="const"
10894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10895 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10898 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10899 echo "$as_me:$LINENO: result: ${ac_t:-
10900 }$am_cv_proto_iconv" >&5
10901 echo "${ECHO_T}${ac_t:-
10902 }$am_cv_proto_iconv" >&6
10904 cat >>confdefs.h
<<_ACEOF
10905 #define ICONV_CONST $am_cv_proto_iconv_arg1
10910 # Until we have in-tree GNU iconv:
10915 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10916 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10917 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 cat >conftest.
$ac_ext <<_ACEOF
10923 cat confdefs.h
>>conftest.
$ac_ext
10924 cat >>conftest.
$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 #include <locale.h>
10935 rm -f conftest.
$ac_objext conftest
$ac_exeext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10937 (eval $ac_link) 2>conftest.er1
10939 grep -v '^ *+' conftest.er1
>conftest.err
10941 cat conftest.err
>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try
='test -s conftest$ac_exeext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 am_cv_val_LC_MESSAGES
=yes
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.
$ac_ext >&5
10961 am_cv_val_LC_MESSAGES
=no
10963 rm -f conftest.err conftest.
$ac_objext \
10964 conftest
$ac_exeext conftest.
$ac_ext
10966 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10967 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10968 if test $am_cv_val_LC_MESSAGES = yes; then
10970 cat >>confdefs.h
<<\_ACEOF
10971 #define HAVE_LC_MESSAGES 1
10978 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10979 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10980 if test "${am_cv_langinfo_codeset+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 cat >conftest.
$ac_ext <<_ACEOF
10986 cat confdefs.h
>>conftest.
$ac_ext
10987 cat >>conftest.
$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 #include <langinfo.h>
10993 char* cs = nl_langinfo(CODESET);
10998 rm -f conftest.
$ac_objext conftest
$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>conftest.er1
11002 grep -v '^ *+' conftest.er1
>conftest.err
11004 cat conftest.err
>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; } &&
11013 { ac_try
='test -s conftest$ac_exeext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 am_cv_langinfo_codeset
=yes
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.
$ac_ext >&5
11024 am_cv_langinfo_codeset
=no
11026 rm -f conftest.err conftest.
$ac_objext \
11027 conftest
$ac_exeext conftest.
$ac_ext
11030 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11031 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11032 if test $am_cv_langinfo_codeset = yes; then
11034 cat >>confdefs.h
<<\_ACEOF
11035 #define HAVE_LANGINFO_CODESET 1
11041 # We will need to find libiberty.h and ansidecl.h
11042 saved_CFLAGS
="$CFLAGS"
11043 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11068 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
11069 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11070 fprintf_unlocked strstr errno snprintf vasprintf \
11071 malloc realloc calloc free
basename getopt
clock getpagesize
11073 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11074 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11075 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11076 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 cat >conftest.
$ac_ext <<_ACEOF
11082 cat confdefs.h
>>conftest.
$ac_ext
11083 cat >>conftest.
$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11086 #define $ac_tr_decl 1
11088 #include "ansidecl.h"
11089 #include "system.h"
11095 char *(*pfn) = (char *(*)) $ac_func ;
11101 rm -f conftest.
$ac_objext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103 (eval $ac_compile) 2>conftest.er1
11105 grep -v '^ *+' conftest.er1
>conftest.err
11107 cat conftest.err
>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; } &&
11116 { ac_try
='test -s conftest.$ac_objext'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 eval "gcc_cv_have_decl_$ac_func=yes"
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.
$ac_ext >&5
11127 eval "gcc_cv_have_decl_$ac_func=no"
11129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11132 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11133 echo "$as_me:$LINENO: result: yes" >&5
11134 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11135 #define $ac_tr_decl 1
11139 echo "$as_me:$LINENO: result: no" >&5
11140 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11141 #define $ac_tr_decl 0
11152 for ac_func
in getrlimit setrlimit getrusage
11154 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11155 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11156 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11157 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 cat >conftest.
$ac_ext <<_ACEOF
11163 cat confdefs.h
>>conftest.
$ac_ext
11164 cat >>conftest.
$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11167 #define $ac_tr_decl 1
11169 #include "ansidecl.h"
11170 #include "system.h"
11171 #ifdef HAVE_SYS_RESOURCE_H
11172 #include <sys/resource.h>
11180 char *(*pfn) = (char *(*)) $ac_func ;
11186 rm -f conftest.
$ac_objext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11188 (eval $ac_compile) 2>conftest.er1
11190 grep -v '^ *+' conftest.er1
>conftest.err
11192 cat conftest.err
>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try
='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 eval "gcc_cv_have_decl_$ac_func=yes"
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.
$ac_ext >&5
11212 eval "gcc_cv_have_decl_$ac_func=no"
11214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11217 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11218 echo "$as_me:$LINENO: result: yes" >&5
11219 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11220 #define $ac_tr_decl 1
11224 echo "$as_me:$LINENO: result: no" >&5
11225 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11226 #define $ac_tr_decl 0
11234 cat >conftest.
$ac_ext <<_ACEOF
11237 cat confdefs.h
>>conftest.
$ac_ext
11238 cat >>conftest.
$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11241 #include "ansidecl.h"
11242 #include "system.h"
11243 #ifdef HAVE_SYS_RESOURCE_H
11244 #include <sys/resource.h>
11255 rm -f conftest.
$ac_objext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11257 (eval $ac_compile) 2>conftest.er1
11259 grep -v '^ *+' conftest.er1
>conftest.err
11261 cat conftest.err
>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try
='test -s conftest.$ac_objext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.
$ac_ext >&5
11282 cat >>confdefs.h
<<\_ACEOF
11283 #define rlim_t long
11287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11289 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11290 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11291 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11292 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11294 for ac_func
in ldgetname
11296 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11297 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11298 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11299 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 cat >conftest.
$ac_ext <<_ACEOF
11305 cat confdefs.h
>>conftest.
$ac_ext
11306 cat >>conftest.
$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11309 #define $ac_tr_decl 1
11311 #include "ansidecl.h"
11312 #include "system.h"
11313 #ifdef HAVE_LDFCN_H
11324 char *(*pfn) = (char *(*)) $ac_func ;
11330 rm -f conftest.
$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11334 grep -v '^ *+' conftest.er1
>conftest.err
11336 cat conftest.err
>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try
='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 eval "gcc_cv_have_decl_$ac_func=yes"
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.
$ac_ext >&5
11356 eval "gcc_cv_have_decl_$ac_func=no"
11358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11361 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11362 echo "$as_me:$LINENO: result: yes" >&5
11363 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11364 #define $ac_tr_decl 1
11368 echo "$as_me:$LINENO: result: no" >&5
11369 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11370 #define $ac_tr_decl 0
11379 for ac_func
in times
11381 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11382 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11383 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11384 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.
$ac_ext <<_ACEOF
11390 cat confdefs.h
>>conftest.
$ac_ext
11391 cat >>conftest.
$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11394 #define $ac_tr_decl 1
11396 #include "ansidecl.h"
11397 #include "system.h"
11398 #ifdef HAVE_SYS_TIMES_H
11399 #include <sys/times.h>
11407 char *(*pfn) = (char *(*)) $ac_func ;
11413 rm -f conftest.
$ac_objext
11414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11415 (eval $ac_compile) 2>conftest.er1
11417 grep -v '^ *+' conftest.er1
>conftest.err
11419 cat conftest.err
>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; } &&
11428 { ac_try
='test -s conftest.$ac_objext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 eval "gcc_cv_have_decl_$ac_func=yes"
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.
$ac_ext >&5
11439 eval "gcc_cv_have_decl_$ac_func=no"
11441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11444 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11445 echo "$as_me:$LINENO: result: yes" >&5
11446 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11447 #define $ac_tr_decl 1
11451 echo "$as_me:$LINENO: result: no" >&5
11452 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11453 #define $ac_tr_decl 0
11461 # More time-related stuff.
11462 echo "$as_me:$LINENO: checking for struct tms" >&5
11463 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11464 if test "${ac_cv_struct_tms+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 cat >conftest.
$ac_ext <<_ACEOF
11471 cat confdefs.h
>>conftest.
$ac_ext
11472 cat >>conftest.
$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11475 #include "ansidecl.h"
11476 #include "system.h"
11477 #ifdef HAVE_SYS_TIMES_H
11478 #include <sys/times.h>
11489 rm -f conftest.
$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491 (eval $ac_compile) 2>conftest.er1
11493 grep -v '^ *+' conftest.er1
>conftest.err
11495 cat conftest.err
>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try
='test -s conftest.$ac_objext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_struct_tms
=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.
$ac_ext >&5
11515 ac_cv_struct_tms
=no
11517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11519 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11520 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11521 if test $ac_cv_struct_tms = yes; then
11523 cat >>confdefs.h
<<\_ACEOF
11524 #define HAVE_STRUCT_TMS 1
11529 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11530 # revisit after autoconf 2.50.
11531 echo "$as_me:$LINENO: checking for clock_t" >&5
11532 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11533 if test "${gcc_cv_type_clock_t+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 cat >conftest.
$ac_ext <<_ACEOF
11540 cat confdefs.h
>>conftest.
$ac_ext
11541 cat >>conftest.
$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11544 #include "ansidecl.h"
11545 #include "system.h"
11555 rm -f conftest.
$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557 (eval $ac_compile) 2>conftest.er1
11559 grep -v '^ *+' conftest.er1
>conftest.err
11561 cat conftest.err
>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try
='test -s conftest.$ac_objext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 gcc_cv_type_clock_t
=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.
$ac_ext >&5
11581 gcc_cv_type_clock_t
=no
11583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11585 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11586 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11587 if test $gcc_cv_type_clock_t = yes; then
11589 cat >>confdefs.h
<<\_ACEOF
11590 #define HAVE_CLOCK_T 1
11595 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11596 CFLAGS
="$saved_CFLAGS"
11598 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11599 if test "${enable_initfini_array+set}" = set; then
11600 enableval
="$enable_initfini_array"
11604 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11605 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11606 if test "${gcc_cv_initfini_array+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 if test "$cross_compiling" = yes; then
11610 gcc_cv_initfini_array
=no
11612 cat >conftest.
$ac_ext <<_ACEOF
11615 cat confdefs.h
>>conftest.
$ac_ext
11616 cat >>conftest.
$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11620 int main (void) { return x; }
11621 int foo (void) { x = 0; }
11622 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11624 rm -f conftest
$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626 (eval $ac_link) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 gcc_cv_initfini_array
=yes
11637 echo "$as_me: program exited with status $ac_status" >&5
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.
$ac_ext >&5
11641 ( exit $ac_status )
11642 gcc_cv_initfini_array
=no
11644 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11647 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11648 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11649 enable_initfini_array
=$gcc_cv_initfini_array
11652 if test $enable_initfini_array = yes; then
11654 cat >>confdefs.h
<<\_ACEOF
11655 #define HAVE_INITFINI_ARRAY 1
11660 # mkdir takes a single argument on some systems.
11661 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11662 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11663 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 cat >conftest.
$ac_ext <<_ACEOF
11669 cat confdefs.h
>>conftest.
$ac_ext
11670 cat >>conftest.
$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11673 #include <sys/types.h>
11674 #ifdef HAVE_SYS_STAT_H
11675 # include <sys/stat.h>
11677 #ifdef HAVE_UNISTD_H
11678 # include <unistd.h>
11680 #ifdef HAVE_DIRECT_H
11681 # include <direct.h>
11691 rm -f conftest.
$ac_objext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11693 (eval $ac_compile) 2>conftest.er1
11695 grep -v '^ *+' conftest.er1
>conftest.err
11697 cat conftest.err
>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; } &&
11706 { ac_try
='test -s conftest.$ac_objext'
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; }; then
11712 gcc_cv_mkdir_takes_one_arg
=no
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.
$ac_ext >&5
11717 gcc_cv_mkdir_takes_one_arg
=yes
11719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11721 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11722 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11723 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11725 cat >>confdefs.h
<<\_ACEOF
11726 #define MKDIR_TAKES_ONE_ARG 1
11738 # With Setjmp/Longjmp based exception handling.
11739 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11740 if test "${enable_sjlj_exceptions+set}" = set; then
11741 enableval
="$enable_sjlj_exceptions"
11742 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11744 cat >>confdefs.h
<<_ACEOF
11745 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11750 # For platforms with the unwind ABI which includes an unwind library,
11751 # libunwind, we can choose to use the system libunwind.
11753 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11754 if test "${with_system_libunwind+set}" = set; then
11755 withval
="$with_system_libunwind"
11759 # --------------------------------------------------------
11760 # Build, host, and target specific configuration fragments
11761 # --------------------------------------------------------
11763 # Collect build-machine-specific information.
11764 .
${srcdir}/config.build
11766 # Collect host-machine-specific information.
11767 .
${srcdir}/config.
host
11771 # Collect target-machine-specific information.
11772 .
${srcdir}/config.gcc
11774 extra_objs
="${host_extra_objs} ${extra_objs}"
11775 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11777 # Default the target-machine variables that were not explicitly set.
11778 if test x
"$tm_file" = x
11779 then tm_file
=$cpu_type/$cpu_type.h
; fi
11781 if test x
"$extra_headers" = x
11782 then extra_headers
=; fi
11784 if test x
$md_file = x
11785 then md_file
=$cpu_type/$cpu_type.md
; fi
11787 if test x
$out_file = x
11788 then out_file
=$cpu_type/$cpu_type.c
; fi
11790 if test x
"$tmake_file" = x
11791 then tmake_file
=$cpu_type/t-
$cpu_type
11794 if test x
"$dwarf2" = xyes
11795 then tm_file
="$tm_file tm-dwarf2.h"
11798 # Say what files are being used for the output code and MD file.
11799 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11800 echo "Using \`$srcdir/config/$md_file' as machine description file."
11802 # If any of the xm_file variables contain nonexistent files, warn
11803 # about them and drop them.
11806 for x
in $build_xm_file; do
11807 if test -f $srcdir/config
/$x
11809 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11810 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11813 build_xm_file
="$bx"
11816 for x
in $host_xm_file; do
11817 if test -f $srcdir/config
/$x
11819 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11820 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11826 for x
in $xm_file; do
11827 if test -f $srcdir/config
/$x
11829 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11830 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11836 for f
in $tm_file; do
11839 if test $count = ax
; then
11840 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11842 echo "Using the following target machine macro files:"
11843 for f
in $tm_file; do
11844 echo " $srcdir/config/$f"
11848 if test x
$need_64bit_hwint = xyes
; then
11850 cat >>confdefs.h
<<\_ACEOF
11851 #define NEED_64BIT_HOST_WIDE_INT 1
11856 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11858 cat >>confdefs.h
<<\_ACEOF
11859 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11865 for f
in $host_xm_file; do
11868 if test $count = a
; then
11870 elif test $count = ax
; then
11871 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11873 echo "Using the following host machine macro files:"
11874 for f
in $host_xm_file; do
11875 echo " $srcdir/config/$f"
11878 echo "Using ${out_host_hook_obj} for host machine hooks."
11880 if test "$host_xm_file" != "$build_xm_file"; then
11882 for f
in $build_xm_file; do
11885 if test $count = a
; then
11887 elif test $count = ax
; then
11888 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11890 echo "Using the following build machine macro files:"
11891 for f
in $build_xm_file; do
11892 echo " $srcdir/config/$f"
11901 # Check if a valid thread package
11902 case ${enable_threads} in
11905 target_thread_file
='single'
11909 target_thread_file
='single'
11911 aix | dce | gnat | irix | posix | posix95 | rtems | \
11912 single | solaris | vxworks | win32
)
11913 target_thread_file
=${enable_threads}
11916 echo "${enable_threads} is an unknown thread package" 1>&2
11921 if test x
${thread_file} = x
; then
11922 # No thread file set by target-specific clauses in config.gcc,
11923 # so use file chosen by default logic above
11924 thread_file
=${target_thread_file}
11927 # Make gthr-default.h if we have a thread file.
11929 if test $thread_file != single
; then
11930 rm -f gthr-default.h
11931 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11932 gthread_flags
=-DHAVE_GTHR_DEFAULT
11941 if test x
$enable___cxa_atexit = xyes || \
11942 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11943 if test x
$host = x
$target; then
11944 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11945 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11946 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 cat >conftest.
$ac_ext <<_ACEOF
11952 cat confdefs.h
>>conftest.
$ac_ext
11953 cat >>conftest.
$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11957 #define __cxa_atexit innocuous___cxa_atexit
11959 /* System header to define __stub macros and hopefully few prototypes,
11960 which can conflict with char __cxa_atexit (); below.
11961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11962 <limits.h> exists even on freestanding compilers. */
11965 # include <limits.h>
11967 # include <assert.h>
11970 #undef __cxa_atexit
11972 /* Override any gcc2 internal prototype to avoid an error. */
11977 /* We use char because int might match the return type of a gcc2
11978 builtin and then its argument prototype would still apply. */
11979 char __cxa_atexit ();
11980 /* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11986 char (*f) () = __cxa_atexit;
11995 return f != __cxa_atexit;
12000 rm -f conftest.
$ac_objext conftest
$ac_exeext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002 (eval $ac_link) 2>conftest.er1
12004 grep -v '^ *+' conftest.er1
>conftest.err
12006 cat conftest.err
>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try
='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_func___cxa_atexit
=yes
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.
$ac_ext >&5
12026 ac_cv_func___cxa_atexit
=no
12028 rm -f conftest.err conftest.
$ac_objext \
12029 conftest
$ac_exeext conftest.
$ac_ext
12031 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12032 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12033 if test $ac_cv_func___cxa_atexit = yes; then
12036 echo "__cxa_atexit can't be enabled on this target"
12040 # We can't check for __cxa_atexit when building a cross, so assume
12044 if test x
$use_cxa_atexit = xyes
; then
12046 cat >>confdefs.h
<<\_ACEOF
12047 #define DEFAULT_USE_CXA_ATEXIT 1
12053 # Look for a file containing extra machine modes.
12054 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12055 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12058 cat >>confdefs.h
<<_ACEOF
12059 #define EXTRA_MODES_FILE "config/$extra_modes"
12064 # Convert extra_options into a form suitable for Makefile use.
12066 for f
in $extra_options; do
12067 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12071 # auto-host.h is the file containing items generated by autoconf and is
12072 # the first file included by config.h.
12073 # If host=build, it is correct to have bconfig include auto-host.h
12074 # as well. If host!=build, we are in error and need to do more
12075 # work to find out the build config parameters.
12076 if test x
$host = x
$build
12078 build_auto
=auto-host.h
12080 # We create a subdir, then run autoconf in the subdir.
12081 # To prevent recursion we set host and build for the new
12082 # invocation of configure to the build for this invocation
12089 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12090 *) realsrcdir
=..
/${srcdir};;
12092 saved_CFLAGS
="${CFLAGS}"
12093 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12094 ${realsrcdir}/configure \
12095 --enable-languages=${enable_languages-all} \
12096 --target=$target_alias --host=$build_alias --build=$build_alias
12097 CFLAGS
="${saved_CFLAGS}"
12099 # We just finished tests for the build machine, so rename
12100 # the file auto-build.h in the gcc directory.
12101 mv auto-host.h ..
/auto-build.h
12104 build_auto
=auto-build.h
12108 tm_file
="${tm_file} defaults.h"
12109 tm_p_file
="${tm_p_file} tm-preds.h"
12110 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12111 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12112 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12113 # put this back in temporarily.
12114 xm_file
="ansidecl.h ${xm_file}"
12120 # Compile in configure arguments.
12121 if test -f configargs.h
; then
12122 # Being re-configured.
12123 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12124 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12126 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12129 # Double all backslashes and backslash all quotes to turn
12130 # gcc_config_arguments into a C string.
12131 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12132 $gcc_config_arguments
12134 gcc_config_arguments_str
=`cat conftest.out`
12137 cat > configargs.h
<<EOF
12138 /* Generated automatically. */
12139 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12140 static const char thread_model[] = "$thread_file";
12142 static const struct {
12143 const char *name, *value;
12144 } configure_default_options[] = $configure_default_options;
12147 # Internationalization
12149 VERSION
="$gcc_version"
12151 cat >>confdefs.h
<<_ACEOF
12152 #define PACKAGE "$PACKAGE"
12158 # If we haven't got the data from the intl directory,
12159 # assume NLS is disabled.
12167 if test -f ..
/intl
/config.intl
; then
12168 . ..
/intl
/config.intl
12170 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12171 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12172 if test x
"$USE_NLS" != xyes
; then
12173 echo "$as_me:$LINENO: result: no" >&5
12174 echo "${ECHO_T}no" >&6
12176 echo "$as_me:$LINENO: result: yes" >&5
12177 echo "${ECHO_T}yes" >&6
12179 cat >>confdefs.h
<<\_ACEOF
12180 #define ENABLE_NLS 1
12184 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12185 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12186 # Look for .po and .gmo files in the source directory.
12189 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12190 # If there aren't any .gmo files the shell will give us the
12191 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12193 case "$cat" in *\
**)
12196 # The quadruple backslash is collapsed to a double backslash
12197 # by the backticks, then collapsed again by the double quotes,
12198 # leaving us with one backslash in the sed expression (right
12199 # before the dot that mustn't act as a wildcard).
12200 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12201 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12202 # The user is allowed to set LINGUAS to a list of languages to
12203 # install catalogs for. If it's empty that means "all of them."
12204 if test "x$LINGUAS" = x
; then
12205 CATALOGS
="$CATALOGS $cat"
12206 XLINGUAS
="$XLINGUAS $lang"
12208 case "$LINGUAS" in *$lang*)
12209 CATALOGS
="$CATALOGS $cat"
12210 XLINGUAS
="$XLINGUAS $lang"
12215 LINGUAS
="$XLINGUAS"
12216 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12217 echo "${ECHO_T}$LINGUAS" >&6
12220 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12221 # -liconv on the link line twice.
12222 case "$LIBINTL" in *$LIBICONV*)
12226 # Windows32 Registry support for specifying GCC installation paths.
12227 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12228 if test "${enable_win32_registry+set}" = set; then
12229 enableval
="$enable_win32_registry"
12233 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12234 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12235 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12236 if test "x$enable_win32_registry" != xno
; then
12238 cat >>confdefs.h
<<\_ACEOF
12239 #define ENABLE_WIN32_REGISTRY 1
12242 echo "$as_me:$LINENO: result: yes" >&5
12243 echo "${ECHO_T}yes" >&6
12244 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12245 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12246 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 ac_func_search_save_LIBS
=$LIBS
12250 ac_cv_search_RegOpenKeyExA
=no
12251 cat >conftest.
$ac_ext <<_ACEOF
12254 cat confdefs.h
>>conftest.
$ac_ext
12255 cat >>conftest.
$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 /* Override any gcc2 internal prototype to avoid an error. */
12262 /* We use char because int might match the return type of a gcc2
12263 builtin and then its argument prototype would still apply. */
12264 char RegOpenKeyExA ();
12273 rm -f conftest.
$ac_objext conftest
$ac_exeext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275 (eval $ac_link) 2>conftest.er1
12277 grep -v '^ *+' conftest.er1
>conftest.err
12279 cat conftest.err
>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } &&
12282 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try
='test -s conftest$ac_exeext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_search_RegOpenKeyExA
="none required"
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.
$ac_ext >&5
12300 rm -f conftest.err conftest.
$ac_objext \
12301 conftest
$ac_exeext conftest.
$ac_ext
12302 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12303 for ac_lib
in advapi32
; do
12304 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12305 cat >conftest.
$ac_ext <<_ACEOF
12308 cat confdefs.h
>>conftest.
$ac_ext
12309 cat >>conftest.
$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12312 /* Override any gcc2 internal prototype to avoid an error. */
12316 /* We use char because int might match the return type of a gcc2
12317 builtin and then its argument prototype would still apply. */
12318 char RegOpenKeyExA ();
12327 rm -f conftest.
$ac_objext conftest
$ac_exeext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12329 (eval $ac_link) 2>conftest.er1
12331 grep -v '^ *+' conftest.er1
>conftest.err
12333 cat conftest.err
>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try
='test -s conftest$ac_exeext'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.
$ac_ext >&5
12355 rm -f conftest.err conftest.
$ac_objext \
12356 conftest
$ac_exeext conftest.
$ac_ext
12359 LIBS
=$ac_func_search_save_LIBS
12361 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12362 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12363 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12364 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12369 echo "$as_me:$LINENO: result: no" >&5
12370 echo "${ECHO_T}no" >&6
12373 # Check if user specified a different registry key.
12374 case "x${enable_win32_registry}" in
12377 gcc_cv_win32_registry_key
="$VERSION"
12380 # no registry lookup.
12381 gcc_cv_win32_registry_key
=''
12384 # user-specified key.
12385 gcc_cv_win32_registry_key
="$enable_win32_registry"
12389 if test "x$enable_win32_registry" != xno
; then
12390 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12391 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12393 cat >>confdefs.h
<<_ACEOF
12394 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12397 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12398 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12403 # Get an absolute path to the GCC top-level source directory
12404 holddir
=`${PWDCMD-pwd}`
12406 topdir
=`${PWDCMD-pwd}`
12409 # Conditionalize the makefile for this host machine.
12411 for f
in ${host_xmake_file}
12413 if test -f ${srcdir}/config
/$f
12415 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12419 # Conditionalize the makefile for this target machine.
12421 for f
in ${tmake_file}
12423 if test -f ${srcdir}/config
/$f
12425 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12428 tmake_file
="${tmake_file_}"
12430 # If the host doesn't support symlinks, modify CC in
12431 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12432 # Otherwise, we can use "CC=$(CC)".
12436 cc_set_by_configure
="\$(CC)"
12437 quoted_cc_set_by_configure
="\$(CC)"
12438 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12439 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12442 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12443 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12444 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12445 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12449 # This is a terrible hack which will go away some day.
12450 host_cc_for_libada
=${CC}
12453 out_object_file
=`basename $out_file .c`.o
12455 tm_file_list
="options.h"
12456 tm_include_list
="options.h"
12457 for f
in $tm_file; do
12460 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12461 tm_include_list
="${tm_include_list} $f"
12464 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12465 tm_include_list
="${tm_include_list} config/$f"
12472 for f
in $tm_p_file; do
12475 tm_p_file_list
="${tm_p_file_list} $f"
12476 tm_p_include_list
="${tm_p_include_list} $f"
12479 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12480 tm_p_include_list
="${tm_p_include_list} config/$f"
12486 for f
in $xm_file; do
12489 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12490 xm_include_list
="${xm_include_list} $f"
12493 xm_file_list
="${xm_file_list} $f"
12494 xm_include_list
="${xm_include_list} $f"
12497 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12498 xm_include_list
="${xm_include_list} config/$f"
12504 host_xm_include_list
=
12505 for f
in $host_xm_file; do
12508 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12509 host_xm_include_list
="${host_xm_include_list} $f"
12512 host_xm_file_list
="${host_xm_file_list} $f"
12513 host_xm_include_list
="${host_xm_include_list} $f"
12516 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12517 host_xm_include_list
="${host_xm_include_list} config/$f"
12522 build_xm_file_list
=
12523 for f
in $build_xm_file; do
12526 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12527 build_xm_include_list
="${build_xm_include_list} $f"
12529 auto-build.h | auto-host.h
)
12530 build_xm_file_list
="${build_xm_file_list} $f"
12531 build_xm_include_list
="${build_xm_include_list} $f"
12534 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12535 build_xm_include_list
="${build_xm_include_list} config/$f"
12540 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12541 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12544 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12545 if test x
$host != x
$target
12547 CROSS
="-DCROSS_COMPILE"
12549 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12550 case "$host","$target" in
12551 # Darwin crosses can use the host system's libraries and headers,
12552 # because of the fat library support. Of course, it must be the
12553 # same version of Darwin on both sides. Allow the user to
12554 # just say --target=foo-darwin without a version number to mean
12555 # "the version on this system".
12556 *-*-darwin*,*-*-darwin*)
12557 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12558 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12559 if test $hostos = $targetos -o $targetos = darwin
; then
12561 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12566 i?
86-*-*,x86_64-
*-* \
12567 | powerpc
*-*-*,powerpc64
*-*-*)
12568 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12570 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12571 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12572 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12575 # If this is a cross-compiler that does not
12576 # have its own set of headers then define
12579 # If this is using newlib, without having the headers available now,
12580 # then define inhibit_libc in LIBGCC2_CFLAGS.
12581 # This prevents libgcc2 from containing any code which requires libc
12584 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12585 test x
$with_newlib = xyes
; } &&
12586 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12587 inhibit_libc
=-Dinhibit_libc
12591 # When building gcc with a cross-compiler, we need to adjust things so
12592 # that the generator programs are still built with the native compiler.
12593 # Also, we cannot run fixincludes or fix-header.
12595 # These are the normal (build=host) settings:
12596 CC_FOR_BUILD
='$(CC)'
12597 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12598 STMP_FIXINC
=stmp-fixinc
12600 # Possibly disable fixproto, on a per-target basis.
12601 case ${use_fixproto} in
12606 STMP_FIXPROTO
=stmp-fixproto
12611 # And these apply if build != host, or we are generating coverage data
12612 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12614 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12616 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12617 if "x$STMP_FIXPROTO" != x
; then
12618 STMP_FIXPROTO
=stmp-install-fixproto
12623 # Expand extra_headers to include complete path.
12624 # This substitutes for lots of t-* files.
12625 extra_headers_list
=
12626 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12627 for file in ${extra_headers} ; do
12628 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12631 # Define collect2 in Makefile.
12632 case $host_can_use_collect2 in
12634 *) collect2
='collect2$(exeext)' ;;
12638 # Add a definition of USE_COLLECT2 if system wants one.
12639 case $use_collect2 in
12640 no
) use_collect2
= ;;
12643 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12644 xm_defines
="${xm_defines} USE_COLLECT2"
12645 case $host_can_use_collect2 in
12647 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12648 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12649 { (exit 1); exit 1; }; }
12655 # ---------------------------
12656 # Assembler & linker features
12657 # ---------------------------
12659 # Identify the assembler which will work hand-in-glove with the newly
12660 # built GCC, so that we can examine its features. This is the assembler
12661 # which will be driven by the driver program.
12663 # If build != host, and we aren't building gas in-tree, we identify a
12664 # build->target assembler and hope that it will have the same features
12665 # as the host->target assembler we'll be using.
12666 echo "$as_me:$LINENO: checking what assembler to use" >&5
12667 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12670 gcc_cv_gas_major_version
=
12671 gcc_cv_gas_minor_version
=
12672 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12673 if test -x "$DEFAULT_ASSEMBLER"; then
12674 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12675 elif test -x as
$build_exeext; then
12676 # Build using assembler in the current directory.
12677 gcc_cv_as
=.
/as
$build_exeext
12678 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12679 && test -f ..
/gas
/Makefile \
12680 && test x
$build = x
$host; then
12681 # Single tree build which includes gas. We want to prefer it
12682 # over whatever linker top-level may have detected, since
12683 # we'll use what we're building after installation anyway.
12685 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12686 for f
in $gcc_cv_as_bfd_srcdir/configure \
12687 $gcc_cv_as_gas_srcdir/configure \
12688 $gcc_cv_as_gas_srcdir/configure.
in \
12689 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12690 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12691 if test x
$gcc_cv_gas_version != x
; then
12695 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12696 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12697 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12698 case $gcc_cv_gas_patch_version in
12699 "") gcc_cv_gas_patch_version
="0" ;;
12701 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12702 + $gcc_cv_gas_minor_version \) \* 1000 \
12703 + $gcc_cv_gas_patch_version`
12705 rm -f as
$build_exeext
12706 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12707 in_tree_gas_is_elf
=no
12708 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12709 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12710 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12712 in_tree_gas_is_elf
=yes
12714 elif test -x "$AS_FOR_TARGET"; then
12715 gcc_cv_as
="$AS_FOR_TARGET"
12716 elif test -x "$AS" && test x
$host = x
$target; then
12720 if test "x$gcc_cv_as" = x
; then
12721 # Search the same directories that the installed compiler will
12722 # search. Else we may find the wrong assembler and lose. If we
12723 # do not find a suitable assembler binary, then try the user's
12726 # Also note we have to check MD_EXEC_PREFIX before checking the
12727 # user's path. Unfortunately, there is no good way to get at the
12728 # value of MD_EXEC_PREFIX here. So we do a brute force search
12729 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12730 # to be fixed as part of the make/configure rewrite too.
12732 if test "x$exec_prefix" = xNONE
; then
12733 if test "x$prefix" = xNONE
; then
12734 test_prefix
=/usr
/local
12736 test_prefix
=$prefix
12739 test_prefix
=$exec_prefix
12742 # If the loop below does not find an assembler, then use whatever
12743 # one we can find in the users's path. We are looking for a
12744 # ${build} -> ${target} assembler.
12745 if test "x$program_prefix" != xNONE
; then
12746 gcc_cv_as
=${program_prefix}as
$build_exeext
12747 elif test x
$build != x
$host && test x
$build != x
$target; then
12748 gcc_cv_as
=${target_noncanonical}-as$build_exeext
12750 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12753 if test x
$host = x
$build; then
12754 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12755 $test_prefix/libexec/gcc/$target_noncanonical \
12756 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12757 /usr/lib/gcc/$target_noncanonical \
12758 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12759 $test_prefix/$target_noncanonical/bin"
12764 if test x
$build = x
$target; then
12765 test_dirs
="$test_dirs \
12770 /bsd43/usr/lib/cmplrs/cc \
12771 /usr/cross64/usr/bin \
12772 /usr/lib/cmplrs/cc \
12773 /sysv/usr/lib/cmplrs/cc \
12774 /svr4/usr/lib/cmplrs/cc \
12778 for dir
in $test_dirs; do
12779 if test -x $dir/as
$build_exeext; then
12780 gcc_cv_as
=$dir/as
$build_exeext
12785 case $in_tree_gas in
12787 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12788 echo "${ECHO_T}\"newly built gas\"" >&6
12791 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12792 echo "${ECHO_T}$gcc_cv_as" >&6
12796 # Identify the linker which will work hand-in-glove with the newly
12797 # built GCC, so that we can examine its features. This is the linker
12798 # which will be driven by the driver program.
12800 # If build != host, and we aren't building gas in-tree, we identify a
12801 # build->target linker and hope that it will have the same features
12802 # as the host->target linker we'll be using.
12803 echo "$as_me:$LINENO: checking what linker to use" >&5
12804 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12807 gcc_cv_gld_major_version
=
12808 gcc_cv_gld_minor_version
=
12809 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12810 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12811 if test -x "$DEFAULT_LINKER"; then
12812 gcc_cv_ld
="$DEFAULT_LINKER"
12813 elif test -x collect-ld
$build_exeext; then
12814 # Build using linker in the current directory.
12815 gcc_cv_ld
=.
/collect-ld
$build_exeext
12816 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12817 && test -f ..
/ld
/Makefile \
12818 && test x
$build = x
$host; then
12819 # Single tree build which includes ld. We want to prefer it
12820 # over whatever linker top-level may have detected, since
12821 # we'll use what we're building after installation anyway.
12823 in_tree_ld_is_elf
=no
12824 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12825 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12826 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12827 in_tree_ld_is_elf
=yes
12829 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
12831 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12832 if test x
$gcc_cv_gld_version != x
; then
12836 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12837 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12838 rm -f collect-ld
$build_exeext
12839 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12840 elif test -x "$LD_FOR_TARGET"; then
12841 gcc_cv_ld
="$LD_FOR_TARGET"
12842 elif test -x "$LD" && test x
$host = x
$target; then
12846 if test "x$gcc_cv_ld" = x
; then
12847 # Search the same directories that the installed compiler will
12848 # search. Else we may find the wrong linker and lose. If we
12849 # do not find a suitable linker binary, then try the user's
12852 # Also note we have to check MD_EXEC_PREFIX before checking the
12853 # user's path. Unfortunately, there is no good way to get at the
12854 # value of MD_EXEC_PREFIX here. So we do a brute force search
12855 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12856 # to be fixed as part of the make/configure rewrite too.
12858 if test "x$exec_prefix" = xNONE
; then
12859 if test "x$prefix" = xNONE
; then
12860 test_prefix
=/usr
/local
12862 test_prefix
=$prefix
12865 test_prefix
=$exec_prefix
12868 # If the loop below does not find a linker, then use whatever
12869 # one we can find in the users's path. We are looking for a
12870 # ${build} -> ${target} linker.
12871 if test "x$program_prefix" != xNONE
; then
12872 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12873 elif test x
$build != x
$host && test x
$build != x
$target; then
12874 gcc_cv_ld
=${target_noncanonical}-ld$build_exeext
12876 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
12879 if test x
$host = x
$build; then
12880 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12881 $test_prefix/libexec/gcc/$target_noncanonical \
12882 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12883 /usr/lib/gcc/$target_noncanonical \
12884 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12885 $test_prefix/$target_noncanonical/bin"
12890 if test x
$build = x
$target; then
12891 test_dirs
="$test_dirs \
12896 /bsd43/usr/lib/cmplrs/cc \
12897 /usr/cross64/usr/bin \
12898 /usr/lib/cmplrs/cc \
12899 /sysv/usr/lib/cmplrs/cc \
12900 /svr4/usr/lib/cmplrs/cc \
12904 for dir
in $test_dirs; do
12905 if test -x $dir/ld
$build_exeext; then
12906 gcc_cv_ld
=$dir/ld
$build_exeext
12911 case $in_tree_ld in
12913 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12914 echo "${ECHO_T}\"newly built ld\"" >&6
12917 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12918 echo "${ECHO_T}$gcc_cv_ld" >&6
12922 # Figure out what nm we will be using.
12923 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12924 echo "$as_me:$LINENO: checking what nm to use" >&5
12925 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12927 if test -x nm
$build_exeext; then
12928 gcc_cv_nm
=.
/nm
$build_exeext
12929 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12930 && test -f ..
/binutils
/Makefile
; then
12931 # Single tree build which includes binutils.
12933 gcc_cv_nm
=.
/nm
$build_exeext
12934 rm -f nm
$build_exeext
12935 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
12936 elif test "x$program_prefix" != xNONE
; then
12937 gcc_cv_nm
=${program_prefix}nm
$build_exeext
12938 elif test x
$build != x
$host && test x
$build != x
$target; then
12939 gcc_cv_nm
=${target_noncanonical}-nm$build_exeext
12941 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
12943 case $in_tree_nm in
12944 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12945 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12946 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12947 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12950 # Figure out what objdump we will be using.
12951 echo "$as_me:$LINENO: checking what objdump to use" >&5
12952 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12954 if test -x objdump
$build_exeext; then
12955 gcc_cv_objdump
=.
/objdump
$build_exeext
12956 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12957 && test -f ..
/binutils
/Makefile
; then
12958 # Single tree build which includes binutils.
12959 in_tree_objdump
=yes
12960 gcc_cv_objdump
=.
/objdump
$build_exeext
12961 rm -f objdump
$build_exeext
12962 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
12963 elif test "x$program_prefix" != xNONE
; then
12964 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
12965 elif test x
$build != x
$host && test x
$build != x
$target; then
12966 gcc_cv_objdump
=${target_noncanonical}-objdump$build_exeext
12968 gcc_cv_objdump
=`echo objdump | \
12969 sed "${program_transform_name}"`$build_exeext
12971 case $in_tree_objdump in
12972 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12973 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12974 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12975 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12978 # Figure out what assembler alignment features are present.
12979 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12980 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12981 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 gcc_cv_as_balign_and_p2align
=no
12985 if test $in_tree_gas = yes; then
12986 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12987 then gcc_cv_as_balign_and_p2align
=yes
12989 elif test x
$gcc_cv_as != x
; then
12991 .p2align 2' > conftest.s
12992 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }
12999 gcc_cv_as_balign_and_p2align
=yes
13001 echo "configure: failed program was" >&5
13004 rm -f conftest.o conftest.s
13007 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13008 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13009 if test $gcc_cv_as_balign_and_p2align = yes; then
13011 cat >>confdefs.h
<<\_ACEOF
13012 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13017 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13018 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13019 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 gcc_cv_as_max_skip_p2align
=no
13023 if test $in_tree_gas = yes; then
13024 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13025 then gcc_cv_as_max_skip_p2align
=yes
13027 elif test x
$gcc_cv_as != x
; then
13028 echo '.p2align 4,,7' > conftest.s
13029 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }
13036 gcc_cv_as_max_skip_p2align
=yes
13038 echo "configure: failed program was" >&5
13041 rm -f conftest.o conftest.s
13044 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13045 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13046 if test $gcc_cv_as_max_skip_p2align = yes; then
13048 cat >>confdefs.h
<<\_ACEOF
13049 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13054 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13055 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13056 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 gcc_cv_as_subsection_m1
=no
13060 if test $in_tree_gas = yes; then
13061 if test $in_tree_gas_is_elf = yes \
13062 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13063 then gcc_cv_as_subsection_m1
=yes
13065 elif test x
$gcc_cv_as != x
; then
13066 echo 'conftest_label1: .word 0
13068 conftest_label2: .word 0
13069 .previous' > conftest.s
13070 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }
13077 if test x
$gcc_cv_nm != x
; then
13078 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13079 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13080 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13082 else gcc_cv_as_subsection_m1
=yes
13084 rm -f conftest.nm1 conftest.nm2
13087 echo "configure: failed program was" >&5
13090 rm -f conftest.o conftest.s
13093 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13094 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13095 if test $gcc_cv_as_subsection_m1 = yes; then
13097 cat >>confdefs.h
<<\_ACEOF
13098 #define HAVE_GAS_SUBSECTION_ORDERING 1
13103 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13104 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13105 if test "${gcc_cv_as_weak+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 if test $in_tree_gas = yes; then
13110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13111 then gcc_cv_as_weak
=yes
13113 elif test x
$gcc_cv_as != x
; then
13114 echo ' .weak foobar' > conftest.s
13115 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }
13124 echo "configure: failed program was" >&5
13127 rm -f conftest.o conftest.s
13130 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13131 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13132 if test $gcc_cv_as_weak = yes; then
13134 cat >>confdefs.h
<<\_ACEOF
13135 #define HAVE_GAS_WEAK 1
13140 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13141 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13142 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 gcc_cv_as_nsubspa_comdat
=no
13146 if test $in_tree_gas = yes; then
13147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13148 then gcc_cv_as_nsubspa_comdat
=yes
13150 elif test x
$gcc_cv_as != x
; then
13151 echo ' .SPACE $TEXT$
13152 .NSUBSPA $CODE$,COMDAT' > conftest.s
13153 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }
13160 gcc_cv_as_nsubspa_comdat
=yes
13162 echo "configure: failed program was" >&5
13165 rm -f conftest.o conftest.s
13168 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13169 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13170 if test $gcc_cv_as_nsubspa_comdat = yes; then
13172 cat >>confdefs.h
<<\_ACEOF
13173 #define HAVE_GAS_NSUBSPA_COMDAT 1
13178 # .hidden needs to be supported in both the assembler and the linker,
13179 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13180 # This is irritatingly difficult to feature test for; we have to check the
13181 # date string after the version number. If we've got an in-tree
13182 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13184 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13185 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13186 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13187 if test "${gcc_cv_as_hidden+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 gcc_cv_as_hidden
=no
13191 if test $in_tree_gas = yes; then
13192 if test $in_tree_gas_is_elf = yes \
13193 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13194 then gcc_cv_as_hidden
=yes
13196 elif test x
$gcc_cv_as != x
; then
13197 echo ' .hidden foobar
13198 foobar:' > conftest.s
13199 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }
13206 gcc_cv_as_hidden
=yes
13208 echo "configure: failed program was" >&5
13211 rm -f conftest.o conftest.s
13214 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13215 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13218 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13219 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13220 if test "${gcc_cv_ld_hidden+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 if test $in_tree_ld = yes ; then
13224 gcc_cv_ld_hidden
=no
13225 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 \
13226 && test $in_tree_ld_is_elf = yes; then
13227 gcc_cv_ld_hidden
=yes
13230 gcc_cv_ld_hidden
=yes
13231 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13232 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13233 ld_vers
=`echo $ld_ver | sed -n \
13234 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13235 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13236 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13237 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13238 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13239 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13240 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'`
13241 if test 0"$ld_date" -lt 20020404; then
13242 if test -n "$ld_date"; then
13243 # If there was date string, but was earlier than 2002-04-04, fail
13244 gcc_cv_ld_hidden
=no
13245 elif test -z "$ld_vers"; then
13246 # If there was no date string nor ld version number, something is wrong
13247 gcc_cv_ld_hidden
=no
13249 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13250 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13251 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13252 test -z "$ld_vers_patch" && ld_vers_patch
=0
13253 if test "$ld_vers_major" -lt 2; then
13254 gcc_cv_ld_hidden
=no
13255 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13256 gcc_cv_ld_hidden
="no"
13257 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13258 gcc_cv_ld_hidden
=no
13263 case "${target}" in
13264 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13265 gcc_cv_ld_hidden
=yes
13268 gcc_cv_ld_hidden
=no
13274 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13275 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13276 libgcc_visibility
=no
13278 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13279 libgcc_visibility
=yes
13281 cat >>confdefs.h
<<\_ACEOF
13282 #define HAVE_GAS_HIDDEN 1
13287 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13288 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13289 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13290 if test "${gcc_cv_as_leb128+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 gcc_cv_as_leb128
=no
13294 if test $in_tree_gas = yes; then
13295 if test $in_tree_gas_is_elf = yes \
13296 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13297 then gcc_cv_as_leb128
=yes
13299 elif test x
$gcc_cv_as != x
; then
13306 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }
13313 # GAS versions before 2.11 do not support uleb128,
13314 # despite appearing to.
13315 # ??? There exists an elf-specific test that will crash
13316 # the assembler. Perhaps it's better to figure out whether
13317 # arbitrary sections are supported and try the test.
13318 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13319 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13320 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13321 as_major
=`echo $as_ver | sed 's/\..*//'`
13322 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13323 if test $as_major -eq 2 && test $as_minor -lt 11
13325 else gcc_cv_as_leb128
=yes
13329 echo "configure: failed program was" >&5
13332 rm -f conftest.o conftest.s
13335 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13336 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13337 if test $gcc_cv_as_leb128 = yes; then
13339 cat >>confdefs.h
<<\_ACEOF
13340 #define HAVE_AS_LEB128 1
13345 # GAS versions up to and including 2.11.0 may mis-optimize
13347 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13348 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13349 if test "${gcc_cv_as_eh_frame+set}" = set; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13352 gcc_cv_as_eh_frame
=no
13353 if test $in_tree_gas = yes; then
13354 if test $in_tree_gas_is_elf = yes \
13355 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13356 then gcc_cv_as_eh_frame
=yes
13358 elif test x
$gcc_cv_as != x
; then
13365 .section .eh_frame,"aw",@progbits
13367 .4byte .LECIE1-.LSCIE1
13381 .4byte .LEFDE1-.LASFDE1
13383 .4byte .LASFDE1-__FRAME_BEGIN__
13390 .LEFDE1:' > conftest.s
13391 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }
13398 cat > conftest.lit
<<EOF
13399 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13400 0010 01000000 12000000 18000000 00000000 ................
13401 0020 08000000 04080000 0044 .........D
13403 cat > conftest.big
<<EOF
13404 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13405 0010 00000001 00000012 00000018 00000000 ................
13406 0020 00000008 04000000 0844 .........D
13408 # If the assembler didn't choke, and we can objdump,
13409 # and we got the correct data, then succeed.
13410 if test x
$gcc_cv_objdump != x \
13411 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13412 |
tail -3 > conftest.got \
13413 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13414 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13416 gcc_cv_as_eh_frame
=yes
13417 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 gcc_cv_as_eh_frame
=buggy
13425 # Uh oh, what do we do now?
13426 gcc_cv_as_eh_frame
=no
13429 echo "configure: failed program was" >&5
13432 rm -f conftest.o conftest.s
13435 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13436 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13439 if test $gcc_cv_as_eh_frame = buggy
; then
13441 cat >>confdefs.h
<<\_ACEOF
13442 #define USE_AS_TRADITIONAL_FORMAT 1
13447 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13448 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13449 if test "${gcc_cv_as_shf_merge+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 gcc_cv_as_shf_merge
=no
13453 if test $in_tree_gas = yes; then
13454 if test $in_tree_gas_is_elf = yes \
13455 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13456 then gcc_cv_as_shf_merge
=yes
13458 elif test x
$gcc_cv_as != x
; then
13459 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13460 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }
13467 gcc_cv_as_shf_merge
=yes
13469 echo "configure: failed program was" >&5
13472 rm -f conftest.o conftest.s
13475 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13476 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13478 if test $gcc_cv_as_shf_merge = no
; then
13479 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13480 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13481 if test "${gcc_cv_as_shf_merge+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 gcc_cv_as_shf_merge
=no
13485 if test $in_tree_gas = yes; then
13486 if test $in_tree_gas_is_elf = yes \
13487 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13488 then gcc_cv_as_shf_merge
=yes
13490 elif test x
$gcc_cv_as != x
; then
13491 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13492 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
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); }; }
13499 gcc_cv_as_shf_merge
=yes
13501 echo "configure: failed program was" >&5
13504 rm -f conftest.o conftest.s
13507 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13508 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13512 cat >>confdefs.h
<<_ACEOF
13513 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13517 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13518 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13519 if test "${gcc_cv_as_comdat_group+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 gcc_cv_as_comdat_group
=no
13523 if test $in_tree_gas = yes; then
13524 if test $in_tree_gas_is_elf = yes \
13525 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13526 then gcc_cv_as_comdat_group
=yes
13528 elif test x
$gcc_cv_as != x
; then
13529 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13530 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }
13537 gcc_cv_as_comdat_group
=yes
13539 echo "configure: failed program was" >&5
13542 rm -f conftest.o conftest.s
13545 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13546 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13548 if test $gcc_cv_as_comdat_group = yes; then
13549 gcc_cv_as_comdat_group_percent
=no
13551 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13552 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13553 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13554 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 gcc_cv_as_comdat_group_percent
=no
13557 if test $in_tree_gas = yes; then
13558 if test $in_tree_gas_is_elf = yes \
13559 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13560 then gcc_cv_as_comdat_group_percent
=yes
13562 elif test x
$gcc_cv_as != x
; then
13563 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13564 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }
13571 gcc_cv_as_comdat_group_percent
=yes
13573 echo "configure: failed program was" >&5
13576 rm -f conftest.o conftest.s
13579 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13580 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13584 cat >>confdefs.h
<<_ACEOF
13585 #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`
13589 # Thread-local storage - the check is heavily parametrized.
13597 .section ".tdata","awT",@progbits
13600 ldq $27,__tls_get_addr($29) !literal!1
13601 lda $16,foo($29) !tlsgd!1
13602 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13603 ldq $27,__tls_get_addr($29) !literal!2
13604 lda $16,foo($29) !tlsldm!2
13605 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13606 ldq $1,foo($29) !gotdtprel
13607 ldah $2,foo($29) !dtprelhi
13608 lda $3,foo($2) !dtprello
13609 lda $4,foo($29) !dtprel
13610 ldq $1,foo($29) !gottprel
13611 ldah $2,foo($29) !tprelhi
13612 lda $3,foo($2) !tprello
13613 lda $4,foo($29) !tprel'
13616 tls_as_opt
=--fatal-warnings
13620 .section ".tdata","awT",@progbits
13623 call #gettlsoff(x)'
13629 .section ".tdata","awT",@progbits
13633 leal foo@TLSGD(,%ebx,1), %eax
13634 leal foo@TLSLDM(%ebx), %eax
13635 leal foo@DTPOFF(%eax), %edx
13636 movl foo@GOTTPOFF(%ebx), %eax
13637 subl foo@GOTTPOFF(%ebx), %eax
13638 addl foo@GOTNTPOFF(%ebx), %eax
13639 movl foo@INDNTPOFF, %eax
13640 movl $foo@TPOFF, %eax
13641 subl $foo@TPOFF, %eax
13642 leal foo@NTPOFF(%ecx), %eax'
13645 tls_as_opt
=--fatal-warnings
13649 .section ".tdata","awT",@progbits
13653 leaq foo@TLSGD(%rip), %rdi
13654 leaq foo@TLSLD(%rip), %rdi
13655 leaq foo@DTPOFF(%rax), %rdx
13656 movq foo@GOTTPOFF(%rip), %rax
13657 movq $foo@TPOFF, %rax'
13660 tls_as_opt
=--fatal-warnings
13664 .section ".tdata","awT",@progbits
13667 addl r16 = @ltoff(@dtpmod(foo#)), gp
13668 addl r17 = @ltoff(@dtprel(foo#)), gp
13669 addl r18 = @ltoff(@tprel(foo#)), gp
13670 addl r19 = @dtprel(foo#), gp
13671 adds r21 = @dtprel(foo#), r13
13672 movl r23 = @dtprel(foo#)
13673 addl r20 = @tprel(foo#), gp
13674 adds r22 = @tprel(foo#), r13
13675 movl r24 = @tprel(foo#)'
13678 tls_as_opt
=--fatal-warnings
13682 .section .tdata,"awT",@progbits
13686 addiu $4, $28, %tlsgd(x)
13687 addiu $4, $28, %tlsldm(x)
13688 lui $4, %dtprel_hi(x)
13689 addiu $4, $4, %dtprel_lo(x)
13690 lw $4, %gottprel(x)($28)
13691 lui $4, %tprel_hi(x)
13692 addiu $4, $4, %tprel_lo(x)'
13695 tls_as_opt
='-32 --fatal-warnings'
13699 .section ".tdata","awT",@progbits
13707 addi 3,31,ld0@got@tlsgd
13709 addi 3,31,x1@got@tlsld
13712 addis 9,3,x2@dtprel@ha
13713 addi 9,9,x2@dtprel@l
13714 lwz 9,x3@got@tprel(31)
13717 addis 9,2,x2@tprel@ha
13718 addi 9,9,x2@tprel@l'
13721 tls_as_opt
="-a32 --fatal-warnings"
13725 .section ".tdata","awT",@progbits
13733 addi 3,2,ld0@got@tlsgd
13739 addi 3,2,x1@got@tlsld
13745 addis 9,3,x2@dtprel@ha
13746 addi 9,9,x2@dtprel@l
13749 ld 9,x3@got@dtprel(2)
13755 tls_as_opt
="-a64 --fatal-warnings"
13759 .section ".tdata","awT",@progbits
13766 .long foo@GOTNTPOFF
13767 .long foo@INDNTPOFF
13768 l %r1,foo@GOTNTPOFF(%r12)
13769 l %r1,0(%r1):tls_load:foo
13770 bas %r14,0(%r1,%r13):tls_gdcall:foo
13771 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13774 tls_as_opt
="-m31 --fatal-warnings"
13778 .section ".tdata","awT",@progbits
13785 .quad foo@GOTNTPOFF
13786 lg %r1,foo@GOTNTPOFF(%r12)
13787 larl %r1,foo@INDNTPOFF
13788 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13789 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13792 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13794 sh-
*-* | sh
[34]-*-*)
13796 .section ".tdata","awT",@progbits
13806 tls_as_opt
=--fatal-warnings
13810 sparc
*-sun-solaris2.
*)
13817 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13819 .section ".tdata",#alloc,#write,#tls
13822 sethi %tgd_hi22(foo), %o0
13823 add %o0, %tgd_lo10(foo), %o1
13824 add %l7, %o1, %o0, %tgd_add(foo)
13825 call __tls_get_addr, %tgd_call(foo)
13826 sethi %tldm_hi22(foo), %l1
13827 add %l1, %tldm_lo10(foo), %l2
13828 add %l7, %l2, %o0, %tldm_add(foo)
13829 call __tls_get_addr, %tldm_call(foo)
13830 sethi %tldo_hix22(foo), %l3
13831 xor %l3, %tldo_lox10(foo), %l4
13832 add %o0, %l4, %l5, %tldo_add(foo)
13833 sethi %tie_hi22(foo), %o3
13834 add %o3, %tie_lo10(foo), %o3
13835 ld [%l7 + %o3], %o2, %tie_ld(foo)
13836 add %g7, %o2, %o4, %tie_add(foo)
13837 sethi %tle_hix22(foo), %l1
13838 xor %l1, %tle_lox10(foo), %o5
13839 ld [%g7 + %o5], %o1'
13844 .section ".tdata","awT",@progbits
13847 sethi %tgd_hi22(foo), %o0
13848 add %o0, %tgd_lo10(foo), %o1
13849 add %l7, %o1, %o0, %tgd_add(foo)
13850 call __tls_get_addr, %tgd_call(foo)
13851 sethi %tldm_hi22(foo), %l1
13852 add %l1, %tldm_lo10(foo), %l2
13853 add %l7, %l2, %o0, %tldm_add(foo)
13854 call __tls_get_addr, %tldm_call(foo)
13855 sethi %tldo_hix22(foo), %l3
13856 xor %l3, %tldo_lox10(foo), %l4
13857 add %o0, %l4, %l5, %tldo_add(foo)
13858 sethi %tie_hi22(foo), %o3
13859 add %o3, %tie_lo10(foo), %o3
13860 ld [%l7 + %o3], %o2, %tie_ld(foo)
13861 add %g7, %o2, %o4, %tie_add(foo)
13862 sethi %tle_hix22(foo), %l1
13863 xor %l1, %tle_lox10(foo), %o5
13864 ld [%g7 + %o5], %o1'
13867 tls_as_opt
="-32 --fatal-warnings"
13871 if test -z "$tls_first_major"; then
13872 : # If we don't have a check, assume no support.
13874 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13875 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13876 if test "${gcc_cv_as_tls+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 if test $in_tree_gas = yes; then
13881 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13882 then gcc_cv_as_tls
=yes
13884 elif test x
$gcc_cv_as != x
; then
13885 echo "$conftest_s" > conftest.s
13886 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }
13895 echo "configure: failed program was" >&5
13898 rm -f conftest.o conftest.s
13901 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13902 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13903 if test $gcc_cv_as_tls = yes; then
13905 cat >>confdefs.h
<<\_ACEOF
13906 #define HAVE_AS_TLS 1
13912 # Target-specific assembler checks.
13914 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13915 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13916 gcc_cv_ld_static_dynamic
=no
13917 if test $in_tree_ld = yes ; then
13918 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13919 gcc_cv_ld_static_dynamic
=yes
13921 elif test x
$gcc_cv_ld != x
; then
13922 # Check if linker supports -Bstatic/-Bdynamic option
13923 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
13924 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
13925 gcc_cv_ld_static_dynamic
=yes
13928 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
13930 cat >>confdefs.h
<<\_ACEOF
13931 #define HAVE_LD_STATIC_DYNAMIC 1
13935 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13936 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13938 if test x
"$demangler_in_ld" = xyes
; then
13939 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13940 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13941 gcc_cv_ld_demangle
=no
13942 if test $in_tree_ld = yes; then
13943 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 \
13944 gcc_cv_ld_demangle
=yes
13946 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
13947 # Check if the GNU linker supports --demangle option
13948 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
13949 gcc_cv_ld_demangle
=yes
13952 if test x
"$gcc_cv_ld_demangle" = xyes
; then
13954 cat >>confdefs.h
<<\_ACEOF
13955 #define HAVE_LD_DEMANGLE 1
13959 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13960 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13964 # All TARGET_ABI_OSF targets.
13965 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
13966 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13967 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13968 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 gcc_cv_as_alpha_explicit_relocs
=no
13972 if test $in_tree_gas = yes; then
13973 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13974 then gcc_cv_as_alpha_explicit_relocs
=yes
13976 elif test x
$gcc_cv_as != x
; then
13977 echo ' .set nomacro
13979 extbl $3, $2, $3 !lituse_bytoff!1
13980 ldq $2, a($29) !literal!1
13981 ldq $4, b($29) !literal!2
13982 ldq_u $3, 0($2) !lituse_base!1
13983 ldq $27, f($29) !literal!5
13984 jsr $26, ($27), f !lituse_jsr!5
13985 ldah $29, 0($26) !gpdisp!3
13986 lda $0, c($29) !gprel
13987 ldah $1, d($29) !gprelhigh
13988 lda $1, d($1) !gprellow
13989 lda $29, 0($29) !gpdisp!3' > conftest.s
13990 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }
13997 gcc_cv_as_alpha_explicit_relocs
=yes
13999 echo "configure: failed program was" >&5
14002 rm -f conftest.o conftest.s
14005 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14006 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14007 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14009 cat >>confdefs.h
<<\_ACEOF
14010 #define HAVE_AS_EXPLICIT_RELOCS 1
14017 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14018 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14019 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 gcc_cv_as_cris_no_mul_bug
=no
14023 if test $in_tree_gas = yes; then
14024 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14025 then gcc_cv_as_cris_no_mul_bug
=yes
14027 elif test x
$gcc_cv_as != x
; then
14028 echo '.text' > conftest.s
14029 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }
14036 gcc_cv_as_cris_no_mul_bug
=yes
14038 echo "configure: failed program was" >&5
14041 rm -f conftest.o conftest.s
14044 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14045 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14046 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14048 cat >>confdefs.h
<<\_ACEOF
14049 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14056 echo "$as_me:$LINENO: checking assembler for .register" >&5
14057 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14058 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 gcc_cv_as_sparc_register_op
=no
14062 if test x
$gcc_cv_as != x
; then
14063 echo '.register %g2, #scratch' > conftest.s
14064 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }
14071 gcc_cv_as_sparc_register_op
=yes
14073 echo "configure: failed program was" >&5
14076 rm -f conftest.o conftest.s
14079 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14080 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14081 if test $gcc_cv_as_sparc_register_op = yes; then
14083 cat >>confdefs.h
<<\_ACEOF
14084 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14089 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14090 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14091 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 gcc_cv_as_sparc_relax
=no
14095 if test x
$gcc_cv_as != x
; then
14096 echo '.text' > conftest.s
14097 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }
14104 gcc_cv_as_sparc_relax
=yes
14106 echo "configure: failed program was" >&5
14109 rm -f conftest.o conftest.s
14112 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14113 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14114 if test $gcc_cv_as_sparc_relax = yes; then
14116 cat >>confdefs.h
<<\_ACEOF
14117 #define HAVE_AS_RELAX_OPTION 1
14122 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14123 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14124 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 gcc_cv_as_sparc_ua_pcrel
=no
14128 if test x
$gcc_cv_as != x
; then
14135 .uaword %r_disp32(foo)' > conftest.s
14136 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }
14143 if test x
$gcc_cv_ld != x \
14144 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14145 gcc_cv_as_sparc_ua_pcrel
=yes
14149 echo "configure: failed program was" >&5
14152 rm -f conftest.o conftest.s
14155 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14156 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14157 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14159 cat >>confdefs.h
<<\_ACEOF
14160 #define HAVE_AS_SPARC_UA_PCREL 1
14164 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14165 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14166 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14170 if test x
$gcc_cv_as != x
; then
14174 .uaword %r_disp32(foo)
14175 .byte 0x32, 0x33, 0x34
14179 .skip 4' > conftest.s
14180 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }
14187 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14188 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14189 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14190 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14191 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14192 |
grep 'DISP32' > /dev
/null
2>&1; then
14195 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14200 echo "configure: failed program was" >&5
14203 rm -f conftest.o conftest.s
14206 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14207 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14208 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14210 cat >>confdefs.h
<<\_ACEOF
14211 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14216 fi # unaligned pcrel relocs
14218 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14219 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14220 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 gcc_cv_as_sparc_offsetable_lo10
=no
14224 if test x
$gcc_cv_as != x
; then
14226 or %g1, %lo(ab) + 12, %g1
14227 or %g1, %lo(ab + 12), %g1' > conftest.s
14228 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }
14235 if test x
$gcc_cv_objdump != x \
14236 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14237 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14238 gcc_cv_as_sparc_offsetable_lo10
=yes
14241 echo "configure: failed program was" >&5
14244 rm -f conftest.o conftest.s
14247 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14248 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14249 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14251 cat >>confdefs.h
<<\_ACEOF
14252 #define HAVE_AS_OFFSETABLE_LO10 1
14258 i
[34567]86-*-* | x86_64-
*-*)
14260 cygwin
* | pe | mingw32
*)
14261 # Used for DWARF 2 in PE
14262 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14263 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14264 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 gcc_cv_as_ix86_pe_secrel32
=no
14268 if test $in_tree_gas = yes; then
14269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14270 then gcc_cv_as_ix86_pe_secrel32
=yes
14272 elif test x
$gcc_cv_as != x
; then
14276 .secrel32 foo' > conftest.s
14277 if { ac_try
='$gcc_cv_as -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_ld != x \
14285 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14286 gcc_cv_as_ix86_pe_secrel32
=yes
14290 echo "configure: failed program was" >&5
14293 rm -f conftest.o conftest.s
14296 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14297 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14298 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14300 cat >>confdefs.h
<<\_ACEOF
14301 #define HAVE_GAS_PE_SECREL32_RELOC 1
14308 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14309 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14310 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 gcc_cv_as_ix86_filds_fists
=no
14314 if test $in_tree_gas = yes; then
14315 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14316 then gcc_cv_as_ix86_filds_fists
=yes
14318 elif test x
$gcc_cv_as != x
; then
14319 echo 'filds mem; fists mem' > conftest.s
14320 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }
14327 gcc_cv_as_ix86_filds_fists
=yes
14329 echo "configure: failed program was" >&5
14332 rm -f conftest.o conftest.s
14335 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14336 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14337 if test $gcc_cv_as_ix86_filds_fists = yes; then
14339 cat >>confdefs.h
<<\_ACEOF
14340 #define HAVE_GAS_FILDS_FISTS 1
14345 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14346 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14347 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 gcc_cv_as_ix86_cmov_sun_syntax
=no
14351 if test x
$gcc_cv_as != x
; then
14352 echo 'cmovl.l %edx, %eax' > conftest.s
14353 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }
14360 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14362 echo "configure: failed program was" >&5
14365 rm -f conftest.o conftest.s
14368 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14369 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14370 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14372 cat >>confdefs.h
<<\_ACEOF
14373 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14378 # This one is used unconditionally by i386.[ch]; it is to be defined
14379 # to 1 if the feature is present, 0 otherwise.
14380 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14381 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14382 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 gcc_cv_as_ix86_gotoff_in_data
=no
14386 if test $in_tree_gas = yes; then
14387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14388 then gcc_cv_as_ix86_gotoff_in_data
=yes
14390 elif test x
$gcc_cv_as != x
; then
14395 .long .L0@GOTOFF' > conftest.s
14396 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }
14403 gcc_cv_as_ix86_gotoff_in_data
=yes
14405 echo "configure: failed program was" >&5
14408 rm -f conftest.o conftest.s
14411 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14412 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14415 cat >>confdefs.h
<<_ACEOF
14416 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14422 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14423 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14424 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14428 if test $in_tree_gas = yes; then
14429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14430 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14432 elif test x
$gcc_cv_as != x
; then
14434 addl r15 = @ltoffx(x#), gp
14436 ld8.mov r16 = [r15], x#' > conftest.s
14437 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }
14444 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14446 echo "configure: failed program was" >&5
14449 rm -f conftest.o conftest.s
14452 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14453 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14454 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14456 cat >>confdefs.h
<<\_ACEOF
14457 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14466 *-*-aix*) conftest_s
=' .csect .text[PR]
14469 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14470 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14471 if test "${gcc_cv_as_machine_directive+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 gcc_cv_as_machine_directive
=no
14475 if test x
$gcc_cv_as != x
; then
14476 echo ' .machine ppc7400' > conftest.s
14477 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }
14484 gcc_cv_as_machine_directive
=yes
14486 echo "configure: failed program was" >&5
14489 rm -f conftest.o conftest.s
14492 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14493 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14495 if test x
$gcc_cv_as_machine_directive != xyes
; then
14496 echo "*** This target requires an assembler supporting \".machine\"" >&2
14497 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14498 test x
$build = x
$target && exit 1
14502 *) conftest_s
=' .machine power4
14507 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14508 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14509 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 gcc_cv_as_powerpc_mfcrf
=no
14513 if test $in_tree_gas = yes; then
14514 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14515 then gcc_cv_as_powerpc_mfcrf
=yes
14517 elif test x
$gcc_cv_as != x
; then
14518 echo "$conftest_s" > conftest.s
14519 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }
14526 gcc_cv_as_powerpc_mfcrf
=yes
14528 echo "configure: failed program was" >&5
14531 rm -f conftest.o conftest.s
14534 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14535 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14536 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14538 cat >>confdefs.h
<<\_ACEOF
14539 #define HAVE_AS_MFCRF 1
14546 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14547 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14548 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 gcc_cv_as_mips_explicit_relocs
=no
14552 if test $in_tree_gas = yes; then
14553 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14554 then gcc_cv_as_mips_explicit_relocs
=yes
14556 elif test x
$gcc_cv_as != x
; then
14557 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14558 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }
14565 gcc_cv_as_mips_explicit_relocs
=yes
14567 echo "configure: failed program was" >&5
14570 rm -f conftest.o conftest.s
14573 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14574 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14575 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14576 if test x
$target_cpu_default = x
14577 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14578 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14582 if test x
$gas_flag = xyes \
14583 ||
test x
"$host" != x
"$build" \
14584 ||
test ! -x "$gcc_cv_as" \
14585 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14588 echo "*** This configuration requires the GNU assembler" >&2
14593 # ??? Not all targets support dwarf2 debug_line, even within a version
14594 # of gas. Moreover, we need to emit a valid instruction to trigger any
14595 # info to the output file. So, as supported targets are added to gas 2.11,
14596 # add some instruction here to (also) show we expect this might work.
14597 # ??? Once 2.11 is released, probably need to add first known working
14598 # version to the per-target configury.
14600 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14601 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14602 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14605 ia64
*-*-* | s390
*-*-*)
14612 if test x
"$insn" != x
; then
14614 .file 1 \"conftest.s\"
14617 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14618 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14619 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 gcc_cv_as_dwarf2_debug_line
=no
14623 if test $in_tree_gas = yes; then
14624 if test $in_tree_gas_is_elf = yes \
14625 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14626 then gcc_cv_as_dwarf2_debug_line
=yes
14628 elif test x
$gcc_cv_as != x
; then
14629 echo "$conftest_s" > conftest.s
14630 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }
14637 if test x
$gcc_cv_objdump != x \
14638 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14639 |
grep debug_line
> /dev
/null
2>&1; then
14640 gcc_cv_as_dwarf2_debug_line
=yes
14643 echo "configure: failed program was" >&5
14646 rm -f conftest.o conftest.s
14649 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14650 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14653 # The .debug_line file table must be in the exact order that
14654 # we specified the files, since these indices are also used
14655 # by DW_AT_decl_file. Approximate this test by testing if
14656 # the assembler bitches if the same index is assigned twice.
14657 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14658 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14659 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 gcc_cv_as_dwarf2_file_buggy
=no
14663 if test x
$gcc_cv_as != x
; then
14664 echo ' .file 1 "foo.s"
14665 .file 1 "bar.s"' > conftest.s
14666 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }
14673 gcc_cv_as_dwarf2_file_buggy
=yes
14675 echo "configure: failed program was" >&5
14678 rm -f conftest.o conftest.s
14681 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14682 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14685 if test $gcc_cv_as_dwarf2_debug_line = yes \
14686 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14688 cat >>confdefs.h
<<\_ACEOF
14689 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14694 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14695 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14696 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 gcc_cv_as_gdwarf2_flag
=no
14700 if test $in_tree_gas = yes; then
14701 if test $in_tree_gas_is_elf = yes \
14702 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14703 then gcc_cv_as_gdwarf2_flag
=yes
14705 elif test x
$gcc_cv_as != x
; then
14706 echo "$insn" > conftest.s
14707 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }
14714 gcc_cv_as_gdwarf2_flag
=yes
14716 echo "configure: failed program was" >&5
14719 rm -f conftest.o conftest.s
14722 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14723 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14724 if test $gcc_cv_as_gdwarf2_flag = yes; then
14726 cat >>confdefs.h
<<\_ACEOF
14727 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14732 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14733 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14734 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 gcc_cv_as_gstabs_flag
=no
14738 if test $in_tree_gas = yes; then
14739 if test $in_tree_gas_is_elf = yes \
14740 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14741 then gcc_cv_as_gstabs_flag
=yes
14743 elif test x
$gcc_cv_as != x
; then
14744 echo "$insn" > conftest.s
14745 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }
14752 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14753 # and warns about it, but still exits successfully. So check for
14755 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }
14762 else gcc_cv_as_gstabs_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_gstabs_flag" >&5
14772 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14773 if test $gcc_cv_as_gstabs_flag = yes; then
14775 cat >>confdefs.h
<<\_ACEOF
14776 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14782 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14783 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14784 gcc_cv_ld_ro_rw_mix
=unknown
14785 if test $in_tree_ld = yes ; then
14786 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 \
14787 && test $in_tree_ld_is_elf = yes; then
14788 gcc_cv_ld_ro_rw_mix
=read-write
14790 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14791 echo '.section myfoosect, "a"' > conftest1.s
14792 echo '.section myfoosect, "aw"' > conftest2.s
14793 echo '.byte 1' >> conftest2.s
14794 echo '.section myfoosect, "a"' > conftest3.s
14795 echo '.byte 0' >> conftest3.s
14796 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14797 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14798 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14799 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14800 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14801 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14802 | sed -e '/myfoosect/!d' -e N`
14803 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14804 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14805 gcc_cv_ld_ro_rw_mix
=read-only
14807 gcc_cv_ld_ro_rw_mix
=read-write
14811 rm -f conftest.
* conftest
[123].
*
14813 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
14815 cat >>confdefs.h
<<\_ACEOF
14816 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14820 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14821 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14823 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14824 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14825 gcc_cv_ld_eh_frame_hdr
=no
14826 if test $in_tree_ld = yes ; then
14827 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
14828 && test $in_tree_ld_is_elf = yes; then
14829 gcc_cv_ld_eh_frame_hdr
=yes
14831 elif test x
$gcc_cv_ld != x
; then
14832 # Check if linker supports --eh-frame-hdr option
14833 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
14834 gcc_cv_ld_eh_frame_hdr
=yes
14837 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
14839 cat >>confdefs.h
<<\_ACEOF
14840 #define HAVE_LD_EH_FRAME_HDR 1
14844 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14845 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14847 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14848 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14850 if test $in_tree_ld = yes ; then
14851 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 \
14852 && test $in_tree_ld_is_elf = yes; then
14855 elif test x
$gcc_cv_ld != x
; then
14856 # Check if linker supports -pie option
14857 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
14861 if test x
"$gcc_cv_ld_pie" = xyes
; then
14863 cat >>confdefs.h
<<\_ACEOF
14864 #define HAVE_LD_PIE 1
14868 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14869 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14875 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14876 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14877 if test "${gcc_cv_ld_as_needed+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 gcc_cv_ld_as_needed
=no
14881 if test $in_tree_ld = yes ; then
14882 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 \
14883 && test $in_tree_ld_is_elf = yes; then
14884 gcc_cv_ld_as_needed
=yes
14886 elif test x
$gcc_cv_ld != x
; then
14887 # Check if linker supports --as-needed and --no-as-needed options
14888 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
14889 gcc_cv_ld_as_needed
=yes
14894 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14895 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14896 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
14898 cat >>confdefs.h
<<\_ACEOF
14899 #define HAVE_LD_AS_NEEDED 1
14905 powerpc64
*-*-linux*)
14906 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14907 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14908 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 gcc_cv_ld_no_dot_syms
=no
14912 if test $in_tree_ld = yes ; then
14913 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
14914 gcc_cv_ld_no_dot_syms
=yes
14916 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
14917 cat > conftest1.s
<<EOF
14921 cat > conftest2.s
<<EOF
14922 .section ".opd","aw"
14925 .type foo,@function
14927 .quad .LEfoo,.TOC.@tocbase,0
14933 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14934 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14935 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
14936 gcc_cv_ld_no_dot_syms
=yes
14938 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14942 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14943 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14944 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
14946 cat >>confdefs.h
<<\_ACEOF
14947 #define HAVE_LD_NO_DOT_SYMS 1
14954 if test x
$with_sysroot = x
&& test x
$host = x
$target \
14955 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14957 cat >>confdefs.h
<<_ACEOF
14958 #define PREFIX_INCLUDE_DIR "$prefix/include"
14963 # Find out what GC implementation we want, or may, use.
14965 # Check whether --with-gc or --without-gc was given.
14966 if test "${with_gc+set}" = set; then
14975 cat >>confdefs.h
<<\_ACEOF
14981 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14982 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14983 { (exit 1); exit 1; }; }
14990 echo "Using $GGC for garbage collection."
14992 # Use the system's zlib library.
14994 zlibinc
="-I\$(srcdir)/../zlib"
14996 # Check whether --with-system-zlib or --without-system-zlib was given.
14997 if test "${with_system_zlib+set}" = set; then
14998 withval
="$with_system_zlib"
15007 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15008 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15009 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15010 if test "${enable_maintainer_mode+set}" = set; then
15011 enableval
="$enable_maintainer_mode"
15012 maintainer_mode
=$enableval
15017 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15018 echo "${ECHO_T}$maintainer_mode" >&6
15020 if test "$maintainer_mode" = "yes"; then
15030 # Make empty files to contain the specs and options for each language.
15031 # Then add #include lines to for a compiler that has specs and/or options.
15036 for subdir
in .
$subdirs
15038 if test -f $srcdir/$subdir/lang.opt
; then
15039 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15041 if test -f $srcdir/$subdir/lang-specs.h
; then
15042 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15044 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15045 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15049 # These (without "all_") are set in each config-lang.in.
15050 # `language' must be a single word so is spelled singularly.
15052 all_boot_languages
=
15055 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15056 # List of language makefile fragments.
15057 all_lang_makefrags
=
15058 # List of language subdirectory makefiles. Deprecated.
15059 all_lang_makefiles
=
15060 # Files for gengtype
15061 all_gtfiles
="$target_gtfiles"
15062 # Files for gengtype with language
15063 all_gtfiles_files_langs
=
15064 all_gtfiles_files_files
=
15066 # Add the language fragments.
15067 # Languages are added via two mechanisms. Some information must be
15068 # recorded in makefile variables, these are defined in config-lang.in.
15069 # We accumulate them and plug them into the main Makefile.
15070 # The other mechanism is a set of hooks for each of the main targets
15071 # like `clean', `install', etc.
15073 language_hooks
="Make-hooks"
15083 .
${srcdir}/$s/config-lang.
in
15084 if test "x$language" = x
15086 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15089 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15090 if test -f ${srcdir}/$s/Makefile.
in
15091 then all_lang_makefiles
="$s/Makefile"
15093 all_languages
="$all_languages $language"
15094 if test "x$boot_language" = xyes
15096 all_boot_languages
="$all_boot_languages $language"
15098 all_compilers
="$all_compilers $compilers"
15099 all_stagestuff
="$all_stagestuff $stagestuff"
15100 all_outputs
="$all_outputs $outputs"
15101 all_gtfiles
="$all_gtfiles $gtfiles"
15104 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15105 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15109 # Pick up gtfiles for c
15112 .
${srcdir}/c-config-lang.
in
15113 all_gtfiles
="$all_gtfiles $gtfiles"
15116 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15117 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15121 for language
in $all_languages
15123 check_languages
="$check_languages check-$language"
15126 # We link each language in with a set of hooks, reached indirectly via
15131 target_list
="all.build all.cross start.encap rest.encap tags \
15132 install-normal install-common install-man \
15133 uninstall info man srcextra srcman srcinfo \
15134 mostlyclean clean distclean maintainer-clean \
15135 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15136 for t
in $target_list
15139 for lang
in $all_languages
15143 echo "lang.$t: $x" >> Make-hooks
15152 echo "dir ." > .gdbinit
15153 echo "dir ${srcdir}" >> .gdbinit
15154 if test x
$gdb_needs_out_file_path = xyes
15156 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15158 if test "x$subdirs" != x
; then
15161 echo "dir ${srcdir}/$s" >> .gdbinit
15164 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15166 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15167 # absolute path for gcc_tooldir based on inserting the number of up-directory
15168 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15169 # $(libsubdir)/@(unlibsubdir) based path.
15170 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15171 # make and thus we'd get different behavior depending on where we built the
15173 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15174 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15176 # An explanation of the sed strings:
15177 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15178 # -e 's|/$||' match a trailing forward slash and eliminates it
15179 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15180 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15182 # (*) Note this pattern overwrites the first character of the string
15183 # with a forward slash if one is not already present. This is not a
15184 # problem because the exact names of the sub-directories concerned is
15185 # unimportant, just the number of them matters.
15187 # The practical upshot of these patterns is like this:
15189 # prefix exec_prefix result
15190 # ------ ----------- ------
15191 # /foo /foo/bar ../
15192 # /foo/ /foo/bar ../
15193 # /foo /foo/bar/ ../
15194 # /foo/ /foo/bar/ ../
15195 # /foo /foo/bar/ugg ../../
15198 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15203 # Find a directory in which to install a shared libgcc.
15205 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15206 if test "${enable_version_specific_runtime_libs+set}" = set; then
15207 enableval
="$enable_version_specific_runtime_libs"
15212 # Check whether --with-slibdir or --without-slibdir was given.
15213 if test "${with_slibdir+set}" = set; then
15214 withval
="$with_slibdir"
15215 slibdir
="$with_slibdir"
15217 if test "${enable_version_specific_runtime_libs+set}" = set; then
15218 slibdir
='$(libsubdir)'
15219 elif test "$host" != "$target"; then
15220 slibdir
='$(build_tooldir)/lib'
15222 slibdir
='$(libdir)'
15227 objdir
=`${PWDCMD-pwd}`
15230 # Substitute configuration variables
15295 if test x
"$SET_GCC_LIB_PATH_CMD" != x
; then
15296 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15298 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15300 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15301 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15302 set_gcc_lib_path
="export $set_gcc_lib_path"
15310 if test x
${build} = x
${host} ; then
15311 if test x
${host} = x
${target} ; then
15312 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15314 echo "Links are now set up to build a cross-compiler" 1>&2
15315 echo " from ${host} to ${target}." 1>&2
15318 if test x
${host} = x
${target} ; then
15319 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15320 echo " for ${target}." 1>&2
15322 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15323 echo " from ${host} to ${target}." 1>&2
15330 # Configure the subdirectories
15331 # AC_CONFIG_SUBDIRS($subdirs)
15333 # Create the Makefile
15334 # and configure language subdirectories
15335 ac_config_files
="$ac_config_files $all_outputs"
15338 ac_config_commands
="$ac_config_commands default"
15340 cat >confcache
<<\_ACEOF
15341 # This file is a shell script that caches the results of configure
15342 # tests run on this system so they can be shared between configure
15343 # scripts and configure runs, see configure's option --config-cache.
15344 # It is not useful on other systems. If it contains results you don't
15345 # want to keep, you may remove or edit it.
15347 # config.status only pays attention to the cache file if you give it
15348 # the --recheck option to rerun configure.
15350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15352 # following values.
15356 # The following way of writing the cache mishandles newlines in values,
15357 # but we know of no workaround that is simple, portable, and efficient.
15358 # So, don't put newlines in cache variables' values.
15359 # Ultrix sh set writes to stderr and can't be redirected directly,
15360 # and sets the high bit in the cache file unless we assign to the vars.
15363 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15365 # `set' does not quote correctly, so add quotes (double-quote
15366 # substitution turns \\\\ into \\, and sed turns \\ into \).
15369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15372 # `set' quotes correctly as required by POSIX, so do not add quotes.
15374 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15381 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15383 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15385 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15386 if test -w $cache_file; then
15387 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15388 cat confcache
>$cache_file
15390 echo "not updating unwritable cache $cache_file"
15395 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15396 # Let make expand exec_prefix.
15397 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15399 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15400 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15401 # trailing colons and then remove the whole line if VPATH becomes empty
15402 # (actually we leave an empty line to preserve line numbers).
15403 if test "x$srcdir" = x.
; then
15404 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15405 s/:*\$(srcdir):*/:/;
15406 s/:*\${srcdir}:*/:/;
15408 s/^\([^=]*=[ ]*\):*/\1/;
15414 DEFS
=-DHAVE_CONFIG_H
15418 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15419 # 1. Remove the extension, and $U if already installed.
15420 ac_i
=`echo "$ac_i" |
15421 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15423 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15424 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15426 LIBOBJS
=$ac_libobjs
15428 LTLIBOBJS
=$ac_ltlibobjs
15432 : ${CONFIG_STATUS=./config.status}
15433 ac_clean_files_save
=$ac_clean_files
15434 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15435 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15436 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15437 cat >$CONFIG_STATUS <<_ACEOF
15439 # Generated by $as_me.
15440 # Run this file to recreate the current configuration.
15441 # Compiler output produced by configure, useful for debugging
15442 # configure, is in config.log if it exists.
15445 ac_cs_recheck=false
15447 SHELL=\${CONFIG_SHELL-$SHELL}
15450 cat >>$CONFIG_STATUS <<\_ACEOF
15451 ## --------------------- ##
15452 ## M4sh Initialization. ##
15453 ## --------------------- ##
15455 # Be Bourne compatible
15456 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15459 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15460 # is contrary to our usage. Disable this feature.
15461 alias -g '${1+"$@"}'='"$@"'
15462 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15465 DUALCASE
=1; export DUALCASE
# for MKS sh
15467 # Support unset when possible.
15468 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15475 # Work around bugs in pre-3.0 UWIN ksh.
15476 $as_unset ENV MAIL MAILPATH
15483 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15484 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15485 LC_TELEPHONE LC_TIME
15487 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15488 eval $as_var=C
; export $as_var
15494 # Required to use basename.
15495 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15501 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15502 as_basename
=basename
15508 # Name of the executable.
15509 as_me
=`$as_basename "$0" ||
15510 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15511 X"$0" : 'X\(//\)$' \| \
15512 X"$0" : 'X\(/\)$' \| \
15513 . : '\(.\)' 2>/dev/null ||
15515 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15516 /^X\/\(\/\/\)$/{ s//\1/; q; }
15517 /^X\/\(\/\).*/{ s//\1/; q; }
15521 # PATH needs CR, and LINENO needs CR and PATH.
15522 # Avoid depending upon Character Ranges.
15523 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15524 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15525 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15526 as_cr_digits
='0123456789'
15527 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15529 # The user is always right.
15530 if test "${PATH_SEPARATOR+set}" != set; then
15531 echo "#! /bin/sh" >conf$$.sh
15532 echo "exit 0" >>conf$$.sh
15534 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15543 as_lineno_1
=$LINENO
15544 as_lineno_2
=$LINENO
15545 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15546 test "x$as_lineno_1" != "x$as_lineno_2" &&
15547 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15548 # Find who we are. Look in the path if we contain no path at all
15551 *[\\/]* ) as_myself
=$0 ;;
15552 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15553 for as_dir
in $PATH
15556 test -z "$as_dir" && as_dir
=.
15557 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15562 # We did not find ourselves, most probably we were run as `sh COMMAND'
15563 # in which case we are not to be found in the path.
15564 if test "x$as_myself" = x
; then
15567 if test ! -f "$as_myself"; then
15568 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15569 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15570 { (exit 1); exit 1; }; }
15572 case $CONFIG_SHELL in
15574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15575 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15578 test -z "$as_dir" && as_dir
=.
15579 for as_base
in sh bash ksh sh5
; do
15582 if ("$as_dir/$as_base" -c '
15583 as_lineno_1=$LINENO
15584 as_lineno_2=$LINENO
15585 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15586 test "x$as_lineno_1" != "x$as_lineno_2" &&
15587 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15588 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15589 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15590 CONFIG_SHELL
=$as_dir/$as_base
15591 export CONFIG_SHELL
15592 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15600 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15601 # uniformly replaced by the line number. The first 'sed' inserts a
15602 # line-number line before each line; the second 'sed' does the real
15603 # work. The second script uses 'N' to pair each line-number line
15604 # with the numbered line, and appends trailing '-' during
15605 # substitution so that $LINENO is not a special case at line end.
15606 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15607 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15608 sed '=' <$as_myself |
15613 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15616 s,^['$as_cr_digits']*\n,,
15617 ' >$as_me.lineno
&&
15618 chmod +x
$as_me.lineno ||
15619 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15620 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15621 { (exit 1); exit 1; }; }
15623 # Don't try to exec as it changes $[0], causing all sort of problems
15624 # (the dirname of $[0] is not the place where we might find the
15625 # original and so on. Autoconf is especially sensible to this).
15627 # Exit status is that of the last command.
15632 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15633 *c
*,-n*) ECHO_N
= ECHO_C
='
15635 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15636 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15639 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15645 rm -f conf$$ conf$$.exe conf$$.
file
15647 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15648 # We could just check for DJGPP; but this test a) works b) is more generic
15649 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15650 if test -f conf$$.exe
; then
15651 # Don't use ln at all; we don't have any links
15656 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15661 rm -f conf$$ conf$$.exe conf$$.
file
15663 if mkdir
-p .
2>/dev
/null
; then
15666 test -d .
/-p && rmdir .
/-p
15670 as_executable_p
="test -f"
15672 # Sed expression to map a string onto a valid CPP name.
15673 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15675 # Sed expression to map a string onto a valid variable name.
15676 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15680 # We need space, tab and new line, in precisely that order.
15690 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15691 # report actual input values of CONFIG_FILES etc. instead of their
15692 # values after options handling. Logging --version etc. is OK.
15696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15697 ## Running $as_me. ##
15702 This file was extended by $as_me, which was
15703 generated by GNU Autoconf 2.59. Invocation command line was
15705 CONFIG_FILES = $CONFIG_FILES
15706 CONFIG_HEADERS = $CONFIG_HEADERS
15707 CONFIG_LINKS = $CONFIG_LINKS
15708 CONFIG_COMMANDS = $CONFIG_COMMANDS
15712 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15716 # Files that config.status was made for.
15717 if test -n "$ac_config_files"; then
15718 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15721 if test -n "$ac_config_headers"; then
15722 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15725 if test -n "$ac_config_links"; then
15726 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15729 if test -n "$ac_config_commands"; then
15730 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15733 cat >>$CONFIG_STATUS <<\_ACEOF
15736 \`$as_me' instantiates files from templates according to the
15737 current configuration.
15739 Usage: $0 [OPTIONS] [FILE]...
15741 -h, --help print this help, then exit
15742 -V, --version print version number, then exit
15743 -q, --quiet do not print progress messages
15744 -d, --debug don't remove temporary files
15745 --recheck update $as_me by reconfiguring in the same conditions
15746 --file=FILE[:TEMPLATE]
15747 instantiate the configuration file FILE
15748 --header=FILE[:TEMPLATE]
15749 instantiate the configuration header FILE
15751 Configuration files:
15754 Configuration headers:
15757 Configuration commands:
15760 Report bugs to <bug-autoconf@gnu.org>."
15763 cat >>$CONFIG_STATUS <<_ACEOF
15766 configured by $0, generated by GNU Autoconf 2.59,
15767 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15769 Copyright (C) 2003 Free Software Foundation, Inc.
15770 This config.status script is free software; the Free Software Foundation
15771 gives unlimited permission to copy, distribute and modify it."
15775 cat >>$CONFIG_STATUS <<\_ACEOF
15776 # If no file are specified by the user, then we need to provide default
15777 # value. By we need to know if files were specified by the user.
15783 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15784 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15792 *) # This is not an option, so the user has probably given explicit
15795 ac_need_defaults
=false
;;
15799 # Handling of the options.
15801 cat >>$CONFIG_STATUS <<\_ACEOF
15802 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15804 --version |
--vers* |
-V )
15805 echo "$ac_cs_version"; exit 0 ;;
15807 # Conflict between --help and --header
15808 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15809 Try \`$0 --help' for more information." >&5
15810 echo "$as_me: error: ambiguous option: $1
15811 Try \`$0 --help' for more information." >&2;}
15812 { (exit 1); exit 1; }; };;
15813 --help |
--hel |
-h )
15814 echo "$ac_cs_usage"; exit 0 ;;
15815 --debug |
--d* |
-d )
15817 --file |
--fil |
--fi |
--f )
15819 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15820 ac_need_defaults
=false
;;
15821 --header |
--heade |
--head |
--hea )
15823 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15824 ac_need_defaults
=false
;;
15825 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15826 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15829 # This is an error.
15830 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15831 Try \`$0 --help' for more information." >&5
15832 echo "$as_me: error: unrecognized option: $1
15833 Try \`$0 --help' for more information." >&2;}
15834 { (exit 1); exit 1; }; } ;;
15836 *) ac_config_targets
="$ac_config_targets $1" ;;
15842 ac_configure_extra_args
=
15844 if $ac_cs_silent; then
15846 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15850 cat >>$CONFIG_STATUS <<_ACEOF
15851 if \$ac_cs_recheck; then
15852 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15853 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15858 cat >>$CONFIG_STATUS <<_ACEOF
15860 # INIT-COMMANDS section.
15869 cat >>$CONFIG_STATUS <<\_ACEOF
15870 for ac_config_target
in $ac_config_targets
15872 case "$ac_config_target" in
15873 # Handling of arguments.
15874 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
15875 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15876 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
15877 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15878 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15879 { (exit 1); exit 1; }; };;
15883 # If the user did not use the arguments to specify the items to instantiate,
15884 # then the envvar interface is used. Set only those that are not.
15885 # We use the long form for the default assignment because of an extremely
15886 # bizarre bug on SunOS 4.1.3.
15887 if $ac_need_defaults; then
15888 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15889 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15890 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15893 # Have a temporary directory for convenience. Make it in the build tree
15894 # simply because there is no reason to put it here, and in addition,
15895 # creating and moving files from /tmp can sometimes cause problems.
15896 # Create a temporary directory, and hook for its removal unless debugging.
15899 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15900 trap '{ (exit 1); exit 1; }' 1 2 13 15
15903 # Create a (secure) tmp directory for tmp files.
15906 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15907 test -n "$tmp" && test -d "$tmp"
15910 tmp
=.
/confstat$$
-$RANDOM
15911 (umask 077 && mkdir
$tmp)
15914 echo "$me: cannot create a temporary directory in ." >&2
15915 { (exit 1); exit 1; }
15920 cat >>$CONFIG_STATUS <<_ACEOF
15923 # CONFIG_FILES section.
15926 # No need to generate the scripts if there are no CONFIG_FILES.
15927 # This happens for instance when ./config.status config.h
15928 if test -n "\$CONFIG_FILES"; then
15929 # Protect against being on the right side of a sed subst in config.status.
15930 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15931 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15932 s,@SHELL@,$SHELL,;t t
15933 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15934 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15935 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15936 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15937 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15938 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15939 s,@exec_prefix@,$exec_prefix,;t t
15940 s,@prefix@,$prefix,;t t
15941 s,@program_transform_name@,$program_transform_name,;t t
15942 s,@bindir@,$bindir,;t t
15943 s,@sbindir@,$sbindir,;t t
15944 s,@libexecdir@,$libexecdir,;t t
15945 s,@datadir@,$datadir,;t t
15946 s,@sysconfdir@,$sysconfdir,;t t
15947 s,@sharedstatedir@,$sharedstatedir,;t t
15948 s,@localstatedir@,$localstatedir,;t t
15949 s,@libdir@,$libdir,;t t
15950 s,@includedir@,$includedir,;t t
15951 s,@oldincludedir@,$oldincludedir,;t t
15952 s,@infodir@,$infodir,;t t
15953 s,@mandir@,$mandir,;t t
15954 s,@build_alias@,$build_alias,;t t
15955 s,@host_alias@,$host_alias,;t t
15956 s,@target_alias@,$target_alias,;t t
15957 s,@DEFS@,$DEFS,;t t
15958 s,@ECHO_C@,$ECHO_C,;t t
15959 s,@ECHO_N@,$ECHO_N,;t t
15960 s,@ECHO_T@,$ECHO_T,;t t
15961 s,@LIBS@,$LIBS,;t t
15962 s,@build@,$build,;t t
15963 s,@build_cpu@,$build_cpu,;t t
15964 s,@build_vendor@,$build_vendor,;t t
15965 s,@build_os@,$build_os,;t t
15966 s,@host@,$host,;t t
15967 s,@host_cpu@,$host_cpu,;t t
15968 s,@host_vendor@,$host_vendor,;t t
15969 s,@host_os@,$host_os,;t t
15970 s,@target@,$target,;t t
15971 s,@target_cpu@,$target_cpu,;t t
15972 s,@target_vendor@,$target_vendor,;t t
15973 s,@target_os@,$target_os,;t t
15974 s,@target_noncanonical@,$target_noncanonical,;t t
15975 s,@build_subdir@,$build_subdir,;t t
15976 s,@host_subdir@,$host_subdir,;t t
15977 s,@target_subdir@,$target_subdir,;t t
15978 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15979 s,@gcc_version_full@,$gcc_version_full,;t t
15980 s,@gcc_version@,$gcc_version,;t t
15981 s,@GENINSRC@,$GENINSRC,;t t
15983 s,@CFLAGS@,$CFLAGS,;t t
15984 s,@LDFLAGS@,$LDFLAGS,;t t
15985 s,@CPPFLAGS@,$CPPFLAGS,;t t
15986 s,@ac_ct_CC@,$ac_ct_CC,;t t
15987 s,@EXEEXT@,$EXEEXT,;t t
15988 s,@OBJEXT@,$OBJEXT,;t t
15989 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15990 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15992 s,@EGREP@,$EGREP,;t t
15993 s,@strict1_warn@,$strict1_warn,;t t
15994 s,@warn_cflags@,$warn_cflags,;t t
15995 s,@WERROR@,$WERROR,;t t
15996 s,@nocommon_flag@,$nocommon_flag,;t t
15997 s,@TREEBROWSER@,$TREEBROWSER,;t t
15998 s,@valgrind_path@,$valgrind_path,;t t
15999 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16000 s,@valgrind_command@,$valgrind_command,;t t
16001 s,@coverage_flags@,$coverage_flags,;t t
16002 s,@enable_multilib@,$enable_multilib,;t t
16003 s,@enable_shared@,$enable_shared,;t t
16004 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16005 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16006 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16007 s,@onestep@,$onestep,;t t
16008 s,@SET_MAKE@,$SET_MAKE,;t t
16010 s,@LN_S@,$LN_S,;t t
16012 s,@RANLIB@,$RANLIB,;t t
16013 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16014 s,@ranlib_flags@,$ranlib_flags,;t t
16015 s,@INSTALL@,$INSTALL,;t t
16016 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16017 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16018 s,@make_compare_target@,$make_compare_target,;t t
16019 s,@have_mktemp_command@,$have_mktemp_command,;t t
16020 s,@MAKEINFO@,$MAKEINFO,;t t
16021 s,@BUILD_INFO@,$BUILD_INFO,;t t
16022 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16023 s,@FLEX@,$FLEX,;t t
16024 s,@BISON@,$BISON,;t t
16027 s,@stage1_cflags@,$stage1_cflags,;t t
16028 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16029 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16030 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16031 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16032 s,@LIBICONV@,$LIBICONV,;t t
16033 s,@LTLIBICONV@,$LTLIBICONV,;t t
16034 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16035 s,@manext@,$manext,;t t
16036 s,@objext@,$objext,;t t
16037 s,@gthread_flags@,$gthread_flags,;t t
16038 s,@extra_modes_file@,$extra_modes_file,;t t
16039 s,@extra_opt_files@,$extra_opt_files,;t t
16040 s,@PACKAGE@,$PACKAGE,;t t
16041 s,@VERSION@,$VERSION,;t t
16042 s,@USE_NLS@,$USE_NLS,;t t
16043 s,@LIBINTL@,$LIBINTL,;t t
16044 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16045 s,@INCINTL@,$INCINTL,;t t
16046 s,@XGETTEXT@,$XGETTEXT,;t t
16047 s,@GMSGFMT@,$GMSGFMT,;t t
16048 s,@POSUB@,$POSUB,;t t
16049 s,@CATALOGS@,$CATALOGS,;t t
16050 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16051 s,@CROSS@,$CROSS,;t t
16053 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16054 s,@inhibit_libc@,$inhibit_libc,;t t
16055 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16056 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16057 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16058 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16059 s,@collect2@,$collect2,;t t
16060 s,@libgcc_visibility@,$libgcc_visibility,;t t
16062 s,@zlibdir@,$zlibdir,;t t
16063 s,@zlibinc@,$zlibinc,;t t
16064 s,@MAINT@,$MAINT,;t t
16065 s,@gcc_tooldir@,$gcc_tooldir,;t t
16066 s,@dollar@,$dollar,;t t
16067 s,@slibdir@,$slibdir,;t t
16068 s,@objdir@,$objdir,;t t
16069 s,@subdirs@,$subdirs,;t t
16070 s,@srcdir@,$srcdir,;t t
16071 s,@all_boot_languages@,$all_boot_languages,;t t
16072 s,@all_compilers@,$all_compilers,;t t
16073 s,@all_gtfiles@,$all_gtfiles,;t t
16074 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16075 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16076 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16077 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16078 s,@all_languages@,$all_languages,;t t
16079 s,@all_stagestuff@,$all_stagestuff,;t t
16080 s,@build_exeext@,$build_exeext,;t t
16081 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16082 s,@build_xm_file_list@,$build_xm_file_list,;t t
16083 s,@build_xm_include_list@,$build_xm_include_list,;t t
16084 s,@build_xm_defines@,$build_xm_defines,;t t
16085 s,@check_languages@,$check_languages,;t t
16086 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16087 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16088 s,@cpp_install_dir@,$cpp_install_dir,;t t
16089 s,@xmake_file@,$xmake_file,;t t
16090 s,@tmake_file@,$tmake_file,;t t
16091 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16092 s,@extra_headers_list@,$extra_headers_list,;t t
16093 s,@extra_objs@,$extra_objs,;t t
16094 s,@extra_parts@,$extra_parts,;t t
16095 s,@extra_passes@,$extra_passes,;t t
16096 s,@extra_programs@,$extra_programs,;t t
16097 s,@float_h_file@,$float_h_file,;t t
16098 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16099 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16100 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16101 s,@host_exeext@,$host_exeext,;t t
16102 s,@host_xm_file_list@,$host_xm_file_list,;t t
16103 s,@host_xm_include_list@,$host_xm_include_list,;t t
16104 s,@host_xm_defines@,$host_xm_defines,;t t
16105 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16106 s,@install@,$install,;t t
16107 s,@lang_opt_files@,$lang_opt_files,;t t
16108 s,@lang_specs_files@,$lang_specs_files,;t t
16109 s,@lang_tree_files@,$lang_tree_files,;t t
16110 s,@local_prefix@,$local_prefix,;t t
16111 s,@md_file@,$md_file,;t t
16112 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16113 s,@out_file@,$out_file,;t t
16114 s,@out_object_file@,$out_object_file,;t t
16115 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16116 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16117 s,@thread_file@,$thread_file,;t t
16118 s,@tm_file_list@,$tm_file_list,;t t
16119 s,@tm_include_list@,$tm_include_list,;t t
16120 s,@tm_defines@,$tm_defines,;t t
16121 s,@tm_p_file_list@,$tm_p_file_list,;t t
16122 s,@tm_p_include_list@,$tm_p_include_list,;t t
16123 s,@xm_file_list@,$xm_file_list,;t t
16124 s,@xm_include_list@,$xm_include_list,;t t
16125 s,@xm_defines@,$xm_defines,;t t
16126 s,@c_target_objs@,$c_target_objs,;t t
16127 s,@cxx_target_objs@,$cxx_target_objs,;t t
16128 s,@target_cpu_default@,$target_cpu_default,;t t
16129 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16130 s,@GMPLIBS@,$GMPLIBS,;t t
16131 s,@GMPINC@,$GMPINC,;t t
16132 s,@LIBOBJS@,$LIBOBJS,;t t
16133 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16134 /@language_hooks@/r $language_hooks
16135 s,@language_hooks@,,;t t
16140 cat >>$CONFIG_STATUS <<\_ACEOF
16141 # Split the substitutions into bite-sized pieces for seds with
16142 # small command number limits, like on Digital OSF/1 and HP-UX.
16143 ac_max_sed_lines
=48
16144 ac_sed_frag
=1 # Number of current file.
16145 ac_beg
=1 # First line for current file.
16146 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16149 while $ac_more_lines; do
16150 if test $ac_beg -gt 1; then
16151 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16153 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16155 if test ! -s $tmp/subs.frag
; then
16156 ac_more_lines
=false
16158 # The purpose of the label and of the branching condition is to
16159 # speed up the sed processing (if there are no `@' at all, there
16160 # is no need to browse any of the substitutions).
16161 # These are the two extra sed commands mentioned above.
16163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16164 if test -z "$ac_sed_cmds"; then
16165 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16167 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16169 ac_sed_frag
=`expr $ac_sed_frag + 1`
16171 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16174 if test -z "$ac_sed_cmds"; then
16177 fi # test -n "$CONFIG_FILES"
16180 cat >>$CONFIG_STATUS <<\_ACEOF
16181 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16184 - |
*:- |
*:-:* ) # input from stdin
16186 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16187 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16188 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16189 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16190 * ) ac_file_in
=$ac_file.
in ;;
16193 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16194 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16196 X"$ac_file" : 'X\(//\)[^/]' \| \
16197 X"$ac_file" : 'X\(//\)$' \| \
16198 X"$ac_file" : 'X\(/\)' \| \
16199 . : '\(.\)' 2>/dev/null ||
16201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16203 /^X\(\/\/\)$/{ s//\1/; q; }
16204 /^X\(\/\).*/{ s//\1/; q; }
16206 { if $as_mkdir_p; then
16211 while test ! -d "$as_dir"; do
16212 as_dirs
="$as_dir $as_dirs"
16213 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16215 X"$as_dir" : 'X\(//\)[^/]' \| \
16216 X"$as_dir" : 'X\(//\)$' \| \
16217 X"$as_dir" : 'X\(/\)' \| \
16218 . : '\(.\)' 2>/dev/null ||
16220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16222 /^X\(\/\/\)$/{ s//\1/; q; }
16223 /^X\(\/\).*/{ s//\1/; q; }
16226 test ! -n "$as_dirs" || mkdir
$as_dirs
16227 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16228 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16229 { (exit 1); exit 1; }; }; }
16233 if test "$ac_dir" != .
; then
16234 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16235 # A "../" for each directory in $ac_dir_suffix.
16236 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16238 ac_dir_suffix
= ac_top_builddir
=
16242 .
) # No --srcdir option. We are building in place.
16244 if test -z "$ac_top_builddir"; then
16247 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16249 [\\/]* | ?
:[\\/]* ) # Absolute path.
16250 ac_srcdir
=$srcdir$ac_dir_suffix;
16251 ac_top_srcdir
=$srcdir ;;
16252 *) # Relative path.
16253 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16254 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16257 # Do not use `cd foo && pwd` to compute absolute paths, because
16258 # the directories may not exist.
16260 .
) ac_abs_builddir
="$ac_dir";;
16263 .
) ac_abs_builddir
=`pwd`;;
16264 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16265 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16268 case $ac_abs_builddir in
16269 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16271 case ${ac_top_builddir}.
in
16272 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16273 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16274 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16277 case $ac_abs_builddir in
16278 .
) ac_abs_srcdir
=$ac_srcdir;;
16281 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16282 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16283 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16286 case $ac_abs_builddir in
16287 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16289 case $ac_top_srcdir in
16290 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16291 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16292 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16298 # Let's still pretend it is `configure' which instantiates (i.e., don't
16299 # use $as_me), people would be surprised to read:
16300 # /* config.h. Generated by config.status. */
16301 if test x
"$ac_file" = x-
; then
16304 configure_input
="$ac_file. "
16306 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16307 sed 's,.*/,,'` by configure."
16309 # First look for the input files in the build tree, otherwise in the
16311 ac_file_inputs
=`IFS=:
16312 for f in $ac_file_in; do
16314 -) echo $tmp/stdin ;;
16316 # Absolute (can't be DOS-style, as IFS=:)
16317 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16318 echo "$as_me: error: cannot find input file: $f" >&2;}
16319 { (exit 1); exit 1; }; }
16322 if test -f "$f"; then
16325 elif test -f "$srcdir/$f"; then
16330 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16331 echo "$as_me: error: cannot find input file: $f" >&2;}
16332 { (exit 1); exit 1; }; }
16335 done` ||
{ (exit 1); exit 1; }
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;}
16343 cat >>$CONFIG_STATUS <<_ACEOF
16347 cat >>$CONFIG_STATUS <<\_ACEOF
16349 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16350 s
,@configure_input@
,$configure_input,;t t
16351 s
,@srcdir@
,$ac_srcdir,;t t
16352 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16353 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16354 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16355 s
,@builddir@
,$ac_builddir,;t t
16356 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16357 s
,@top_builddir@
,$ac_top_builddir,;t t
16358 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16359 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16361 if test x"$ac_file" != x-; then
16362 mv $tmp/out $ac_file
16370 cat >>$CONFIG_STATUS <<\_ACEOF
16373 # CONFIG_HEADER section.
16376 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16377 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16379 # ac_d sets the value in "#define NAME VALUE" lines.
16380 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16381 ac_dB
='[ ].*$,\1#\2'
16384 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16385 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16386 ac_uB
='$,\1#\2define\3'
16390 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16391 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16393 - |
*:- |
*:-:* ) # input from stdin
16395 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16396 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16397 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16398 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16399 * ) ac_file_in
=$ac_file.
in ;;
16402 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16403 echo "$as_me: creating $ac_file" >&6;}
16405 # First look for the input files in the build tree, otherwise in the
16407 ac_file_inputs
=`IFS=:
16408 for f in $ac_file_in; do
16410 -) echo $tmp/stdin ;;
16412 # Absolute (can't be DOS-style, as IFS=:)
16413 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16414 echo "$as_me: error: cannot find input file: $f" >&2;}
16415 { (exit 1); exit 1; }; }
16416 # Do quote $f, to prevent DOS paths from being IFS'd.
16419 if test -f "$f"; then
16422 elif test -f "$srcdir/$f"; then
16427 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16428 echo "$as_me: error: cannot find input file: $f" >&2;}
16429 { (exit 1); exit 1; }; }
16432 done` ||
{ (exit 1); exit 1; }
16433 # Remove the trailing spaces.
16434 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16438 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16439 # `conftest.undefs', that substitutes the proper values into
16440 # config.h.in to produce config.h. The first handles `#define'
16441 # templates, and the second `#undef' templates.
16442 # And first: Protect against being on the right side of a sed subst in
16443 # config.status. Protect against being in an unquoted here document
16444 # in config.status.
16445 rm -f conftest.defines conftest.undefs
16446 # Using a here document instead of a string reduces the quoting nightmare.
16447 # Putting comments in sed scripts is not portable.
16449 # `end' is used to avoid that the second main sed command (meant for
16450 # 0-ary CPP macros) applies to n-ary macro definitions.
16451 # See the Autoconf documentation for `clear'.
16452 cat >confdef2sed.
sed <<\_ACEOF
16457 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16459 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16462 # If some macros were called several times there might be several times
16463 # the same #defines, which is useless. Nevertheless, we may not want to
16464 # sort them, since we want the *last* AC-DEFINE to be honored.
16465 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16466 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16467 rm -f confdef2sed.sed
16469 # This sed command replaces #undef with comments. This is necessary, for
16470 # example, in the case of _POSIX_SOURCE, which is predefined and required
16471 # on some systems where configure will not decide to define it.
16472 cat >>conftest.undefs <<\_ACEOF
16473 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16476 # Break up conftest.defines because some shells have a limit on the size
16477 # of here documents, and old seds have small limits too (100 cmds).
16478 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16479 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16480 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16481 echo ' :' >>$CONFIG_STATUS
16482 rm -f conftest.tail
16483 while grep . conftest.defines >/dev/null
16485 # Write a limited-size here document to $tmp/defines.sed.
16486 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16487 # Speed up: don't consider the non `#define' lines.
16488 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16489 # Work around the forget-to-reset-the-flag bug.
16490 echo 't clr' >>$CONFIG_STATUS
16491 echo ': clr' >>$CONFIG_STATUS
16492 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16494 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16496 mv $tmp/out $tmp/in
16498 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16499 rm -f conftest.defines
16500 mv conftest.
tail conftest.defines
16502 rm -f conftest.defines
16503 echo ' fi # grep' >>$CONFIG_STATUS
16504 echo >>$CONFIG_STATUS
16506 # Break up conftest.undefs because some shells have a limit on the size
16507 # of here documents, and old seds have small limits too (100 cmds).
16508 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16509 rm -f conftest.
tail
16510 while grep . conftest.undefs
>/dev
/null
16512 # Write a limited-size here document to $tmp/undefs.sed.
16513 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16514 # Speed up: don't consider the non
`#undef'
16515 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16516 # Work around the forget-to-reset-the-flag bug.
16517 echo 't clr' >>$CONFIG_STATUS
16518 echo ': clr' >>$CONFIG_STATUS
16519 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16521 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16523 mv $tmp/out $tmp/in
16525 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16526 rm -f conftest.undefs
16527 mv conftest.tail conftest.undefs
16529 rm -f conftest.undefs
16531 cat >>$CONFIG_STATUS <<\_ACEOF
16532 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16533 # use $as_me), people would be surprised to read:
16534 # /* config.h. Generated by config.status. */
16535 if test x
"$ac_file" = x-
; then
16536 echo "/* Generated by configure. */" >$tmp/config.h
16538 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16540 cat $tmp/in >>$tmp/config.h
16542 if test x
"$ac_file" != x-
; then
16543 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16544 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16545 echo "$as_me: $ac_file is unchanged" >&6;}
16547 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16548 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16549 X"$ac_file" : 'X\(//\)[^/]' \| \
16550 X"$ac_file" : 'X\(//\)$' \| \
16551 X"$ac_file" : 'X\(/\)' \| \
16552 . : '\(.\)' 2>/dev/null ||
16554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16555 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16556 /^X\(\/\/\)$/{ s//\1/; q; }
16557 /^X\(\/\).*/{ s//\1/; q; }
16559 { if $as_mkdir_p; then
16564 while test ! -d "$as_dir"; do
16565 as_dirs
="$as_dir $as_dirs"
16566 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16568 X"$as_dir" : 'X\(//\)[^/]' \| \
16569 X"$as_dir" : 'X\(//\)$' \| \
16570 X"$as_dir" : 'X\(/\)' \| \
16571 . : '\(.\)' 2>/dev/null ||
16573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16575 /^X\(\/\/\)$/{ s//\1/; q; }
16576 /^X\(\/\).*/{ s//\1/; q; }
16579 test ! -n "$as_dirs" || mkdir
$as_dirs
16580 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16581 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16582 { (exit 1); exit 1; }; }; }
16585 mv $tmp/config.h
$ac_file
16589 rm -f $tmp/config.h
16593 cat >>$CONFIG_STATUS <<\_ACEOF
16596 # CONFIG_COMMANDS section.
16598 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16599 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16600 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16601 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16602 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16603 X"$ac_dest" : 'X\(//\)[^/]' \| \
16604 X"$ac_dest" : 'X\(//\)$' \| \
16605 X"$ac_dest" : 'X\(/\)' \| \
16606 . : '\(.\)' 2>/dev/null ||
16608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16609 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16610 /^X\(\/\/\)$/{ s//\1/; q; }
16611 /^X\(\/\).*/{ s//\1/; q; }
16613 { if $as_mkdir_p; then
16618 while test ! -d "$as_dir"; do
16619 as_dirs
="$as_dir $as_dirs"
16620 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16622 X"$as_dir" : 'X\(//\)[^/]' \| \
16623 X"$as_dir" : 'X\(//\)$' \| \
16624 X"$as_dir" : 'X\(/\)' \| \
16625 . : '\(.\)' 2>/dev/null ||
16627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16629 /^X\(\/\/\)$/{ s//\1/; q; }
16630 /^X\(\/\).*/{ s//\1/; q; }
16633 test ! -n "$as_dirs" || mkdir
$as_dirs
16634 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16635 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16636 { (exit 1); exit 1; }; }; }
16640 if test "$ac_dir" != .
; then
16641 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16642 # A "../" for each directory in $ac_dir_suffix.
16643 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16645 ac_dir_suffix
= ac_top_builddir
=
16649 .
) # No --srcdir option. We are building in place.
16651 if test -z "$ac_top_builddir"; then
16654 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16656 [\\/]* | ?
:[\\/]* ) # Absolute path.
16657 ac_srcdir
=$srcdir$ac_dir_suffix;
16658 ac_top_srcdir
=$srcdir ;;
16659 *) # Relative path.
16660 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16661 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16664 # Do not use `cd foo && pwd` to compute absolute paths, because
16665 # the directories may not exist.
16667 .
) ac_abs_builddir
="$ac_dir";;
16670 .
) ac_abs_builddir
=`pwd`;;
16671 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16672 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16675 case $ac_abs_builddir in
16676 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16678 case ${ac_top_builddir}.
in
16679 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16680 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16681 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16684 case $ac_abs_builddir in
16685 .
) ac_abs_srcdir
=$ac_srcdir;;
16688 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16689 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16690 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16693 case $ac_abs_builddir in
16694 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16696 case $ac_top_srcdir in
16697 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16698 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16699 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16704 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16705 echo "$as_me: executing $ac_dest commands" >&6;}
16708 case ${CONFIG_HEADERS} in
16709 *auto-host.h
:config.
in*)
16712 # Make sure all the subdirs exist.
16713 for d
in $subdirs doc build
16715 test -d $d || mkdir
$d
16717 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16718 # bootstrapping and the installation procedure can still use
16719 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16720 # FLAGS_TO_PASS has been modified to solve the problem there.
16721 # This is virtually a duplicate of what happens in configure.lang; we do
16722 # an extra check to make sure this only happens if ln -s can be used.
16725 for d
in ${subdirs} ; do
16726 STARTDIR
=`${PWDCMD-pwd}`
16728 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16731 $LN_S ..
/$t $t 2>/dev
/null
16742 cat >>$CONFIG_STATUS <<\_ACEOF
16744 { (exit 0); exit 0; }
16746 chmod +x
$CONFIG_STATUS
16747 ac_clean_files
=$ac_clean_files_save
16750 # configure is writing to config.log, and then calls config.status.
16751 # config.status does its own redirection, appending to config.log.
16752 # Unfortunately, on DOS this fails, as config.log is still kept open
16753 # by configure, so config.status won't be able to write to it; its
16754 # output is simply discarded. So we exec the FD to /dev/null,
16755 # effectively closing config.log, so it can be properly (re)opened and
16756 # appended to by config.status. When coming back to configure, we
16757 # need to make the FD available again.
16758 if test "$no_create" != yes; then
16760 ac_config_status_args
=
16761 test "$silent" = yes &&
16762 ac_config_status_args
="$ac_config_status_args --quiet"
16764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16767 # would make configure fail if this is the last instruction.
16768 $ac_cs_success ||
{ (exit 1); exit 1; }