2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn cxx_compat_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror despite compiler version
866 --enable-checking=LIST
867 enable expensive run-time checks. With LIST
,
868 enable only specific categories of checks.
869 Categories are
: yes,no
,all
,none
,release.
870 Flags are
: assert
,df
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,runtime
,tree
,valgrind.
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler
's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-decimal-float={no,yes,bid,dpd}
883 enable decimal float extension to C. Selecting 'bid
'
884 or 'dpd
' choses which decimal floating point format
886 --enable-threads enable thread usage for target GCC
887 --enable-threads=LIB use LIB thread package for target GCC
888 --enable-tls enable or disable generation of tls code
889 overriding the assembler check for tls support
890 --enable-objc-gc enable the use of Boehm's garbage collector with
891 the GNU Objective-C runtime
892 --disable-shared don
't provide a shared libgcc
893 --enable-intermodule build the compiler in one step
894 --enable-languages=LIST specify which front-ends to build
895 --disable-rpath do not hardcode runtime library paths
896 --enable-initfini-array use .init_array/.fini_array sections
897 --enable-sjlj-exceptions
898 arrange to use setjmp/longjmp exception handling
899 --enable-secureplt enable -msecure-plt by default for PowerPC
900 --disable-win32-registry
901 disable lookup of installation paths in the
902 Registry on Windows hosts
903 --enable-win32-registry enable registry lookup (default)
904 --enable-win32-registry=KEY
905 use KEY instead of GCC version as the last portion
907 --enable-maintainer-mode
908 enable make rules and dependencies not useful
909 (and sometimes confusing) to the casual installer
910 --enable-version-specific-runtime-libs
911 specify that runtime libraries should be
912 installed in a compiler-specific directory
915 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
916 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
917 --with-build-libsubdir=DIR Directory where to find libraries for build system
918 --with-local-prefix=DIR specifies directory to put local include
919 --with-gxx-include-dir=DIR
920 specifies directory to put g++ header files
921 --with-cpp-install-dir=DIR
922 install the user visible C preprocessor in DIR
923 (relative to PREFIX) as well as PREFIX/bin
924 --with-gnu-ld arrange to work with GNU ld.
925 --with-ld arrange to use the specified ld (full pathname)
926 --with-demangler-in-ld try to use demangler in GNU ld.
927 --with-gnu-as arrange to work with GNU as
928 --with-as arrange to use the specified as (full pathname)
929 --with-stabs arrange to use stabs instead of host debug format
930 --with-dwarf2 force the default debug format to be DWARF 2
931 --with-build-sysroot=sysroot
932 use sysroot as the system root during the build
933 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934 --with-gnu-ld assume the C compiler uses GNU ld default=no
935 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
936 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
937 --with-system-libunwind use installed libunwind
938 --with-long-double-128 Use
128-bit long double by default.
939 --with-gc={page
,zone
} choose the garbage collection mechanism to use
941 --with-system-zlib use installed libz
942 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
943 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
944 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
945 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
947 Some influential environment variables
:
948 CC C compiler
command
949 CFLAGS C compiler flags
950 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
951 nonstandard directory
<lib dir
>
952 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
953 headers
in a nonstandard directory
<include dir
>
955 GMPLIBS How to link GMP
956 GMPINC How to
find GMP include files
958 Use these variables to override the choices made by
`configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
964 if test "$ac_init_help" = "recursive"; then
965 # If there are subdirs, report their specific --help.
967 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968 test -d $ac_dir || continue
971 if test "$ac_dir" != .; then
972 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
973 # A "../" for each directory in $ac_dir_suffix.
974 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
976 ac_dir_suffix= ac_top_builddir=
980 .) # No --srcdir option. We are building in place.
982 if test -z "$ac_top_builddir"; then
985 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
987 [\\/]* | ?:[\\/]* ) # Absolute path.
988 ac_srcdir=$srcdir$ac_dir_suffix;
989 ac_top_srcdir=$srcdir ;;
991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 # Do not use `cd foo
&& pwd` to compute absolute paths, because
996 # the directories may not exist.
998 .) ac_abs_builddir="$ac_dir";;
1001 .) ac_abs_builddir=`pwd`;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 case ${ac_top_builddir}. in
1010 .) ac_abs_top_builddir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1019 .) ac_abs_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 case $ac_top_srcdir in
1028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1035 # Check for guested configure; otherwise get Cygnus style configure.
1036 if test -f $ac_srcdir/configure.gnu; then
1038 $SHELL $ac_srcdir/configure.gnu --help=recursive
1039 elif test -f $ac_srcdir/configure; then
1041 $SHELL $ac_srcdir/configure --help=recursive
1042 elif test -f $ac_srcdir/configure.ac ||
1043 test -f $ac_srcdir/configure.in; then
1045 $ac_configure --help
1047 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59. Invocation command line was
1080 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1081 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1082 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1083 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1084 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1086 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1087 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1089 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1090 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1091 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1092 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1093 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1094 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1095 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1103 test -z "$as_dir" && as_dir=.
1104 echo "PATH: $as_dir"
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1128 ac_must_keep_next=false
1134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1142 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145 if test $ac_must_keep_next = true; then
1146 ac_must_keep_next=false # Got value, back to normal.
1149 *=* | --config-cache | -C | -disable-* | --disable-* \
1150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152 | -with-* | --with-* | -without-* | --without-* | --x)
1153 case "$ac_configure_args0 " in
1154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157 -* ) ac_must_keep_next=true ;;
1160 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161 # Get rid of the leading space.
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log. We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close
' the trap.
1175 trap 'exit_status
=$?
1176 # Save into config.log some information that might help in debugging.
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1186 # The following way of writing the cache mishandles newlines in values,
1189 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1209 for ac_var
in $ac_subst_vars
1211 eval ac_val
=$
`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1216 if test -n "$ac_subst_files"; then
1223 for ac_var
in $ac_subst_files
1225 eval ac_val
=$
`echo $ac_var`
1226 echo "$ac_var='"'"'$ac_val'"'"'"
1231 if test -s confdefs.h
; then
1238 sed "/^$/d" confdefs.h |
sort
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1245 rm -f core
*.core
&&
1246 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1249 for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 # Predefined preprocessor variables.
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295 for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's
/^
/|
/' "$ac_site_file" >&5
1304 if test -r "$cache_file"; then
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1321 # Check that the precious variables saved in the cache have kept the same
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1334 ac_cache_corrupted=: ;;
1336 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1343 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345 echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347 echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1364 if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1368 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1375 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1400 gcc_version=`cat $srcdir/BASE-VER`
1402 # Determine the host, build, and target systems
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1409 elif test -f $ac_dir/install.sh; then
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1413 elif test -f $ac_dir/shtool; then
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1455 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1457 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1477 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1479 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1501 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1509 program_prefix=${target_alias}-
1511 # Determine the noncanonical target name, for directory use.
1512 case ${build_alias} in
1513 "") build_noncanonical=${build} ;;
1514 *) build_noncanonical=${build_alias} ;;
1517 case ${host_alias} in
1518 "") host_noncanonical=${build_noncanonical} ;;
1519 *) host_noncanonical=${host_alias} ;;
1522 case ${target_alias} in
1523 "") target_noncanonical=${host_noncanonical} ;;
1524 *) target_noncanonical=${target_alias} ;;
1530 # Determine the target- and build-specific subdirectories
1532 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1533 # have matching libraries, they should use host libraries: Makefile.tpl
1534 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1535 # However, they still use the build modules, because the corresponding
1536 # host modules (e.g. bison) are only built for the host when bootstrap
1538 # - build_subdir is where we find build modules, and never changes.
1539 # - build_libsubdir is where we find build libraries, and can be overridden.
1541 # Prefix 'build-
' so this never conflicts with target_subdir.
1542 build_subdir="build-${build_noncanonical}"
1544 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1545 if test "${with_build_libsubdir+set}" = set; then
1546 withval="$with_build_libsubdir"
1547 build_libsubdir="$withval"
1549 build_libsubdir="$build_subdir"
1551 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1552 if ( test $srcdir = . && test -d gcc ) \
1553 || test -d $srcdir/../host-${host_noncanonical}; then
1554 host_subdir="host-${host_noncanonical}"
1559 target_subdir=${target_noncanonical}
1562 # Set program_transform_name
1563 test "$program_prefix" != NONE &&
1564 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1565 # Use a double $ so make ignores it.
1566 test "$program_suffix" != NONE &&
1567 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1568 # Double any \ or $. echo might interpret backslashes.
1569 # By default was `s,x,x', remove it
if useless.
1570 cat <<\_ACEOF
>conftest.
sed
1571 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1573 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1577 # Check for bogus environment variables.
1578 # Test if LIBRARY_PATH contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # LIBRARY_PATH contains the current directory if one of the following
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1586 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1587 case ${LIBRARY_PATH} in
1588 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1589 library_path_setting
="contains current directory"
1592 library_path_setting
="ok"
1595 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1596 echo "${ECHO_T}$library_path_setting" >&6
1597 if test "$library_path_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** LIBRARY_PATH shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** LIBRARY_PATH shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1609 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1610 # since this would lead to problems installing/building glibc.
1611 # GCC_EXEC_PREFIX contains the current directory if one of the following
1613 # - one of the terminals (":" and ";") is the first or last sign
1614 # - two terminals occur directly after each other
1615 # - the path contains an element with a dot in it
1616 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1617 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1618 case ${GCC_EXEC_PREFIX} in
1619 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1620 gcc_exec_prefix_setting
="contains current directory"
1623 gcc_exec_prefix_setting
="ok"
1626 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1627 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1628 if test "$gcc_exec_prefix_setting" != "ok"; then
1629 { { echo "$as_me:$LINENO: error:
1630 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1631 *** building gcc. Please change the environment variable
1632 *** and run configure again." >&5
1633 echo "$as_me: error:
1634 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1635 *** building gcc. Please change the environment variable
1636 *** and run configure again." >&2;}
1637 { (exit 1); exit 1; }; }
1644 # Specify the local prefix
1647 # Check whether --with-local-prefix or --without-local-prefix was given.
1648 if test "${with_local_prefix+set}" = set; then
1649 withval
="$with_local_prefix"
1650 case "${withval}" in
1651 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1652 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1653 { (exit 1); exit 1; }; } ;;
1655 *) local_prefix
=$with_local_prefix ;;
1659 # Default local prefix if it is empty
1660 if test x
$local_prefix = x
; then
1661 local_prefix
=/usr
/local
1664 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1665 # passed in by the toplevel make and thus we'd get different behavior
1666 # depending on where we built the sources.
1667 gcc_gxx_include_dir
=
1668 # Specify the g++ header file directory
1670 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1671 if test "${with_gxx_include_dir+set}" = set; then
1672 withval
="$with_gxx_include_dir"
1673 case "${withval}" in
1674 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1675 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1676 { (exit 1); exit 1; }; } ;;
1678 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1682 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1683 if test x
${gcc_gxx_include_dir} = x
; then
1684 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1685 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1687 libstdcxx_incdir
='include/c++/$(version)'
1688 if test x
$host != x
$target; then
1689 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1691 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1696 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1697 if test "${with_cpp_install_dir+set}" = set; then
1698 withval
="$with_cpp_install_dir"
1699 if test x
$withval = xyes
; then
1700 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1701 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1702 { (exit 1); exit 1; }; }
1703 elif test x
$withval != xno
; then
1704 cpp_install_dir
=$withval
1708 # We would like to our source tree to be readonly. However when releases or
1709 # pre-releases are generated, the flex/bison generated files as well as the
1710 # various formats of manuals need to be included along with the rest of the
1711 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1714 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1715 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1716 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1717 if test "${enable_generated_files_in_srcdir+set}" = set; then
1718 enableval
="$enable_generated_files_in_srcdir"
1719 generated_files_in_srcdir
=$enableval
1721 generated_files_in_srcdir
=no
1724 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1725 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1727 if test "$generated_files_in_srcdir" = "yes"; then
1734 # -------------------
1735 # Find default linker
1736 # -------------------
1740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1741 if test "${with_gnu_ld+set}" = set; then
1742 withval
="$with_gnu_ld"
1743 gnu_ld_flag
="$with_gnu_ld"
1748 # With pre-defined ld
1750 # Check whether --with-ld or --without-ld was given.
1751 if test "${with_ld+set}" = set; then
1753 DEFAULT_LINKER
="$with_ld"
1755 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1756 if test ! -x "$DEFAULT_LINKER"; then
1757 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1758 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1759 { (exit 1); exit 1; }; }
1760 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1764 cat >>confdefs.h
<<_ACEOF
1765 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1770 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1772 cat >>confdefs.h
<<_ACEOF
1773 #define HAVE_GNU_LD $gnu_ld
1777 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1778 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1779 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1780 if test x
"$gnu_ld_flag" = x
"no"; then
1781 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1782 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1784 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1792 # With demangler in GNU ld
1794 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1795 if test "${with_demangler_in_ld+set}" = set; then
1796 withval
="$with_demangler_in_ld"
1797 demangler_in_ld
="$with_demangler_in_ld"
1802 # ----------------------
1803 # Find default assembler
1804 # ----------------------
1808 # Check whether --with-gnu-as or --without-gnu-as was given.
1809 if test "${with_gnu_as+set}" = set; then
1810 withval
="$with_gnu_as"
1811 gas_flag
="$with_gnu_as"
1817 # Check whether --with-as or --without-as was given.
1818 if test "${with_as+set}" = set; then
1820 DEFAULT_ASSEMBLER
="$with_as"
1822 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1823 if test ! -x "$DEFAULT_ASSEMBLER"; then
1824 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1825 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1826 { (exit 1); exit 1; }; }
1827 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1831 cat >>confdefs.h
<<_ACEOF
1832 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1837 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1838 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1839 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1840 if test x
"$gas_flag" = x
"no"; then
1841 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1842 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1844 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1845 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1856 # If a non-executable a.out is present (e.g. created by GNU as above even if
1857 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1858 # file, even when creating an executable, so an execution test fails.
1859 # Remove possible default executable files to avoid this.
1861 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1862 # Autoconf includes it.
1863 rm -f a.out a.exe b.out
1865 # Find the native compiler
1867 ac_cpp
='$CPP $CPPFLAGS'
1868 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1869 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1870 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1873 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC
="$CC" # Let the user override the test.
1882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir
=.
1887 for ac_exec_ext
in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1908 if test -z "$ac_cv_prog_CC"; then
1910 # Extract the first word of "gcc", so it can be a program name with args.
1911 set dummy gcc
; ac_word
=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir
=.
1925 for ac_exec_ext
in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_CC
="gcc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1952 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1953 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC
="$CC" # Let the user override the test.
1962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1966 test -z "$as_dir" && as_dir
=.
1967 for ac_exec_ext
in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 if test -n "$CC"; then
1980 echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1988 if test -z "$ac_cv_prog_CC"; then
1990 # Extract the first word of "cc", so it can be a program name with args.
1991 set dummy cc
; ac_word
=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 if test -n "$ac_ct_CC"; then
1998 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2004 test -z "$as_dir" && as_dir
=.
2005 for ac_exec_ext
in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 ac_cv_prog_ac_ct_CC
="cc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2017 if test -n "$ac_ct_CC"; then
2018 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2019 echo "${ECHO_T}$ac_ct_CC" >&6
2021 echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2031 if test -z "$CC"; then
2032 # Extract the first word of "cc", so it can be a program name with args.
2033 set dummy cc
; ac_word
=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC
="$CC" # Let the user override the test.
2043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir
=.
2048 for ac_exec_ext
in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2051 ac_prog_rejected
=yes
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 if test $ac_prog_rejected = yes; then
2062 # We found a bogon in the path, so make sure we never use it.
2063 set dummy
$ac_cv_prog_CC
2065 if test $# != 0; then
2066 # We chose a different compiler from the bogus one.
2067 # However, it has the same basename, so the bogon will be chosen
2068 # first if we set CC to just the basename; use the full file name.
2070 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2076 if test -n "$CC"; then
2077 echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2085 if test -z "$CC"; then
2086 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2090 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC
="$CC" # Let the user override the test.
2099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir
=.
2104 for ac_exec_ext
in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2124 test -n "$CC" && break
2127 if test -z "$CC"; then
2131 # Extract the first word of "$ac_prog", so it can be a program name with args.
2132 set dummy
$ac_prog; ac_word
=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir
=.
2146 for ac_exec_ext
in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC
="$ac_prog"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2166 test -n "$ac_ct_CC" && break
2175 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: no acceptable C compiler found in \$PATH
2178 See \`config.log' for more details." >&2;}
2179 { (exit 1); exit 1; }; }
2181 # Provide some information about the compiler.
2182 echo "$as_me:$LINENO:" \
2183 "checking for C compiler version" >&5
2184 ac_compiler
=`set X $ac_compile; echo $2`
2185 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2186 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2190 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2191 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2196 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2201 cat >conftest.
$ac_ext <<_ACEOF
2204 cat confdefs.h
>>conftest.
$ac_ext
2205 cat >>conftest.
$ac_ext <<_ACEOF
2206 /* end confdefs.h. */
2216 ac_clean_files_save
=$ac_clean_files
2217 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2218 # Try to create an executable without -o first, disregard a.out.
2219 # It will help us diagnose broken compilers, and finding out an intuition
2221 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2222 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2223 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2224 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2225 (eval $ac_link_default) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; then
2229 # Find the output, starting from the most likely. This scheme is
2230 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2233 # Be careful to initialize this variable, since it used to be cached.
2234 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2236 # b.out is created by i960 compilers.
2237 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2239 test -f "$ac_file" ||
continue
2241 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2244 # This is the source file.
2247 # We found the default executable, but exeext='' is most
2251 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252 # FIXME: I believe we export ac_cv_exeext for Libtool,
2253 # but it would be cool to find out if it's true. Does anybody
2254 # maintain Libtool? --akim.
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.
$ac_ext >&5
2265 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: C compiler cannot create executables
2268 See \`config.log' for more details." >&2;}
2269 { (exit 77); exit 77; }; }
2272 ac_exeext
=$ac_cv_exeext
2273 echo "$as_me:$LINENO: result: $ac_file" >&5
2274 echo "${ECHO_T}$ac_file" >&6
2276 # Check the compiler produces executables we can run. If not, either
2277 # the compiler is broken, or we cross compile.
2278 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2279 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2280 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2281 # If not cross compiling, check that we can run a simple program.
2282 if test "$cross_compiling" != yes; then
2283 if { ac_try
='./$ac_file'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2291 if test "$cross_compiling" = maybe
; then
2294 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2295 If you meant to cross compile, use \`--host'.
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'.
2299 See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2304 echo "$as_me:$LINENO: result: yes" >&5
2305 echo "${ECHO_T}yes" >&6
2307 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2308 ac_clean_files
=$ac_clean_files_save
2309 # Check the compiler produces executables we can run. If not, either
2310 # the compiler is broken, or we cross compile.
2311 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2312 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2313 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2314 echo "${ECHO_T}$cross_compiling" >&6
2316 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2317 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2319 (eval $ac_link) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2325 # work properly (i.e., refer to `conftest.exe'), while it won't with
2327 for ac_file
in conftest.exe conftest conftest.
*; do
2328 test -f "$ac_file" ||
continue
2330 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2331 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2345 rm -f conftest
$ac_cv_exeext
2346 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2347 echo "${ECHO_T}$ac_cv_exeext" >&6
2349 rm -f conftest.
$ac_ext
2350 EXEEXT
=$ac_cv_exeext
2352 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2353 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2354 if test "${ac_cv_objext+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 cat >conftest.
$ac_ext <<_ACEOF
2360 cat confdefs.h
>>conftest.
$ac_ext
2361 cat >>conftest.
$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2372 rm -f conftest.o conftest.obj
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2381 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.
$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2396 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2398 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6
2400 OBJEXT
=$ac_cv_objext
2402 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 cat >conftest.
$ac_ext <<_ACEOF
2410 cat confdefs.h
>>conftest.
$ac_ext
2411 cat >>conftest.
$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2425 rm -f conftest.
$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2429 grep -v '^ *+' conftest.er1
>conftest.err
2431 cat conftest.err
>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try
='test -z "$ac_c_werror_flag"
2435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try
='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.
$ac_ext >&5
2454 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2455 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2458 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2460 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2461 ac_test_CFLAGS
=${CFLAGS+set}
2462 ac_save_CFLAGS
=$CFLAGS
2464 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2466 if test "${ac_cv_prog_cc_g+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 cat >conftest.
$ac_ext <<_ACEOF
2472 cat confdefs.h
>>conftest.
$ac_ext
2473 cat >>conftest.
$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2484 rm -f conftest.
$ac_objext
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486 (eval $ac_compile) 2>conftest.er1
2488 grep -v '^ *+' conftest.er1
>conftest.err
2490 cat conftest.err
>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try
='test -z "$ac_c_werror_flag"
2494 || test ! -s conftest.err'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; } &&
2500 { ac_try
='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.
$ac_ext >&5
2513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2515 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2517 if test "$ac_test_CFLAGS" = set; then
2518 CFLAGS
=$ac_save_CFLAGS
2519 elif test $ac_cv_prog_cc_g = yes; then
2520 if test "$GCC" = yes; then
2526 if test "$GCC" = yes; then
2532 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2533 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2534 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 ac_cv_prog_cc_stdc
=no
2539 cat >conftest.
$ac_ext <<_ACEOF
2542 cat confdefs.h
>>conftest.
$ac_ext
2543 cat >>conftest.
$ac_ext <<_ACEOF
2544 /* end confdefs.h. */
2547 #include <sys/types.h>
2548 #include <sys/stat.h>
2549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2550 struct buf { int x; };
2551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2552 static char *e (p, i)
2558 static char *f (char * (*g) (char **, int), char **p, ...)
2563 s = g (p, va_arg (v,int));
2568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2569 function prototypes and stuff, but not '\xHH' hex character constants.
2570 These don't provoke an error unfortunately, instead are silently treated
2571 as 'x'. The following induces an error, until -std1 is added to get
2572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2573 array size at least. It's necessary to write '\x00'==0 to get something
2574 that's true only with -std1. */
2575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2577 int test (int i, double x);
2578 struct s1 {int (*f) (int a);};
2579 struct s2 {int (*f) (double a);};
2580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2586 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2591 # Don't try gcc -ansi; that turns off useful extensions and
2592 # breaks some systems' header files.
2593 # AIX -qlanglvl=ansi
2594 # Ultrix and OSF/1 -std1
2595 # HP-UX 10.20 and later -Ae
2596 # HP-UX older versions -Aa -D_HPUX_SOURCE
2597 # SVR4 -Xc -D__EXTENSIONS__
2598 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600 CC
="$ac_save_CC $ac_arg"
2601 rm -f conftest.
$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2605 grep -v '^ *+' conftest.er1
>conftest.err
2607 cat conftest.err
>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try
='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try
='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 ac_cv_prog_cc_stdc
=$ac_arg
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.
$ac_ext >&5
2630 rm -f conftest.err conftest.
$ac_objext
2632 rm -f conftest.
$ac_ext conftest.
$ac_objext
2637 case "x$ac_cv_prog_cc_stdc" in
2639 echo "$as_me:$LINENO: result: none needed" >&5
2640 echo "${ECHO_T}none needed" >&6 ;;
2642 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2644 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2647 # Some people use a C++ compiler to compile C. Since we use `exit',
2648 # in C++ we need to declare it. In case someone uses the same compiler
2649 # for both compiling C and C++ we need to have the C++ compiler decide
2650 # the declaration of exit, since it's the most demanding environment.
2651 cat >conftest.
$ac_ext <<_ACEOF
2656 rm -f conftest.
$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2660 grep -v '^ *+' conftest.er1
>conftest.err
2662 cat conftest.err
>&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try
='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try
='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 for ac_declaration
in \
2680 'extern "C" void std::exit (int) throw (); using std::exit;' \
2681 'extern "C" void std::exit (int); using std::exit;' \
2682 'extern "C" void exit (int) throw ();' \
2683 'extern "C" void exit (int);' \
2686 cat >conftest.
$ac_ext <<_ACEOF
2689 cat confdefs.h
>>conftest.
$ac_ext
2690 cat >>conftest.
$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2702 rm -f conftest.
$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2706 grep -v '^ *+' conftest.er1
>conftest.err
2708 cat conftest.err
>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try
='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try
='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.
$ac_ext >&5
2731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2732 cat >conftest.
$ac_ext <<_ACEOF
2735 cat confdefs.h
>>conftest.
$ac_ext
2736 cat >>conftest.
$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2747 rm -f conftest.
$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2751 grep -v '^ *+' conftest.er1
>conftest.err
2753 cat conftest.err
>&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try
='test -z "$ac_c_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try
='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.
$ac_ext >&5
2775 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2778 if test -n "$ac_declaration"; then
2779 echo '#ifdef __cplusplus' >>confdefs.h
2780 echo $ac_declaration >>confdefs.h
2781 echo '#endif' >>confdefs.h
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.
$ac_ext >&5
2789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2791 ac_cpp
='$CPP $CPPFLAGS'
2792 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2796 if test "x$CC" != xcc
; then
2797 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2798 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2800 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2801 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2803 set dummy
$CC; ac_cc
=`echo $2 |
2804 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2805 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 cat >conftest.
$ac_ext <<_ACEOF
2811 cat confdefs.h
>>conftest.
$ac_ext
2812 cat >>conftest.
$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2823 # Make sure it works both with $CC and with simple cc.
2824 # We do the test twice because some compilers refuse to overwrite an
2825 # existing .o file with -o, though they will create one.
2826 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2827 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); };
2838 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2839 if test "x$CC" != xcc
; then
2840 # Test first that cc exists at all.
2841 if { ac_try
='cc -c conftest.$ac_ext >&5'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); };
2862 # cc exists but doesn't like -o.
2863 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2868 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2880 cat >>confdefs.h
<<\_ACEOF
2881 #define NO_MINUS_C_MINUS_O 1
2886 # expand $ac_aux_dir to an absolute path
2887 am_aux_dir
=`cd $ac_aux_dir && pwd`
2889 # FIXME: we rely on the cache variable name because
2890 # there is no other way.
2892 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2893 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2894 # Losing compiler, so override with the script.
2895 # FIXME: It is wrong to rewrite CC.
2896 # But if we don't then we get into trouble of one sort or another.
2897 # A longer-term fix would be to have automake use am__CC in this case,
2898 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2899 CC
="$am_aux_dir/compile $CC"
2902 # autoconf is lame and doesn't give us any substitution variable for this.
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2904 NO_MINUS_C_MINUS_O
=yes
2906 OUTPUT_OPTION
='-o $@'
2911 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2912 # optimizations to be activated explicitly by the toplevel.
2914 */prev-gcc
/xgcc
*) ;;
2915 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2919 # -------------------------
2920 # Check C compiler features
2921 # -------------------------
2924 ac_cpp
='$CPP $CPPFLAGS'
2925 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2928 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2929 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2930 # On Suns, sometimes $CPP names a directory.
2931 if test -n "$CPP" && test -d "$CPP"; then
2934 if test -z "$CPP"; then
2935 if test "${ac_cv_prog_CPP+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 # Double quotes because CPP needs to be expanded
2939 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2942 for ac_c_preproc_warn_flag
in '' yes
2944 # Use a header file that comes with gcc, so configuring glibc
2945 # with a fresh cross-compiler works.
2946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2947 # <limits.h> exists even on freestanding compilers.
2948 # On the NeXT, cc -E runs the code through the compiler's parser,
2949 # not just through cpp. "Syntax error" is here to catch this case.
2950 cat >conftest.
$ac_ext <<_ACEOF
2953 cat confdefs.h
>>conftest.
$ac_ext
2954 cat >>conftest.
$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2957 # include <limits.h>
2959 # include <assert.h>
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2966 grep -v '^ *+' conftest.er1
>conftest.err
2968 cat conftest.err
>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev
/null
; then
2971 if test -s conftest.err
; then
2972 ac_cpp_err
=$ac_c_preproc_warn_flag
2973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2980 if test -z "$ac_cpp_err"; then
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.
$ac_ext >&5
2986 # Broken: fails on valid input.
2989 rm -f conftest.err conftest.
$ac_ext
2991 # OK, works on sane cases. Now check whether non-existent headers
2992 # can be detected and how.
2993 cat >conftest.
$ac_ext <<_ACEOF
2996 cat confdefs.h
>>conftest.
$ac_ext
2997 cat >>conftest.
$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #include <ac_nonexistent.h>
3001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3002 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3004 grep -v '^ *+' conftest.er1
>conftest.err
3006 cat conftest.err
>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } >/dev
/null
; then
3009 if test -s conftest.err
; then
3010 ac_cpp_err
=$ac_c_preproc_warn_flag
3011 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3018 if test -z "$ac_cpp_err"; then
3019 # Broken: success on invalid input.
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.
$ac_ext >&5
3025 # Passes both tests.
3029 rm -f conftest.err conftest.
$ac_ext
3032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3033 rm -f conftest.err conftest.
$ac_ext
3034 if $ac_preproc_ok; then
3046 echo "$as_me:$LINENO: result: $CPP" >&5
3047 echo "${ECHO_T}$CPP" >&6
3049 for ac_c_preproc_warn_flag
in '' yes
3051 # Use a header file that comes with gcc, so configuring glibc
3052 # with a fresh cross-compiler works.
3053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3054 # <limits.h> exists even on freestanding compilers.
3055 # On the NeXT, cc -E runs the code through the compiler's parser,
3056 # not just through cpp. "Syntax error" is here to catch this case.
3057 cat >conftest.
$ac_ext <<_ACEOF
3060 cat confdefs.h
>>conftest.
$ac_ext
3061 cat >>conftest.
$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3064 # include <limits.h>
3066 # include <assert.h>
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3073 grep -v '^ *+' conftest.er1
>conftest.err
3075 cat conftest.err
>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev
/null
; then
3078 if test -s conftest.err
; then
3079 ac_cpp_err
=$ac_c_preproc_warn_flag
3080 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3087 if test -z "$ac_cpp_err"; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.
$ac_ext >&5
3093 # Broken: fails on valid input.
3096 rm -f conftest.err conftest.
$ac_ext
3098 # OK, works on sane cases. Now check whether non-existent headers
3099 # can be detected and how.
3100 cat >conftest.
$ac_ext <<_ACEOF
3103 cat confdefs.h
>>conftest.
$ac_ext
3104 cat >>conftest.
$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106 #include <ac_nonexistent.h>
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3111 grep -v '^ *+' conftest.er1
>conftest.err
3113 cat conftest.err
>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } >/dev
/null
; then
3116 if test -s conftest.err
; then
3117 ac_cpp_err
=$ac_c_preproc_warn_flag
3118 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3125 if test -z "$ac_cpp_err"; then
3126 # Broken: success on invalid input.
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.
$ac_ext >&5
3132 # Passes both tests.
3136 rm -f conftest.err conftest.
$ac_ext
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.err conftest.
$ac_ext
3141 if $ac_preproc_ok; then
3144 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3152 ac_cpp
='$CPP $CPPFLAGS'
3153 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3158 echo "$as_me:$LINENO: checking for inline" >&5
3159 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3160 if test "${ac_cv_c_inline+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 for ac_kw
in inline __inline__ __inline
; do
3165 cat >conftest.
$ac_ext <<_ACEOF
3168 cat confdefs.h
>>conftest.
$ac_ext
3169 cat >>conftest.
$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3173 static $ac_kw foo_t static_foo () {return 0; }
3174 $ac_kw foo_t foo () {return 0; }
3178 rm -f conftest.
$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180 (eval $ac_compile) 2>conftest.er1
3182 grep -v '^ *+' conftest.er1
>conftest.err
3184 cat conftest.err
>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try
='test -z "$ac_c_werror_flag"
3188 || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try
='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 ac_cv_c_inline
=$ac_kw; break
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.
$ac_ext >&5
3206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3210 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3211 echo "${ECHO_T}$ac_cv_c_inline" >&6
3214 case $ac_cv_c_inline in
3217 case $ac_cv_c_inline in
3219 *) ac_val
=$ac_cv_c_inline;;
3221 cat >>confdefs.h
<<_ACEOF
3223 #define inline $ac_val
3230 # sizeof(char) is 1 by definition.
3232 echo "$as_me:$LINENO: checking for egrep" >&5
3233 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3234 if test "${ac_cv_prog_egrep+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3238 then ac_cv_prog_egrep
='grep -E'
3239 else ac_cv_prog_egrep
='egrep'
3242 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3243 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3244 EGREP
=$ac_cv_prog_egrep
3247 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3248 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3249 if test "${ac_cv_header_stdc+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 cat >conftest.
$ac_ext <<_ACEOF
3255 cat confdefs.h
>>conftest.
$ac_ext
3256 cat >>conftest.
$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3271 rm -f conftest.
$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>conftest.er1
3275 grep -v '^ *+' conftest.er1
>conftest.err
3277 cat conftest.err
>&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try
='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try
='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_header_stdc
=yes
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.
$ac_ext >&5
3298 ac_cv_header_stdc
=no
3300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3302 if test $ac_cv_header_stdc = yes; then
3303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3304 cat >conftest.
$ac_ext <<_ACEOF
3307 cat confdefs.h
>>conftest.
$ac_ext
3308 cat >>conftest.
$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314 $EGREP "memchr" >/dev
/null
2>&1; then
3317 ac_cv_header_stdc
=no
3323 if test $ac_cv_header_stdc = yes; then
3324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3325 cat >conftest.
$ac_ext <<_ACEOF
3328 cat confdefs.h
>>conftest.
$ac_ext
3329 cat >>conftest.
$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 $EGREP "free" >/dev
/null
2>&1; then
3338 ac_cv_header_stdc
=no
3344 if test $ac_cv_header_stdc = yes; then
3345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3346 if test "$cross_compiling" = yes; then
3349 cat >conftest.
$ac_ext <<_ACEOF
3352 cat confdefs.h
>>conftest.
$ac_ext
3353 cat >>conftest.
$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3356 #if ((' ' & 0x0FF) == 0x020)
3357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3360 # define ISLOWER(c) \
3361 (('a' <= (c) && (c) <= 'i') \
3362 || ('j' <= (c) && (c) <= 'r') \
3363 || ('s' <= (c) && (c) <= 'z'))
3364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3372 for (i = 0; i < 256; i++)
3373 if (XOR (islower (i), ISLOWER (i))
3374 || toupper (i) != TOUPPER (i))
3379 rm -f conftest
$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3392 echo "$as_me: program exited with status $ac_status" >&5
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.
$ac_ext >&5
3397 ac_cv_header_stdc
=no
3399 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3403 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3404 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3405 if test $ac_cv_header_stdc = yes; then
3407 cat >>confdefs.h
<<\_ACEOF
3408 #define STDC_HEADERS 1
3413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3423 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3424 inttypes.h stdint.h unistd.h
3426 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3427 echo "$as_me:$LINENO: checking for $ac_header" >&5
3428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 cat >conftest.
$ac_ext <<_ACEOF
3435 cat confdefs.h
>>conftest.
$ac_ext
3436 cat >>conftest.
$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 $ac_includes_default
3440 #include <$ac_header>
3442 rm -f conftest.
$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>conftest.er1
3446 grep -v '^ *+' conftest.er1
>conftest.err
3448 cat conftest.err
>&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try
='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try
='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 eval "$as_ac_Header=yes"
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.
$ac_ext >&5
3469 eval "$as_ac_Header=no"
3471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3476 cat >>confdefs.h
<<_ACEOF
3477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3485 echo "$as_me:$LINENO: checking for void *" >&5
3486 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3487 if test "${ac_cv_type_void_p+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 cat >conftest.
$ac_ext <<_ACEOF
3493 cat confdefs.h
>>conftest.
$ac_ext
3494 cat >>conftest.
$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 $ac_includes_default
3502 if (sizeof (void *))
3508 rm -f conftest.
$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3512 grep -v '^ *+' conftest.er1
>conftest.err
3514 cat conftest.err
>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try
='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try
='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_cv_type_void_p
=yes
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.
$ac_ext >&5
3535 ac_cv_type_void_p
=no
3537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3539 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3540 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3542 echo "$as_me:$LINENO: checking size of void *" >&5
3543 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3544 if test "${ac_cv_sizeof_void_p+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test "$ac_cv_type_void_p" = yes; then
3548 # The cast to unsigned long works around a bug in the HP C Compiler
3549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3551 # This bug is HP SR number 8606223364.
3552 if test "$cross_compiling" = yes; then
3553 # Depending upon the size, compute the lo and hi bounds.
3554 cat >conftest.
$ac_ext <<_ACEOF
3557 cat confdefs.h
>>conftest.
$ac_ext
3558 cat >>conftest.
$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_includes_default
3564 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3571 rm -f conftest.
$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3575 grep -v '^ *+' conftest.er1
>conftest.err
3577 cat conftest.err
>&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try
='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try
='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3595 cat >conftest.
$ac_ext <<_ACEOF
3598 cat confdefs.h
>>conftest.
$ac_ext
3599 cat >>conftest.
$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 $ac_includes_default
3605 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3612 rm -f conftest.
$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3616 grep -v '^ *+' conftest.er1
>conftest.err
3618 cat conftest.err
>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try
='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try
='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 ac_hi
=$ac_mid; break
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.
$ac_ext >&5
3639 ac_lo
=`expr $ac_mid + 1`
3640 if test $ac_lo -le $ac_mid; then
3644 ac_mid
=`expr 2 '*' $ac_mid + 1`
3646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.
$ac_ext >&5
3652 cat >conftest.
$ac_ext <<_ACEOF
3655 cat confdefs.h
>>conftest.
$ac_ext
3656 cat >>conftest.
$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 $ac_includes_default
3662 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3669 rm -f conftest.
$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3673 grep -v '^ *+' conftest.er1
>conftest.err
3675 cat conftest.err
>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try
='test -z "$ac_c_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try
='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3693 cat >conftest.
$ac_ext <<_ACEOF
3696 cat confdefs.h
>>conftest.
$ac_ext
3697 cat >>conftest.
$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 $ac_includes_default
3703 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3710 rm -f conftest.
$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3714 grep -v '^ *+' conftest.er1
>conftest.err
3716 cat conftest.err
>&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try
='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try
='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_lo
=$ac_mid; break
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.
$ac_ext >&5
3737 ac_hi
=`expr '(' $ac_mid ')' - 1`
3738 if test $ac_mid -le $ac_hi; then
3742 ac_mid
=`expr 2 '*' $ac_mid`
3744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.
$ac_ext >&5
3752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3755 # Binary search between lo and hi bounds.
3756 while test "x$ac_lo" != "x$ac_hi"; do
3757 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3758 cat >conftest.
$ac_ext <<_ACEOF
3761 cat confdefs.h
>>conftest.
$ac_ext
3762 cat >>conftest.
$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3768 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3775 rm -f conftest.
$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>conftest.er1
3779 grep -v '^ *+' conftest.er1
>conftest.err
3781 cat conftest.err
>&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try
='test -z "$ac_c_werror_flag"
3785 || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try
='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.
$ac_ext >&5
3802 ac_lo
=`expr '(' $ac_mid ')' + 1`
3804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3807 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3808 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3809 See \`config.log' for more details." >&5
3810 echo "$as_me: error: cannot compute sizeof (void *), 77
3811 See \`config.log' for more details." >&2;}
3812 { (exit 1); exit 1; }; } ;;
3815 if test "$cross_compiling" = yes; then
3816 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3817 See \`config.log' for more details." >&5
3818 echo "$as_me: error: cannot run test program while cross compiling
3819 See \`config.log' for more details." >&2;}
3820 { (exit 1); exit 1; }; }
3822 cat >conftest.
$ac_ext <<_ACEOF
3825 cat confdefs.h
>>conftest.
$ac_ext
3826 cat >>conftest.
$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 $ac_includes_default
3829 long longval () { return (long) (sizeof (void *)); }
3830 unsigned long ulongval () { return (long) (sizeof (void *)); }
3837 FILE *f = fopen ("conftest.val", "w");
3840 if (((long) (sizeof (void *))) < 0)
3842 long i = longval ();
3843 if (i != ((long) (sizeof (void *))))
3845 fprintf (f, "%ld\n", i);
3849 unsigned long i = ulongval ();
3850 if (i != ((long) (sizeof (void *))))
3852 fprintf (f, "%lu\n", i);
3854 exit (ferror (f) || fclose (f) != 0);
3860 rm -f conftest
$ac_exeext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862 (eval $ac_link) 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_sizeof_void_p
=`cat conftest.val`
3873 echo "$as_me: program exited with status $ac_status" >&5
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.
$ac_ext >&5
3878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3879 See \`config.log' for more details." >&5
3880 echo "$as_me: error: cannot compute sizeof (void *), 77
3881 See \`config.log' for more details." >&2;}
3882 { (exit 1); exit 1; }; }
3884 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3889 ac_cv_sizeof_void_p
=0
3892 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3893 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3894 cat >>confdefs.h
<<_ACEOF
3895 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3899 echo "$as_me:$LINENO: checking for short" >&5
3900 echo $ECHO_N "checking for short... $ECHO_C" >&6
3901 if test "${ac_cv_type_short+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 cat >conftest.
$ac_ext <<_ACEOF
3907 cat confdefs.h
>>conftest.
$ac_ext
3908 cat >>conftest.
$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 $ac_includes_default
3922 rm -f conftest.
$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>conftest.er1
3926 grep -v '^ *+' conftest.er1
>conftest.err
3928 cat conftest.err
>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try
='test -z "$ac_c_werror_flag"
3932 || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try
='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 ac_cv_type_short
=yes
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.
$ac_ext >&5
3951 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3953 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3954 echo "${ECHO_T}$ac_cv_type_short" >&6
3956 echo "$as_me:$LINENO: checking size of short" >&5
3957 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3958 if test "${ac_cv_sizeof_short+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test "$ac_cv_type_short" = yes; then
3962 # The cast to unsigned long works around a bug in the HP C Compiler
3963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3965 # This bug is HP SR number 8606223364.
3966 if test "$cross_compiling" = yes; then
3967 # Depending upon the size, compute the lo and hi bounds.
3968 cat >conftest.
$ac_ext <<_ACEOF
3971 cat confdefs.h
>>conftest.
$ac_ext
3972 cat >>conftest.
$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974 $ac_includes_default
3978 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3985 rm -f conftest.
$ac_objext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3989 grep -v '^ *+' conftest.er1
>conftest.err
3991 cat conftest.err
>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try
='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try
='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4009 cat >conftest.
$ac_ext <<_ACEOF
4012 cat confdefs.h
>>conftest.
$ac_ext
4013 cat >>conftest.
$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 $ac_includes_default
4019 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4026 rm -f conftest.
$ac_objext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>conftest.er1
4030 grep -v '^ *+' conftest.er1
>conftest.err
4032 cat conftest.err
>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try
='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try
='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_hi
=$ac_mid; break
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.
$ac_ext >&5
4053 ac_lo
=`expr $ac_mid + 1`
4054 if test $ac_lo -le $ac_mid; then
4058 ac_mid
=`expr 2 '*' $ac_mid + 1`
4060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.
$ac_ext >&5
4066 cat >conftest.
$ac_ext <<_ACEOF
4069 cat confdefs.h
>>conftest.
$ac_ext
4070 cat >>conftest.
$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4076 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4083 rm -f conftest.
$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4087 grep -v '^ *+' conftest.er1
>conftest.err
4089 cat conftest.err
>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try
='test -z "$ac_c_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try
='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4107 cat >conftest.
$ac_ext <<_ACEOF
4110 cat confdefs.h
>>conftest.
$ac_ext
4111 cat >>conftest.
$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 $ac_includes_default
4117 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4124 rm -f conftest.
$ac_objext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>conftest.er1
4128 grep -v '^ *+' conftest.er1
>conftest.err
4130 cat conftest.err
>&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try
='test -z "$ac_c_werror_flag"
4134 || test ! -s conftest.err'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try
='test -s conftest.$ac_objext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_lo
=$ac_mid; break
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.
$ac_ext >&5
4151 ac_hi
=`expr '(' $ac_mid ')' - 1`
4152 if test $ac_mid -le $ac_hi; then
4156 ac_mid
=`expr 2 '*' $ac_mid`
4158 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.
$ac_ext >&5
4166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4169 # Binary search between lo and hi bounds.
4170 while test "x$ac_lo" != "x$ac_hi"; do
4171 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4172 cat >conftest.
$ac_ext <<_ACEOF
4175 cat confdefs.h
>>conftest.
$ac_ext
4176 cat >>conftest.
$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 $ac_includes_default
4182 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4189 rm -f conftest.
$ac_objext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>conftest.er1
4193 grep -v '^ *+' conftest.er1
>conftest.err
4195 cat conftest.err
>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try
='test -z "$ac_c_werror_flag"
4199 || 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
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.
$ac_ext >&5
4216 ac_lo
=`expr '(' $ac_mid ')' + 1`
4218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4221 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4223 See \`config.log' for more details." >&5
4224 echo "$as_me: error: cannot compute sizeof (short), 77
4225 See \`config.log' for more details." >&2;}
4226 { (exit 1); exit 1; }; } ;;
4229 if test "$cross_compiling" = yes; then
4230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: cannot run test program while cross compiling
4233 See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }
4236 cat >conftest.
$ac_ext <<_ACEOF
4239 cat confdefs.h
>>conftest.
$ac_ext
4240 cat >>conftest.
$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 $ac_includes_default
4243 long longval () { return (long) (sizeof (short)); }
4244 unsigned long ulongval () { return (long) (sizeof (short)); }
4251 FILE *f = fopen ("conftest.val", "w");
4254 if (((long) (sizeof (short))) < 0)
4256 long i = longval ();
4257 if (i != ((long) (sizeof (short))))
4259 fprintf (f, "%ld\n", i);
4263 unsigned long i = ulongval ();
4264 if (i != ((long) (sizeof (short))))
4266 fprintf (f, "%lu\n", i);
4268 exit (ferror (f) || fclose (f) != 0);
4274 rm -f conftest
$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276 (eval $ac_link) 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_sizeof_short
=`cat conftest.val`
4287 echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.
$ac_ext >&5
4292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4293 See \`config.log' for more details." >&5
4294 echo "$as_me: error: cannot compute sizeof (short), 77
4295 See \`config.log' for more details." >&2;}
4296 { (exit 1); exit 1; }; }
4298 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4303 ac_cv_sizeof_short
=0
4306 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4307 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4308 cat >>confdefs.h
<<_ACEOF
4309 #define SIZEOF_SHORT $ac_cv_sizeof_short
4313 echo "$as_me:$LINENO: checking for int" >&5
4314 echo $ECHO_N "checking for int... $ECHO_C" >&6
4315 if test "${ac_cv_type_int+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 cat >conftest.
$ac_ext <<_ACEOF
4321 cat confdefs.h
>>conftest.
$ac_ext
4322 cat >>conftest.
$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 $ac_includes_default
4336 rm -f conftest.
$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1
>conftest.err
4342 cat conftest.err
>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try
='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try
='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.
$ac_ext >&5
4365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4367 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4368 echo "${ECHO_T}$ac_cv_type_int" >&6
4370 echo "$as_me:$LINENO: checking size of int" >&5
4371 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4372 if test "${ac_cv_sizeof_int+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 if test "$ac_cv_type_int" = yes; then
4376 # The cast to unsigned long works around a bug in the HP C Compiler
4377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4379 # This bug is HP SR number 8606223364.
4380 if test "$cross_compiling" = yes; then
4381 # Depending upon the size, compute the lo and hi bounds.
4382 cat >conftest.
$ac_ext <<_ACEOF
4385 cat confdefs.h
>>conftest.
$ac_ext
4386 cat >>conftest.
$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 $ac_includes_default
4392 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4399 rm -f conftest.
$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>conftest.er1
4403 grep -v '^ *+' conftest.er1
>conftest.err
4405 cat conftest.err
>&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try
='test -z "$ac_c_werror_flag"
4409 || test ! -s conftest.err'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; } &&
4415 { ac_try
='test -s conftest.$ac_objext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4423 cat >conftest.
$ac_ext <<_ACEOF
4426 cat confdefs.h
>>conftest.
$ac_ext
4427 cat >>conftest.
$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 $ac_includes_default
4433 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4440 rm -f conftest.
$ac_objext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442 (eval $ac_compile) 2>conftest.er1
4444 grep -v '^ *+' conftest.er1
>conftest.err
4446 cat conftest.err
>&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } &&
4449 { ac_try
='test -z "$ac_c_werror_flag"
4450 || test ! -s conftest.err'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try
='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_hi
=$ac_mid; break
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.
$ac_ext >&5
4467 ac_lo
=`expr $ac_mid + 1`
4468 if test $ac_lo -le $ac_mid; then
4472 ac_mid
=`expr 2 '*' $ac_mid + 1`
4474 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.
$ac_ext >&5
4480 cat >conftest.
$ac_ext <<_ACEOF
4483 cat confdefs.h
>>conftest.
$ac_ext
4484 cat >>conftest.
$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 $ac_includes_default
4490 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4497 rm -f conftest.
$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4501 grep -v '^ *+' conftest.er1
>conftest.err
4503 cat conftest.err
>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try
='test -z "$ac_c_werror_flag"
4507 || test ! -s conftest.err'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try
='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4521 cat >conftest.
$ac_ext <<_ACEOF
4524 cat confdefs.h
>>conftest.
$ac_ext
4525 cat >>conftest.
$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4531 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4538 rm -f conftest.
$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1
>conftest.err
4544 cat conftest.err
>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try
='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try
='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_lo
=$ac_mid; break
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.
$ac_ext >&5
4565 ac_hi
=`expr '(' $ac_mid ')' - 1`
4566 if test $ac_mid -le $ac_hi; then
4570 ac_mid
=`expr 2 '*' $ac_mid`
4572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.
$ac_ext >&5
4580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4582 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4583 # Binary search between lo and hi bounds.
4584 while test "x$ac_lo" != "x$ac_hi"; do
4585 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4586 cat >conftest.
$ac_ext <<_ACEOF
4589 cat confdefs.h
>>conftest.
$ac_ext
4590 cat >>conftest.
$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 $ac_includes_default
4596 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4603 rm -f conftest.
$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>conftest.er1
4607 grep -v '^ *+' conftest.er1
>conftest.err
4609 cat conftest.err
>&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try
='test -z "$ac_c_werror_flag"
4613 || test ! -s conftest.err'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try
='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.
$ac_ext >&5
4630 ac_lo
=`expr '(' $ac_mid ')' + 1`
4632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4635 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4636 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4637 See \`config.log' for more details." >&5
4638 echo "$as_me: error: cannot compute sizeof (int), 77
4639 See \`config.log' for more details." >&2;}
4640 { (exit 1); exit 1; }; } ;;
4643 if test "$cross_compiling" = yes; then
4644 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: cannot run test program while cross compiling
4647 See \`config.log' for more details." >&2;}
4648 { (exit 1); exit 1; }; }
4650 cat >conftest.
$ac_ext <<_ACEOF
4653 cat confdefs.h
>>conftest.
$ac_ext
4654 cat >>conftest.
$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4657 long longval () { return (long) (sizeof (int)); }
4658 unsigned long ulongval () { return (long) (sizeof (int)); }
4665 FILE *f = fopen ("conftest.val", "w");
4668 if (((long) (sizeof (int))) < 0)
4670 long i = longval ();
4671 if (i != ((long) (sizeof (int))))
4673 fprintf (f, "%ld\n", i);
4677 unsigned long i = ulongval ();
4678 if (i != ((long) (sizeof (int))))
4680 fprintf (f, "%lu\n", i);
4682 exit (ferror (f) || fclose (f) != 0);
4688 rm -f conftest
$ac_exeext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690 (eval $ac_link) 2>&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_cv_sizeof_int
=`cat conftest.val`
4701 echo "$as_me: program exited with status $ac_status" >&5
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.
$ac_ext >&5
4706 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4707 See \`config.log' for more details." >&5
4708 echo "$as_me: error: cannot compute sizeof (int), 77
4709 See \`config.log' for more details." >&2;}
4710 { (exit 1); exit 1; }; }
4712 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4720 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4721 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4722 cat >>confdefs.h
<<_ACEOF
4723 #define SIZEOF_INT $ac_cv_sizeof_int
4727 echo "$as_me:$LINENO: checking for long" >&5
4728 echo $ECHO_N "checking for long... $ECHO_C" >&6
4729 if test "${ac_cv_type_long+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 cat >conftest.
$ac_ext <<_ACEOF
4735 cat confdefs.h
>>conftest.
$ac_ext
4736 cat >>conftest.
$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_includes_default
4750 rm -f conftest.
$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>conftest.er1
4754 grep -v '^ *+' conftest.er1
>conftest.err
4756 cat conftest.err
>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try
='test -z "$ac_c_werror_flag"
4760 || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try
='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.
$ac_ext >&5
4779 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4781 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4782 echo "${ECHO_T}$ac_cv_type_long" >&6
4784 echo "$as_me:$LINENO: checking size of long" >&5
4785 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4786 if test "${ac_cv_sizeof_long+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 if test "$ac_cv_type_long" = yes; then
4790 # The cast to unsigned long works around a bug in the HP C Compiler
4791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4793 # This bug is HP SR number 8606223364.
4794 if test "$cross_compiling" = yes; then
4795 # Depending upon the size, compute the lo and hi bounds.
4796 cat >conftest.
$ac_ext <<_ACEOF
4799 cat confdefs.h
>>conftest.
$ac_ext
4800 cat >>conftest.
$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 $ac_includes_default
4806 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4813 rm -f conftest.
$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>conftest.er1
4817 grep -v '^ *+' conftest.er1
>conftest.err
4819 cat conftest.err
>&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try
='test -z "$ac_c_werror_flag"
4823 || test ! -s conftest.err'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; } &&
4829 { ac_try
='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4837 cat >conftest.
$ac_ext <<_ACEOF
4840 cat confdefs.h
>>conftest.
$ac_ext
4841 cat >>conftest.
$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_includes_default
4847 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4854 rm -f conftest.
$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4858 grep -v '^ *+' conftest.er1
>conftest.err
4860 cat conftest.err
>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try
='test -z "$ac_c_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try
='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_hi
=$ac_mid; break
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.
$ac_ext >&5
4881 ac_lo
=`expr $ac_mid + 1`
4882 if test $ac_lo -le $ac_mid; then
4886 ac_mid
=`expr 2 '*' $ac_mid + 1`
4888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.
$ac_ext >&5
4894 cat >conftest.
$ac_ext <<_ACEOF
4897 cat confdefs.h
>>conftest.
$ac_ext
4898 cat >>conftest.
$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 $ac_includes_default
4904 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4911 rm -f conftest.
$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>conftest.er1
4915 grep -v '^ *+' conftest.er1
>conftest.err
4917 cat conftest.err
>&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try
='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try
='test -s conftest.$ac_objext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4935 cat >conftest.
$ac_ext <<_ACEOF
4938 cat confdefs.h
>>conftest.
$ac_ext
4939 cat >>conftest.
$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 $ac_includes_default
4945 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4952 rm -f conftest.
$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4956 grep -v '^ *+' conftest.er1
>conftest.err
4958 cat conftest.err
>&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try
='test -z "$ac_c_werror_flag"
4962 || test ! -s conftest.err'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; } &&
4968 { ac_try
='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 ac_lo
=$ac_mid; break
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.
$ac_ext >&5
4979 ac_hi
=`expr '(' $ac_mid ')' - 1`
4980 if test $ac_mid -le $ac_hi; then
4984 ac_mid
=`expr 2 '*' $ac_mid`
4986 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.
$ac_ext >&5
4994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 # Binary search between lo and hi bounds.
4998 while test "x$ac_lo" != "x$ac_hi"; do
4999 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5000 cat >conftest.
$ac_ext <<_ACEOF
5003 cat confdefs.h
>>conftest.
$ac_ext
5004 cat >>conftest.
$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5010 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5017 rm -f conftest.
$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>conftest.er1
5021 grep -v '^ *+' conftest.er1
>conftest.err
5023 cat conftest.err
>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try
='test -z "$ac_c_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try
='test -s conftest.$ac_objext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.
$ac_ext >&5
5044 ac_lo
=`expr '(' $ac_mid ')' + 1`
5046 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5049 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5050 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5051 See \`config.log' for more details." >&5
5052 echo "$as_me: error: cannot compute sizeof (long), 77
5053 See \`config.log' for more details." >&2;}
5054 { (exit 1); exit 1; }; } ;;
5057 if test "$cross_compiling" = yes; then
5058 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5059 See \`config.log' for more details." >&5
5060 echo "$as_me: error: cannot run test program while cross compiling
5061 See \`config.log' for more details." >&2;}
5062 { (exit 1); exit 1; }; }
5064 cat >conftest.
$ac_ext <<_ACEOF
5067 cat confdefs.h
>>conftest.
$ac_ext
5068 cat >>conftest.
$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5071 long longval () { return (long) (sizeof (long)); }
5072 unsigned long ulongval () { return (long) (sizeof (long)); }
5079 FILE *f = fopen ("conftest.val", "w");
5082 if (((long) (sizeof (long))) < 0)
5084 long i = longval ();
5085 if (i != ((long) (sizeof (long))))
5087 fprintf (f, "%ld\n", i);
5091 unsigned long i = ulongval ();
5092 if (i != ((long) (sizeof (long))))
5094 fprintf (f, "%lu\n", i);
5096 exit (ferror (f) || fclose (f) != 0);
5102 rm -f conftest
$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 ac_cv_sizeof_long
=`cat conftest.val`
5115 echo "$as_me: program exited with status $ac_status" >&5
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.
$ac_ext >&5
5120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: cannot compute sizeof (long), 77
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5126 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5134 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5135 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5136 cat >>confdefs.h
<<_ACEOF
5137 #define SIZEOF_LONG $ac_cv_sizeof_long
5141 echo "$as_me:$LINENO: checking for long long" >&5
5142 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5143 if test "${ac_cv_type_long_long+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.
$ac_ext <<_ACEOF
5149 cat confdefs.h
>>conftest.
$ac_ext
5150 cat >>conftest.
$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 $ac_includes_default
5156 if ((long long *) 0)
5158 if (sizeof (long long))
5164 rm -f conftest.
$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166 (eval $ac_compile) 2>conftest.er1
5168 grep -v '^ *+' conftest.er1
>conftest.err
5170 cat conftest.err
>&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try
='test -z "$ac_c_werror_flag"
5174 || test ! -s conftest.err'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; } &&
5180 { ac_try
='test -s conftest.$ac_objext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_cv_type_long_long
=yes
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.
$ac_ext >&5
5191 ac_cv_type_long_long
=no
5193 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5195 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5196 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5197 if test $ac_cv_type_long_long = yes; then
5199 cat >>confdefs.h
<<_ACEOF
5200 #define HAVE_LONG_LONG 1
5203 echo "$as_me:$LINENO: checking for long long" >&5
5204 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5205 if test "${ac_cv_type_long_long+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 cat >conftest.
$ac_ext <<_ACEOF
5211 cat confdefs.h
>>conftest.
$ac_ext
5212 cat >>conftest.
$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 $ac_includes_default
5218 if ((long long *) 0)
5220 if (sizeof (long long))
5226 rm -f conftest.
$ac_objext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228 (eval $ac_compile) 2>conftest.er1
5230 grep -v '^ *+' conftest.er1
>conftest.err
5232 cat conftest.err
>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try
='test -z "$ac_c_werror_flag"
5236 || test ! -s conftest.err'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; } &&
5242 { ac_try
='test -s conftest.$ac_objext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_type_long_long
=yes
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.
$ac_ext >&5
5253 ac_cv_type_long_long
=no
5255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5257 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5258 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5260 echo "$as_me:$LINENO: checking size of long long" >&5
5261 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5262 if test "${ac_cv_sizeof_long_long+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 if test "$ac_cv_type_long_long" = yes; then
5266 # The cast to unsigned long works around a bug in the HP C Compiler
5267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5269 # This bug is HP SR number 8606223364.
5270 if test "$cross_compiling" = yes; then
5271 # Depending upon the size, compute the lo and hi bounds.
5272 cat >conftest.
$ac_ext <<_ACEOF
5275 cat confdefs.h
>>conftest.
$ac_ext
5276 cat >>conftest.
$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5282 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5289 rm -f conftest.
$ac_objext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291 (eval $ac_compile) 2>conftest.er1
5293 grep -v '^ *+' conftest.er1
>conftest.err
5295 cat conftest.err
>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try
='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try
='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5313 cat >conftest.
$ac_ext <<_ACEOF
5316 cat confdefs.h
>>conftest.
$ac_ext
5317 cat >>conftest.
$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 $ac_includes_default
5323 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5330 rm -f conftest.
$ac_objext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332 (eval $ac_compile) 2>conftest.er1
5334 grep -v '^ *+' conftest.er1
>conftest.err
5336 cat conftest.err
>&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try
='test -z "$ac_c_werror_flag"
5340 || test ! -s conftest.err'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; } &&
5346 { ac_try
='test -s conftest.$ac_objext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_hi
=$ac_mid; break
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.
$ac_ext >&5
5357 ac_lo
=`expr $ac_mid + 1`
5358 if test $ac_lo -le $ac_mid; then
5362 ac_mid
=`expr 2 '*' $ac_mid + 1`
5364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.
$ac_ext >&5
5370 cat >conftest.
$ac_ext <<_ACEOF
5373 cat confdefs.h
>>conftest.
$ac_ext
5374 cat >>conftest.
$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5387 rm -f conftest.
$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5391 grep -v '^ *+' conftest.er1
>conftest.err
5393 cat conftest.err
>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try
='test -z "$ac_c_werror_flag"
5397 || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try
='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5411 cat >conftest.
$ac_ext <<_ACEOF
5414 cat confdefs.h
>>conftest.
$ac_ext
5415 cat >>conftest.
$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 $ac_includes_default
5421 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5428 rm -f conftest.
$ac_objext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>conftest.er1
5432 grep -v '^ *+' conftest.er1
>conftest.err
5434 cat conftest.err
>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try
='test -z "$ac_c_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try
='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_lo
=$ac_mid; break
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.
$ac_ext >&5
5455 ac_hi
=`expr '(' $ac_mid ')' - 1`
5456 if test $ac_mid -le $ac_hi; then
5460 ac_mid
=`expr 2 '*' $ac_mid`
5462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.
$ac_ext >&5
5470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5472 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5473 # Binary search between lo and hi bounds.
5474 while test "x$ac_lo" != "x$ac_hi"; do
5475 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5476 cat >conftest.
$ac_ext <<_ACEOF
5479 cat confdefs.h
>>conftest.
$ac_ext
5480 cat >>conftest.
$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5486 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5493 rm -f conftest.
$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495 (eval $ac_compile) 2>conftest.er1
5497 grep -v '^ *+' conftest.er1
>conftest.err
5499 cat conftest.err
>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try
='test -z "$ac_c_werror_flag"
5503 || test ! -s conftest.err'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try
='test -s conftest.$ac_objext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.
$ac_ext >&5
5520 ac_lo
=`expr '(' $ac_mid ')' + 1`
5522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5525 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5527 See \`config.log' for more details." >&5
5528 echo "$as_me: error: cannot compute sizeof (long long), 77
5529 See \`config.log' for more details." >&2;}
5530 { (exit 1); exit 1; }; } ;;
5533 if test "$cross_compiling" = yes; then
5534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5535 See \`config.log' for more details." >&5
5536 echo "$as_me: error: cannot run test program while cross compiling
5537 See \`config.log' for more details." >&2;}
5538 { (exit 1); exit 1; }; }
5540 cat >conftest.
$ac_ext <<_ACEOF
5543 cat confdefs.h
>>conftest.
$ac_ext
5544 cat >>conftest.
$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 $ac_includes_default
5547 long longval () { return (long) (sizeof (long long)); }
5548 unsigned long ulongval () { return (long) (sizeof (long long)); }
5555 FILE *f = fopen ("conftest.val", "w");
5558 if (((long) (sizeof (long long))) < 0)
5560 long i = longval ();
5561 if (i != ((long) (sizeof (long long))))
5563 fprintf (f, "%ld\n", i);
5567 unsigned long i = ulongval ();
5568 if (i != ((long) (sizeof (long long))))
5570 fprintf (f, "%lu\n", i);
5572 exit (ferror (f) || fclose (f) != 0);
5578 rm -f conftest
$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_cv_sizeof_long_long
=`cat conftest.val`
5591 echo "$as_me: program exited with status $ac_status" >&5
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.
$ac_ext >&5
5596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5597 See \`config.log' for more details." >&5
5598 echo "$as_me: error: cannot compute sizeof (long long), 77
5599 See \`config.log' for more details." >&2;}
5600 { (exit 1); exit 1; }; }
5602 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5607 ac_cv_sizeof_long_long
=0
5610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5611 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5612 cat >>confdefs.h
<<_ACEOF
5613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5619 echo "$as_me:$LINENO: checking for __int64" >&5
5620 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5621 if test "${ac_cv_type___int64+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 cat >conftest.
$ac_ext <<_ACEOF
5627 cat confdefs.h
>>conftest.
$ac_ext
5628 cat >>conftest.
$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 $ac_includes_default
5636 if (sizeof (__int64))
5642 rm -f conftest.
$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>conftest.er1
5646 grep -v '^ *+' conftest.er1
>conftest.err
5648 cat conftest.err
>&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try
='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try
='test -s conftest.$ac_objext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 ac_cv_type___int64
=yes
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.
$ac_ext >&5
5669 ac_cv_type___int64
=no
5671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5673 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5674 echo "${ECHO_T}$ac_cv_type___int64" >&6
5675 if test $ac_cv_type___int64 = yes; then
5677 cat >>confdefs.h
<<_ACEOF
5678 #define HAVE___INT64 1
5681 echo "$as_me:$LINENO: checking for __int64" >&5
5682 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5683 if test "${ac_cv_type___int64+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 cat >conftest.
$ac_ext <<_ACEOF
5689 cat confdefs.h
>>conftest.
$ac_ext
5690 cat >>conftest.
$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5698 if (sizeof (__int64))
5704 rm -f conftest.
$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>conftest.er1
5708 grep -v '^ *+' conftest.er1
>conftest.err
5710 cat conftest.err
>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try
='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try
='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_cv_type___int64
=yes
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.
$ac_ext >&5
5731 ac_cv_type___int64
=no
5733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5735 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5736 echo "${ECHO_T}$ac_cv_type___int64" >&6
5738 echo "$as_me:$LINENO: checking size of __int64" >&5
5739 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5740 if test "${ac_cv_sizeof___int64+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 if test "$ac_cv_type___int64" = yes; then
5744 # The cast to unsigned long works around a bug in the HP C Compiler
5745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5747 # This bug is HP SR number 8606223364.
5748 if test "$cross_compiling" = yes; then
5749 # Depending upon the size, compute the lo and hi bounds.
5750 cat >conftest.
$ac_ext <<_ACEOF
5753 cat confdefs.h
>>conftest.
$ac_ext
5754 cat >>conftest.
$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5760 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5767 rm -f conftest.
$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1
>conftest.err
5773 cat conftest.err
>&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try
='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try
='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5791 cat >conftest.
$ac_ext <<_ACEOF
5794 cat confdefs.h
>>conftest.
$ac_ext
5795 cat >>conftest.
$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 $ac_includes_default
5801 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5808 rm -f conftest.
$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5812 grep -v '^ *+' conftest.er1
>conftest.err
5814 cat conftest.err
>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try
='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try
='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_hi
=$ac_mid; break
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.
$ac_ext >&5
5835 ac_lo
=`expr $ac_mid + 1`
5836 if test $ac_lo -le $ac_mid; then
5840 ac_mid
=`expr 2 '*' $ac_mid + 1`
5842 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.
$ac_ext >&5
5848 cat >conftest.
$ac_ext <<_ACEOF
5851 cat confdefs.h
>>conftest.
$ac_ext
5852 cat >>conftest.
$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5858 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5865 rm -f conftest.
$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5869 grep -v '^ *+' conftest.er1
>conftest.err
5871 cat conftest.err
>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try
='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try
='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5889 cat >conftest.
$ac_ext <<_ACEOF
5892 cat confdefs.h
>>conftest.
$ac_ext
5893 cat >>conftest.
$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5899 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5906 rm -f conftest.
$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>conftest.er1
5910 grep -v '^ *+' conftest.er1
>conftest.err
5912 cat conftest.err
>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try
='test -z "$ac_c_werror_flag"
5916 || test ! -s conftest.err'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try
='test -s conftest.$ac_objext'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5928 ac_lo
=$ac_mid; break
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.
$ac_ext >&5
5933 ac_hi
=`expr '(' $ac_mid ')' - 1`
5934 if test $ac_mid -le $ac_hi; then
5938 ac_mid
=`expr 2 '*' $ac_mid`
5940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.
$ac_ext >&5
5948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5951 # Binary search between lo and hi bounds.
5952 while test "x$ac_lo" != "x$ac_hi"; do
5953 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5954 cat >conftest.
$ac_ext <<_ACEOF
5957 cat confdefs.h
>>conftest.
$ac_ext
5958 cat >>conftest.
$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5964 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5971 rm -f conftest.
$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5975 grep -v '^ *+' conftest.er1
>conftest.err
5977 cat conftest.err
>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try
='test -z "$ac_c_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try
='test -s conftest.$ac_objext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.
$ac_ext >&5
5998 ac_lo
=`expr '(' $ac_mid ')' + 1`
6000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6003 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6005 See \`config.log' for more details." >&5
6006 echo "$as_me: error: cannot compute sizeof (__int64), 77
6007 See \`config.log' for more details." >&2;}
6008 { (exit 1); exit 1; }; } ;;
6011 if test "$cross_compiling" = yes; then
6012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6013 See \`config.log' for more details." >&5
6014 echo "$as_me: error: cannot run test program while cross compiling
6015 See \`config.log' for more details." >&2;}
6016 { (exit 1); exit 1; }; }
6018 cat >conftest.
$ac_ext <<_ACEOF
6021 cat confdefs.h
>>conftest.
$ac_ext
6022 cat >>conftest.
$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 $ac_includes_default
6025 long longval () { return (long) (sizeof (__int64)); }
6026 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6033 FILE *f = fopen ("conftest.val", "w");
6036 if (((long) (sizeof (__int64))) < 0)
6038 long i = longval ();
6039 if (i != ((long) (sizeof (__int64))))
6041 fprintf (f, "%ld\n", i);
6045 unsigned long i = ulongval ();
6046 if (i != ((long) (sizeof (__int64))))
6048 fprintf (f, "%lu\n", i);
6050 exit (ferror (f) || fclose (f) != 0);
6056 rm -f conftest
$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_sizeof___int64
=`cat conftest.val`
6069 echo "$as_me: program exited with status $ac_status" >&5
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.
$ac_ext >&5
6074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6075 See \`config.log' for more details." >&5
6076 echo "$as_me: error: cannot compute sizeof (__int64), 77
6077 See \`config.log' for more details." >&2;}
6078 { (exit 1); exit 1; }; }
6080 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6085 ac_cv_sizeof___int64
=0
6088 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6089 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6090 cat >>confdefs.h
<<_ACEOF
6091 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6098 # ---------------------
6099 # Warnings and checking
6100 # ---------------------
6102 # Check $CC warning features (if it's GCC).
6103 # We want to use -pedantic, but we don't want warnings about
6106 # * overlong strings
6107 # So, we only use -pedantic if we can disable those warnings.
6110 save_CFLAGS
="$CFLAGS"
6111 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6112 -Wmissing-prototypes; do
6113 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6115 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6116 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6117 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 cat >conftest.
$ac_ext <<_ACEOF
6124 cat confdefs.h
>>conftest.
$ac_ext
6125 cat >>conftest.
$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6136 rm -f conftest.
$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6140 grep -v '^ *+' conftest.er1
>conftest.err
6142 cat conftest.err
>&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try
='test -z "$ac_c_werror_flag"
6146 || 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 eval "$as_acx_Woption=yes"
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.
$ac_ext >&5
6163 eval "$as_acx_Woption=no"
6165 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6168 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6169 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6170 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6171 loose_warn
="$loose_warn${loose_warn:+ }$option"
6175 CFLAGS
="$save_CFLAGS"
6178 save_CFLAGS
="$CFLAGS"
6179 for option
in -Wc++-compat; do
6180 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6182 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6183 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6184 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 cat >conftest.
$ac_ext <<_ACEOF
6191 cat confdefs.h
>>conftest.
$ac_ext
6192 cat >>conftest.
$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6203 rm -f conftest.
$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6207 grep -v '^ *+' conftest.er1
>conftest.err
6209 cat conftest.err
>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try
='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try
='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 eval "$as_acx_Woption=yes"
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.
$ac_ext >&5
6230 eval "$as_acx_Woption=no"
6232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6235 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6236 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6237 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6238 cxx_compat_warn
="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6242 CFLAGS
="$save_CFLAGS"
6245 save_CFLAGS
="$CFLAGS"
6246 for option
in -Wold-style-definition \
6247 -Wmissing-format-attribute; do
6248 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6250 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6251 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6252 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 cat >conftest.
$ac_ext <<_ACEOF
6259 cat confdefs.h
>>conftest.
$ac_ext
6260 cat >>conftest.
$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6271 rm -f conftest.
$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6275 grep -v '^ *+' conftest.er1
>conftest.err
6277 cat conftest.err
>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try
='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try
='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 eval "$as_acx_Woption=yes"
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.
$ac_ext >&5
6298 eval "$as_acx_Woption=no"
6300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6303 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6304 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6305 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6306 strict_warn
="$strict_warn${strict_warn:+ }$option"
6310 CFLAGS
="$save_CFLAGS"
6312 if test "$GCC" = yes; then
6313 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6314 -Wno-overlength-strings" >&5
6315 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6316 -Wno-overlength-strings... $ECHO_C" >&6
6317 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 save_CFLAGS
="$CFLAGS"
6321 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros \
6322 -Wno-overlength-strings"
6323 cat >conftest.
$ac_ext <<_ACEOF
6326 cat confdefs.h
>>conftest.
$ac_ext
6327 cat >>conftest.
$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6338 rm -f conftest.
$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6342 grep -v '^ *+' conftest.er1
>conftest.err
6344 cat conftest.err
>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try
='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try
='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=yes
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.
$ac_ext >&5
6365 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=no
6367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6368 CFLAGS
="$save_CFLAGS"
6370 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6371 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6372 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6373 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6374 -Wno-overlength-strings"
6381 # Check whether --enable-werror-always or --disable-werror-always was given.
6382 if test "${enable_werror_always+set}" = set; then
6383 enableval
="$enable_werror_always"
6386 enable_werror_always
=no
6388 if test $enable_werror_always = yes; then
6389 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6395 # The above macros do nothing if the compiler is not GCC. However, the
6396 # Makefile has more goo to add other flags, so this variabl is used to
6397 # enables warnings only for GCC.
6399 if test "x$GCC" = "xyes"; then
6400 warn_cflags
='$(GCC_WARN_CFLAGS)'
6404 # Enable expensive internal checks
6406 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6410 # Check whether --enable-checking or --disable-checking was given.
6411 if test "${enable_checking+set}" = set; then
6412 enableval
="$enable_checking"
6413 ac_checking_flags
="${enableval}"
6416 # Determine the default checks.
6417 if test x
$is_release = x
; then
6418 ac_checking_flags
=yes
6420 ac_checking_flags
=release
6423 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6424 for check
in $ac_checking_flags
6427 # these set all the flags to specific states
6428 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6429 ac_fold_checking
= ; ac_gc_checking
=1 ;
6430 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6431 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6432 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6433 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6434 ac_fold_checking
= ; ac_gc_checking
= ;
6435 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6436 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6437 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6438 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6439 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6440 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6441 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6442 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6443 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6444 ac_fold_checking
= ; ac_gc_checking
= ;
6445 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6446 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6447 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6448 # these enable particular checks
6449 assert
) ac_assert_checking
=1 ;;
6450 df
) ac_df_checking
=1 ;;
6451 fold) ac_fold_checking
=1 ;;
6452 gc
) ac_gc_checking
=1 ;;
6453 gcac
) ac_gc_always_collect
=1 ;;
6454 misc
) ac_checking
=1 ;;
6455 rtl
) ac_rtl_checking
=1 ;;
6456 rtlflag
) ac_rtlflag_checking
=1 ;;
6457 runtime
) ac_runtime_checking
=1 ;;
6458 tree
) ac_tree_checking
=1 ;;
6459 valgrind
) ac_valgrind_checking
=1 ;;
6460 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6461 echo "$as_me: error: unknown check category $check" >&2;}
6462 { (exit 1); exit 1; }; } ;;
6468 if test x
$ac_checking != x
; then
6470 cat >>confdefs.h
<<\_ACEOF
6471 #define ENABLE_CHECKING 1
6474 nocommon_flag
=-fno-common
6477 if test x
$ac_df_checking != x
; then
6479 cat >>confdefs.h
<<\_ACEOF
6480 #define ENABLE_DF_CHECKING 1
6484 if test x
$ac_assert_checking != x
; then
6486 cat >>confdefs.h
<<\_ACEOF
6487 #define ENABLE_ASSERT_CHECKING 1
6492 if test x
$ac_runtime_checking != x
; then
6494 cat >>confdefs.h
<<\_ACEOF
6495 #define ENABLE_RUNTIME_CHECKING 1
6499 if test x
$ac_tree_checking != x
; then
6501 cat >>confdefs.h
<<\_ACEOF
6502 #define ENABLE_TREE_CHECKING 1
6505 TREEBROWSER
=tree-browser.o
6508 if test x
$ac_rtl_checking != x
; then
6510 cat >>confdefs.h
<<\_ACEOF
6511 #define ENABLE_RTL_CHECKING 1
6515 if test x
$ac_rtlflag_checking != x
; then
6517 cat >>confdefs.h
<<\_ACEOF
6518 #define ENABLE_RTL_FLAG_CHECKING 1
6522 if test x
$ac_gc_checking != x
; then
6524 cat >>confdefs.h
<<\_ACEOF
6525 #define ENABLE_GC_CHECKING 1
6529 if test x
$ac_gc_always_collect != x
; then
6531 cat >>confdefs.h
<<\_ACEOF
6532 #define ENABLE_GC_ALWAYS_COLLECT 1
6536 if test x
$ac_fold_checking != x
; then
6538 cat >>confdefs.h
<<\_ACEOF
6539 #define ENABLE_FOLD_CHECKING 1
6543 valgrind_path_defines
=
6546 if test "${ac_cv_header_valgrind_h+set}" = set; then
6547 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6548 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6549 if test "${ac_cv_header_valgrind_h+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6553 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6555 # Is the header compilable?
6556 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6557 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6558 cat >conftest.
$ac_ext <<_ACEOF
6561 cat confdefs.h
>>conftest.
$ac_ext
6562 cat >>conftest.
$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 $ac_includes_default
6565 #include <valgrind.h>
6567 rm -f conftest.
$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569 (eval $ac_compile) 2>conftest.er1
6571 grep -v '^ *+' conftest.er1
>conftest.err
6573 cat conftest.err
>&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try
='test -z "$ac_c_werror_flag"
6577 || test ! -s conftest.err'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; } &&
6583 { ac_try
='test -s conftest.$ac_objext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_header_compiler
=yes
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.
$ac_ext >&5
6594 ac_header_compiler
=no
6596 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6598 echo "${ECHO_T}$ac_header_compiler" >&6
6600 # Is the header present?
6601 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6602 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6603 cat >conftest.
$ac_ext <<_ACEOF
6606 cat confdefs.h
>>conftest.
$ac_ext
6607 cat >>conftest.
$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 #include <valgrind.h>
6611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6612 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6614 grep -v '^ *+' conftest.er1
>conftest.err
6616 cat conftest.err
>&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } >/dev
/null
; then
6619 if test -s conftest.err
; then
6620 ac_cpp_err
=$ac_c_preproc_warn_flag
6621 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6628 if test -z "$ac_cpp_err"; then
6629 ac_header_preproc
=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.
$ac_ext >&5
6634 ac_header_preproc
=no
6636 rm -f conftest.err conftest.
$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 echo "${ECHO_T}$ac_header_preproc" >&6
6640 # So? What about this header?
6641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6643 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6644 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6646 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6647 ac_header_preproc
=yes
6650 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6651 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6653 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6655 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6657 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6658 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6659 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6661 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6664 ## ------------------------------------------ ##
6665 ## Report this to the AC_PACKAGE_NAME lists. ##
6666 ## ------------------------------------------ ##
6669 sed "s/^/$as_me: WARNING: /" >&2
6672 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6673 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6674 if test "${ac_cv_header_valgrind_h+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 ac_cv_header_valgrind_h
=$ac_header_preproc
6679 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6680 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6683 if test $ac_cv_header_valgrind_h = yes; then
6691 if test x
$ac_valgrind_checking != x
; then
6692 # It is certainly possible that there's valgrind but no valgrind.h.
6693 # GCC relies on making annotations so we must have both.
6694 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6695 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6696 cat >conftest.
$ac_ext <<_ACEOF
6699 cat confdefs.h
>>conftest.
$ac_ext
6700 cat >>conftest.
$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 #include <valgrind/memcheck.h>
6703 #ifndef VALGRIND_DISCARD
6704 #error VALGRIND_DISCARD not defined
6707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6708 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6710 grep -v '^ *+' conftest.er1
>conftest.err
6712 cat conftest.err
>&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } >/dev
/null
; then
6715 if test -s conftest.err
; then
6716 ac_cpp_err
=$ac_c_preproc_warn_flag
6717 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6724 if test -z "$ac_cpp_err"; then
6725 gcc_cv_header_valgrind_memcheck_h
=yes
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.
$ac_ext >&5
6730 gcc_cv_header_valgrind_memcheck_h
=no
6732 rm -f conftest.err conftest.
$ac_ext
6733 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6734 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6735 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6736 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6737 cat >conftest.
$ac_ext <<_ACEOF
6740 cat confdefs.h
>>conftest.
$ac_ext
6741 cat >>conftest.
$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <memcheck.h>
6744 #ifndef VALGRIND_DISCARD
6745 #error VALGRIND_DISCARD not defined
6748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6751 grep -v '^ *+' conftest.er1
>conftest.err
6753 cat conftest.err
>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } >/dev
/null
; then
6756 if test -s conftest.err
; then
6757 ac_cpp_err
=$ac_c_preproc_warn_flag
6758 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6765 if test -z "$ac_cpp_err"; then
6766 gcc_cv_header_memcheck_h
=yes
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.
$ac_ext >&5
6771 gcc_cv_header_memcheck_h
=no
6773 rm -f conftest.err conftest.
$ac_ext
6774 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6775 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6777 # Prepare PATH_SEPARATOR.
6778 # The user is always right.
6779 if test "${PATH_SEPARATOR+set}" != set; then
6780 echo "#! /bin/sh" >conf$$.sh
6781 echo "exit 0" >>conf$$.sh
6783 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6791 # Find out how to test for executable files. Don't use a zero-byte file,
6792 # as systems may use methods other than mode bits to determine executability.
6793 cat >conf$$.
file <<_ASEOF
6797 chmod +x conf$$.
file
6798 if test -x conf$$.
file >/dev
/null
2>&1; then
6799 ac_executable_p
="test -x"
6801 ac_executable_p
="test -f"
6805 # Extract the first word of "valgrind", so it can be a program name with args.
6806 set dummy valgrind
; ac_word
=$2
6807 echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6809 if test "${ac_cv_path_valgrind_path+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 case "$valgrind_path" in
6814 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6817 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6818 for ac_dir
in $PATH; do
6820 test -z "$ac_dir" && ac_dir
=.
6821 for ac_exec_ext
in '' $ac_executable_extensions; do
6822 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6823 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6824 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6834 valgrind_path
="$ac_cv_path_valgrind_path"
6835 if test -n "$valgrind_path"; then
6836 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6837 echo "${ECHO_T}$valgrind_path" >&6
6839 echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6
6843 if test "x$valgrind_path" = "x" \
6844 ||
(test $have_valgrind_h = no \
6845 && test $gcc_cv_header_memcheck_h = no \
6846 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6847 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6848 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6849 { (exit 1); exit 1; }; }
6851 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6852 valgrind_command
="$valgrind_path -q"
6854 cat >>confdefs.h
<<\_ACEOF
6855 #define ENABLE_VALGRIND_CHECKING 1
6858 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6860 cat >>confdefs.h
<<\_ACEOF
6861 #define HAVE_VALGRIND_MEMCHECK_H 1
6865 if test $gcc_cv_header_memcheck_h = yes; then
6867 cat >>confdefs.h
<<\_ACEOF
6868 #define HAVE_MEMCHECK_H 1
6876 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6877 if test "${enable_mapped_location+set}" = set; then
6878 enableval
="$enable_mapped_location"
6881 enable_mapped_location
=no
6884 if test "$enable_mapped_location" = yes ; then
6886 cat >>confdefs.h
<<\_ACEOF
6887 #define USE_MAPPED_LOCATION 1
6892 # Enable code coverage collection
6893 # Check whether --enable-coverage or --disable-coverage was given.
6894 if test "${enable_coverage+set}" = set; then
6895 enableval
="$enable_coverage"
6896 case "${enableval}" in
6898 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6901 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6904 # a.k.a. --disable-coverage
6908 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6909 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6910 { (exit 1); exit 1; }; }
6918 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6919 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6920 enableval
="$enable_gather_detailed_mem_stats"
6923 enable_gather_detailed_mem_stats
=no
6925 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6927 cat >>confdefs.h
<<\_ACEOF
6928 #define GATHER_STATISTICS 1
6933 # -------------------------------
6934 # Miscenalleous configure options
6935 # -------------------------------
6939 # Check whether --with-stabs or --without-stabs was given.
6940 if test "${with_stabs+set}" = set; then
6941 withval
="$with_stabs"
6947 # Determine whether or not multilibs are enabled.
6948 # Check whether --enable-multilib or --disable-multilib was given.
6949 if test "${enable_multilib+set}" = set; then
6950 enableval
="$enable_multilib"
6957 # Enable __cxa_atexit for C++.
6958 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6959 if test "${enable___cxa_atexit+set}" = set; then
6960 enableval
="$enable___cxa_atexit"
6964 # Enable C extension for decimal float if target supports it.
6965 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6966 if test "${enable_decimal_float+set}" = set; then
6967 enableval
="$enable_decimal_float"
6969 case $enable_decimal_float in
6970 yes | no | bid | dpd
) ;;
6971 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6972 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
6973 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6974 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
6975 { (exit 1); exit 1; }; } ;;
6981 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
6982 enable_decimal_float
=yes
6985 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6986 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6987 enable_decimal_float
=no
6993 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6995 cat >>confdefs.h
<<_ACEOF
6996 #define ENABLE_DECIMAL_FLOAT $dfp
7000 # x86's use BID format instead of DPD
7001 case x
$enable_decimal_float in
7004 i?
86*-*-linux* | x86_64
*-*-linux*)
7005 enable_decimal_float
=bid
7008 enable_decimal_float
=dpd
7013 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7014 # dependency on libdecnumber.
7015 enable_decimal_float
=dpd
7020 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7022 cat >>confdefs.h
<<_ACEOF
7023 #define ENABLE_DECIMAL_BID_FORMAT $bid
7028 # Pass with no value to take the default
7029 # Pass with a value to specify a thread package
7030 # Check whether --enable-threads or --disable-threads was given.
7031 if test "${enable_threads+set}" = set; then
7032 enableval
="$enable_threads"
7038 # Check whether --enable-tls or --disable-tls was given.
7039 if test "${enable_tls+set}" = set; then
7040 enableval
="$enable_tls"
7044 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7045 Valid choices are 'yes' and 'no'." >&5
7046 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7047 Valid choices are 'yes' and 'no'." >&2;}
7048 { (exit 1); exit 1; }; } ;;
7055 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7056 if test "${enable_objc_gc+set}" = set; then
7057 enableval
="$enable_objc_gc"
7058 if test x
$enable_objc_gc = xno
; then
7068 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7069 if test "${with_dwarf2+set}" = set; then
7070 withval
="$with_dwarf2"
7071 dwarf2
="$with_dwarf2"
7076 # Check whether --enable-shared or --disable-shared was given.
7077 if test "${enable_shared+set}" = set; then
7078 enableval
="$enable_shared"
7080 case $enable_shared in
7084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7085 for pkg
in $enableval; do
7086 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7100 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7101 if test "${with_build_sysroot+set}" = set; then
7102 withval
="$with_build_sysroot"
7107 # Check whether --with-sysroot or --without-sysroot was given.
7108 if test "${with_sysroot+set}" = set; then
7109 withval
="$with_sysroot"
7111 case ${with_sysroot} in
7112 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7113 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7116 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7117 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7119 if test "x$prefix" = xNONE
; then
7120 test_prefix
=/usr
/local
7124 if test "x$exec_prefix" = xNONE
; then
7125 test_exec_prefix
=$test_prefix
7127 test_exec_prefix
=$exec_prefix
7129 case ${TARGET_SYSTEM_ROOT} in
7130 "${test_prefix}"|
"${test_prefix}/"*|\
7131 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7132 '${prefix}'|
'${prefix}/'*|\
7133 '${exec_prefix}'|
'${exec_prefix}/'*)
7134 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7135 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7142 TARGET_SYSTEM_ROOT_DEFINE
=
7143 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7150 # Build with intermodule optimisations
7151 # Check whether --enable-intermodule or --disable-intermodule was given.
7152 if test "${enable_intermodule+set}" = set; then
7153 enableval
="$enable_intermodule"
7154 case ${enable_intermodule} in
7155 yes) onestep
="-onestep";;
7163 # Sanity check enable_languages in case someone does not run the toplevel
7164 # configure # script.
7165 # Check whether --enable-languages or --disable-languages was given.
7166 if test "${enable_languages+set}" = set; then
7167 enableval
="$enable_languages"
7168 case ,${enable_languages}, in
7170 # go safe -- we cannot be much sure without the toplevel
7172 # analysis of which target libs are present and usable
7176 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7177 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7178 { (exit 1); exit 1; }; }
7183 enable_languages
=c
,${enable_languages}
7190 # Used by documentation targets
7195 # -------------------------
7196 # Checks for other programs
7197 # -------------------------
7199 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7200 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7201 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7202 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cat >conftest.
make <<\_ACEOF
7207 @
echo 'ac_maketemp="$(MAKE)"'
7209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7210 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7211 if test -n "$ac_maketemp"; then
7212 eval ac_cv_prog_make_
${ac_make}_set
=yes
7214 eval ac_cv_prog_make_
${ac_make}_set
=no
7218 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7219 echo "$as_me:$LINENO: result: yes" >&5
7220 echo "${ECHO_T}yes" >&6
7223 echo "$as_me:$LINENO: result: no" >&5
7224 echo "${ECHO_T}no" >&6
7225 SET_MAKE
="MAKE=${MAKE-make}"
7229 # Find some useful tools
7230 for ac_prog
in gawk mawk nawk
awk
7232 # Extract the first word of "$ac_prog", so it can be a program name with args.
7233 set dummy
$ac_prog; ac_word
=$2
7234 echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7236 if test "${ac_cv_prog_AWK+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 if test -n "$AWK"; then
7240 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7246 test -z "$as_dir" && as_dir
=.
7247 for ac_exec_ext
in '' $ac_executable_extensions; do
7248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249 ac_cv_prog_AWK
="$ac_prog"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 if test -n "$AWK"; then
7260 echo "$as_me:$LINENO: result: $AWK" >&5
7261 echo "${ECHO_T}$AWK" >&6
7263 echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6
7267 test -n "$AWK" && break
7270 # We need awk to create options.c and options.h.
7271 # Bail out if it's missing.
7273 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7274 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7275 { (exit 1); exit 1; }; } ;;
7278 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7279 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7280 if test "${gcc_cv_prog_LN_S+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 rm -f conftestdata_t
7284 echo >conftestdata_f
7285 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7287 gcc_cv_prog_LN_S
="ln -s"
7289 if ln conftestdata_f conftestdata_t
2>/dev
/null
7293 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7295 gcc_cv_prog_LN_S
="cp -p"
7301 rm -f conftestdata_f conftestdata_t
7304 LN_S
="$gcc_cv_prog_LN_S"
7305 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7306 echo "$as_me:$LINENO: result: yes" >&5
7307 echo "${ECHO_T}yes" >&6
7309 if test "$gcc_cv_prog_LN_S" = "ln"; then
7310 echo "$as_me:$LINENO: result: no, using ln" >&5
7311 echo "${ECHO_T}no, using ln" >&6
7313 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7314 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7318 echo "$as_me:$LINENO: checking whether ln works" >&5
7319 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7320 if test "${acx_cv_prog_LN+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 rm -f conftestdata_t
7324 echo >conftestdata_f
7325 if ln conftestdata_f conftestdata_t
2>/dev
/null
7331 rm -f conftestdata_f conftestdata_t
7334 if test $acx_cv_prog_LN = no
; then
7336 echo "$as_me:$LINENO: result: no, using $LN" >&5
7337 echo "${ECHO_T}no, using $LN" >&6
7339 LN
="$acx_cv_prog_LN"
7340 echo "$as_me:$LINENO: result: yes" >&5
7341 echo "${ECHO_T}yes" >&6
7344 if test -n "$ac_tool_prefix"; then
7345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7346 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7347 echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7349 if test "${ac_cv_prog_RANLIB+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 if test -n "$RANLIB"; then
7353 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir
=.
7360 for ac_exec_ext
in '' $ac_executable_extensions; do
7361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 RANLIB
=$ac_cv_prog_RANLIB
7372 if test -n "$RANLIB"; then
7373 echo "$as_me:$LINENO: result: $RANLIB" >&5
7374 echo "${ECHO_T}$RANLIB" >&6
7376 echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7381 if test -z "$ac_cv_prog_RANLIB"; then
7382 ac_ct_RANLIB
=$RANLIB
7383 # Extract the first word of "ranlib", so it can be a program name with args.
7384 set dummy ranlib
; ac_word
=$2
7385 echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 if test -n "$ac_ct_RANLIB"; then
7391 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir
=.
7398 for ac_exec_ext
in '' $ac_executable_extensions; do
7399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7410 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7411 if test -n "$ac_ct_RANLIB"; then
7412 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7413 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7415 echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6
7419 RANLIB
=$ac_ct_RANLIB
7421 RANLIB
="$ac_cv_prog_RANLIB"
7426 # By default, the Darwin ranlib will not treat common symbols as
7427 # definitions when building the archive table of contents. Other
7428 # ranlibs do that; pass an option to the Darwin ranlib that makes
7429 # it behave similarly.
7437 # Find a good install program. We prefer a C program (faster),
7438 # so one script is as good as another. But avoid the broken or
7439 # incompatible versions:
7440 # SysV /etc/install, /usr/sbin/install
7441 # SunOS /usr/etc/install
7442 # IRIX /sbin/install
7444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7446 # ./install, which can be erroneously created by make from ./install.sh.
7447 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7448 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7449 if test -z "$INSTALL"; then
7450 if test "${ac_cv_path_install+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7454 for ac_dir
in $PATH; do
7455 # Account for people who put trailing slashes in PATH elements.
7457 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7459 # OSF1 and SCO ODT 3.0 have their own names for install.
7460 for ac_prog
in ginstall scoinst
install; do
7461 if test -f $ac_dir/$ac_prog; then
7462 if test $ac_prog = install &&
7463 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7464 # AIX install. It has an incompatible calling convention.
7465 # OSF/1 installbsd also uses dspmsg, but is usable.
7468 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7479 if test "${ac_cv_path_install+set}" = set; then
7480 INSTALL
="$ac_cv_path_install"
7482 # As a last resort, use the slow shell script. We don't cache a
7483 # path for INSTALL within a source directory, because that will
7484 # break other packages using the cache if that directory is
7485 # removed, or if the path is relative.
7486 INSTALL
="$ac_install_sh"
7489 echo "$as_me:$LINENO: result: $INSTALL" >&5
7490 echo "${ECHO_T}$INSTALL" >&6
7492 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7493 # It thinks the first close brace ends the variable substitution.
7494 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7496 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7499 # See if cmp has --ignore-initial.
7500 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7501 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7502 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 gcc_cv_prog_cmp_skip
=slowcompare
7508 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7509 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7512 gcc_cv_prog_cmp_skip
=gnucompare
7515 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7516 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7517 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7520 gcc_cv_prog_cmp_skip
=fastcompare
7527 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7528 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7529 make_compare_target
=$gcc_cv_prog_cmp_skip
7533 # See if we have the mktemp command.
7534 # Extract the first word of "mktemp", so it can be a program name with args.
7535 set dummy mktemp
; ac_word
=$2
7536 echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7538 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 if test -n "$have_mktemp_command"; then
7542 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir
=.
7549 for ac_exec_ext
in '' $ac_executable_extensions; do
7550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_have_mktemp_command
="yes"
7552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7561 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7562 if test -n "$have_mktemp_command"; then
7563 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7564 echo "${ECHO_T}$have_mktemp_command" >&6
7566 echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6
7571 # See if makeinfo has been installed and is modern enough
7572 # that we can use it.
7574 # Extract the first word of "makeinfo", so it can be a program name with args.
7575 set dummy makeinfo
; ac_word
=$2
7576 echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7578 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 if test -n "$MAKEINFO"; then
7582 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir
=.
7589 for ac_exec_ext
in '' $ac_executable_extensions; do
7590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_MAKEINFO
="makeinfo"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 MAKEINFO
=$ac_cv_prog_MAKEINFO
7601 if test -n "$MAKEINFO"; then
7602 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7603 echo "${ECHO_T}$MAKEINFO" >&6
7605 echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6
7609 if test -n "$MAKEINFO"; then
7610 # Found it, now check the version.
7611 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7612 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7613 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7617 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7619 case $ac_prog_version in
7620 '') gcc_cv_prog_makeinfo_modern
=no
;;
7621 4.
[4-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7622 *) gcc_cv_prog_makeinfo_modern
=no
;;
7626 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7627 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7629 gcc_cv_prog_makeinfo_modern
=no
7631 if test $gcc_cv_prog_makeinfo_modern = no
; then
7632 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7635 if test $gcc_cv_prog_makeinfo_modern = no
; then
7636 { echo "$as_me:$LINENO: WARNING:
7637 *** Makeinfo is missing or too old.
7638 *** Info documentation will not be built." >&5
7639 echo "$as_me: WARNING:
7640 *** Makeinfo is missing or too old.
7641 *** Info documentation will not be built." >&2;}
7648 # Is pod2man recent enough to regenerate manpages?
7649 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7650 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7651 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7652 echo "$as_me:$LINENO: result: yes" >&5
7653 echo "${ECHO_T}yes" >&6
7654 GENERATED_MANPAGES
=generated-manpages
7656 echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7662 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy
$ac_prog; ac_word
=$2
7669 echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671 if test "${ac_cv_prog_FLEX+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 if test -n "$FLEX"; then
7675 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir
=.
7682 for ac_exec_ext
in '' $ac_executable_extensions; do
7683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_FLEX
="$ac_prog"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 FLEX
=$ac_cv_prog_FLEX
7694 if test -n "$FLEX"; then
7695 echo "$as_me:$LINENO: result: $FLEX" >&5
7696 echo "${ECHO_T}$FLEX" >&6
7698 echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6
7702 test -n "$FLEX" && break
7704 test -n "$FLEX" || FLEX
="$MISSING flex"
7708 for ac_prog
in bison
7710 # Extract the first word of "$ac_prog", so it can be a program name with args.
7711 set dummy
$ac_prog; ac_word
=$2
7712 echo "$as_me:$LINENO: checking for $ac_word" >&5
7713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7714 if test "${ac_cv_prog_BISON+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 if test -n "$BISON"; then
7718 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir
=.
7725 for ac_exec_ext
in '' $ac_executable_extensions; do
7726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_BISON
="$ac_prog"
7728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 BISON
=$ac_cv_prog_BISON
7737 if test -n "$BISON"; then
7738 echo "$as_me:$LINENO: result: $BISON" >&5
7739 echo "${ECHO_T}$BISON" >&6
7741 echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6
7745 test -n "$BISON" && break
7747 test -n "$BISON" || BISON
="$MISSING bison"
7750 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7751 # check for build == host before using them.
7754 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7755 && test -d ..
/binutils
; then
7756 NM
='$(objdir)/../binutils/nm-new'
7758 # Extract the first word of "nm", so it can be a program name with args.
7759 set dummy nm
; ac_word
=$2
7760 echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7762 if test "${ac_cv_prog_NM+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 if test -n "$NM"; then
7766 ac_cv_prog_NM
="$NM" # Let the user override the test.
7768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir
=.
7773 for ac_exec_ext
in '' $ac_executable_extensions; do
7774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7786 if test -n "$NM"; then
7787 echo "$as_me:$LINENO: result: $NM" >&5
7788 echo "${ECHO_T}$NM" >&6
7790 echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6
7797 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7798 && test -d ..
/binutils
; then
7799 AR
='$(objdir)/../binutils/ar'
7801 # Extract the first word of "ar", so it can be a program name with args.
7802 set dummy
ar; ac_word
=$2
7803 echo "$as_me:$LINENO: checking for $ac_word" >&5
7804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7805 if test "${ac_cv_prog_AR+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 if test -n "$AR"; then
7809 ac_cv_prog_AR
="$AR" # Let the user override the test.
7811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7815 test -z "$as_dir" && as_dir
=.
7816 for ac_exec_ext
in '' $ac_executable_extensions; do
7817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7829 if test -n "$AR"; then
7830 echo "$as_me:$LINENO: result: $AR" >&5
7831 echo "${ECHO_T}$AR" >&6
7833 echo "$as_me:$LINENO: result: no" >&5
7834 echo "${ECHO_T}no" >&6
7840 # --------------------
7841 # Checks for C headers
7842 # --------------------
7844 echo "$as_me:$LINENO: checking for GNU C library" >&5
7845 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7846 if test "${gcc_cv_glibc+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 cat >conftest.
$ac_ext <<_ACEOF
7852 cat confdefs.h
>>conftest.
$ac_ext
7853 cat >>conftest.
$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7855 #include <features.h>
7860 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7861 #error Not a GNU C library system
7867 rm -f conftest.
$ac_objext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869 (eval $ac_compile) 2>conftest.er1
7871 grep -v '^ *+' conftest.er1
>conftest.err
7873 cat conftest.err
>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try
='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try
='test -s conftest.$ac_objext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.
$ac_ext >&5
7896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7899 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7900 echo "${ECHO_T}$gcc_cv_glibc" >&6
7901 if test $gcc_cv_glibc = yes; then
7903 cat >>confdefs.h
<<\_ACEOF
7904 #define _GNU_SOURCE 1
7909 # Need to reject headers which give warnings, so that the -Werror bootstrap
7910 # works later. *sigh* This needs to come before all header checks.
7912 ac_c_preproc_warn_flag
=yes
7914 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7915 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7916 if test "${ac_cv_header_stdc+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 cat >conftest.
$ac_ext <<_ACEOF
7922 cat confdefs.h
>>conftest.
$ac_ext
7923 cat >>conftest.
$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7938 rm -f conftest.
$ac_objext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7940 (eval $ac_compile) 2>conftest.er1
7942 grep -v '^ *+' conftest.er1
>conftest.err
7944 cat conftest.err
>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try
='test -z "$ac_c_werror_flag"
7948 || test ! -s conftest.err'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; } &&
7954 { ac_try
='test -s conftest.$ac_objext'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7960 ac_cv_header_stdc
=yes
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.
$ac_ext >&5
7965 ac_cv_header_stdc
=no
7967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7969 if test $ac_cv_header_stdc = yes; then
7970 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7971 cat >conftest.
$ac_ext <<_ACEOF
7974 cat confdefs.h
>>conftest.
$ac_ext
7975 cat >>conftest.
$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7981 $EGREP "memchr" >/dev
/null
2>&1; then
7984 ac_cv_header_stdc
=no
7990 if test $ac_cv_header_stdc = yes; then
7991 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7992 cat >conftest.
$ac_ext <<_ACEOF
7995 cat confdefs.h
>>conftest.
$ac_ext
7996 cat >>conftest.
$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
8001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8002 $EGREP "free" >/dev
/null
2>&1; then
8005 ac_cv_header_stdc
=no
8011 if test $ac_cv_header_stdc = yes; then
8012 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8013 if test "$cross_compiling" = yes; then
8016 cat >conftest.
$ac_ext <<_ACEOF
8019 cat confdefs.h
>>conftest.
$ac_ext
8020 cat >>conftest.
$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8023 #if ((' ' & 0x0FF) == 0x020)
8024 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8025 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8027 # define ISLOWER(c) \
8028 (('a' <= (c) && (c) <= 'i') \
8029 || ('j' <= (c) && (c) <= 'r') \
8030 || ('s' <= (c) && (c) <= 'z'))
8031 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8034 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8039 for (i = 0; i < 256; i++)
8040 if (XOR (islower (i), ISLOWER (i))
8041 || toupper (i) != TOUPPER (i))
8046 rm -f conftest
$ac_exeext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8048 (eval $ac_link) 2>&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8059 echo "$as_me: program exited with status $ac_status" >&5
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.
$ac_ext >&5
8064 ac_cv_header_stdc
=no
8066 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8070 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8071 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8072 if test $ac_cv_header_stdc = yes; then
8074 cat >>confdefs.h
<<\_ACEOF
8075 #define STDC_HEADERS 1
8080 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8081 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8082 if test "${ac_cv_header_time+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 cat >conftest.
$ac_ext <<_ACEOF
8088 cat confdefs.h
>>conftest.
$ac_ext
8089 cat >>conftest.
$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <sys/types.h>
8092 #include <sys/time.h>
8098 if ((struct tm *) 0)
8104 rm -f conftest.
$ac_objext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8106 (eval $ac_compile) 2>conftest.er1
8108 grep -v '^ *+' conftest.er1
>conftest.err
8110 cat conftest.err
>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try
='test -z "$ac_c_werror_flag"
8114 || test ! -s conftest.err'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; } &&
8120 { ac_try
='test -s conftest.$ac_objext'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8126 ac_cv_header_time
=yes
8128 echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.
$ac_ext >&5
8131 ac_cv_header_time
=no
8133 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8135 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8136 echo "${ECHO_T}$ac_cv_header_time" >&6
8137 if test $ac_cv_header_time = yes; then
8139 cat >>confdefs.h
<<\_ACEOF
8140 #define TIME_WITH_SYS_TIME 1
8145 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8146 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8147 if test "${gcc_cv_header_string+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 cat >conftest.
$ac_ext <<_ACEOF
8153 cat confdefs.h
>>conftest.
$ac_ext
8154 cat >>conftest.
$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8157 #include <strings.h>
8166 rm -f conftest.
$ac_objext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168 (eval $ac_compile) 2>conftest.er1
8170 grep -v '^ *+' conftest.er1
>conftest.err
8172 cat conftest.err
>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try
='test -z "$ac_c_werror_flag"
8176 || test ! -s conftest.err'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; } &&
8182 { ac_try
='test -s conftest.$ac_objext'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8188 gcc_cv_header_string
=yes
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.
$ac_ext >&5
8193 gcc_cv_header_string
=no
8195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8197 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8198 echo "${ECHO_T}$gcc_cv_header_string" >&6
8199 if test $gcc_cv_header_string = yes; then
8201 cat >>confdefs.h
<<\_ACEOF
8202 #define STRING_WITH_STRINGS 1
8207 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8208 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8209 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 cat >conftest.
$ac_ext <<_ACEOF
8215 cat confdefs.h
>>conftest.
$ac_ext
8216 cat >>conftest.
$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8218 #include <sys/types.h>
8219 #include <sys/wait.h>
8221 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8224 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8232 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8237 rm -f conftest.
$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239 (eval $ac_compile) 2>conftest.er1
8241 grep -v '^ *+' conftest.er1
>conftest.err
8243 cat conftest.err
>&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try
='test -z "$ac_c_werror_flag"
8247 || test ! -s conftest.err'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; } &&
8253 { ac_try
='test -s conftest.$ac_objext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 ac_cv_header_sys_wait_h
=yes
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.
$ac_ext >&5
8264 ac_cv_header_sys_wait_h
=no
8266 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8268 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8269 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8270 if test $ac_cv_header_sys_wait_h = yes; then
8272 cat >>confdefs.h
<<\_ACEOF
8273 #define HAVE_SYS_WAIT_H 1
8300 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8301 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8302 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8303 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8305 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8306 echo "$as_me:$LINENO: checking for $ac_header" >&5
8307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 cat >conftest.
$ac_ext <<_ACEOF
8314 cat confdefs.h
>>conftest.
$ac_ext
8315 cat >>conftest.
$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 #include <$ac_header>
8319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8320 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8322 grep -v '^ *+' conftest.er1
>conftest.err
8324 cat conftest.err
>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } >/dev
/null
; then
8327 if test -s conftest.err
; then
8328 ac_cpp_err
=$ac_c_preproc_warn_flag
8329 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8336 if test -z "$ac_cpp_err"; then
8337 eval "$as_ac_Header=yes"
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.
$ac_ext >&5
8342 eval "$as_ac_Header=no"
8344 rm -f conftest.err conftest.
$ac_ext
8346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8349 cat >>confdefs.h
<<_ACEOF
8350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8357 # Check for thread headers.
8358 echo "$as_me:$LINENO: checking for thread.h" >&5
8359 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8360 if test "${ac_cv_header_thread_h+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 cat >conftest.
$ac_ext <<_ACEOF
8366 cat confdefs.h
>>conftest.
$ac_ext
8367 cat >>conftest.
$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8374 grep -v '^ *+' conftest.er1
>conftest.err
8376 cat conftest.err
>&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } >/dev
/null
; then
8379 if test -s conftest.err
; then
8380 ac_cpp_err
=$ac_c_preproc_warn_flag
8381 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8388 if test -z "$ac_cpp_err"; then
8389 ac_cv_header_thread_h
=yes
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.
$ac_ext >&5
8394 ac_cv_header_thread_h
=no
8396 rm -f conftest.err conftest.
$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8399 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8400 if test $ac_cv_header_thread_h = yes; then
8406 echo "$as_me:$LINENO: checking for pthread.h" >&5
8407 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8408 if test "${ac_cv_header_pthread_h+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 cat >conftest.
$ac_ext <<_ACEOF
8414 cat confdefs.h
>>conftest.
$ac_ext
8415 cat >>conftest.
$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 #include <pthread.h>
8419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8420 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8422 grep -v '^ *+' conftest.er1
>conftest.err
8424 cat conftest.err
>&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } >/dev
/null
; then
8427 if test -s conftest.err
; then
8428 ac_cpp_err
=$ac_c_preproc_warn_flag
8429 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8436 if test -z "$ac_cpp_err"; then
8437 ac_cv_header_pthread_h
=yes
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.
$ac_ext >&5
8442 ac_cv_header_pthread_h
=no
8444 rm -f conftest.err conftest.
$ac_ext
8446 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8447 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8448 if test $ac_cv_header_pthread_h = yes; then
8455 # These tests can't be done till we know if we have limits.h.
8456 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8457 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8458 if test "${gcc_cv_decl_char_bit+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 cat >conftest.
$ac_ext <<_ACEOF
8464 cat confdefs.h
>>conftest.
$ac_ext
8465 cat >>conftest.
$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 #ifdef HAVE_LIMITS_H
8474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8475 $EGREP "found" >/dev
/null
2>&1; then
8476 gcc_cv_decl_char_bit
=yes
8478 gcc_cv_decl_char_bit
=no
8484 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8485 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8486 if test $gcc_cv_decl_char_bit = no
; then
8487 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8488 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8489 if test "${gcc_cv_c_nbby+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 while test $i -lt 65; do
8495 cat >conftest.
$ac_ext <<_ACEOF
8498 cat confdefs.h
>>conftest.
$ac_ext
8499 cat >>conftest.
$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8506 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8507 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8513 rm -f conftest.
$ac_objext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515 (eval $ac_compile) 2>conftest.er1
8517 grep -v '^ *+' conftest.er1
>conftest.err
8519 cat conftest.err
>&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try
='test -z "$ac_c_werror_flag"
8523 || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try
='test -s conftest.$ac_objext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 gcc_cv_c_nbby
=$i; break
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.
$ac_ext >&5
8541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8544 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8547 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8548 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8549 if test $gcc_cv_c_nbby = failed
; then
8550 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8551 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8552 { (exit 1); exit 1; }; }
8555 cat >>confdefs.h
<<_ACEOF
8556 #define CHAR_BIT $gcc_cv_c_nbby
8561 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8562 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8563 if test "${ac_cv_c_bigendian+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 # See if sys/param.h defines the BYTE_ORDER macro.
8567 cat >conftest.
$ac_ext <<_ACEOF
8570 cat confdefs.h
>>conftest.
$ac_ext
8571 cat >>conftest.
$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 #include <sys/types.h>
8574 #include <sys/param.h>
8579 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8587 rm -f conftest.
$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>conftest.er1
8591 grep -v '^ *+' conftest.er1
>conftest.err
8593 cat conftest.err
>&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
8596 { ac_try
='test -z "$ac_c_werror_flag"
8597 || test ! -s conftest.err'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try
='test -s conftest.$ac_objext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 # It does; now see whether it defined to BIG_ENDIAN or not.
8610 cat >conftest.
$ac_ext <<_ACEOF
8613 cat confdefs.h
>>conftest.
$ac_ext
8614 cat >>conftest.
$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 #include <sys/types.h>
8617 #include <sys/param.h>
8622 #if BYTE_ORDER != BIG_ENDIAN
8630 rm -f conftest.
$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632 (eval $ac_compile) 2>conftest.er1
8634 grep -v '^ *+' conftest.er1
>conftest.err
8636 cat conftest.err
>&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try
='test -z "$ac_c_werror_flag"
8640 || test ! -s conftest.err'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try
='test -s conftest.$ac_objext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 ac_cv_c_bigendian
=yes
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.
$ac_ext >&5
8657 ac_cv_c_bigendian
=no
8659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.
$ac_ext >&5
8664 # It does not; compile a test program.
8665 if test "$cross_compiling" = yes; then
8666 # try to guess the endianness by grepping values into an object file
8667 ac_cv_c_bigendian
=unknown
8668 cat >conftest.
$ac_ext <<_ACEOF
8671 cat confdefs.h
>>conftest.
$ac_ext
8672 cat >>conftest.
$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8675 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8676 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8677 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8678 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8679 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8683 _ascii (); _ebcdic ();
8688 rm -f conftest.
$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690 (eval $ac_compile) 2>conftest.er1
8692 grep -v '^ *+' conftest.er1
>conftest.err
8694 cat conftest.err
>&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try
='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try
='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8711 ac_cv_c_bigendian
=yes
8713 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8714 if test "$ac_cv_c_bigendian" = unknown
; then
8715 ac_cv_c_bigendian
=no
8717 # finding both strings is unlikely to happen, but who knows?
8718 ac_cv_c_bigendian
=unknown
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.
$ac_ext >&5
8726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8728 cat >conftest.
$ac_ext <<_ACEOF
8731 cat confdefs.h
>>conftest.
$ac_ext
8732 cat >>conftest.
$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8737 /* Are we little or big endian? From Harbison&Steele. */
8741 char c[sizeof (long)];
8744 exit (u.c[sizeof (long) - 1] == 1);
8747 rm -f conftest
$ac_exeext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749 (eval $ac_link) 2>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; }; then
8758 ac_cv_c_bigendian
=no
8760 echo "$as_me: program exited with status $ac_status" >&5
8761 echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.
$ac_ext >&5
8765 ac_cv_c_bigendian
=yes
8767 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8773 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8774 case $ac_cv_c_bigendian in
8777 cat >>confdefs.h
<<\_ACEOF
8778 #define WORDS_BIGENDIAN 1
8784 { { echo "$as_me:$LINENO: error: unknown endianness
8785 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8786 echo "$as_me: error: unknown endianness
8787 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8788 { (exit 1); exit 1; }; } ;;
8797 # These libraries may be used by collect2.
8798 # We may need a special search path to get them linked.
8799 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8800 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8801 if test "${gcc_cv_collect2_libs+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 for libs
in '' -lld -lmld \
8806 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8807 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8810 cat >conftest.
$ac_ext <<_ACEOF
8813 cat confdefs.h
>>conftest.
$ac_ext
8814 cat >>conftest.
$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8817 /* Override any gcc2 internal prototype to avoid an error. */
8821 /* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
8832 rm -f conftest.
$ac_objext conftest
$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>conftest.er1
8836 grep -v '^ *+' conftest.er1
>conftest.err
8838 cat conftest.err
>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try
='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try
='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 gcc_cv_collect2_libs
="$libs"; break
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.
$ac_ext >&5
8860 rm -f conftest.err conftest.
$ac_objext \
8861 conftest
$ac_exeext conftest.
$ac_ext
8864 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8866 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8867 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8868 case $gcc_cv_collect2_libs in
8870 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8874 # When building Ada code on Alpha, we need exc_resume which is usually in
8875 # -lexc. So test for it.
8878 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8879 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8880 if test "${ac_cv_search_exc_resume+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 ac_func_search_save_LIBS
=$LIBS
8884 ac_cv_search_exc_resume
=no
8885 cat >conftest.
$ac_ext <<_ACEOF
8888 cat confdefs.h
>>conftest.
$ac_ext
8889 cat >>conftest.
$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8892 /* Override any gcc2 internal prototype to avoid an error. */
8896 /* We use char because int might match the return type of a gcc2
8897 builtin and then its argument prototype would still apply. */
8907 rm -f conftest.
$ac_objext conftest
$ac_exeext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909 (eval $ac_link) 2>conftest.er1
8911 grep -v '^ *+' conftest.er1
>conftest.err
8913 cat conftest.err
>&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try
='test -z "$ac_c_werror_flag"
8917 || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try
='test -s conftest$ac_exeext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_cv_search_exc_resume
="none required"
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.
$ac_ext >&5
8935 rm -f conftest.err conftest.
$ac_objext \
8936 conftest
$ac_exeext conftest.
$ac_ext
8937 if test "$ac_cv_search_exc_resume" = no
; then
8938 for ac_lib
in exc
; do
8939 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8940 cat >conftest.
$ac_ext <<_ACEOF
8943 cat confdefs.h
>>conftest.
$ac_ext
8944 cat >>conftest.
$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8947 /* Override any gcc2 internal prototype to avoid an error. */
8951 /* We use char because int might match the return type of a gcc2
8952 builtin and then its argument prototype would still apply. */
8962 rm -f conftest.
$ac_objext conftest
$ac_exeext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>conftest.er1
8966 grep -v '^ *+' conftest.er1
>conftest.err
8968 cat conftest.err
>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try
='test -z "$ac_c_werror_flag"
8972 || test ! -s conftest.err'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; } &&
8978 { ac_try
='test -s conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_cv_search_exc_resume
="-l$ac_lib"
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.
$ac_ext >&5
8991 rm -f conftest.err conftest.
$ac_objext \
8992 conftest
$ac_exeext conftest.
$ac_ext
8995 LIBS
=$ac_func_search_save_LIBS
8997 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8998 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8999 if test "$ac_cv_search_exc_resume" != no
; then
9000 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9008 # Some systems put ldexp and frexp in libm instead of libc; assume
9009 # they're both in the same place. jcf-dump needs them.
9012 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9013 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9014 if test "${ac_cv_search_ldexp+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 ac_func_search_save_LIBS
=$LIBS
9018 ac_cv_search_ldexp
=no
9019 cat >conftest.
$ac_ext <<_ACEOF
9022 cat confdefs.h
>>conftest.
$ac_ext
9023 cat >>conftest.
$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9026 /* Override any gcc2 internal prototype to avoid an error. */
9030 /* We use char because int might match the return type of a gcc2
9031 builtin and then its argument prototype would still apply. */
9041 rm -f conftest.
$ac_objext conftest
$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9045 grep -v '^ *+' conftest.er1
>conftest.err
9047 cat conftest.err
>&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try
='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try
='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_search_ldexp
="none required"
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.
$ac_ext >&5
9069 rm -f conftest.err conftest.
$ac_objext \
9070 conftest
$ac_exeext conftest.
$ac_ext
9071 if test "$ac_cv_search_ldexp" = no
; then
9073 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9074 cat >conftest.
$ac_ext <<_ACEOF
9077 cat confdefs.h
>>conftest.
$ac_ext
9078 cat >>conftest.
$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9081 /* Override any gcc2 internal prototype to avoid an error. */
9085 /* We use char because int might match the return type of a gcc2
9086 builtin and then its argument prototype would still apply. */
9096 rm -f conftest.
$ac_objext conftest
$ac_exeext
9097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9098 (eval $ac_link) 2>conftest.er1
9100 grep -v '^ *+' conftest.er1
>conftest.err
9102 cat conftest.err
>&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try
='test -z "$ac_c_werror_flag"
9106 || test ! -s conftest.err'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try
='test -s conftest$ac_exeext'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_search_ldexp
="-l$ac_lib"
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.
$ac_ext >&5
9125 rm -f conftest.err conftest.
$ac_objext \
9126 conftest
$ac_exeext conftest.
$ac_ext
9129 LIBS
=$ac_func_search_save_LIBS
9131 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9132 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9133 if test "$ac_cv_search_ldexp" != no
; then
9134 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9142 # Use <inttypes.h> only if it exists,
9143 # doesn't clash with <sys/types.h>, and declares intmax_t.
9144 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9145 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9146 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 cat >conftest.
$ac_ext <<_ACEOF
9152 cat confdefs.h
>>conftest.
$ac_ext
9153 cat >>conftest.
$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 #include <sys/types.h>
9156 #include <inttypes.h>
9165 rm -f conftest.
$ac_objext
9166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9167 (eval $ac_compile) 2>conftest.er1
9169 grep -v '^ *+' conftest.er1
>conftest.err
9171 cat conftest.err
>&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } &&
9174 { ac_try
='test -z "$ac_c_werror_flag"
9175 || test ! -s conftest.err'
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; } &&
9181 { ac_try
='test -s conftest.$ac_objext'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; }; then
9187 gcc_cv_header_inttypes_h
=yes
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.
$ac_ext >&5
9192 gcc_cv_header_inttypes_h
=no
9194 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9197 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9198 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9199 if test $gcc_cv_header_inttypes_h = yes; then
9201 cat >>confdefs.h
<<\_ACEOF
9202 #define HAVE_INTTYPES_H 1
9244 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9245 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9246 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9247 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9249 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9250 echo "$as_me:$LINENO: checking for $ac_func" >&5
9251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9252 if eval "test \"\${$as_ac_var+set}\" = set"; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 cat >conftest.
$ac_ext <<_ACEOF
9258 cat confdefs.h
>>conftest.
$ac_ext
9259 cat >>conftest.
$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9263 #define $ac_func innocuous_$ac_func
9265 /* System header to define __stub macros and hopefully few prototypes,
9266 which can conflict with char $ac_func (); below.
9267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9268 <limits.h> exists even on freestanding compilers. */
9271 # include <limits.h>
9273 # include <assert.h>
9278 /* Override any gcc2 internal prototype to avoid an error. */
9283 /* We use char because int might match the return type of a gcc2
9284 builtin and then its argument prototype would still apply. */
9286 /* The GNU C library defines this for functions which it implements
9287 to always fail with ENOSYS. Some functions are actually named
9288 something starting with __ and the normal name is an alias. */
9289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9292 char (*f) () = $ac_func;
9301 return f != $ac_func;
9306 rm -f conftest.
$ac_objext conftest
$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308 (eval $ac_link) 2>conftest.er1
9310 grep -v '^ *+' conftest.er1
>conftest.err
9312 cat conftest.err
>&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try
='test -z "$ac_c_werror_flag"
9316 || test ! -s conftest.err'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; } &&
9322 { ac_try
='test -s conftest$ac_exeext'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; }; then
9328 eval "$as_ac_var=yes"
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.
$ac_ext >&5
9333 eval "$as_ac_var=no"
9335 rm -f conftest.err conftest.
$ac_objext \
9336 conftest
$ac_exeext conftest.
$ac_ext
9338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9340 if test `eval echo '${'$as_ac_var'}'` = yes; then
9341 cat >>confdefs.h
<<_ACEOF
9342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9349 if test x
$ac_cv_func_mbstowcs = xyes
; then
9350 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9351 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9352 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 if test "$cross_compiling" = yes; then
9356 gcc_cv_func_mbstowcs_works
=yes
9358 cat >conftest.
$ac_ext <<_ACEOF
9361 cat confdefs.h
>>conftest.
$ac_ext
9362 cat >>conftest.
$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9371 rm -f conftest
$ac_exeext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9373 (eval $ac_link) 2>&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 gcc_cv_func_mbstowcs_works
=yes
9384 echo "$as_me: program exited with status $ac_status" >&5
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.
$ac_ext >&5
9389 gcc_cv_func_mbstowcs_works
=no
9391 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9394 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9395 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9396 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9398 cat >>confdefs.h
<<\_ACEOF
9399 #define HAVE_WORKING_MBSTOWCS 1
9405 echo "$as_me:$LINENO: checking for ssize_t" >&5
9406 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9407 if test "${ac_cv_type_ssize_t+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 cat >conftest.
$ac_ext <<_ACEOF
9413 cat confdefs.h
>>conftest.
$ac_ext
9414 cat >>conftest.
$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 $ac_includes_default
9422 if (sizeof (ssize_t))
9428 rm -f conftest.
$ac_objext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9430 (eval $ac_compile) 2>conftest.er1
9432 grep -v '^ *+' conftest.er1
>conftest.err
9434 cat conftest.err
>&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } &&
9437 { ac_try
='test -z "$ac_c_werror_flag"
9438 || test ! -s conftest.err'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; } &&
9444 { ac_try
='test -s conftest.$ac_objext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 ac_cv_type_ssize_t
=yes
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.
$ac_ext >&5
9455 ac_cv_type_ssize_t
=no
9457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9459 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9460 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9461 if test $ac_cv_type_ssize_t = yes; then
9465 cat >>confdefs.h
<<_ACEOF
9472 # Try to determine the array type of the second argument of getgroups
9473 # for the target system (int or gid_t).
9474 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9475 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9476 if test "${ac_cv_type_uid_t+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 cat >conftest.
$ac_ext <<_ACEOF
9482 cat confdefs.h
>>conftest.
$ac_ext
9483 cat >>conftest.
$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 #include <sys/types.h>
9488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9489 $EGREP "uid_t" >/dev
/null
2>&1; then
9490 ac_cv_type_uid_t
=yes
9497 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9498 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9499 if test $ac_cv_type_uid_t = no
; then
9501 cat >>confdefs.h
<<\_ACEOF
9506 cat >>confdefs.h
<<\_ACEOF
9512 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9513 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9514 if test "${ac_cv_type_getgroups+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 if test "$cross_compiling" = yes; then
9518 ac_cv_type_getgroups
=cross
9520 cat >conftest.
$ac_ext <<_ACEOF
9523 cat confdefs.h
>>conftest.
$ac_ext
9524 cat >>conftest.
$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 /* Thanks to Mike Rendell for this test. */
9527 #include <sys/types.h>
9530 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9537 union { gid_t gval; long lval; } val;
9540 for (i = 0; i < NGID; i++)
9541 gidset[i] = val.gval;
9542 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9544 /* Exit non-zero if getgroups seems to require an array of ints. This
9545 happens when gid_t is short but getgroups modifies an array of ints. */
9546 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9549 rm -f conftest
$ac_exeext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9551 (eval $ac_link) 2>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_cv_type_getgroups
=gid_t
9562 echo "$as_me: program exited with status $ac_status" >&5
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.
$ac_ext >&5
9567 ac_cv_type_getgroups
=int
9569 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9571 if test $ac_cv_type_getgroups = cross
; then
9572 cat >conftest.
$ac_ext <<_ACEOF
9575 cat confdefs.h
>>conftest.
$ac_ext
9576 cat >>conftest.
$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9582 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9583 ac_cv_type_getgroups
=gid_t
9585 ac_cv_type_getgroups
=int
9591 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9592 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9594 cat >>confdefs.h
<<_ACEOF
9595 #define GETGROUPS_T $ac_cv_type_getgroups
9599 if test "${target}" = "${build}"; then
9600 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9603 # This condition may need some tweaking. It should include all
9604 # targets where the array type of the second argument of getgroups
9605 # is int and the type of gid_t is not equivalent to int.
9606 *-*-sunos* |
*-*-ultrix*)
9607 TARGET_GETGROUPS_T
=int
9610 TARGET_GETGROUPS_T
=gid_t
9617 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9618 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9619 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 cat >conftest.
$ac_ext <<_ACEOF
9625 cat confdefs.h
>>conftest.
$ac_ext
9626 cat >>conftest.
$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628 #include <sys/mman.h>
9630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9631 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9633 grep -v '^ *+' conftest.er1
>conftest.err
9635 cat conftest.err
>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } >/dev
/null
; then
9638 if test -s conftest.err
; then
9639 ac_cpp_err
=$ac_c_preproc_warn_flag
9640 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9647 if test -z "$ac_cpp_err"; then
9648 ac_cv_header_sys_mman_h
=yes
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.
$ac_ext >&5
9653 ac_cv_header_sys_mman_h
=no
9655 rm -f conftest.err conftest.
$ac_ext
9657 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9658 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9659 if test $ac_cv_header_sys_mman_h = yes; then
9660 gcc_header_sys_mman_h
=yes
9662 gcc_header_sys_mman_h
=no
9665 echo "$as_me:$LINENO: checking for mmap" >&5
9666 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9667 if test "${ac_cv_func_mmap+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 cat >conftest.
$ac_ext <<_ACEOF
9673 cat confdefs.h
>>conftest.
$ac_ext
9674 cat >>conftest.
$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9678 #define mmap innocuous_mmap
9680 /* System header to define __stub macros and hopefully few prototypes,
9681 which can conflict with char mmap (); below.
9682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9683 <limits.h> exists even on freestanding compilers. */
9686 # include <limits.h>
9688 # include <assert.h>
9693 /* Override any gcc2 internal prototype to avoid an error. */
9698 /* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */
9701 /* The GNU C library defines this for functions which it implements
9702 to always fail with ENOSYS. Some functions are actually named
9703 something starting with __ and the normal name is an alias. */
9704 #if defined (__stub_mmap) || defined (__stub___mmap)
9707 char (*f) () = mmap;
9721 rm -f conftest.
$ac_objext conftest
$ac_exeext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>conftest.er1
9725 grep -v '^ *+' conftest.er1
>conftest.err
9727 cat conftest.err
>&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try
='test -z "$ac_c_werror_flag"
9731 || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try
='test -s conftest$ac_exeext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.
$ac_ext >&5
9750 rm -f conftest.err conftest.
$ac_objext \
9751 conftest
$ac_exeext conftest.
$ac_ext
9753 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9754 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9755 if test $ac_cv_func_mmap = yes; then
9761 if test "$gcc_header_sys_mman_h" != yes \
9762 ||
test "$gcc_func_mmap" != yes; then
9763 gcc_cv_func_mmap_file
=no
9764 gcc_cv_func_mmap_dev_zero
=no
9765 gcc_cv_func_mmap_anon
=no
9767 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9768 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9769 if test "${gcc_cv_func_mmap_file+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 # Add a system to this blacklist if
9773 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9774 # memory area containing the same data that you'd get if you applied
9775 # read() to the same fd. The only system known to have a problem here
9776 # is VMS, where text files have record structure.
9779 gcc_cv_func_mmap_file
=no
;;
9781 gcc_cv_func_mmap_file
=yes;;
9784 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9785 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9786 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9787 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9788 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 # Add a system to this blacklist if it has mmap() but /dev/zero
9792 # does not exist, or if mmapping /dev/zero does not give anonymous
9793 # zeroed pages with both the following properties:
9794 # 1. If you map N consecutive pages in with one call, and then
9795 # unmap any subset of those pages, the pages that were not
9796 # explicitly unmapped remain accessible.
9797 # 2. If you map two adjacent blocks of memory and then unmap them
9798 # both at once, they must both go away.
9799 # Systems known to be in this category are Windows (all variants),
9802 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9803 gcc_cv_func_mmap_dev_zero
=no
;;
9805 gcc_cv_func_mmap_dev_zero
=yes;;
9808 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9809 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9811 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9812 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9813 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9814 if test "${gcc_cv_decl_map_anon+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 cat >conftest.
$ac_ext <<_ACEOF
9820 cat confdefs.h
>>conftest.
$ac_ext
9821 cat >>conftest.
$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 #include <sys/types.h>
9824 #include <sys/mman.h>
9827 #ifndef MAP_ANONYMOUS
9828 #define MAP_ANONYMOUS MAP_ANON
9834 int n = MAP_ANONYMOUS;
9839 rm -f conftest.
$ac_objext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841 (eval $ac_compile) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1
>conftest.err
9845 cat conftest.err
>&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try
='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try
='test -s conftest.$ac_objext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 gcc_cv_decl_map_anon
=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9866 gcc_cv_decl_map_anon
=no
9868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9870 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9871 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9873 if test $gcc_cv_decl_map_anon = no
; then
9874 gcc_cv_func_mmap_anon
=no
9876 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9877 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9878 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9882 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9883 # doesn't give anonymous zeroed pages with the same properties listed
9884 # above for use of /dev/zero.
9885 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9887 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9888 gcc_cv_func_mmap_anon
=no
;;
9890 gcc_cv_func_mmap_anon
=yes;;
9893 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9894 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9898 if test $gcc_cv_func_mmap_file = yes; then
9900 cat >>confdefs.h
<<\_ACEOF
9901 #define HAVE_MMAP_FILE 1
9905 if test $gcc_cv_func_mmap_dev_zero = yes; then
9907 cat >>confdefs.h
<<\_ACEOF
9908 #define HAVE_MMAP_DEV_ZERO 1
9912 if test $gcc_cv_func_mmap_anon = yes; then
9914 cat >>confdefs.h
<<\_ACEOF
9915 #define HAVE_MMAP_ANON 1
9923 # Under VMS, vfork works very differently than on Unix. The standard test
9924 # won't work, and it isn't easily adaptable. It makes more sense to
9926 ac_cv_func_vfork_works
=yes
9929 echo "$as_me:$LINENO: checking for pid_t" >&5
9930 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9931 if test "${ac_cv_type_pid_t+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 cat >conftest.
$ac_ext <<_ACEOF
9937 cat confdefs.h
>>conftest.
$ac_ext
9938 cat >>conftest.
$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9940 $ac_includes_default
9952 rm -f conftest.
$ac_objext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954 (eval $ac_compile) 2>conftest.er1
9956 grep -v '^ *+' conftest.er1
>conftest.err
9958 cat conftest.err
>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try
='test -z "$ac_c_werror_flag"
9962 || test ! -s conftest.err'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try
='test -s conftest.$ac_objext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 ac_cv_type_pid_t
=yes
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.
$ac_ext >&5
9981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9983 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9984 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9985 if test $ac_cv_type_pid_t = yes; then
9989 cat >>confdefs.h
<<_ACEOF
9997 for ac_header
in unistd.h vfork.h
9999 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10000 echo "$as_me:$LINENO: checking for $ac_header" >&5
10001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 cat >conftest.
$ac_ext <<_ACEOF
10008 cat confdefs.h
>>conftest.
$ac_ext
10009 cat >>conftest.
$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 #include <$ac_header>
10013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10014 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10016 grep -v '^ *+' conftest.er1
>conftest.err
10018 cat conftest.err
>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } >/dev
/null
; then
10021 if test -s conftest.err
; then
10022 ac_cpp_err
=$ac_c_preproc_warn_flag
10023 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10030 if test -z "$ac_cpp_err"; then
10031 eval "$as_ac_Header=yes"
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.
$ac_ext >&5
10036 eval "$as_ac_Header=no"
10038 rm -f conftest.err conftest.
$ac_ext
10040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10043 cat >>confdefs.h
<<_ACEOF
10044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10052 for ac_func
in fork vfork
10054 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10055 echo "$as_me:$LINENO: checking for $ac_func" >&5
10056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10057 if eval "test \"\${$as_ac_var+set}\" = set"; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 cat >conftest.
$ac_ext <<_ACEOF
10063 cat confdefs.h
>>conftest.
$ac_ext
10064 cat >>conftest.
$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10068 #define $ac_func innocuous_$ac_func
10070 /* System header to define __stub macros and hopefully few prototypes,
10071 which can conflict with char $ac_func (); below.
10072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10073 <limits.h> exists even on freestanding compilers. */
10076 # include <limits.h>
10078 # include <assert.h>
10083 /* Override any gcc2 internal prototype to avoid an error. */
10088 /* We use char because int might match the return type of a gcc2
10089 builtin and then its argument prototype would still apply. */
10091 /* The GNU C library defines this for functions which it implements
10092 to always fail with ENOSYS. Some functions are actually named
10093 something starting with __ and the normal name is an alias. */
10094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10097 char (*f) () = $ac_func;
10106 return f != $ac_func;
10111 rm -f conftest.
$ac_objext conftest
$ac_exeext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113 (eval $ac_link) 2>conftest.er1
10115 grep -v '^ *+' conftest.er1
>conftest.err
10117 cat conftest.err
>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try
='test -z "$ac_c_werror_flag"
10121 || test ! -s conftest.err'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; } &&
10127 { ac_try
='test -s conftest$ac_exeext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 eval "$as_ac_var=yes"
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.
$ac_ext >&5
10138 eval "$as_ac_var=no"
10140 rm -f conftest.err conftest.
$ac_objext \
10141 conftest
$ac_exeext conftest.
$ac_ext
10143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10145 if test `eval echo '${'$as_ac_var'}'` = yes; then
10146 cat >>confdefs.h
<<_ACEOF
10147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10153 if test "x$ac_cv_func_fork" = xyes
; then
10154 echo "$as_me:$LINENO: checking for working fork" >&5
10155 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10156 if test "${ac_cv_func_fork_works+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 if test "$cross_compiling" = yes; then
10160 ac_cv_func_fork_works
=cross
10162 cat >conftest.
$ac_ext <<_ACEOF
10163 /* By Ruediger Kuhlmann. */
10164 #include <sys/types.h>
10166 # include <unistd.h>
10168 /* Some systems only have a dummy stub for fork() */
10176 rm -f conftest
$ac_exeext
10177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10178 (eval $ac_link) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 ac_cv_func_fork_works
=yes
10189 echo "$as_me: program exited with status $ac_status" >&5
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.
$ac_ext >&5
10193 ( exit $ac_status )
10194 ac_cv_func_fork_works
=no
10196 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10199 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10200 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10203 ac_cv_func_fork_works
=$ac_cv_func_fork
10205 if test "x$ac_cv_func_fork_works" = xcross
; then
10207 *-*-amigaos* |
*-*-msdosdjgpp*)
10208 # Override, as these systems have only a dummy fork() stub
10209 ac_cv_func_fork_works
=no
10212 ac_cv_func_fork_works
=yes
10215 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10216 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10218 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10219 if test "x$ac_cv_func_vfork" = xyes
; then
10220 echo "$as_me:$LINENO: checking for working vfork" >&5
10221 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10222 if test "${ac_cv_func_vfork_works+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 if test "$cross_compiling" = yes; then
10226 ac_cv_func_vfork_works
=cross
10228 cat >conftest.
$ac_ext <<_ACEOF
10231 cat confdefs.h
>>conftest.
$ac_ext
10232 cat >>conftest.
$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10234 /* Thanks to Paul Eggert for this test. */
10236 #include <stdlib.h>
10237 #include <sys/types.h>
10238 #include <sys/stat.h>
10239 #include <sys/wait.h>
10241 # include <unistd.h>
10244 # include <vfork.h>
10246 /* On some sparc systems, changes by the child to local and incoming
10247 argument registers are propagated back to the parent. The compiler
10248 is told about this with #include <vfork.h>, but some compilers
10249 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10250 static variable whose address is put into a register that is
10251 clobbered by the vfork. */
10254 sparc_address_test (int arg)
10256 sparc_address_test (arg) int arg;
10259 static pid_t child;
10277 pid_t parent = getpid ();
10280 sparc_address_test (0);
10285 /* Here is another test for sparc vfork register problems. This
10286 test uses lots of local variables, at least as many local
10287 variables as main has allocated so far including compiler
10288 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10289 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10290 reuse the register of parent for one of the local variables,
10291 since it will think that parent can't possibly be used any more
10292 in this routine. Assigning to the local variable will thus
10293 munge parent in the parent process. */
10295 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10296 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10297 /* Convince the compiler that p..p7 are live; otherwise, it might
10298 use the same hardware register for all 8 local variables. */
10299 if (p != p1 || p != p2 || p != p3 || p != p4
10300 || p != p5 || p != p6 || p != p7)
10303 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10304 from child file descriptors. If the child closes a descriptor
10305 before it execs or exits, this munges the parent's descriptor
10306 as well. Test for this by closing stdout in the child. */
10307 _exit(close(fileno(stdout)) != 0);
10312 while (wait(&status) != child)
10315 /* Was there some problem with vforking? */
10318 /* Did the child fail? (This shouldn't happen.) */
10321 /* Did the vfork/compiler bug occur? */
10322 || parent != getpid()
10324 /* Did the file descriptor bug occur? */
10325 || fstat(fileno(stdout), &st) != 0
10330 rm -f conftest
$ac_exeext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332 (eval $ac_link) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; }; then
10341 ac_cv_func_vfork_works
=yes
10343 echo "$as_me: program exited with status $ac_status" >&5
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.
$ac_ext >&5
10347 ( exit $ac_status )
10348 ac_cv_func_vfork_works
=no
10350 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10353 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10354 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10357 if test "x$ac_cv_func_fork_works" = xcross
; then
10358 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10359 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10360 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10363 if test "x$ac_cv_func_vfork_works" = xyes
; then
10365 cat >>confdefs.h
<<\_ACEOF
10366 #define HAVE_WORKING_VFORK 1
10371 cat >>confdefs.h
<<\_ACEOF
10376 if test "x$ac_cv_func_fork_works" = xyes
; then
10378 cat >>confdefs.h
<<\_ACEOF
10379 #define HAVE_WORKING_FORK 1
10386 if test "X$prefix" = "XNONE"; then
10387 acl_final_prefix
="$ac_default_prefix"
10389 acl_final_prefix
="$prefix"
10391 if test "X$exec_prefix" = "XNONE"; then
10392 acl_final_exec_prefix
='${prefix}'
10394 acl_final_exec_prefix
="$exec_prefix"
10396 acl_save_prefix
="$prefix"
10397 prefix
="$acl_final_prefix"
10398 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10399 prefix
="$acl_save_prefix"
10402 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10403 if test "${with_gnu_ld+set}" = set; then
10404 withval
="$with_gnu_ld"
10405 test "$withval" = no || with_gnu_ld
=yes
10409 # Prepare PATH_SEPARATOR.
10410 # The user is always right.
10411 if test "${PATH_SEPARATOR+set}" != set; then
10412 echo "#! /bin/sh" >conf$$.sh
10413 echo "exit 0" >>conf$$.sh
10415 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10423 if test "$GCC" = yes; then
10424 # Check if gcc -print-prog-name=ld gives a path.
10425 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10426 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10429 # gcc leaves a trailing carriage return which upsets mingw
10430 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10432 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10435 # Accept absolute paths.
10436 [\\/]* |
[A-Za-z
]:[\\/]*)
10437 re_direlt
='/[^/][^/]*/\.\./'
10438 # Canonicalize the path of ld
10439 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10440 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10441 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10443 test -z "$LD" && LD
="$ac_prog"
10446 # If it fails, then pretend we aren't using GCC.
10450 # If it is relative, then search for the first ld in PATH.
10451 with_gnu_ld
=unknown
10454 elif test "$with_gnu_ld" = yes; then
10455 echo "$as_me:$LINENO: checking for GNU ld" >&5
10456 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10458 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10459 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10461 if test "${acl_cv_path_LD+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 if test -z "$LD"; then
10465 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10466 for ac_dir
in $PATH; do
10467 test -z "$ac_dir" && ac_dir
=.
10468 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10469 acl_cv_path_LD
="$ac_dir/$ac_prog"
10470 # Check to see if the program is GNU ld. I'd rather use --version,
10471 # but apparently some GNU ld's only accept -v.
10472 # Break only if it was the GNU/non-GNU ld that we prefer.
10473 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10474 test "$with_gnu_ld" != no
&& break
10476 test "$with_gnu_ld" != yes && break
10482 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10486 LD
="$acl_cv_path_LD"
10487 if test -n "$LD"; then
10488 echo "$as_me:$LINENO: result: $LD" >&5
10489 echo "${ECHO_T}$LD" >&6
10491 echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6
10494 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10495 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10496 { (exit 1); exit 1; }; }
10497 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10498 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10499 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10503 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10504 acl_cv_prog_gnu_ld
=yes
10506 acl_cv_prog_gnu_ld
=no
10509 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10510 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10511 with_gnu_ld
=$acl_cv_prog_gnu_ld
10515 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10516 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10517 if test "${acl_cv_rpath+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10522 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10524 rm -f .
/conftest.sh
10528 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10529 echo "${ECHO_T}$acl_cv_rpath" >&6
10531 libext
="$acl_cv_libext"
10532 shlibext
="$acl_cv_shlibext"
10533 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10534 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10535 hardcode_direct
="$acl_cv_hardcode_direct"
10536 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10537 # Check whether --enable-rpath or --disable-rpath was given.
10538 if test "${enable_rpath+set}" = set; then
10539 enableval
="$enable_rpath"
10553 acl_save_prefix
="$prefix"
10554 prefix
="$acl_final_prefix"
10555 acl_save_exec_prefix
="$exec_prefix"
10556 exec_prefix
="$acl_final_exec_prefix"
10558 eval additional_includedir
=\"$includedir\"
10559 eval additional_libdir
=\"$libdir\"
10561 exec_prefix
="$acl_save_exec_prefix"
10562 prefix
="$acl_save_prefix"
10565 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10566 if test "${with_libiconv_prefix+set}" = set; then
10567 withval
="$with_libiconv_prefix"
10569 if test "X$withval" = "Xno"; then
10572 if test "X$withval" = "X"; then
10574 acl_save_prefix
="$prefix"
10575 prefix
="$acl_final_prefix"
10576 acl_save_exec_prefix
="$exec_prefix"
10577 exec_prefix
="$acl_final_exec_prefix"
10579 eval additional_includedir
=\"$includedir\"
10580 eval additional_libdir
=\"$libdir\"
10582 exec_prefix
="$acl_save_exec_prefix"
10583 prefix
="$acl_save_prefix"
10586 additional_includedir
="$withval/include"
10587 additional_libdir
="$withval/lib"
10597 names_already_handled
=
10598 names_next_round
='iconv '
10599 while test -n "$names_next_round"; do
10600 names_this_round
="$names_next_round"
10602 for name
in $names_this_round; do
10604 for n
in $names_already_handled; do
10605 if test "$n" = "$name"; then
10606 already_handled
=yes
10610 if test -z "$already_handled"; then
10611 names_already_handled
="$names_already_handled $name"
10612 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10613 eval value
=\"\
$HAVE_LIB$uppername\"
10614 if test -n "$value"; then
10615 if test "$value" = yes; then
10616 eval value
=\"\
$LIB$uppername\"
10617 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10618 eval value
=\"\
$LTLIB$uppername\"
10619 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10628 if test $use_additional = yes; then
10629 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10630 found_dir
="$additional_libdir"
10631 found_so
="$additional_libdir/lib$name.$shlibext"
10632 if test -f "$additional_libdir/lib$name.la"; then
10633 found_la
="$additional_libdir/lib$name.la"
10636 if test -f "$additional_libdir/lib$name.$libext"; then
10637 found_dir
="$additional_libdir"
10638 found_a
="$additional_libdir/lib$name.$libext"
10639 if test -f "$additional_libdir/lib$name.la"; then
10640 found_la
="$additional_libdir/lib$name.la"
10645 if test "X$found_dir" = "X"; then
10646 for x
in $LDFLAGS $LTLIBICONV; do
10648 acl_save_prefix
="$prefix"
10649 prefix
="$acl_final_prefix"
10650 acl_save_exec_prefix
="$exec_prefix"
10651 exec_prefix
="$acl_final_exec_prefix"
10653 exec_prefix
="$acl_save_exec_prefix"
10654 prefix
="$acl_save_prefix"
10658 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10659 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10661 found_so
="$dir/lib$name.$shlibext"
10662 if test -f "$dir/lib$name.la"; then
10663 found_la
="$dir/lib$name.la"
10666 if test -f "$dir/lib$name.$libext"; then
10668 found_a
="$dir/lib$name.$libext"
10669 if test -f "$dir/lib$name.la"; then
10670 found_la
="$dir/lib$name.la"
10676 if test "X$found_dir" != "X"; then
10681 if test "X$found_dir" != "X"; then
10682 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10683 if test "X$found_so" != "X"; then
10684 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10685 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10688 for x
in $ltrpathdirs; do
10689 if test "X$x" = "X$found_dir"; then
10694 if test -z "$haveit"; then
10695 ltrpathdirs
="$ltrpathdirs $found_dir"
10697 if test "$hardcode_direct" = yes; then
10698 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10700 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10701 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10703 for x
in $rpathdirs; do
10704 if test "X$x" = "X$found_dir"; then
10709 if test -z "$haveit"; then
10710 rpathdirs
="$rpathdirs $found_dir"
10714 for x
in $LDFLAGS $LIBICONV; do
10716 acl_save_prefix
="$prefix"
10717 prefix
="$acl_final_prefix"
10718 acl_save_exec_prefix
="$exec_prefix"
10719 exec_prefix
="$acl_final_exec_prefix"
10721 exec_prefix
="$acl_save_exec_prefix"
10722 prefix
="$acl_save_prefix"
10724 if test "X$x" = "X-L$found_dir"; then
10729 if test -z "$haveit"; then
10730 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10732 if test "$hardcode_minus_L" != no
; then
10733 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10735 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10741 if test "X$found_a" != "X"; then
10742 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10744 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10747 additional_includedir
=
10748 case "$found_dir" in
10750 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10751 additional_includedir
="$basedir/include"
10754 if test "X$additional_includedir" != "X"; then
10755 if test "X$additional_includedir" != "X/usr/include"; then
10757 if test "X$additional_includedir" = "X/usr/local/include"; then
10758 if test -n "$GCC"; then
10760 linux
*) haveit
=yes;;
10764 if test -z "$haveit"; then
10765 for x
in $CPPFLAGS $INCICONV; do
10767 acl_save_prefix
="$prefix"
10768 prefix
="$acl_final_prefix"
10769 acl_save_exec_prefix
="$exec_prefix"
10770 exec_prefix
="$acl_final_exec_prefix"
10772 exec_prefix
="$acl_save_exec_prefix"
10773 prefix
="$acl_save_prefix"
10775 if test "X$x" = "X-I$additional_includedir"; then
10780 if test -z "$haveit"; then
10781 if test -d "$additional_includedir"; then
10782 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10788 if test -n "$found_la"; then
10789 save_libdir
="$libdir"
10790 case "$found_la" in
10791 */* |
*\\*) .
"$found_la" ;;
10792 *) .
"./$found_la" ;;
10794 libdir
="$save_libdir"
10795 for dep
in $dependency_libs; do
10798 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10799 if test "X$additional_libdir" != "X/usr/lib"; then
10801 if test "X$additional_libdir" = "X/usr/local/lib"; then
10802 if test -n "$GCC"; then
10804 linux
*) haveit
=yes;;
10808 if test -z "$haveit"; then
10810 for x
in $LDFLAGS $LIBICONV; do
10812 acl_save_prefix
="$prefix"
10813 prefix
="$acl_final_prefix"
10814 acl_save_exec_prefix
="$exec_prefix"
10815 exec_prefix
="$acl_final_exec_prefix"
10817 exec_prefix
="$acl_save_exec_prefix"
10818 prefix
="$acl_save_prefix"
10820 if test "X$x" = "X-L$additional_libdir"; then
10825 if test -z "$haveit"; then
10826 if test -d "$additional_libdir"; then
10827 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10831 for x
in $LDFLAGS $LTLIBICONV; do
10833 acl_save_prefix
="$prefix"
10834 prefix
="$acl_final_prefix"
10835 acl_save_exec_prefix
="$exec_prefix"
10836 exec_prefix
="$acl_final_exec_prefix"
10838 exec_prefix
="$acl_save_exec_prefix"
10839 prefix
="$acl_save_prefix"
10841 if test "X$x" = "X-L$additional_libdir"; then
10846 if test -z "$haveit"; then
10847 if test -d "$additional_libdir"; then
10848 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10855 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10856 if test "$enable_rpath" != no
; then
10858 for x
in $rpathdirs; do
10859 if test "X$x" = "X$dir"; then
10864 if test -z "$haveit"; then
10865 rpathdirs
="$rpathdirs $dir"
10868 for x
in $ltrpathdirs; do
10869 if test "X$x" = "X$dir"; then
10874 if test -z "$haveit"; then
10875 ltrpathdirs
="$ltrpathdirs $dir"
10880 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10883 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10886 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10887 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10893 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10894 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10900 if test "X$rpathdirs" != "X"; then
10901 if test -n "$hardcode_libdir_separator"; then
10903 for found_dir
in $rpathdirs; do
10904 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10906 acl_save_libdir
="$libdir"
10908 eval flag
=\"$hardcode_libdir_flag_spec\"
10909 libdir
="$acl_save_libdir"
10910 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10912 for found_dir
in $rpathdirs; do
10913 acl_save_libdir
="$libdir"
10914 libdir
="$found_dir"
10915 eval flag
=\"$hardcode_libdir_flag_spec\"
10916 libdir
="$acl_save_libdir"
10917 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10921 if test "X$ltrpathdirs" != "X"; then
10922 for found_dir
in $ltrpathdirs; do
10923 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10933 am_save_CPPFLAGS
="$CPPFLAGS"
10935 for element
in $INCICONV; do
10937 for x
in $CPPFLAGS; do
10939 acl_save_prefix
="$prefix"
10940 prefix
="$acl_final_prefix"
10941 acl_save_exec_prefix
="$exec_prefix"
10942 exec_prefix
="$acl_final_exec_prefix"
10944 exec_prefix
="$acl_save_exec_prefix"
10945 prefix
="$acl_save_prefix"
10947 if test "X$x" = "X$element"; then
10952 if test -z "$haveit"; then
10953 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10958 echo "$as_me:$LINENO: checking for iconv" >&5
10959 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10960 if test "${am_cv_func_iconv+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 am_cv_func_iconv
="no, consider installing GNU libiconv"
10966 cat >conftest.
$ac_ext <<_ACEOF
10969 cat confdefs.h
>>conftest.
$ac_ext
10970 cat >>conftest.
$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10972 #include <stdlib.h>
10977 iconv_t cd = iconv_open("","");
10978 iconv(cd,NULL,NULL,NULL,NULL);
10984 rm -f conftest.
$ac_objext conftest
$ac_exeext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986 (eval $ac_link) 2>conftest.er1
10988 grep -v '^ *+' conftest.er1
>conftest.err
10990 cat conftest.err
>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try
='test -z "$ac_c_werror_flag"
10994 || test ! -s conftest.err'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try
='test -s conftest$ac_exeext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 am_cv_func_iconv
=yes
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.
$ac_ext >&5
11012 rm -f conftest.err conftest.
$ac_objext \
11013 conftest
$ac_exeext conftest.
$ac_ext
11014 if test "$am_cv_func_iconv" != yes; then
11015 am_save_LIBS
="$LIBS"
11016 LIBS
="$LIBS $LIBICONV"
11017 cat >conftest.
$ac_ext <<_ACEOF
11020 cat confdefs.h
>>conftest.
$ac_ext
11021 cat >>conftest.
$ac_ext <<_ACEOF
11022 /* end confdefs.h. */
11023 #include <stdlib.h>
11028 iconv_t cd = iconv_open("","");
11029 iconv(cd,NULL,NULL,NULL,NULL);
11035 rm -f conftest.
$ac_objext conftest
$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>conftest.er1
11039 grep -v '^ *+' conftest.er1
>conftest.err
11041 cat conftest.err
>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try
='test -z "$ac_c_werror_flag"
11045 || test ! -s conftest.err'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; } &&
11051 { ac_try
='test -s conftest$ac_exeext'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 am_cv_lib_iconv
=yes
11058 am_cv_func_iconv
=yes
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.
$ac_ext >&5
11064 rm -f conftest.err conftest.
$ac_objext \
11065 conftest
$ac_exeext conftest.
$ac_ext
11066 LIBS
="$am_save_LIBS"
11070 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11071 echo "${ECHO_T}$am_cv_func_iconv" >&6
11072 if test "$am_cv_func_iconv" = yes; then
11074 cat >>confdefs.h
<<\_ACEOF
11075 #define HAVE_ICONV 1
11079 if test "$am_cv_lib_iconv" = yes; then
11080 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11081 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11082 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11083 echo "${ECHO_T}$LIBICONV" >&6
11085 CPPFLAGS
="$am_save_CPPFLAGS"
11092 if test "$am_cv_func_iconv" = yes; then
11093 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11094 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11095 if test "${am_cv_proto_iconv+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 cat >conftest.
$ac_ext <<_ACEOF
11102 cat confdefs.h
>>conftest.
$ac_ext
11103 cat >>conftest.
$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11106 #include <stdlib.h>
11112 #if defined(__STDC__) || defined(__cplusplus)
11113 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11126 rm -f conftest.
$ac_objext
11127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11128 (eval $ac_compile) 2>conftest.er1
11130 grep -v '^ *+' conftest.er1
>conftest.err
11132 cat conftest.err
>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
11135 { ac_try
='test -z "$ac_c_werror_flag"
11136 || test ! -s conftest.err'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try
='test -s conftest.$ac_objext'
11143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 am_cv_proto_iconv_arg1
=""
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.
$ac_ext >&5
11153 am_cv_proto_iconv_arg1
="const"
11155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11156 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);"
11159 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11160 echo "$as_me:$LINENO: result: ${ac_t:-
11161 }$am_cv_proto_iconv" >&5
11162 echo "${ECHO_T}${ac_t:-
11163 }$am_cv_proto_iconv" >&6
11165 cat >>confdefs.h
<<_ACEOF
11166 #define ICONV_CONST $am_cv_proto_iconv_arg1
11171 # Until we have in-tree GNU iconv:
11176 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11177 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11178 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 cat >conftest.
$ac_ext <<_ACEOF
11184 cat confdefs.h
>>conftest.
$ac_ext
11185 cat >>conftest.
$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 #include <locale.h>
11196 rm -f conftest.
$ac_objext conftest
$ac_exeext
11197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11198 (eval $ac_link) 2>conftest.er1
11200 grep -v '^ *+' conftest.er1
>conftest.err
11202 cat conftest.err
>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try
='test -z "$ac_c_werror_flag"
11206 || test ! -s conftest.err'
11207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208 (eval $ac_try) 2>&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; } &&
11212 { ac_try
='test -s conftest$ac_exeext'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }; then
11218 am_cv_val_LC_MESSAGES
=yes
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.
$ac_ext >&5
11223 am_cv_val_LC_MESSAGES
=no
11225 rm -f conftest.err conftest.
$ac_objext \
11226 conftest
$ac_exeext conftest.
$ac_ext
11228 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11229 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11230 if test $am_cv_val_LC_MESSAGES = yes; then
11232 cat >>confdefs.h
<<\_ACEOF
11233 #define HAVE_LC_MESSAGES 1
11240 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11241 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11242 if test "${am_cv_langinfo_codeset+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 cat >conftest.
$ac_ext <<_ACEOF
11248 cat confdefs.h
>>conftest.
$ac_ext
11249 cat >>conftest.
$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 #include <langinfo.h>
11255 char* cs = nl_langinfo(CODESET);
11260 rm -f conftest.
$ac_objext conftest
$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262 (eval $ac_link) 2>conftest.er1
11264 grep -v '^ *+' conftest.er1
>conftest.err
11266 cat conftest.err
>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try
='test -z "$ac_c_werror_flag"
11270 || test ! -s conftest.err'
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); }; } &&
11276 { ac_try
='test -s conftest$ac_exeext'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 am_cv_langinfo_codeset
=yes
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.
$ac_ext >&5
11287 am_cv_langinfo_codeset
=no
11289 rm -f conftest.err conftest.
$ac_objext \
11290 conftest
$ac_exeext conftest.
$ac_ext
11293 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11294 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11295 if test $am_cv_langinfo_codeset = yes; then
11297 cat >>confdefs.h
<<\_ACEOF
11298 #define HAVE_LANGINFO_CODESET 1
11304 # We will need to find libiberty.h and ansidecl.h
11305 saved_CFLAGS
="$CFLAGS"
11306 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11346 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11347 strsignal strstr strverscmp \
11348 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11349 free
basename getopt
clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11351 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11352 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11353 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11354 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 cat >conftest.
$ac_ext <<_ACEOF
11360 cat confdefs.h
>>conftest.
$ac_ext
11361 cat >>conftest.
$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11364 #define $ac_tr_decl 1
11366 #include "ansidecl.h"
11367 #include "system.h"
11373 char *(*pfn) = (char *(*)) $ac_func ;
11379 rm -f conftest.
$ac_objext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11381 (eval $ac_compile) 2>conftest.er1
11383 grep -v '^ *+' conftest.er1
>conftest.err
11385 cat conftest.err
>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
11388 { ac_try
='test -z "$ac_c_werror_flag"
11389 || test ! -s conftest.err'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try
='test -s conftest.$ac_objext'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 eval "gcc_cv_have_decl_$ac_func=yes"
11403 echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.
$ac_ext >&5
11406 eval "gcc_cv_have_decl_$ac_func=no"
11408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11411 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11412 echo "$as_me:$LINENO: result: yes" >&5
11413 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11414 #define $ac_tr_decl 1
11418 echo "$as_me:$LINENO: result: no" >&5
11419 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11420 #define $ac_tr_decl 0
11431 for ac_func
in getrlimit setrlimit getrusage
11433 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11434 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11435 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11436 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 cat >conftest.
$ac_ext <<_ACEOF
11442 cat confdefs.h
>>conftest.
$ac_ext
11443 cat >>conftest.
$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11446 #define $ac_tr_decl 1
11448 #include "ansidecl.h"
11449 #include "system.h"
11450 #ifdef HAVE_SYS_RESOURCE_H
11451 #include <sys/resource.h>
11459 char *(*pfn) = (char *(*)) $ac_func ;
11465 rm -f conftest.
$ac_objext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11467 (eval $ac_compile) 2>conftest.er1
11469 grep -v '^ *+' conftest.er1
>conftest.err
11471 cat conftest.err
>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try
='test -z "$ac_c_werror_flag"
11475 || test ! -s conftest.err'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try
='test -s conftest.$ac_objext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 eval "gcc_cv_have_decl_$ac_func=yes"
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.
$ac_ext >&5
11492 eval "gcc_cv_have_decl_$ac_func=no"
11494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11497 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11498 echo "$as_me:$LINENO: result: yes" >&5
11499 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11500 #define $ac_tr_decl 1
11504 echo "$as_me:$LINENO: result: no" >&5
11505 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11506 #define $ac_tr_decl 0
11514 cat >conftest.
$ac_ext <<_ACEOF
11517 cat confdefs.h
>>conftest.
$ac_ext
11518 cat >>conftest.
$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11521 #include "ansidecl.h"
11522 #include "system.h"
11523 #ifdef HAVE_SYS_RESOURCE_H
11524 #include <sys/resource.h>
11535 rm -f conftest.
$ac_objext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>conftest.er1
11539 grep -v '^ *+' conftest.er1
>conftest.err
11541 cat conftest.err
>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
11544 { ac_try
='test -z "$ac_c_werror_flag"
11545 || test ! -s conftest.err'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try
='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.
$ac_ext >&5
11563 cat >>confdefs.h
<<\_ACEOF
11564 #define rlim_t long
11568 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11570 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11571 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11572 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11573 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11575 for ac_func
in ldgetname
11577 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11578 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11579 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11580 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 cat >conftest.
$ac_ext <<_ACEOF
11586 cat confdefs.h
>>conftest.
$ac_ext
11587 cat >>conftest.
$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11590 #define $ac_tr_decl 1
11592 #include "ansidecl.h"
11593 #include "system.h"
11594 #ifdef HAVE_LDFCN_H
11605 char *(*pfn) = (char *(*)) $ac_func ;
11611 rm -f conftest.
$ac_objext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11613 (eval $ac_compile) 2>conftest.er1
11615 grep -v '^ *+' conftest.er1
>conftest.err
11617 cat conftest.err
>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try
='test -z "$ac_c_werror_flag"
11621 || test ! -s conftest.err'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try
='test -s conftest.$ac_objext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 eval "gcc_cv_have_decl_$ac_func=yes"
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.
$ac_ext >&5
11638 eval "gcc_cv_have_decl_$ac_func=no"
11640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11643 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11644 echo "$as_me:$LINENO: result: yes" >&5
11645 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11646 #define $ac_tr_decl 1
11650 echo "$as_me:$LINENO: result: no" >&5
11651 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11652 #define $ac_tr_decl 0
11661 for ac_func
in times
11663 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11664 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11665 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11666 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 cat >conftest.
$ac_ext <<_ACEOF
11672 cat confdefs.h
>>conftest.
$ac_ext
11673 cat >>conftest.
$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11676 #define $ac_tr_decl 1
11678 #include "ansidecl.h"
11679 #include "system.h"
11680 #ifdef HAVE_SYS_TIMES_H
11681 #include <sys/times.h>
11689 char *(*pfn) = (char *(*)) $ac_func ;
11695 rm -f conftest.
$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697 (eval $ac_compile) 2>conftest.er1
11699 grep -v '^ *+' conftest.er1
>conftest.err
11701 cat conftest.err
>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try
='test -z "$ac_c_werror_flag"
11705 || test ! -s conftest.err'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try
='test -s conftest.$ac_objext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 eval "gcc_cv_have_decl_$ac_func=yes"
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.
$ac_ext >&5
11722 eval "gcc_cv_have_decl_$ac_func=no"
11724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11727 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11728 echo "$as_me:$LINENO: result: yes" >&5
11729 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11730 #define $ac_tr_decl 1
11734 echo "$as_me:$LINENO: result: no" >&5
11735 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11736 #define $ac_tr_decl 0
11745 for ac_func
in sigaltstack
11747 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11748 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11749 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11750 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 cat >conftest.
$ac_ext <<_ACEOF
11756 cat confdefs.h
>>conftest.
$ac_ext
11757 cat >>conftest.
$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11760 #define $ac_tr_decl 1
11762 #include "ansidecl.h"
11763 #include "system.h"
11764 #include <signal.h>
11771 char *(*pfn) = (char *(*)) $ac_func ;
11777 rm -f conftest.
$ac_objext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11779 (eval $ac_compile) 2>conftest.er1
11781 grep -v '^ *+' conftest.er1
>conftest.err
11783 cat conftest.err
>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } &&
11786 { ac_try
='test -z "$ac_c_werror_flag"
11787 || test ! -s conftest.err'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try
='test -s conftest.$ac_objext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 eval "gcc_cv_have_decl_$ac_func=yes"
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.
$ac_ext >&5
11804 eval "gcc_cv_have_decl_$ac_func=no"
11806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11809 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11810 echo "$as_me:$LINENO: result: yes" >&5
11811 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11812 #define $ac_tr_decl 1
11816 echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11818 #define $ac_tr_decl 0
11826 # More time-related stuff.
11827 echo "$as_me:$LINENO: checking for struct tms" >&5
11828 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11829 if test "${ac_cv_struct_tms+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 cat >conftest.
$ac_ext <<_ACEOF
11836 cat confdefs.h
>>conftest.
$ac_ext
11837 cat >>conftest.
$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11840 #include "ansidecl.h"
11841 #include "system.h"
11842 #ifdef HAVE_SYS_TIMES_H
11843 #include <sys/times.h>
11854 rm -f conftest.
$ac_objext
11855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11856 (eval $ac_compile) 2>conftest.er1
11858 grep -v '^ *+' conftest.er1
>conftest.err
11860 cat conftest.err
>&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } &&
11863 { ac_try
='test -z "$ac_c_werror_flag"
11864 || test ! -s conftest.err'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try
='test -s conftest.$ac_objext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_struct_tms
=yes
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.
$ac_ext >&5
11881 ac_cv_struct_tms
=no
11883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11885 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11886 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11887 if test $ac_cv_struct_tms = yes; then
11889 cat >>confdefs.h
<<\_ACEOF
11890 #define HAVE_STRUCT_TMS 1
11895 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11896 # revisit after autoconf 2.50.
11897 echo "$as_me:$LINENO: checking for clock_t" >&5
11898 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11899 if test "${gcc_cv_type_clock_t+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 cat >conftest.
$ac_ext <<_ACEOF
11906 cat confdefs.h
>>conftest.
$ac_ext
11907 cat >>conftest.
$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11910 #include "ansidecl.h"
11911 #include "system.h"
11921 rm -f conftest.
$ac_objext
11922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11923 (eval $ac_compile) 2>conftest.er1
11925 grep -v '^ *+' conftest.er1
>conftest.err
11927 cat conftest.err
>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } &&
11930 { ac_try
='test -z "$ac_c_werror_flag"
11931 || test ! -s conftest.err'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; } &&
11937 { ac_try
='test -s conftest.$ac_objext'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11943 gcc_cv_type_clock_t
=yes
11945 echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.
$ac_ext >&5
11948 gcc_cv_type_clock_t
=no
11950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11952 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11953 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11954 if test $gcc_cv_type_clock_t = yes; then
11956 cat >>confdefs.h
<<\_ACEOF
11957 #define HAVE_CLOCK_T 1
11962 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11963 CFLAGS
="$saved_CFLAGS"
11965 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11966 if test "${enable_initfini_array+set}" = set; then
11967 enableval
="$enable_initfini_array"
11971 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11972 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11973 if test "${gcc_cv_initfini_array+set}" = set; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 if test "$cross_compiling" = yes; then
11977 gcc_cv_initfini_array
=no
11979 cat >conftest.
$ac_ext <<_ACEOF
11982 cat confdefs.h
>>conftest.
$ac_ext
11983 cat >>conftest.
$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11987 int main (void) { return x; }
11988 int foo (void) { x = 0; }
11989 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11991 rm -f conftest
$ac_exeext
11992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993 (eval $ac_link) 2>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 gcc_cv_initfini_array
=yes
12004 echo "$as_me: program exited with status $ac_status" >&5
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.
$ac_ext >&5
12008 ( exit $ac_status )
12009 gcc_cv_initfini_array
=no
12011 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12014 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12015 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12016 enable_initfini_array
=$gcc_cv_initfini_array
12019 if test $enable_initfini_array = yes; then
12021 cat >>confdefs.h
<<\_ACEOF
12022 #define HAVE_INITFINI_ARRAY 1
12027 # mkdir takes a single argument on some systems.
12028 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12029 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12030 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 cat >conftest.
$ac_ext <<_ACEOF
12036 cat confdefs.h
>>conftest.
$ac_ext
12037 cat >>conftest.
$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12040 #include <sys/types.h>
12041 #ifdef HAVE_SYS_STAT_H
12042 # include <sys/stat.h>
12044 #ifdef HAVE_UNISTD_H
12045 # include <unistd.h>
12047 #ifdef HAVE_DIRECT_H
12048 # include <direct.h>
12058 rm -f conftest.
$ac_objext
12059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12060 (eval $ac_compile) 2>conftest.er1
12062 grep -v '^ *+' conftest.er1
>conftest.err
12064 cat conftest.err
>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try
='test -z "$ac_c_werror_flag"
12068 || test ! -s conftest.err'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; } &&
12074 { ac_try
='test -s conftest.$ac_objext'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
12080 gcc_cv_mkdir_takes_one_arg
=no
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.
$ac_ext >&5
12085 gcc_cv_mkdir_takes_one_arg
=yes
12087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12089 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12090 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12091 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12093 cat >>confdefs.h
<<\_ACEOF
12094 #define MKDIR_TAKES_ONE_ARG 1
12106 # With Setjmp/Longjmp based exception handling.
12107 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12108 if test "${enable_sjlj_exceptions+set}" = set; then
12109 enableval
="$enable_sjlj_exceptions"
12110 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12112 cat >>confdefs.h
<<_ACEOF
12113 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12118 # For platforms with the unwind ABI which includes an unwind library,
12119 # libunwind, we can choose to use the system libunwind.
12121 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12122 if test "${with_system_libunwind+set}" = set; then
12123 withval
="$with_system_libunwind"
12127 # config.gcc also contains tests of with_system_libunwind.
12128 if test x
$with_system_libunwind = xyes
; then
12130 cat >>confdefs.h
<<\_ACEOF
12131 #define HAVE_GETIPINFO 1
12136 # --------------------------------------------------------
12137 # Build, host, and target specific configuration fragments
12138 # --------------------------------------------------------
12140 # Collect build-machine-specific information.
12141 .
${srcdir}/config.build
12143 # Collect host-machine-specific information.
12144 .
${srcdir}/config.
host
12148 # Collect target-machine-specific information.
12149 .
${srcdir}/config.gcc
12151 extra_objs
="${host_extra_objs} ${extra_objs}"
12152 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12154 # Default the target-machine variables that were not explicitly set.
12155 if test x
"$tm_file" = x
12156 then tm_file
=$cpu_type/$cpu_type.h
; fi
12158 if test x
"$extra_headers" = x
12159 then extra_headers
=; fi
12161 if test x
$md_file = x
12162 then md_file
=$cpu_type/$cpu_type.md
; fi
12164 if test x
$out_file = x
12165 then out_file
=$cpu_type/$cpu_type.c
; fi
12167 if test x
"$tmake_file" = x
12168 then tmake_file
=$cpu_type/t-
$cpu_type
12171 if test x
"$dwarf2" = xyes
12172 then tm_file
="$tm_file tm-dwarf2.h"
12175 # Say what files are being used for the output code and MD file.
12176 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12177 echo "Using \`$srcdir/config/$md_file' as machine description file."
12179 # If any of the xm_file variables contain nonexistent files, warn
12180 # about them and drop them.
12183 for x
in $build_xm_file; do
12184 if test -f $srcdir/config
/$x
12186 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12187 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12190 build_xm_file
="$bx"
12193 for x
in $host_xm_file; do
12194 if test -f $srcdir/config
/$x
12196 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12197 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12203 for x
in $xm_file; do
12204 if test -f $srcdir/config
/$x
12206 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12207 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12213 for f
in $tm_file; do
12216 if test $count = ax
; then
12217 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12219 echo "Using the following target machine macro files:"
12220 for f
in $tm_file; do
12221 echo " $srcdir/config/$f"
12225 if test x
$need_64bit_hwint = xyes
; then
12227 cat >>confdefs.h
<<\_ACEOF
12228 #define NEED_64BIT_HOST_WIDE_INT 1
12233 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12235 cat >>confdefs.h
<<\_ACEOF
12236 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12242 for f
in $host_xm_file; do
12245 if test $count = a
; then
12247 elif test $count = ax
; then
12248 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12250 echo "Using the following host machine macro files:"
12251 for f
in $host_xm_file; do
12252 echo " $srcdir/config/$f"
12255 echo "Using ${out_host_hook_obj} for host machine hooks."
12257 if test "$host_xm_file" != "$build_xm_file"; then
12259 for f
in $build_xm_file; do
12262 if test $count = a
; then
12264 elif test $count = ax
; then
12265 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12267 echo "Using the following build machine macro files:"
12268 for f
in $build_xm_file; do
12269 echo " $srcdir/config/$f"
12275 powerpc
*-*-darwin*)
12276 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12277 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12278 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 cat >conftest.
$ac_ext <<_ACEOF
12283 #include <sys/cdefs.h>
12284 #include <sys/signal.h>
12285 #include <ucontext.h>
12286 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12289 rm -f conftest.
$ac_objext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12291 (eval $ac_compile) 2>conftest.er1
12293 grep -v '^ *+' conftest.er1
>conftest.err
12295 cat conftest.err
>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try
='test -z "$ac_c_werror_flag"
12299 || test ! -s conftest.err'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try
='test -s conftest.$ac_objext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 gcc_cv_mcontext_underscores
=no
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.
$ac_ext >&5
12316 gcc_cv_mcontext_underscores
=yes
12318 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12320 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12321 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12322 if test $gcc_cv_mcontext_underscores = yes; then
12324 cat >>confdefs.h
<<\_ACEOF
12325 #define HAS_MCONTEXT_T_UNDERSCORES
12336 # Check if a valid thread package
12337 case ${enable_threads} in
12340 target_thread_file
='single'
12344 target_thread_file
='single'
12346 aix | dce | gnat | irix | posix | posix95 | rtems | \
12347 single | solaris | vxworks | win32
)
12348 target_thread_file
=${enable_threads}
12351 echo "${enable_threads} is an unknown thread package" 1>&2
12356 if test x
${thread_file} = x
; then
12357 # No thread file set by target-specific clauses in config.gcc,
12358 # so use file chosen by default logic above
12359 thread_file
=${target_thread_file}
12362 # Make gthr-default.h if we have a thread file.
12364 if test $thread_file != single
; then
12365 rm -f gthr-default.h
12366 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12367 gthread_flags
=-DHAVE_GTHR_DEFAULT
12376 if test x
$enable___cxa_atexit = xyes || \
12377 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12378 if test x
$host = x
$target; then
12380 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12381 # keyed to flag_use_cxa_atexit
12386 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12387 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12388 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 cat >conftest.
$ac_ext <<_ACEOF
12394 cat confdefs.h
>>conftest.
$ac_ext
12395 cat >>conftest.
$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12399 #define __cxa_atexit innocuous___cxa_atexit
12401 /* System header to define __stub macros and hopefully few prototypes,
12402 which can conflict with char __cxa_atexit (); below.
12403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12404 <limits.h> exists even on freestanding compilers. */
12407 # include <limits.h>
12409 # include <assert.h>
12412 #undef __cxa_atexit
12414 /* Override any gcc2 internal prototype to avoid an error. */
12419 /* We use char because int might match the return type of a gcc2
12420 builtin and then its argument prototype would still apply. */
12421 char __cxa_atexit ();
12422 /* The GNU C library defines this for functions which it implements
12423 to always fail with ENOSYS. Some functions are actually named
12424 something starting with __ and the normal name is an alias. */
12425 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12428 char (*f) () = __cxa_atexit;
12437 return f != __cxa_atexit;
12442 rm -f conftest.
$ac_objext conftest
$ac_exeext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12444 (eval $ac_link) 2>conftest.er1
12446 grep -v '^ *+' conftest.er1
>conftest.err
12448 cat conftest.err
>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try
='test -z "$ac_c_werror_flag"
12452 || test ! -s conftest.err'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try
='test -s conftest$ac_exeext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_cv_func___cxa_atexit
=yes
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.
$ac_ext >&5
12469 ac_cv_func___cxa_atexit
=no
12471 rm -f conftest.err conftest.
$ac_objext \
12472 conftest
$ac_exeext conftest.
$ac_ext
12474 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12475 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12476 if test $ac_cv_func___cxa_atexit = yes; then
12479 echo "__cxa_atexit can't be enabled on this target"
12485 # We can't check for __cxa_atexit when building a cross, so assume
12489 if test x
$use_cxa_atexit = xyes
; then
12491 cat >>confdefs.h
<<\_ACEOF
12492 #define DEFAULT_USE_CXA_ATEXIT 2
12499 if test x
$with_system_libunwind = xyes
; then
12500 if test x
$host = x
$target; then
12501 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12502 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12503 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 ac_func_search_save_LIBS
=$LIBS
12507 ac_cv_search__Unwind_GetIPInfo
=no
12508 cat >conftest.
$ac_ext <<_ACEOF
12511 cat confdefs.h
>>conftest.
$ac_ext
12512 cat >>conftest.
$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12515 /* Override any gcc2 internal prototype to avoid an error. */
12519 /* We use char because int might match the return type of a gcc2
12520 builtin and then its argument prototype would still apply. */
12521 char _Unwind_GetIPInfo ();
12525 _Unwind_GetIPInfo ();
12530 rm -f conftest.
$ac_objext conftest
$ac_exeext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532 (eval $ac_link) 2>conftest.er1
12534 grep -v '^ *+' conftest.er1
>conftest.err
12536 cat conftest.err
>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try
='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try
='test -s conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_search__Unwind_GetIPInfo
="none required"
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.
$ac_ext >&5
12558 rm -f conftest.err conftest.
$ac_objext \
12559 conftest
$ac_exeext conftest.
$ac_ext
12560 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
12561 for ac_lib
in unwind
; do
12562 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12563 cat >conftest.
$ac_ext <<_ACEOF
12566 cat confdefs.h
>>conftest.
$ac_ext
12567 cat >>conftest.
$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 /* Override any gcc2 internal prototype to avoid an error. */
12574 /* We use char because int might match the return type of a gcc2
12575 builtin and then its argument prototype would still apply. */
12576 char _Unwind_GetIPInfo ();
12580 _Unwind_GetIPInfo ();
12585 rm -f conftest.
$ac_objext conftest
$ac_exeext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587 (eval $ac_link) 2>conftest.er1
12589 grep -v '^ *+' conftest.er1
>conftest.err
12591 cat conftest.err
>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
12594 { ac_try
='test -z "$ac_c_werror_flag"
12595 || test ! -s conftest.err'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try
='test -s conftest$ac_exeext'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.
$ac_ext >&5
12614 rm -f conftest.err conftest.
$ac_objext \
12615 conftest
$ac_exeext conftest.
$ac_ext
12618 LIBS
=$ac_func_search_save_LIBS
12620 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12621 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12622 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
12623 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12632 if test x
$use_getipinfo = xyes
; then
12634 cat >>confdefs.h
<<\_ACEOF
12635 #define HAVE_GETIPINFO 1
12639 echo "The system unwind library does not support _Unwind_GetIPInfo."
12642 # Look for a file containing extra machine modes.
12643 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12644 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12647 cat >>confdefs.h
<<_ACEOF
12648 #define EXTRA_MODES_FILE "config/$extra_modes"
12653 # Convert extra_options into a form suitable for Makefile use.
12655 for f
in $extra_options; do
12656 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12660 # auto-host.h is the file containing items generated by autoconf and is
12661 # the first file included by config.h.
12662 # If host=build, it is correct to have bconfig include auto-host.h
12663 # as well. If host!=build, we are in error and need to do more
12664 # work to find out the build config parameters.
12665 if test x
$host = x
$build
12667 build_auto
=auto-host.h
12669 # We create a subdir, then run autoconf in the subdir.
12670 # To prevent recursion we set host and build for the new
12671 # invocation of configure to the build for this invocation
12678 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12679 *) realsrcdir
=..
/${srcdir};;
12681 saved_CFLAGS
="${CFLAGS}"
12682 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12683 ${realsrcdir}/configure \
12684 --enable-languages=${enable_languages-all} \
12685 --target=$target_alias --host=$build_alias --build=$build_alias
12686 CFLAGS
="${saved_CFLAGS}"
12688 # We just finished tests for the build machine, so rename
12689 # the file auto-build.h in the gcc directory.
12690 mv auto-host.h ..
/auto-build.h
12693 build_auto
=auto-build.h
12697 tm_file
="${tm_file} defaults.h"
12698 tm_p_file
="${tm_p_file} tm-preds.h"
12699 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12700 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12701 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12702 # put this back in temporarily.
12703 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12709 # Compile in configure arguments.
12710 if test -f configargs.h
; then
12711 # Being re-configured.
12712 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12713 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12715 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12718 # Double all backslashes and backslash all quotes to turn
12719 # gcc_config_arguments into a C string.
12720 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12721 $gcc_config_arguments
12723 gcc_config_arguments_str
=`cat conftest.out`
12726 cat > configargs.h
<<EOF
12727 /* Generated automatically. */
12728 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12729 static const char thread_model[] = "$thread_file";
12731 static const struct {
12732 const char *name, *value;
12733 } configure_default_options[] = $configure_default_options;
12736 # Internationalization
12737 # If we haven't got the data from the intl directory,
12738 # assume NLS is disabled.
12747 if test -f ..
/intl
/config.intl
; then
12748 . ..
/intl
/config.intl
12750 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12751 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12752 if test x
"$USE_NLS" != xyes
; then
12753 echo "$as_me:$LINENO: result: no" >&5
12754 echo "${ECHO_T}no" >&6
12756 echo "$as_me:$LINENO: result: yes" >&5
12757 echo "${ECHO_T}yes" >&6
12759 cat >>confdefs.h
<<\_ACEOF
12760 #define ENABLE_NLS 1
12764 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12765 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12766 # Look for .po and .gmo files in the source directory.
12769 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12770 # If there aren't any .gmo files the shell will give us the
12771 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12773 case "$cat" in *\
**)
12776 # The quadruple backslash is collapsed to a double backslash
12777 # by the backticks, then collapsed again by the double quotes,
12778 # leaving us with one backslash in the sed expression (right
12779 # before the dot that mustn't act as a wildcard).
12780 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12781 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12782 # The user is allowed to set LINGUAS to a list of languages to
12783 # install catalogs for. If it's empty that means "all of them."
12784 if test "x$LINGUAS" = x
; then
12785 CATALOGS
="$CATALOGS $cat"
12786 XLINGUAS
="$XLINGUAS $lang"
12788 case "$LINGUAS" in *$lang*)
12789 CATALOGS
="$CATALOGS $cat"
12790 XLINGUAS
="$XLINGUAS $lang"
12795 LINGUAS
="$XLINGUAS"
12796 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12797 echo "${ECHO_T}$LINGUAS" >&6
12810 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12811 # -liconv on the link line twice.
12812 case "$LIBINTL" in *$LIBICONV*)
12816 # Check whether --enable-secureplt or --disable-secureplt was given.
12817 if test "${enable_secureplt+set}" = set; then
12818 enableval
="$enable_secureplt"
12822 # Windows32 Registry support for specifying GCC installation paths.
12823 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12824 if test "${enable_win32_registry+set}" = set; then
12825 enableval
="$enable_win32_registry"
12830 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12831 if test "x$enable_win32_registry" != xno
; then
12832 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12833 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12834 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 ac_func_search_save_LIBS
=$LIBS
12838 ac_cv_search_RegOpenKeyExA
=no
12839 cat >conftest.
$ac_ext <<_ACEOF
12842 cat confdefs.h
>>conftest.
$ac_ext
12843 cat >>conftest.
$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12846 /* Override any gcc2 internal prototype to avoid an error. */
12850 /* We use char because int might match the return type of a gcc2
12851 builtin and then its argument prototype would still apply. */
12852 char RegOpenKeyExA ();
12861 rm -f conftest.
$ac_objext conftest
$ac_exeext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863 (eval $ac_link) 2>conftest.er1
12865 grep -v '^ *+' conftest.er1
>conftest.err
12867 cat conftest.err
>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try
='test -z "$ac_c_werror_flag"
12871 || test ! -s conftest.err'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try
='test -s conftest$ac_exeext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 ac_cv_search_RegOpenKeyExA
="none required"
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.
$ac_ext >&5
12889 rm -f conftest.err conftest.
$ac_objext \
12890 conftest
$ac_exeext conftest.
$ac_ext
12891 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12892 for ac_lib
in advapi32
; do
12893 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12894 cat >conftest.
$ac_ext <<_ACEOF
12897 cat confdefs.h
>>conftest.
$ac_ext
12898 cat >>conftest.
$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12901 /* Override any gcc2 internal prototype to avoid an error. */
12905 /* We use char because int might match the return type of a gcc2
12906 builtin and then its argument prototype would still apply. */
12907 char RegOpenKeyExA ();
12916 rm -f conftest.
$ac_objext conftest
$ac_exeext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12918 (eval $ac_link) 2>conftest.er1
12920 grep -v '^ *+' conftest.er1
>conftest.err
12922 cat conftest.err
>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try
='test -z "$ac_c_werror_flag"
12926 || test ! -s conftest.err'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; } &&
12932 { ac_try
='test -s conftest$ac_exeext'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.
$ac_ext >&5
12945 rm -f conftest.err conftest.
$ac_objext \
12946 conftest
$ac_exeext conftest.
$ac_ext
12949 LIBS
=$ac_func_search_save_LIBS
12951 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12952 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12953 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12954 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12957 enable_win32_registry
=no
12962 if test "x$enable_win32_registry" != xno
; then
12964 cat >>confdefs.h
<<\_ACEOF
12965 #define ENABLE_WIN32_REGISTRY 1
12969 if test "x$enable_win32_registry" != xyes \
12970 && test "x$enable_win32_registry" != x
; then
12972 cat >>confdefs.h
<<_ACEOF
12973 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12981 # Get an absolute path to the GCC top-level source directory
12982 holddir
=`${PWDCMD-pwd}`
12984 topdir
=`${PWDCMD-pwd}`
12987 # Conditionalize the makefile for this host machine.
12989 for f
in ${host_xmake_file}
12991 if test -f ${srcdir}/config
/$f
12993 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12997 # Conditionalize the makefile for this target machine.
12999 for f
in ${tmake_file}
13001 if test -f ${srcdir}/config
/$f
13003 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13006 tmake_file
="${tmake_file_}"
13008 # This is a terrible hack which will go away some day.
13009 host_cc_for_libada
=${CC}
13012 out_object_file
=`basename $out_file .c`.o
13014 tm_file_list
="options.h"
13015 tm_include_list
="options.h"
13016 for f
in $tm_file; do
13019 f
=`echo $f | sed 's/^..//'`
13020 tm_file_list
="${tm_file_list} $f"
13021 tm_include_list
="${tm_include_list} $f"
13024 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13025 tm_include_list
="${tm_include_list} $f"
13028 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13029 tm_include_list
="${tm_include_list} config/$f"
13036 for f
in $tm_p_file; do
13039 tm_p_file_list
="${tm_p_file_list} $f"
13040 tm_p_include_list
="${tm_p_include_list} $f"
13043 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13044 tm_p_include_list
="${tm_p_include_list} config/$f"
13050 for f
in $xm_file; do
13053 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13054 xm_include_list
="${xm_include_list} $f"
13057 xm_file_list
="${xm_file_list} $f"
13058 xm_include_list
="${xm_include_list} $f"
13061 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13062 xm_include_list
="${xm_include_list} config/$f"
13068 host_xm_include_list
=
13069 for f
in $host_xm_file; do
13072 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13073 host_xm_include_list
="${host_xm_include_list} $f"
13076 host_xm_file_list
="${host_xm_file_list} $f"
13077 host_xm_include_list
="${host_xm_include_list} $f"
13080 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13081 host_xm_include_list
="${host_xm_include_list} config/$f"
13086 build_xm_file_list
=
13087 for f
in $build_xm_file; do
13090 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13091 build_xm_include_list
="${build_xm_include_list} $f"
13093 auto-build.h | auto-host.h
)
13094 build_xm_file_list
="${build_xm_file_list} $f"
13095 build_xm_include_list
="${build_xm_include_list} $f"
13098 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13099 build_xm_include_list
="${build_xm_include_list} config/$f"
13104 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13105 # cross-compiler which does not use the native headers and libraries.
13106 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13109 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13111 if test "x$with_build_sysroot" != x
; then
13112 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13114 # This value is used, even on a native system, because
13115 # CROSS_SYSTEM_HEADER_DIR is just
13116 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13117 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13120 if test x
$host != x
$target
13122 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13124 SYSTEM_HEADER_DIR
=$build_system_header_dir
13125 case "$host","$target" in
13126 # Darwin crosses can use the host system's libraries and headers,
13127 # because of the fat library support. Of course, it must be the
13128 # same version of Darwin on both sides. Allow the user to
13129 # just say --target=foo-darwin without a version number to mean
13130 # "the version on this system".
13131 *-*-darwin*,*-*-darwin*)
13132 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13133 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13134 if test $hostos = $targetos -o $targetos = darwin
; then
13136 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13141 i?
86-*-*,x86_64-
*-* \
13142 | powerpc
*-*-*,powerpc64
*-*-*)
13143 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13145 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13146 SYSTEM_HEADER_DIR
=$build_system_header_dir
13149 # If this is a cross-compiler that does not
13150 # have its own set of headers then define
13153 # If this is using newlib, without having the headers available now,
13154 # then define inhibit_libc in LIBGCC2_CFLAGS.
13155 # This prevents libgcc2 from containing any code which requires libc
13158 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13159 test x
$with_newlib = xyes
; } &&
13160 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13165 # When building gcc with a cross-compiler, we need to adjust things so
13166 # that the generator programs are still built with the native compiler.
13167 # Also, we cannot run fixincludes or fix-header.
13169 # These are the normal (build=host) settings:
13170 CC_FOR_BUILD
='$(CC)'
13171 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13172 STMP_FIXINC
=stmp-fixinc
13174 # Possibly disable fixproto, on a per-target basis.
13175 case ${use_fixproto} in
13180 STMP_FIXPROTO
=stmp-fixproto
13185 # And these apply if build != host, or we are generating coverage data
13186 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13188 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13190 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13191 if test "x$STMP_FIXPROTO" != x
; then
13192 STMP_FIXPROTO
=stmp-install-fixproto
13197 # Expand extra_headers to include complete path.
13198 # This substitutes for lots of t-* files.
13199 extra_headers_list
=
13200 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13201 for file in ${extra_headers} ; do
13202 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13205 # Define collect2 in Makefile.
13206 case $host_can_use_collect2 in
13208 *) collect2
='collect2$(exeext)' ;;
13212 # Add a definition of USE_COLLECT2 if system wants one.
13213 case $use_collect2 in
13214 no
) use_collect2
= ;;
13217 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13218 xm_defines
="${xm_defines} USE_COLLECT2"
13219 case $host_can_use_collect2 in
13221 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13222 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13223 { (exit 1); exit 1; }; }
13229 # ---------------------------
13230 # Assembler & linker features
13231 # ---------------------------
13233 # Identify the assembler which will work hand-in-glove with the newly
13234 # built GCC, so that we can examine its features. This is the assembler
13235 # which will be driven by the driver program.
13237 # If build != host, and we aren't building gas in-tree, we identify a
13238 # build->target assembler and hope that it will have the same features
13239 # as the host->target assembler we'll be using.
13240 gcc_cv_gas_major_version
=
13241 gcc_cv_gas_minor_version
=
13242 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13244 if test "${gcc_cv_as+set}" = set; then
13248 if test -x "$DEFAULT_ASSEMBLER"; then
13249 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13250 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13251 && test -f ..
/gas
/Makefile \
13252 && test x
$build = x
$host; then
13253 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13254 elif test -x as
$build_exeext; then
13255 # Build using assembler in the current directory.
13256 gcc_cv_as
=.
/as
$build_exeext
13257 elif test -x $AS_FOR_TARGET; then
13258 gcc_cv_as
="$AS_FOR_TARGET"
13260 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13261 set dummy
$AS_FOR_TARGET; ac_word
=$2
13262 echo "$as_me:$LINENO: checking for $ac_word" >&5
13263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13264 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13273 for as_dir
in $PATH
13276 test -z "$as_dir" && as_dir
=.
13277 for ac_exec_ext
in '' $ac_executable_extensions; do
13278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13279 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13289 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13291 if test -n "$gcc_cv_as"; then
13292 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13293 echo "${ECHO_T}$gcc_cv_as" >&6
13295 echo "$as_me:$LINENO: result: no" >&5
13296 echo "${ECHO_T}no" >&6
13303 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13305 case "$ORIGINAL_AS_FOR_TARGET" in
13306 .
/as | .
/as
$build_exeext) ;;
13307 *) ac_config_files
="$ac_config_files as:exec-tool.in"
13311 echo "$as_me:$LINENO: checking what assembler to use" >&5
13312 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13313 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13314 # Single tree build which includes gas. We want to prefer it
13315 # over whatever linker top-level may have detected, since
13316 # we'll use what we're building after installation anyway.
13317 echo "$as_me:$LINENO: result: newly built gas" >&5
13318 echo "${ECHO_T}newly built gas" >&6
13320 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13321 for f
in $gcc_cv_as_bfd_srcdir/configure \
13322 $gcc_cv_as_gas_srcdir/configure \
13323 $gcc_cv_as_gas_srcdir/configure.
in \
13324 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13325 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13326 if test x
$gcc_cv_gas_version != x
; then
13330 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13331 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13332 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13333 case $gcc_cv_gas_patch_version in
13334 "") gcc_cv_gas_patch_version
="0" ;;
13336 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13337 + $gcc_cv_gas_minor_version \) \* 1000 \
13338 + $gcc_cv_gas_patch_version`
13340 in_tree_gas_is_elf
=no
13341 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13342 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13343 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13345 in_tree_gas_is_elf
=yes
13348 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13349 echo "${ECHO_T}$gcc_cv_as" >&6
13353 # Identify the linker which will work hand-in-glove with the newly
13354 # built GCC, so that we can examine its features. This is the linker
13355 # which will be driven by the driver program.
13357 # If build != host, and we aren't building gas in-tree, we identify a
13358 # build->target linker and hope that it will have the same features
13359 # as the host->target linker we'll be using.
13360 gcc_cv_gld_major_version
=
13361 gcc_cv_gld_minor_version
=
13362 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13363 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13365 if test "${gcc_cv_ld+set}" = set; then
13369 if test -x "$DEFAULT_LINKER"; then
13370 gcc_cv_ld
="$DEFAULT_LINKER"
13371 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13372 && test -f ..
/ld
/Makefile \
13373 && test x
$build = x
$host; then
13374 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13375 elif test -x collect-ld
$build_exeext; then
13376 # Build using linker in the current directory.
13377 gcc_cv_ld
=.
/collect-ld
$build_exeext
13378 elif test -x $LD_FOR_TARGET; then
13379 gcc_cv_ld
="$LD_FOR_TARGET"
13381 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13382 set dummy
$LD_FOR_TARGET; ac_word
=$2
13383 echo "$as_me:$LINENO: checking for $ac_word" >&5
13384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13385 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13394 for as_dir
in $PATH
13397 test -z "$as_dir" && as_dir
=.
13398 for ac_exec_ext
in '' $ac_executable_extensions; do
13399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13412 if test -n "$gcc_cv_ld"; then
13413 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13414 echo "${ECHO_T}$gcc_cv_ld" >&6
13416 echo "$as_me:$LINENO: result: no" >&5
13417 echo "${ECHO_T}no" >&6
13424 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13426 case "$ORIGINAL_LD_FOR_TARGET" in
13427 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
13428 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
13432 echo "$as_me:$LINENO: checking what linker to use" >&5
13433 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13434 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13435 # Single tree build which includes ld. We want to prefer it
13436 # over whatever linker top-level may have detected, since
13437 # we'll use what we're building after installation anyway.
13438 echo "$as_me:$LINENO: result: newly built ld" >&5
13439 echo "${ECHO_T}newly built ld" >&6
13441 in_tree_ld_is_elf
=no
13442 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13443 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13444 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13445 in_tree_ld_is_elf
=yes
13447 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
13449 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13450 if test x
$gcc_cv_gld_version != x
; then
13454 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13455 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13457 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13458 echo "${ECHO_T}$gcc_cv_ld" >&6
13462 # Figure out what nm we will be using.
13463 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13464 if test "${gcc_cv_nm+set}" = set; then
13468 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13469 && test -f ..
/binutils
/Makefile \
13470 && test x
$build = x
$host; then
13471 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13472 elif test -x nm
$build_exeext; then
13473 gcc_cv_nm
=.
/nm
$build_exeext
13474 elif test -x $NM_FOR_TARGET; then
13475 gcc_cv_nm
="$NM_FOR_TARGET"
13477 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13478 set dummy
$NM_FOR_TARGET; ac_word
=$2
13479 echo "$as_me:$LINENO: checking for $ac_word" >&5
13480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13481 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13490 for as_dir
in $PATH
13493 test -z "$as_dir" && as_dir
=.
13494 for ac_exec_ext
in '' $ac_executable_extensions; do
13495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13496 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13508 if test -n "$gcc_cv_nm"; then
13509 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13510 echo "${ECHO_T}$gcc_cv_nm" >&6
13512 echo "$as_me:$LINENO: result: no" >&5
13513 echo "${ECHO_T}no" >&6
13520 echo "$as_me:$LINENO: checking what nm to use" >&5
13521 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13522 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13523 # Single tree build which includes binutils.
13524 echo "$as_me:$LINENO: result: newly built nm" >&5
13525 echo "${ECHO_T}newly built nm" >&6
13528 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13529 echo "${ECHO_T}$gcc_cv_nm" >&6
13533 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13535 case "$ORIGINAL_NM_FOR_TARGET" in
13536 .
/nm | .
/nm
$build_exeext) ;;
13537 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
13542 # Figure out what objdump we will be using.
13543 if test "${gcc_cv_objdump+set}" = set; then
13547 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13548 && test -f ..
/binutils
/Makefile \
13549 && test x
$build = x
$host; then
13550 # Single tree build which includes binutils.
13551 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13552 elif test -x objdump
$build_exeext; then
13553 gcc_cv_objdump
=.
/objdump
$build_exeext
13554 elif test -x $OBJDUMP_FOR_TARGET; then
13555 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13557 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13558 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13559 echo "$as_me:$LINENO: checking for $ac_word" >&5
13560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13561 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 case $gcc_cv_objdump in
13566 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13570 for as_dir
in $PATH
13573 test -z "$as_dir" && as_dir
=.
13574 for ac_exec_ext
in '' $ac_executable_extensions; do
13575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13576 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13586 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13588 if test -n "$gcc_cv_objdump"; then
13589 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13590 echo "${ECHO_T}$gcc_cv_objdump" >&6
13592 echo "$as_me:$LINENO: result: no" >&5
13593 echo "${ECHO_T}no" >&6
13600 echo "$as_me:$LINENO: checking what objdump to use" >&5
13601 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13602 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13603 # Single tree build which includes binutils.
13604 echo "$as_me:$LINENO: result: newly built objdump" >&5
13605 echo "${ECHO_T}newly built objdump" >&6
13606 elif test x
$gcc_cv_objdump = x
; then
13607 echo "$as_me:$LINENO: result: not found" >&5
13608 echo "${ECHO_T}not found" >&6
13610 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13611 echo "${ECHO_T}$gcc_cv_objdump" >&6
13614 # Figure out what assembler alignment features are present.
13615 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13616 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13617 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 gcc_cv_as_balign_and_p2align
=no
13621 if test $in_tree_gas = yes; then
13622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13623 then gcc_cv_as_balign_and_p2align
=yes
13625 elif test x
$gcc_cv_as != x
; then
13627 .p2align 2' > conftest.s
13628 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }
13635 gcc_cv_as_balign_and_p2align
=yes
13637 echo "configure: failed program was" >&5
13640 rm -f conftest.o conftest.s
13643 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13644 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13645 if test $gcc_cv_as_balign_and_p2align = yes; then
13647 cat >>confdefs.h
<<\_ACEOF
13648 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13653 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13654 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13655 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 gcc_cv_as_max_skip_p2align
=no
13659 if test $in_tree_gas = yes; then
13660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13661 then gcc_cv_as_max_skip_p2align
=yes
13663 elif test x
$gcc_cv_as != x
; then
13664 echo '.p2align 4,,7' > conftest.s
13665 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }
13672 gcc_cv_as_max_skip_p2align
=yes
13674 echo "configure: failed program was" >&5
13677 rm -f conftest.o conftest.s
13680 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13681 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13682 if test $gcc_cv_as_max_skip_p2align = yes; then
13684 cat >>confdefs.h
<<\_ACEOF
13685 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13690 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13691 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13692 if test "${gcc_cv_as_literal16+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 gcc_cv_as_literal16
=no
13696 if test $in_tree_gas = yes; then
13697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13698 then gcc_cv_as_literal16
=yes
13700 elif test x
$gcc_cv_as != x
; then
13701 echo '.literal16' > conftest.s
13702 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }
13709 gcc_cv_as_literal16
=yes
13711 echo "configure: failed program was" >&5
13714 rm -f conftest.o conftest.s
13717 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13718 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13719 if test $gcc_cv_as_literal16 = yes; then
13721 cat >>confdefs.h
<<\_ACEOF
13722 #define HAVE_GAS_LITERAL16 1
13727 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13728 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13729 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 gcc_cv_as_subsection_m1
=no
13733 if test $in_tree_gas = yes; then
13734 if test $in_tree_gas_is_elf = yes \
13735 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13736 then gcc_cv_as_subsection_m1
=yes
13738 elif test x
$gcc_cv_as != x
; then
13739 echo 'conftest_label1: .word 0
13741 conftest_label2: .word 0
13742 .previous' > conftest.s
13743 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }
13750 if test x
$gcc_cv_nm != x
; then
13751 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13752 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13753 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13755 else gcc_cv_as_subsection_m1
=yes
13757 rm -f conftest.nm1 conftest.nm2
13760 echo "configure: failed program was" >&5
13763 rm -f conftest.o conftest.s
13766 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13767 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13768 if test $gcc_cv_as_subsection_m1 = yes; then
13770 cat >>confdefs.h
<<\_ACEOF
13771 #define HAVE_GAS_SUBSECTION_ORDERING 1
13776 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13777 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13778 if test "${gcc_cv_as_weak+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 if test $in_tree_gas = yes; then
13783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13784 then gcc_cv_as_weak
=yes
13786 elif test x
$gcc_cv_as != x
; then
13787 echo ' .weak foobar' > conftest.s
13788 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }
13797 echo "configure: failed program was" >&5
13800 rm -f conftest.o conftest.s
13803 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13804 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13805 if test $gcc_cv_as_weak = yes; then
13807 cat >>confdefs.h
<<\_ACEOF
13808 #define HAVE_GAS_WEAK 1
13813 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13814 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13815 if test "${gcc_cv_as_weakref+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 gcc_cv_as_weakref
=no
13819 if test $in_tree_gas = yes; then
13820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13821 then gcc_cv_as_weakref
=yes
13823 elif test x
$gcc_cv_as != x
; then
13824 echo ' .weakref foobar, barfnot' > conftest.s
13825 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }
13832 gcc_cv_as_weakref
=yes
13834 echo "configure: failed program was" >&5
13837 rm -f conftest.o conftest.s
13840 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13841 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13842 if test $gcc_cv_as_weakref = yes; then
13844 cat >>confdefs.h
<<\_ACEOF
13845 #define HAVE_GAS_WEAKREF 1
13850 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13851 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13852 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 gcc_cv_as_nsubspa_comdat
=no
13856 if test $in_tree_gas = yes; then
13857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13858 then gcc_cv_as_nsubspa_comdat
=yes
13860 elif test x
$gcc_cv_as != x
; then
13861 echo ' .SPACE $TEXT$
13862 .NSUBSPA $CODE$,COMDAT' > conftest.s
13863 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }
13870 gcc_cv_as_nsubspa_comdat
=yes
13872 echo "configure: failed program was" >&5
13875 rm -f conftest.o conftest.s
13878 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13879 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13880 if test $gcc_cv_as_nsubspa_comdat = yes; then
13882 cat >>confdefs.h
<<\_ACEOF
13883 #define HAVE_GAS_NSUBSPA_COMDAT 1
13888 # .hidden needs to be supported in both the assembler and the linker,
13889 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13890 # This is irritatingly difficult to feature test for; we have to check the
13891 # date string after the version number. If we've got an in-tree
13892 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13894 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13895 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13896 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13897 if test "${gcc_cv_as_hidden+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 gcc_cv_as_hidden
=no
13901 if test $in_tree_gas = yes; then
13902 if test $in_tree_gas_is_elf = yes \
13903 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13904 then gcc_cv_as_hidden
=yes
13906 elif test x
$gcc_cv_as != x
; then
13907 echo ' .hidden foobar
13908 foobar:' > conftest.s
13909 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }
13916 gcc_cv_as_hidden
=yes
13918 echo "configure: failed program was" >&5
13921 rm -f conftest.o conftest.s
13924 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13925 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13928 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13929 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13930 if test "${gcc_cv_ld_hidden+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 if test $in_tree_ld = yes ; then
13934 gcc_cv_ld_hidden
=no
13935 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 \
13936 && test $in_tree_ld_is_elf = yes; then
13937 gcc_cv_ld_hidden
=yes
13940 gcc_cv_ld_hidden
=yes
13941 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13942 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13943 ld_vers
=`echo $ld_ver | sed -n \
13944 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13945 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13946 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13947 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13948 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13949 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13950 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
13951 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'`
13952 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13953 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13954 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13955 if test 0"$ld_date" -lt 20020404; then
13956 if test -n "$ld_date"; then
13957 # If there was date string, but was earlier than 2002-04-04, fail
13958 gcc_cv_ld_hidden
=no
13959 elif test -z "$ld_vers"; then
13960 # If there was no date string nor ld version number, something is wrong
13961 gcc_cv_ld_hidden
=no
13963 test -z "$ld_vers_patch" && ld_vers_patch
=0
13964 if test "$ld_vers_major" -lt 2; then
13965 gcc_cv_ld_hidden
=no
13966 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13967 gcc_cv_ld_hidden
="no"
13968 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13969 gcc_cv_ld_hidden
=no
13974 case "${target}" in
13975 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13976 gcc_cv_ld_hidden
=yes
13979 gcc_cv_ld_hidden
=no
13985 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13986 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13987 libgcc_visibility
=no
13990 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13991 libgcc_visibility
=yes
13993 cat >>confdefs.h
<<\_ACEOF
13994 #define HAVE_GAS_HIDDEN 1
13999 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14000 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14001 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14002 if test "${gcc_cv_as_leb128+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 gcc_cv_as_leb128
=no
14006 if test $in_tree_gas = yes; then
14007 if test $in_tree_gas_is_elf = yes \
14008 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14009 then gcc_cv_as_leb128
=yes
14011 elif test x
$gcc_cv_as != x
; then
14018 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; }
14025 # GAS versions before 2.11 do not support uleb128,
14026 # despite appearing to.
14027 # ??? There exists an elf-specific test that will crash
14028 # the assembler. Perhaps it's better to figure out whether
14029 # arbitrary sections are supported and try the test.
14030 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14031 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
14032 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14033 as_major
=`echo $as_ver | sed 's/\..*//'`
14034 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14035 if test $as_major -eq 2 && test $as_minor -lt 11
14037 else gcc_cv_as_leb128
=yes
14041 echo "configure: failed program was" >&5
14044 rm -f conftest.o conftest.s
14047 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14048 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14049 if test $gcc_cv_as_leb128 = yes; then
14051 cat >>confdefs.h
<<\_ACEOF
14052 #define HAVE_AS_LEB128 1
14057 # GAS versions up to and including 2.11.0 may mis-optimize
14059 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14060 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14061 if test "${gcc_cv_as_eh_frame+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 gcc_cv_as_eh_frame
=no
14065 if test $in_tree_gas = yes; then
14066 if test $in_tree_gas_is_elf = yes \
14067 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14068 then gcc_cv_as_eh_frame
=yes
14070 elif test x
$gcc_cv_as != x
; then
14077 .section .eh_frame,"aw",@progbits
14079 .4byte .LECIE1-.LSCIE1
14093 .4byte .LEFDE1-.LASFDE1
14095 .4byte .LASFDE1-__FRAME_BEGIN__
14102 .LEFDE1:' > conftest.s
14103 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }
14110 cat > conftest.lit
<<EOF
14111 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14112 0010 01000000 12000000 18000000 00000000 ................
14113 0020 08000000 04080000 0044 .........D
14115 cat > conftest.big
<<EOF
14116 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14117 0010 00000001 00000012 00000018 00000000 ................
14118 0020 00000008 04000000 0844 .........D
14120 # If the assembler didn't choke, and we can objdump,
14121 # and we got the correct data, then succeed.
14122 # The text in the here-document typically retains its unix-style line
14123 # endings, while the output of objdump will use host line endings.
14124 # Therefore, use diff -b for the comparisons.
14125 if test x
$gcc_cv_objdump != x \
14126 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
14127 |
tail -3 > conftest.got \
14128 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
14129 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
14131 gcc_cv_as_eh_frame
=yes
14132 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 gcc_cv_as_eh_frame
=buggy
14140 # Uh oh, what do we do now?
14141 gcc_cv_as_eh_frame
=no
14144 echo "configure: failed program was" >&5
14147 rm -f conftest.o conftest.s
14150 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14151 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14154 if test $gcc_cv_as_eh_frame = buggy
; then
14156 cat >>confdefs.h
<<\_ACEOF
14157 #define USE_AS_TRADITIONAL_FORMAT 1
14162 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14163 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14164 if test "${gcc_cv_as_shf_merge+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 gcc_cv_as_shf_merge
=no
14168 if test $in_tree_gas = yes; then
14169 if test $in_tree_gas_is_elf = yes \
14170 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14171 then gcc_cv_as_shf_merge
=yes
14173 elif test x
$gcc_cv_as != x
; then
14174 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14175 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }
14182 gcc_cv_as_shf_merge
=yes
14184 echo "configure: failed program was" >&5
14187 rm -f conftest.o conftest.s
14190 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14191 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14193 if test $gcc_cv_as_shf_merge = no
; then
14194 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14195 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14196 if test "${gcc_cv_as_shf_merge+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 gcc_cv_as_shf_merge
=no
14200 if test $in_tree_gas = yes; then
14201 if test $in_tree_gas_is_elf = yes \
14202 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14203 then gcc_cv_as_shf_merge
=yes
14205 elif test x
$gcc_cv_as != x
; then
14206 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14207 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }
14214 gcc_cv_as_shf_merge
=yes
14216 echo "configure: failed program was" >&5
14219 rm -f conftest.o conftest.s
14222 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14223 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14227 cat >>confdefs.h
<<_ACEOF
14228 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14232 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14233 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14234 if test "${gcc_cv_as_comdat_group+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 gcc_cv_as_comdat_group
=no
14238 if test $in_tree_gas = yes; then
14239 if test $in_tree_gas_is_elf = yes \
14240 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14241 then gcc_cv_as_comdat_group
=yes
14243 elif test x
$gcc_cv_as != x
; then
14244 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14245 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }
14252 gcc_cv_as_comdat_group
=yes
14254 echo "configure: failed program was" >&5
14257 rm -f conftest.o conftest.s
14260 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14261 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14263 if test $gcc_cv_as_comdat_group = yes; then
14264 gcc_cv_as_comdat_group_percent
=no
14266 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14267 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14268 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 gcc_cv_as_comdat_group_percent
=no
14272 if test $in_tree_gas = yes; then
14273 if test $in_tree_gas_is_elf = yes \
14274 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14275 then gcc_cv_as_comdat_group_percent
=yes
14277 elif test x
$gcc_cv_as != x
; then
14278 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14279 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }
14286 gcc_cv_as_comdat_group_percent
=yes
14288 echo "configure: failed program was" >&5
14291 rm -f conftest.o conftest.s
14294 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14295 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14298 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14300 if test 0"$ld_date" -lt 20050308; then
14301 if test -n "$ld_date"; then
14302 # If there was date string, but was earlier than 2005-03-08, fail
14304 elif test "$ld_vers_major" -lt 2; then
14306 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14311 # assume linkers other than GNU ld don't support COMDAT group
14314 if test $comdat_group = no
; then
14315 gcc_cv_as_comdat_group
=no
14316 gcc_cv_as_comdat_group_percent
=no
14319 cat >>confdefs.h
<<_ACEOF
14320 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14324 # Thread-local storage - the check is heavily parametrized.
14332 .section ".tdata","awT",@progbits
14335 ldq $27,__tls_get_addr($29) !literal!1
14336 lda $16,foo($29) !tlsgd!1
14337 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14338 ldq $27,__tls_get_addr($29) !literal!2
14339 lda $16,foo($29) !tlsldm!2
14340 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14341 ldq $1,foo($29) !gotdtprel
14342 ldah $2,foo($29) !dtprelhi
14343 lda $3,foo($2) !dtprello
14344 lda $4,foo($29) !dtprel
14345 ldq $1,foo($29) !gottprel
14346 ldah $2,foo($29) !tprelhi
14347 lda $3,foo($2) !tprello
14348 lda $4,foo($29) !tprel'
14351 tls_as_opt
=--fatal-warnings
14355 .section ".tdata","awT",@progbits
14358 call #gettlsoff(x)'
14367 .section ".tdata","awT",@progbits
14371 addil LT%foo-$tls_gdidx$,gp
14372 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14375 addil LT%foo-$tls_ldidx$,gp
14377 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14378 addil LR%foo-$tls_dtpoff$,%ret0
14379 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14381 addil LT%foo-$tls_ieoff$,gp
14382 ldw RT%foo-$tls_ieoff$(%r1),%t2
14385 addil LR%foo-$tls_leoff$,%t1
14386 ldo RR%foo-$tls_leoff$(%r1),%t2'
14389 tls_as_opt
=--fatal-warnings
14393 .section ".tdata","awT",%progbits
14396 .word foo(gottpoff)
14406 .section ".tdata","awT",@progbits
14410 leal foo@TLSGD(,%ebx,1), %eax
14411 leal foo@TLSLDM(%ebx), %eax
14412 leal foo@DTPOFF(%eax), %edx
14413 movl foo@GOTTPOFF(%ebx), %eax
14414 subl foo@GOTTPOFF(%ebx), %eax
14415 addl foo@GOTNTPOFF(%ebx), %eax
14416 movl foo@INDNTPOFF, %eax
14417 movl $foo@TPOFF, %eax
14418 subl $foo@TPOFF, %eax
14419 leal foo@NTPOFF(%ecx), %eax'
14422 tls_as_opt
=--fatal-warnings
14426 .section ".tdata","awT",@progbits
14430 leaq foo@TLSGD(%rip), %rdi
14431 leaq foo@TLSLD(%rip), %rdi
14432 leaq foo@DTPOFF(%rax), %rdx
14433 movq foo@GOTTPOFF(%rip), %rax
14434 movq $foo@TPOFF, %rax'
14437 tls_as_opt
=--fatal-warnings
14441 .section ".tdata","awT",@progbits
14444 addl r16 = @ltoff(@dtpmod(foo#)), gp
14445 addl r17 = @ltoff(@dtprel(foo#)), gp
14446 addl r18 = @ltoff(@tprel(foo#)), gp
14447 addl r19 = @dtprel(foo#), gp
14448 adds r21 = @dtprel(foo#), r13
14449 movl r23 = @dtprel(foo#)
14450 addl r20 = @tprel(foo#), gp
14451 adds r22 = @tprel(foo#), r13
14452 movl r24 = @tprel(foo#)'
14455 tls_as_opt
=--fatal-warnings
14459 .section .tdata,"awT",@progbits
14463 addiu $4, $28, %tlsgd(x)
14464 addiu $4, $28, %tlsldm(x)
14465 lui $4, %dtprel_hi(x)
14466 addiu $4, $4, %dtprel_lo(x)
14467 lw $4, %gottprel(x)($28)
14468 lui $4, %tprel_hi(x)
14469 addiu $4, $4, %tprel_lo(x)'
14472 tls_as_opt
='-32 --fatal-warnings'
14476 .section ".tdata","awT",@progbits
14484 addi 3,31,ld0@got@tlsgd
14486 addi 3,31,x1@got@tlsld
14489 addis 9,3,x2@dtprel@ha
14490 addi 9,9,x2@dtprel@l
14491 lwz 9,x3@got@tprel(31)
14494 addis 9,2,x2@tprel@ha
14495 addi 9,9,x2@tprel@l'
14498 tls_as_opt
="-a32 --fatal-warnings"
14502 .section ".tdata","awT",@progbits
14510 addi 3,2,ld0@got@tlsgd
14516 addi 3,2,x1@got@tlsld
14522 addis 9,3,x2@dtprel@ha
14523 addi 9,9,x2@dtprel@l
14526 ld 9,x3@got@dtprel(2)
14532 tls_as_opt
="-a64 --fatal-warnings"
14536 .section ".tdata","awT",@progbits
14543 .long foo@GOTNTPOFF
14544 .long foo@INDNTPOFF
14545 l %r1,foo@GOTNTPOFF(%r12)
14546 l %r1,0(%r1):tls_load:foo
14547 bas %r14,0(%r1,%r13):tls_gdcall:foo
14548 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14551 tls_as_opt
="-m31 --fatal-warnings"
14555 .section ".tdata","awT",@progbits
14562 .quad foo@GOTNTPOFF
14563 lg %r1,foo@GOTNTPOFF(%r12)
14564 larl %r1,foo@INDNTPOFF
14565 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14566 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14569 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14571 sh-
*-* | sh
[34]-*-*)
14573 .section ".tdata","awT",@progbits
14583 tls_as_opt
=--fatal-warnings
14587 sparc
*-sun-solaris2.
[56789]*)
14588 # TLS was introduced in the Solaris 9 4/04 release but
14589 # we do not enable it by default on Solaris 9 either.
14590 if test "x$enable_tls" = xyes
; then
14596 sparc
*-sun-solaris2.
*)
14603 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14605 .section ".tdata",#alloc,#write,#tls
14608 sethi %tgd_hi22(foo), %o0
14609 add %o0, %tgd_lo10(foo), %o1
14610 add %l7, %o1, %o0, %tgd_add(foo)
14611 call __tls_get_addr, %tgd_call(foo)
14612 sethi %tldm_hi22(foo), %l1
14613 add %l1, %tldm_lo10(foo), %l2
14614 add %l7, %l2, %o0, %tldm_add(foo)
14615 call __tls_get_addr, %tldm_call(foo)
14616 sethi %tldo_hix22(foo), %l3
14617 xor %l3, %tldo_lox10(foo), %l4
14618 add %o0, %l4, %l5, %tldo_add(foo)
14619 sethi %tie_hi22(foo), %o3
14620 add %o3, %tie_lo10(foo), %o3
14621 ld [%l7 + %o3], %o2, %tie_ld(foo)
14622 add %g7, %o2, %o4, %tie_add(foo)
14623 sethi %tle_hix22(foo), %l1
14624 xor %l1, %tle_lox10(foo), %o5
14625 ld [%g7 + %o5], %o1'
14630 .section ".tdata","awT",@progbits
14633 sethi %tgd_hi22(foo), %o0
14634 add %o0, %tgd_lo10(foo), %o1
14635 add %l7, %o1, %o0, %tgd_add(foo)
14636 call __tls_get_addr, %tgd_call(foo)
14637 sethi %tldm_hi22(foo), %l1
14638 add %l1, %tldm_lo10(foo), %l2
14639 add %l7, %l2, %o0, %tldm_add(foo)
14640 call __tls_get_addr, %tldm_call(foo)
14641 sethi %tldo_hix22(foo), %l3
14642 xor %l3, %tldo_lox10(foo), %l4
14643 add %o0, %l4, %l5, %tldo_add(foo)
14644 sethi %tie_hi22(foo), %o3
14645 add %o3, %tie_lo10(foo), %o3
14646 ld [%l7 + %o3], %o2, %tie_ld(foo)
14647 add %g7, %o2, %o4, %tie_add(foo)
14648 sethi %tle_hix22(foo), %l1
14649 xor %l1, %tle_lox10(foo), %o5
14650 ld [%g7 + %o5], %o1'
14653 tls_as_opt
="-32 --fatal-warnings"
14658 if test "x$enable_tls" = xno
; then
14659 : # TLS explicitly disabled.
14660 elif test "x$enable_tls" = xyes
; then
14661 set_have_as_tls
=yes # TLS explicitly enabled.
14662 elif test -z "$tls_first_major"; then
14663 : # If we don't have a check, assume no support.
14665 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14666 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14667 if test "${gcc_cv_as_tls+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 if test $in_tree_gas = yes; then
14672 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14673 then gcc_cv_as_tls
=yes
14675 elif test x
$gcc_cv_as != x
; then
14676 echo "$conftest_s" > conftest.s
14677 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }
14686 echo "configure: failed program was" >&5
14689 rm -f conftest.o conftest.s
14692 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14693 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14694 if test $gcc_cv_as_tls = yes; then
14695 set_have_as_tls
=yes
14698 if test $set_have_as_tls = yes ; then
14700 cat >>confdefs.h
<<\_ACEOF
14701 #define HAVE_AS_TLS 1
14706 # Target-specific assembler checks.
14708 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14709 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14710 gcc_cv_ld_static_dynamic
=no
14711 if test $in_tree_ld = yes ; then
14712 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14713 gcc_cv_ld_static_dynamic
=yes
14715 elif test x
$gcc_cv_ld != x
; then
14716 # Check if linker supports -Bstatic/-Bdynamic option
14717 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14718 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14719 gcc_cv_ld_static_dynamic
=yes
14722 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14724 cat >>confdefs.h
<<\_ACEOF
14725 #define HAVE_LD_STATIC_DYNAMIC 1
14729 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14730 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14732 if test x
"$demangler_in_ld" = xyes
; then
14733 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14734 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14735 gcc_cv_ld_demangle
=no
14736 if test $in_tree_ld = yes; then
14737 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 \
14738 gcc_cv_ld_demangle
=yes
14740 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14741 # Check if the GNU linker supports --demangle option
14742 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14743 gcc_cv_ld_demangle
=yes
14746 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14748 cat >>confdefs.h
<<\_ACEOF
14749 #define HAVE_LD_DEMANGLE 1
14753 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14754 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14758 # All TARGET_ABI_OSF targets.
14759 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14760 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14761 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14762 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 gcc_cv_as_alpha_explicit_relocs
=no
14766 if test $in_tree_gas = yes; then
14767 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14768 then gcc_cv_as_alpha_explicit_relocs
=yes
14770 elif test x
$gcc_cv_as != x
; then
14771 echo ' .set nomacro
14773 extbl $3, $2, $3 !lituse_bytoff!1
14774 ldq $2, a($29) !literal!1
14775 ldq $4, b($29) !literal!2
14776 ldq_u $3, 0($2) !lituse_base!1
14777 ldq $27, f($29) !literal!5
14778 jsr $26, ($27), f !lituse_jsr!5
14779 ldah $29, 0($26) !gpdisp!3
14780 lda $0, c($29) !gprel
14781 ldah $1, d($29) !gprelhigh
14782 lda $1, d($1) !gprellow
14783 lda $29, 0($29) !gpdisp!3' > conftest.s
14784 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }
14791 gcc_cv_as_alpha_explicit_relocs
=yes
14793 echo "configure: failed program was" >&5
14796 rm -f conftest.o conftest.s
14799 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14800 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14801 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14803 cat >>confdefs.h
<<\_ACEOF
14804 #define HAVE_AS_EXPLICIT_RELOCS 1
14808 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14809 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14810 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 gcc_cv_as_alpha_jsrdirect_relocs
=no
14814 if test $in_tree_gas = yes; then
14815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14816 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14818 elif test x
$gcc_cv_as != x
; then
14819 echo ' .set nomacro
14821 ldq $27, a($29) !literal!1
14822 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14823 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; }
14830 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14832 echo "configure: failed program was" >&5
14835 rm -f conftest.o conftest.s
14838 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14839 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14840 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14842 cat >>confdefs.h
<<\_ACEOF
14843 #define HAVE_AS_JSRDIRECT_RELOCS 1
14850 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14851 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14852 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 gcc_cv_as_cris_no_mul_bug
=no
14856 if test $in_tree_gas = yes; then
14857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14858 then gcc_cv_as_cris_no_mul_bug
=yes
14860 elif test x
$gcc_cv_as != x
; then
14861 echo '.text' > conftest.s
14862 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }
14869 gcc_cv_as_cris_no_mul_bug
=yes
14871 echo "configure: failed program was" >&5
14874 rm -f conftest.o conftest.s
14877 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14878 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14879 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14881 cat >>confdefs.h
<<\_ACEOF
14882 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14889 echo "$as_me:$LINENO: checking assembler for .register" >&5
14890 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14891 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 gcc_cv_as_sparc_register_op
=no
14895 if test x
$gcc_cv_as != x
; then
14896 echo '.register %g2, #scratch' > conftest.s
14897 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }
14904 gcc_cv_as_sparc_register_op
=yes
14906 echo "configure: failed program was" >&5
14909 rm -f conftest.o conftest.s
14912 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14913 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14914 if test $gcc_cv_as_sparc_register_op = yes; then
14916 cat >>confdefs.h
<<\_ACEOF
14917 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14922 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14923 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14924 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 gcc_cv_as_sparc_relax
=no
14928 if test x
$gcc_cv_as != x
; then
14929 echo '.text' > conftest.s
14930 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; }
14937 gcc_cv_as_sparc_relax
=yes
14939 echo "configure: failed program was" >&5
14942 rm -f conftest.o conftest.s
14945 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14946 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14947 if test $gcc_cv_as_sparc_relax = yes; then
14949 cat >>confdefs.h
<<\_ACEOF
14950 #define HAVE_AS_RELAX_OPTION 1
14955 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14956 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14957 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 gcc_cv_as_sparc_ua_pcrel
=no
14961 if test x
$gcc_cv_as != x
; then
14968 .uaword %r_disp32(foo)' > conftest.s
14969 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }
14976 if test x
$gcc_cv_ld != x \
14977 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14978 gcc_cv_as_sparc_ua_pcrel
=yes
14982 echo "configure: failed program was" >&5
14985 rm -f conftest.o conftest.s
14988 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14989 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14990 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14992 cat >>confdefs.h
<<\_ACEOF
14993 #define HAVE_AS_SPARC_UA_PCREL 1
14997 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14998 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14999 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 gcc_cv_as_sparc_ua_pcrel_hidden
=no
15003 if test x
$gcc_cv_as != x
; then
15007 .uaword %r_disp32(foo)
15008 .byte 0x32, 0x33, 0x34
15012 .skip 4' > conftest.s
15013 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }
15020 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
15021 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
15022 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
15023 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
15024 if $gcc_cv_objdump -R conftest
2> /dev
/null \
15025 |
grep 'DISP32' > /dev
/null
2>&1; then
15028 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
15033 echo "configure: failed program was" >&5
15036 rm -f conftest.o conftest.s
15039 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15040 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15041 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15043 cat >>confdefs.h
<<\_ACEOF
15044 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15049 fi # unaligned pcrel relocs
15051 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15052 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15053 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 gcc_cv_as_sparc_offsetable_lo10
=no
15057 if test x
$gcc_cv_as != x
; then
15059 or %g1, %lo(ab) + 12, %g1
15060 or %g1, %lo(ab + 12), %g1' > conftest.s
15061 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }
15068 if test x
$gcc_cv_objdump != x \
15069 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
15070 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
15071 gcc_cv_as_sparc_offsetable_lo10
=yes
15074 echo "configure: failed program was" >&5
15077 rm -f conftest.o conftest.s
15080 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15081 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15082 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15084 cat >>confdefs.h
<<\_ACEOF
15085 #define HAVE_AS_OFFSETABLE_LO10 1
15091 i
[34567]86-*-* | x86_64-
*-*)
15093 cygwin
* | pe | mingw32
*)
15094 # Used for DWARF 2 in PE
15095 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15096 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15097 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15100 gcc_cv_as_ix86_pe_secrel32
=no
15101 if test $in_tree_gas = yes; then
15102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15103 then gcc_cv_as_ix86_pe_secrel32
=yes
15105 elif test x
$gcc_cv_as != x
; then
15109 .secrel32 foo' > conftest.s
15110 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }
15117 if test x
$gcc_cv_ld != x \
15118 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
15119 gcc_cv_as_ix86_pe_secrel32
=yes
15123 echo "configure: failed program was" >&5
15126 rm -f conftest.o conftest.s
15129 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15130 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15131 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15133 cat >>confdefs.h
<<\_ACEOF
15134 #define HAVE_GAS_PE_SECREL32_RELOC 1
15141 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15142 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15143 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 gcc_cv_as_ix86_filds_fists
=no
15147 if test $in_tree_gas = yes; then
15148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15149 then gcc_cv_as_ix86_filds_fists
=yes
15151 elif test x
$gcc_cv_as != x
; then
15152 echo 'filds mem; fists mem' > conftest.s
15153 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }
15160 gcc_cv_as_ix86_filds_fists
=yes
15162 echo "configure: failed program was" >&5
15165 rm -f conftest.o conftest.s
15168 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15169 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15170 if test $gcc_cv_as_ix86_filds_fists = yes; then
15172 cat >>confdefs.h
<<\_ACEOF
15173 #define HAVE_GAS_FILDS_FISTS 1
15178 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15179 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15180 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 gcc_cv_as_ix86_cmov_sun_syntax
=no
15184 if test x
$gcc_cv_as != x
; then
15185 echo 'cmovl.l %edx, %eax' > conftest.s
15186 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }
15193 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15195 echo "configure: failed program was" >&5
15198 rm -f conftest.o conftest.s
15201 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15202 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15203 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15205 cat >>confdefs.h
<<\_ACEOF
15206 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15211 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15212 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15213 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 gcc_cv_as_ix86_ffreep
=no
15217 if test x
$gcc_cv_as != x
; then
15218 echo 'ffreep %st(1)' > conftest.s
15219 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }
15226 gcc_cv_as_ix86_ffreep
=yes
15228 echo "configure: failed program was" >&5
15231 rm -f conftest.o conftest.s
15234 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15235 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15236 if test $gcc_cv_as_ix86_ffreep = yes; then
15238 cat >>confdefs.h
<<\_ACEOF
15239 #define HAVE_AS_IX86_FFREEP 1
15244 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15245 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15246 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 gcc_cv_as_ix86_sahf
=no
15250 if test x
$gcc_cv_as != x
; then
15251 echo 'sahf' > conftest.s
15252 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }
15259 gcc_cv_as_ix86_sahf
=yes
15261 echo "configure: failed program was" >&5
15264 rm -f conftest.o conftest.s
15267 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15268 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15269 if test $gcc_cv_as_ix86_sahf = yes; then
15271 cat >>confdefs.h
<<\_ACEOF
15272 #define HAVE_AS_IX86_SAHF 1
15277 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15278 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15279 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 gcc_cv_as_ix86_diff_sect_delta
=no
15283 if test x
$gcc_cv_as != x
; then
15284 echo '.section .rodata
15290 .L2: nop' > conftest.s
15291 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }
15298 gcc_cv_as_ix86_diff_sect_delta
=yes
15300 echo "configure: failed program was" >&5
15303 rm -f conftest.o conftest.s
15306 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15307 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15308 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15310 cat >>confdefs.h
<<\_ACEOF
15311 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15316 # This one is used unconditionally by i386.[ch]; it is to be defined
15317 # to 1 if the feature is present, 0 otherwise.
15318 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15319 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15320 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15321 echo $ECHO_N "(cached) $ECHO_C" >&6
15323 gcc_cv_as_ix86_gotoff_in_data
=no
15324 if test $in_tree_gas = yes; then
15325 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15326 then gcc_cv_as_ix86_gotoff_in_data
=yes
15328 elif test x
$gcc_cv_as != x
; then
15333 .long .L0@GOTOFF' > conftest.s
15334 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }
15341 gcc_cv_as_ix86_gotoff_in_data
=yes
15343 echo "configure: failed program was" >&5
15346 rm -f conftest.o conftest.s
15349 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15350 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15353 cat >>confdefs.h
<<_ACEOF
15354 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15360 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15361 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15362 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15366 if test $in_tree_gas = yes; then
15367 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15368 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15370 elif test x
$gcc_cv_as != x
; then
15372 addl r15 = @ltoffx(x#), gp
15374 ld8.mov r16 = [r15], x#' > conftest.s
15375 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }
15382 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15384 echo "configure: failed program was" >&5
15387 rm -f conftest.o conftest.s
15390 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15391 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15392 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15394 cat >>confdefs.h
<<\_ACEOF
15395 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15404 *-*-aix*) conftest_s
=' .machine "pwr5"
15408 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15409 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15410 if test "${gcc_cv_as_machine_directive+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 gcc_cv_as_machine_directive
=no
15414 if test x
$gcc_cv_as != x
; then
15415 echo ' .machine ppc7400' > conftest.s
15416 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }
15423 gcc_cv_as_machine_directive
=yes
15425 echo "configure: failed program was" >&5
15428 rm -f conftest.o conftest.s
15431 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15432 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15434 if test x
$gcc_cv_as_machine_directive != xyes
; then
15435 echo "*** This target requires an assembler supporting \".machine\"" >&2
15436 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15437 test x
$build = x
$target && exit 1
15441 *) conftest_s
=' .machine power4
15446 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15447 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15448 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 gcc_cv_as_powerpc_mfcrf
=no
15452 if test $in_tree_gas = yes; then
15453 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15454 then gcc_cv_as_powerpc_mfcrf
=yes
15456 elif test x
$gcc_cv_as != x
; then
15457 echo "$conftest_s" > conftest.s
15458 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; }
15465 gcc_cv_as_powerpc_mfcrf
=yes
15467 echo "configure: failed program was" >&5
15470 rm -f conftest.o conftest.s
15473 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15474 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15475 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15477 cat >>confdefs.h
<<\_ACEOF
15478 #define HAVE_AS_MFCRF 1
15484 *-*-aix*) conftest_s
=' .machine "pwr5"
15487 *) conftest_s
=' .machine power5
15492 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15493 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15494 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 gcc_cv_as_powerpc_popcntb
=no
15498 if test $in_tree_gas = yes; then
15499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15500 then gcc_cv_as_powerpc_popcntb
=yes
15502 elif test x
$gcc_cv_as != x
; then
15503 echo "$conftest_s" > conftest.s
15504 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }
15511 gcc_cv_as_powerpc_popcntb
=yes
15513 echo "configure: failed program was" >&5
15516 rm -f conftest.o conftest.s
15519 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15520 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15521 if test $gcc_cv_as_powerpc_popcntb = yes; then
15523 cat >>confdefs.h
<<\_ACEOF
15524 #define HAVE_AS_POPCNTB 1
15530 *-*-aix*) conftest_s
=' .machine "pwr5x"
15533 *) conftest_s
=' .machine power5
15538 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15539 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15540 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 gcc_cv_as_powerpc_fprnd
=no
15544 if test $in_tree_gas = yes; then
15545 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15546 then gcc_cv_as_powerpc_fprnd
=yes
15548 elif test x
$gcc_cv_as != x
; then
15549 echo "$conftest_s" > conftest.s
15550 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }
15557 gcc_cv_as_powerpc_fprnd
=yes
15559 echo "configure: failed program was" >&5
15562 rm -f conftest.o conftest.s
15565 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15566 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15567 if test $gcc_cv_as_powerpc_fprnd = yes; then
15569 cat >>confdefs.h
<<\_ACEOF
15570 #define HAVE_AS_FPRND 1
15576 *-*-aix*) conftest_s
=' .machine "pwr6"
15579 *) conftest_s
=' .machine power6
15584 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15585 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15586 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 gcc_cv_as_powerpc_mfpgpr
=no
15590 if test $in_tree_gas = yes; then
15591 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15592 then gcc_cv_as_powerpc_mfpgpr
=yes
15594 elif test x
$gcc_cv_as != x
; then
15595 echo "$conftest_s" > conftest.s
15596 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }
15603 gcc_cv_as_powerpc_mfpgpr
=yes
15605 echo "configure: failed program was" >&5
15608 rm -f conftest.o conftest.s
15611 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15612 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15613 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15615 cat >>confdefs.h
<<\_ACEOF
15616 #define HAVE_AS_MFPGPR 1
15622 *-*-aix*) conftest_s
=' .csect .text[PR]
15624 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15628 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15629 *) conftest_s
=' .text
15631 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15634 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15635 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15636 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 gcc_cv_as_powerpc_rel16
=no
15640 if test $in_tree_gas = yes; then
15641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15642 then gcc_cv_as_powerpc_rel16
=yes
15644 elif test x
$gcc_cv_as != x
; then
15645 echo "$conftest_s" > conftest.s
15646 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }
15653 gcc_cv_as_powerpc_rel16
=yes
15655 echo "configure: failed program was" >&5
15658 rm -f conftest.o conftest.s
15661 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15662 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15663 if test $gcc_cv_as_powerpc_rel16 = yes; then
15665 cat >>confdefs.h
<<\_ACEOF
15666 #define HAVE_AS_REL16 1
15672 *-*-aix*) conftest_s
=' .machine "pwr6"
15675 *) conftest_s
=' .machine power6
15680 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15681 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15682 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 gcc_cv_as_powerpc_cmpb
=no
15686 if test $in_tree_gas = yes; then
15687 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15688 then gcc_cv_as_powerpc_cmpb
=yes
15690 elif test x
$gcc_cv_as != x
; then
15691 echo "$conftest_s" > conftest.s
15692 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }
15699 gcc_cv_as_powerpc_cmpb
=yes
15701 echo "configure: failed program was" >&5
15704 rm -f conftest.o conftest.s
15707 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15708 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15709 if test $gcc_cv_as_powerpc_cmpb = yes; then
15711 cat >>confdefs.h
<<\_ACEOF
15712 #define HAVE_AS_CMPB 1
15718 *-*-aix*) conftest_s
=' .machine "pwr6"
15721 *) conftest_s
=' .machine power6
15726 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15727 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15728 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 gcc_cv_as_powerpc_dfp
=no
15732 if test $in_tree_gas = yes; then
15733 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15734 then gcc_cv_as_powerpc_dfp
=yes
15736 elif test x
$gcc_cv_as != x
; then
15737 echo "$conftest_s" > conftest.s
15738 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }
15745 gcc_cv_as_powerpc_dfp
=yes
15747 echo "configure: failed program was" >&5
15750 rm -f conftest.o conftest.s
15753 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15754 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15755 if test $gcc_cv_as_powerpc_dfp = yes; then
15757 cat >>confdefs.h
<<\_ACEOF
15758 #define HAVE_AS_DFP 1
15765 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15766 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15767 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 gcc_cv_as_mips_explicit_relocs
=no
15771 if test $in_tree_gas = yes; then
15772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15773 then gcc_cv_as_mips_explicit_relocs
=yes
15775 elif test x
$gcc_cv_as != x
; then
15776 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15777 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; }
15784 gcc_cv_as_mips_explicit_relocs
=yes
15786 echo "configure: failed program was" >&5
15789 rm -f conftest.o conftest.s
15792 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15793 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15794 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15795 if test x
$target_cpu_default = x
15796 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15797 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15800 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15801 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15802 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 gcc_cv_as_mips_no_shared
=no
15806 if test $in_tree_gas = yes; then
15807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15808 then gcc_cv_as_mips_no_shared
=yes
15810 elif test x
$gcc_cv_as != x
; then
15811 echo 'nop' > conftest.s
15812 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }
15819 gcc_cv_as_mips_no_shared
=yes
15821 echo "configure: failed program was" >&5
15824 rm -f conftest.o conftest.s
15827 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15828 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15829 if test $gcc_cv_as_mips_no_shared = yes; then
15831 cat >>confdefs.h
<<\_ACEOF
15832 #define HAVE_AS_NO_SHARED 1
15839 # Mips and HP-UX need the GNU assembler.
15840 # Linux on IA64 might be able to use the Intel assembler.
15843 mips
*-*-* |
*-*-hpux* )
15844 if test x
$gas_flag = xyes \
15845 ||
test x
"$host" != x
"$build" \
15846 ||
test ! -x "$gcc_cv_as" \
15847 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15850 echo "*** This configuration requires the GNU assembler" >&2
15856 # ??? Not all targets support dwarf2 debug_line, even within a version
15857 # of gas. Moreover, we need to emit a valid instruction to trigger any
15858 # info to the output file. So, as supported targets are added to gas 2.11,
15859 # add some instruction here to (also) show we expect this might work.
15860 # ??? Once 2.11 is released, probably need to add first known working
15861 # version to the per-target configury.
15863 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15864 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15865 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* | spu-
*-*)
15868 ia64
*-*-* | s390
*-*-*)
15875 if test x
"$insn" != x
; then
15877 .file 1 \"conftest.s\"
15880 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15881 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15882 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 gcc_cv_as_dwarf2_debug_line
=no
15886 if test $in_tree_gas = yes; then
15887 if test $in_tree_gas_is_elf = yes \
15888 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15889 then gcc_cv_as_dwarf2_debug_line
=yes
15891 elif test x
$gcc_cv_as != x
; then
15892 echo "$conftest_s" > conftest.s
15893 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }
15900 if test x
$gcc_cv_objdump != x \
15901 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15902 |
grep debug_line
> /dev
/null
2>&1; then
15903 gcc_cv_as_dwarf2_debug_line
=yes
15906 echo "configure: failed program was" >&5
15909 rm -f conftest.o conftest.s
15912 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15913 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15916 # The .debug_line file table must be in the exact order that
15917 # we specified the files, since these indices are also used
15918 # by DW_AT_decl_file. Approximate this test by testing if
15919 # the assembler bitches if the same index is assigned twice.
15920 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15921 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15922 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 gcc_cv_as_dwarf2_file_buggy
=no
15926 if test x
$gcc_cv_as != x
; then
15927 echo ' .file 1 "foo.s"
15928 .file 1 "bar.s"' > conftest.s
15929 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }
15936 gcc_cv_as_dwarf2_file_buggy
=yes
15938 echo "configure: failed program was" >&5
15941 rm -f conftest.o conftest.s
15944 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15945 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15948 if test $gcc_cv_as_dwarf2_debug_line = yes \
15949 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15951 cat >>confdefs.h
<<\_ACEOF
15952 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15957 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15958 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15959 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 gcc_cv_as_gdwarf2_flag
=no
15963 if test $in_tree_gas = yes; then
15964 if test $in_tree_gas_is_elf = yes \
15965 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15966 then gcc_cv_as_gdwarf2_flag
=yes
15968 elif test x
$gcc_cv_as != x
; then
15969 echo "$insn" > conftest.s
15970 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; }
15977 gcc_cv_as_gdwarf2_flag
=yes
15979 echo "configure: failed program was" >&5
15982 rm -f conftest.o conftest.s
15985 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15986 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15987 if test $gcc_cv_as_gdwarf2_flag = yes; then
15989 cat >>confdefs.h
<<\_ACEOF
15990 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15995 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15996 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15997 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 gcc_cv_as_gstabs_flag
=no
16001 if test $in_tree_gas = yes; then
16002 if test $in_tree_gas_is_elf = yes \
16003 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16004 then gcc_cv_as_gstabs_flag
=yes
16006 elif test x
$gcc_cv_as != x
; then
16007 echo "$insn" > conftest.s
16008 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }
16015 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16016 # and warns about it, but still exits successfully. So check for
16018 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }
16025 else gcc_cv_as_gstabs_flag
=yes
16028 echo "configure: failed program was" >&5
16031 rm -f conftest.o conftest.s
16034 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16035 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16036 if test $gcc_cv_as_gstabs_flag = yes; then
16038 cat >>confdefs.h
<<\_ACEOF
16039 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16045 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16046 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16047 if test "${gcc_cv_as_line_zero+set}" = set; then
16048 echo $ECHO_N "(cached) $ECHO_C" >&6
16050 gcc_cv_as_line_zero
=no
16051 if test $in_tree_gas = yes; then
16052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16053 then gcc_cv_as_line_zero
=yes
16055 elif test "x$gcc_cv_as" != x
; then
16056 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16057 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; } &&
16063 test "x`cat conftest.out`" = x
16065 gcc_cv_as_line_zero
=yes
16067 echo "configure: failed program was" >&5
16069 echo "configure: error output was" >&5
16070 cat conftest.out
>&5
16072 rm -f conftest.o conftest.s conftest.out
16075 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16076 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16077 if test "x$gcc_cv_as_line_zero" = xyes
; then
16079 cat >>confdefs.h
<<\_ACEOF
16080 #define HAVE_AS_LINE_ZERO 1
16085 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16086 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16087 gcc_cv_ld_ro_rw_mix
=unknown
16088 if test $in_tree_ld = yes ; then
16089 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 \
16090 && test $in_tree_ld_is_elf = yes; then
16091 gcc_cv_ld_ro_rw_mix
=read-write
16093 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16094 echo '.section myfoosect, "a"' > conftest1.s
16095 echo '.section myfoosect, "aw"' > conftest2.s
16096 echo '.byte 1' >> conftest2.s
16097 echo '.section myfoosect, "a"' > conftest3.s
16098 echo '.byte 0' >> conftest3.s
16099 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16100 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16101 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
16102 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16103 conftest2.o conftest3.o
> /dev
/null
2>&1; then
16104 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
16105 | sed -e '/myfoosect/!d' -e N`
16106 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
16107 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
16108 gcc_cv_ld_ro_rw_mix
=read-only
16110 gcc_cv_ld_ro_rw_mix
=read-write
16114 rm -f conftest.
* conftest
[123].
*
16116 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
16118 cat >>confdefs.h
<<\_ACEOF
16119 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16123 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16124 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16126 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16127 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16128 gcc_cv_ld_eh_frame_hdr
=no
16129 if test $in_tree_ld = yes ; then
16130 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 \
16131 && test $in_tree_ld_is_elf = yes; then
16132 gcc_cv_ld_eh_frame_hdr
=yes
16134 elif test x
$gcc_cv_ld != x
; then
16135 # Check if linker supports --eh-frame-hdr option
16136 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
16137 gcc_cv_ld_eh_frame_hdr
=yes
16141 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
16143 cat >>confdefs.h
<<\_ACEOF
16144 #define HAVE_LD_EH_FRAME_HDR 1
16148 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16149 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16151 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16152 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16154 if test $in_tree_ld = yes ; then
16155 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 \
16156 && test $in_tree_ld_is_elf = yes; then
16159 elif test x
$gcc_cv_ld != x
; then
16160 # Check if linker supports -pie option
16161 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
16165 if test x
"$gcc_cv_ld_pie" = xyes
; then
16167 cat >>confdefs.h
<<\_ACEOF
16168 #define HAVE_LD_PIE 1
16172 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16173 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16175 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16176 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16177 gcc_cv_ld_eh_gc_sections
=no
16178 if test $in_tree_ld = yes ; then
16179 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16180 && test $in_tree_ld_is_elf = yes; then
16181 gcc_cv_ld_eh_gc_sections
=yes
16183 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16184 cat > conftest.s
<<EOF
16187 .type _start, @function
16190 .size _start, .-_start
16191 .section .text.foo,"ax",@progbits
16192 .type foo, @function
16196 .section .gcc_except_table.foo,"a",@progbits
16199 .section .eh_frame,"a",@progbits
16202 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
16203 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
16204 |
grep "gc-sections option ignored" > /dev
/null
; then
16205 gcc_cv_ld_eh_gc_sections
=no
16206 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
16207 gcc_cv_ld_eh_gc_sections
=yes
16208 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16209 if test x
$gcc_cv_as_comdat_group != xyes
; then
16210 gcc_cv_ld_eh_gc_sections
=no
16211 cat > conftest.s
<<EOF
16214 .type _start, @function
16217 .size _start, .-_start
16218 .section .gnu.linkonce.t.foo,"ax",@progbits
16219 .type foo, @function
16223 .section .gcc_except_table.foo,"a",@progbits
16226 .section .eh_frame,"a",@progbits
16229 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
16230 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
16231 |
grep "gc-sections option ignored" > /dev
/null
; then
16232 gcc_cv_ld_eh_gc_sections
=no
16233 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
16234 gcc_cv_ld_eh_gc_sections
=yes
16240 rm -f conftest.s conftest.o conftest
16244 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16245 gcc_cv_ld_eh_gc_sections
=no
16248 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
16250 cat >>confdefs.h
<<\_ACEOF
16251 #define HAVE_LD_EH_GC_SECTIONS 1
16255 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16256 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16262 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16263 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16264 if test "${gcc_cv_ld_as_needed+set}" = set; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 gcc_cv_ld_as_needed
=no
16268 if test $in_tree_ld = yes ; then
16269 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 \
16270 && test $in_tree_ld_is_elf = yes; then
16271 gcc_cv_ld_as_needed
=yes
16273 elif test x
$gcc_cv_ld != x
; then
16274 # Check if linker supports --as-needed and --no-as-needed options
16275 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
16276 gcc_cv_ld_as_needed
=yes
16281 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16282 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16283 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
16285 cat >>confdefs.h
<<\_ACEOF
16286 #define HAVE_LD_AS_NEEDED 1
16291 case "$target:$tm_file" in
16292 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
16293 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16294 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16295 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 gcc_cv_ld_no_dot_syms
=no
16299 if test $in_tree_ld = yes ; then
16300 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
16301 gcc_cv_ld_no_dot_syms
=yes
16303 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
16304 cat > conftest1.s
<<EOF
16308 cat > conftest2.s
<<EOF
16309 .section ".opd","aw"
16312 .type foo,@function
16314 .quad .LEfoo,.TOC.@tocbase,0
16320 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16321 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16322 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
16323 gcc_cv_ld_no_dot_syms
=yes
16325 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16329 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16330 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16331 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
16333 cat >>confdefs.h
<<\_ACEOF
16334 #define HAVE_LD_NO_DOT_SYMS 1
16341 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16342 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16343 if test "${gcc_cv_ld_sysroot+set}" = set; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 gcc_cv_ld_sysroot
=no
16347 if test $in_tree_ld = yes ; then
16348 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
16349 gcc_cv_ld_sysroot
=yes
16351 elif test x
$gcc_cv_ld != x
; then
16352 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
16353 gcc_cv_ld_sysroot
=yes
16357 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16358 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16359 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
16361 cat >>confdefs.h
<<\_ACEOF
16362 #define HAVE_LD_SYSROOT 1
16367 if test x
$with_sysroot = x
&& test x
$host = x
$target \
16368 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16369 && test "$prefix" != "NONE"; then
16371 cat >>confdefs.h
<<_ACEOF
16372 #define PREFIX_INCLUDE_DIR "$prefix/include"
16377 # Test for stack protector support in target C library.
16378 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16379 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16380 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 gcc_cv_libc_provides_ssp
=no
16386 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16387 if test "x$with_sysroot" = x
; then
16388 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16389 elif test "x$with_build_sysroot" != "x"; then
16390 glibc_header_dir
="${with_build_sysroot}/usr/include"
16391 elif test "x$with_sysroot" = xyes
; then
16392 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16394 glibc_header_dir
="${with_sysroot}/usr/include"
16397 glibc_header_dir
=/usr
/include
16399 # glibc 2.4 and later provides __stack_chk_fail and
16400 # either __stack_chk_guard, or TLS access to stack guard canary.
16401 if test -f $glibc_header_dir/features.h \
16402 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16403 $glibc_header_dir/features.h
> /dev
/null
; then
16404 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16405 $glibc_header_dir/features.h
> /dev
/null
; then
16406 gcc_cv_libc_provides_ssp
=yes
16407 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16408 $glibc_header_dir/features.h
> /dev
/null \
16409 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16410 $glibc_header_dir/features.h
> /dev
/null
; then
16411 gcc_cv_libc_provides_ssp
=yes
16416 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16417 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16418 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 cat >conftest.
$ac_ext <<_ACEOF
16424 cat confdefs.h
>>conftest.
$ac_ext
16425 cat >>conftest.
$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16429 #define __stack_chk_fail innocuous___stack_chk_fail
16431 /* System header to define __stub macros and hopefully few prototypes,
16432 which can conflict with char __stack_chk_fail (); below.
16433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16434 <limits.h> exists even on freestanding compilers. */
16437 # include <limits.h>
16439 # include <assert.h>
16442 #undef __stack_chk_fail
16444 /* Override any gcc2 internal prototype to avoid an error. */
16449 /* We use char because int might match the return type of a gcc2
16450 builtin and then its argument prototype would still apply. */
16451 char __stack_chk_fail ();
16452 /* The GNU C library defines this for functions which it implements
16453 to always fail with ENOSYS. Some functions are actually named
16454 something starting with __ and the normal name is an alias. */
16455 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16458 char (*f) () = __stack_chk_fail;
16467 return f != __stack_chk_fail;
16472 rm -f conftest.
$ac_objext conftest
$ac_exeext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16474 (eval $ac_link) 2>conftest.er1
16476 grep -v '^ *+' conftest.er1
>conftest.err
16478 cat conftest.err
>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try
='test -z "$ac_c_werror_flag"
16482 || test ! -s conftest.err'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try
='test -s conftest$ac_exeext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16494 ac_cv_func___stack_chk_fail
=yes
16496 echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.
$ac_ext >&5
16499 ac_cv_func___stack_chk_fail
=no
16501 rm -f conftest.err conftest.
$ac_objext \
16502 conftest
$ac_exeext conftest.
$ac_ext
16504 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16505 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16506 if test $ac_cv_func___stack_chk_fail = yes; then
16507 gcc_cv_libc_provides_ssp
=yes
16509 echo "no __stack_chk_fail on this target"
16513 *) gcc_cv_libc_provides_ssp
=no
;;
16516 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16517 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16519 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
16521 cat >>confdefs.h
<<\_ACEOF
16522 #define TARGET_LIBC_PROVIDES_SSP 1
16527 # Check if TFmode long double should be used by default or not.
16528 # Some glibc targets used DFmode long double, but with glibc 2.4
16529 # and later they can use TFmode.
16531 powerpc
*-*-linux* | \
16532 powerpc
*-*-gnu* | \
16533 sparc
*-*-linux* | \
16537 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16538 if test "${with_long_double_128+set}" = set; then
16539 withval
="$with_long_double_128"
16540 gcc_cv_target_ldbl128
="$with_long_double_128"
16542 gcc_cv_target_ldbl128
=no
16543 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16544 if test "x$with_sysroot" = x
; then
16545 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16546 elif test "x$with_build_sysroot" != "x"; then
16547 glibc_header_dir
="${with_build_sysroot}/usr/include"
16548 elif test "x$with_sysroot" = xyes
; then
16549 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16551 glibc_header_dir
="${with_sysroot}/usr/include"
16554 glibc_header_dir
=/usr
/include
16556 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16557 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
16558 && gcc_cv_target_ldbl128
=yes
16563 if test x
$gcc_cv_target_ldbl128 = xyes
; then
16565 cat >>confdefs.h
<<\_ACEOF
16566 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16571 # Find out what GC implementation we want, or may, use.
16573 # Check whether --with-gc or --without-gc was given.
16574 if test "${with_gc+set}" = set; then
16583 cat >>confdefs.h
<<\_ACEOF
16589 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16590 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16591 { (exit 1); exit 1; }; }
16598 echo "Using $GGC for garbage collection."
16600 # Use the system's zlib library.
16602 zlibinc
="-I\$(srcdir)/../zlib"
16604 # Check whether --with-system-zlib or --without-system-zlib was given.
16605 if test "${with_system_zlib+set}" = set; then
16606 withval
="$with_system_zlib"
16615 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16616 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16617 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16618 if test "${enable_maintainer_mode+set}" = set; then
16619 enableval
="$enable_maintainer_mode"
16620 maintainer_mode
=$enableval
16625 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16626 echo "${ECHO_T}$maintainer_mode" >&6
16628 if test "$maintainer_mode" = "yes"; then
16638 # Make empty files to contain the specs and options for each language.
16639 # Then add #include lines to for a compiler that has specs and/or options.
16645 # These (without "all_") are set in each config-lang.in.
16646 # `language' must be a single word so is spelled singularly.
16649 all_outputs
='Makefile gccbug libada-mk'
16650 # List of language makefile fragments.
16651 all_lang_makefrags
=
16652 # List of language subdirectory makefiles. Deprecated.
16653 all_lang_makefiles
=
16654 # Additional files for gengtype
16655 all_gtfiles
="$target_gtfiles"
16657 # These are the languages that are set in --enable-languages,
16658 # and are available in the GCC tree.
16659 all_selected_languages
=
16661 # Add the language fragments.
16662 # Languages are added via two mechanisms. Some information must be
16663 # recorded in makefile variables, these are defined in config-lang.in.
16664 # We accumulate them and plug them into the main Makefile.
16665 # The other mechanism is a set of hooks for each of the main targets
16666 # like `clean', `install', etc.
16668 language_hooks
="Make-hooks"
16670 for lang
in ${srcdir}/*/config-lang.
in
16672 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16674 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16675 if test "x$lang_alias" = x
16677 echo "$lang doesn't set \$language." 1>&2
16680 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16681 subdirs
="$subdirs $subdir"
16682 case ",$enable_languages," in
16684 all_selected_languages
="$all_selected_languages $lang_alias"
16685 if test -f $srcdir/$subdir/lang-specs.h
; then
16686 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16697 .
${srcdir}/$subdir/config-lang.
in
16698 if test "x$language" = x
16700 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16705 case ",$enable_languages," in
16706 *,$lang_alias,*) ;;
16708 for i
in $subdir_requires; do
16709 test -f "${srcdir}/$i/config-lang.in" && continue
16717 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16718 if test -f $srcdir/$subdir/lang.opt
; then
16719 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16721 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16722 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16724 if test -f ${srcdir}/$subdir/Makefile.
in
16725 then all_lang_makefiles
="$subdir/Makefile"
16727 all_languages
="$all_languages $language"
16728 all_compilers
="$all_compilers $compilers"
16729 all_outputs
="$all_outputs $outputs"
16730 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
16733 # Pick up gtfiles for c
16735 .
${srcdir}/c-config-lang.
in
16736 all_gtfiles
="$all_gtfiles [c] $gtfiles"
16739 for language
in $all_selected_languages
16741 check_languages
="$check_languages check-$language"
16744 # We link each language in with a set of hooks, reached indirectly via
16745 # lang.${target}. Only do so for selected languages.
16749 target_list
="all.cross start.encap rest.encap tags \
16750 install-common install-man install-info install-pdf dvi pdf \
16751 html uninstall info man srcextra srcman srcinfo \
16752 mostlyclean clean distclean maintainer-clean"
16754 for t
in $target_list
16757 for lang
in $all_selected_languages
16761 echo "lang.$t: $x" >> Make-hooks
16770 echo "dir ." > .gdbinit
16771 echo "dir ${srcdir}" >> .gdbinit
16772 if test x
$gdb_needs_out_file_path = xyes
16774 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16776 if test "x$subdirs" != x
; then
16779 echo "dir ${srcdir}/$s" >> .gdbinit
16782 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16784 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16785 # absolute path for gcc_tooldir based on inserting the number of up-directory
16786 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16787 # $(libsubdir)/@(unlibsubdir) based path.
16788 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16789 # make and thus we'd get different behavior depending on where we built the
16791 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
16792 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16794 # An explanation of the sed strings:
16795 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16796 # -e 's|/$||' match a trailing forward slash and eliminates it
16797 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16798 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16800 # (*) Note this pattern overwrites the first character of the string
16801 # with a forward slash if one is not already present. This is not a
16802 # problem because the exact names of the sub-directories concerned is
16803 # unimportant, just the number of them matters.
16805 # The practical upshot of these patterns is like this:
16807 # prefix exec_prefix result
16808 # ------ ----------- ------
16809 # /foo /foo/bar ../
16810 # /foo/ /foo/bar ../
16811 # /foo /foo/bar/ ../
16812 # /foo/ /foo/bar/ ../
16813 # /foo /foo/bar/ugg ../../
16816 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16821 # Find a directory in which to install a shared libgcc.
16823 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16824 if test "${enable_version_specific_runtime_libs+set}" = set; then
16825 enableval
="$enable_version_specific_runtime_libs"
16830 # Check whether --with-slibdir or --without-slibdir was given.
16831 if test "${with_slibdir+set}" = set; then
16832 withval
="$with_slibdir"
16833 slibdir
="$with_slibdir"
16835 if test "${enable_version_specific_runtime_libs+set}" = set; then
16836 slibdir
='$(libsubdir)'
16837 elif test "$host" != "$target"; then
16838 slibdir
='$(build_tooldir)/lib'
16840 slibdir
='$(libdir)'
16845 objdir
=`${PWDCMD-pwd}`
16849 # Check whether --with-datarootdir or --without-datarootdir was given.
16850 if test "${with_datarootdir+set}" = set; then
16851 withval
="$with_datarootdir"
16852 datarootdir
="\${prefix}/$with_datarootdir"
16854 datarootdir
='$(prefix)/share'
16859 # Check whether --with-docdir or --without-docdir was given.
16860 if test "${with_docdir+set}" = set; then
16861 withval
="$with_docdir"
16862 docdir
="\${prefix}/$with_docdir"
16864 docdir
='$(datarootdir)'
16869 # Check whether --with-htmldir or --without-htmldir was given.
16870 if test "${with_htmldir+set}" = set; then
16871 withval
="$with_htmldir"
16872 htmldir
="\${prefix}/$with_htmldir"
16874 htmldir
='$(docdir)'
16878 # Substitute configuration variables
16935 if test x
${build} = x
${host} ; then
16936 if test x
${host} = x
${target} ; then
16937 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16939 echo "Links are now set up to build a cross-compiler" 1>&2
16940 echo " from ${host} to ${target}." 1>&2
16943 if test x
${host} = x
${target} ; then
16944 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16945 echo " for ${target}." 1>&2
16947 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16948 echo " from ${host} to ${target}." 1>&2
16955 # Configure the subdirectories
16956 # AC_CONFIG_SUBDIRS($subdirs)
16958 # Create the Makefile
16959 # and configure language subdirectories
16960 ac_config_files
="$ac_config_files $all_outputs"
16963 ac_config_commands
="$ac_config_commands default"
16965 cat >confcache
<<\_ACEOF
16966 # This file is a shell script that caches the results of configure
16967 # tests run on this system so they can be shared between configure
16968 # scripts and configure runs, see configure's option --config-cache.
16969 # It is not useful on other systems. If it contains results you don't
16970 # want to keep, you may remove or edit it.
16972 # config.status only pays attention to the cache file if you give it
16973 # the --recheck option to rerun configure.
16975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16977 # following values.
16981 # The following way of writing the cache mishandles newlines in values,
16982 # but we know of no workaround that is simple, portable, and efficient.
16983 # So, don't put newlines in cache variables' values.
16984 # Ultrix sh set writes to stderr and can't be redirected directly,
16985 # and sets the high bit in the cache file unless we assign to the vars.
16988 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16990 # `set' does not quote correctly, so add quotes (double-quote
16991 # substitution turns \\\\ into \\, and sed turns \\ into \).
16994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16997 # `set' quotes correctly as required by POSIX, so do not add quotes.
16999 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17008 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17010 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17011 if test -w $cache_file; then
17012 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17013 cat confcache
>$cache_file
17015 echo "not updating unwritable cache $cache_file"
17020 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17021 # Let make expand exec_prefix.
17022 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17024 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17025 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17026 # trailing colons and then remove the whole line if VPATH becomes empty
17027 # (actually we leave an empty line to preserve line numbers).
17028 if test "x$srcdir" = x.
; then
17029 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17030 s/:*\$(srcdir):*/:/;
17031 s/:*\${srcdir}:*/:/;
17033 s/^\([^=]*=[ ]*\):*/\1/;
17039 DEFS
=-DHAVE_CONFIG_H
17043 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17044 # 1. Remove the extension, and $U if already installed.
17045 ac_i
=`echo "$ac_i" |
17046 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17048 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
17049 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
17051 LIBOBJS
=$ac_libobjs
17053 LTLIBOBJS
=$ac_ltlibobjs
17057 : ${CONFIG_STATUS=./config.status}
17058 ac_clean_files_save
=$ac_clean_files
17059 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17062 cat >$CONFIG_STATUS <<_ACEOF
17064 # Generated by $as_me.
17065 # Run this file to recreate the current configuration.
17066 # Compiler output produced by configure, useful for debugging
17067 # configure, is in config.log if it exists.
17070 ac_cs_recheck=false
17072 SHELL=\${CONFIG_SHELL-$SHELL}
17075 cat >>$CONFIG_STATUS <<\_ACEOF
17076 ## --------------------- ##
17077 ## M4sh Initialization. ##
17078 ## --------------------- ##
17080 # Be Bourne compatible
17081 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17084 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17085 # is contrary to our usage. Disable this feature.
17086 alias -g '${1+"$@"}'='"$@"'
17087 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17090 DUALCASE
=1; export DUALCASE
# for MKS sh
17092 # Support unset when possible.
17093 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
17100 # Work around bugs in pre-3.0 UWIN ksh.
17101 $as_unset ENV MAIL MAILPATH
17108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17110 LC_TELEPHONE LC_TIME
17112 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17113 eval $as_var=C
; export $as_var
17119 # Required to use basename.
17120 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17126 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
17127 as_basename
=basename
17133 # Name of the executable.
17134 as_me
=`$as_basename "$0" ||
17135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17136 X"$0" : 'X\(//\)$' \| \
17137 X"$0" : 'X\(/\)$' \| \
17138 . : '\(.\)' 2>/dev/null ||
17140 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17141 /^X\/\(\/\/\)$/{ s//\1/; q; }
17142 /^X\/\(\/\).*/{ s//\1/; q; }
17146 # PATH needs CR, and LINENO needs CR and PATH.
17147 # Avoid depending upon Character Ranges.
17148 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17149 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17150 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17151 as_cr_digits
='0123456789'
17152 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17154 # The user is always right.
17155 if test "${PATH_SEPARATOR+set}" != set; then
17156 echo "#! /bin/sh" >conf$$.sh
17157 echo "exit 0" >>conf$$.sh
17159 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
17168 as_lineno_1
=$LINENO
17169 as_lineno_2
=$LINENO
17170 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
17171 test "x$as_lineno_1" != "x$as_lineno_2" &&
17172 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
17173 # Find who we are. Look in the path if we contain no path at all
17176 *[\\/]* ) as_myself
=$0 ;;
17177 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17178 for as_dir
in $PATH
17181 test -z "$as_dir" && as_dir
=.
17182 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17187 # We did not find ourselves, most probably we were run as `sh COMMAND'
17188 # in which case we are not to be found in the path.
17189 if test "x$as_myself" = x
; then
17192 if test ! -f "$as_myself"; then
17193 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17194 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17195 { (exit 1); exit 1; }; }
17197 case $CONFIG_SHELL in
17199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17200 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17203 test -z "$as_dir" && as_dir
=.
17204 for as_base
in sh bash ksh sh5
; do
17207 if ("$as_dir/$as_base" -c '
17208 as_lineno_1=$LINENO
17209 as_lineno_2=$LINENO
17210 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17211 test "x$as_lineno_1" != "x$as_lineno_2" &&
17212 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17213 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
17214 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
17215 CONFIG_SHELL
=$as_dir/$as_base
17216 export CONFIG_SHELL
17217 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17225 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17226 # uniformly replaced by the line number. The first 'sed' inserts a
17227 # line-number line before each line; the second 'sed' does the real
17228 # work. The second script uses 'N' to pair each line-number line
17229 # with the numbered line, and appends trailing '-' during
17230 # substitution so that $LINENO is not a special case at line end.
17231 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17232 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17233 sed '=' <$as_myself |
17238 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17241 s,^['$as_cr_digits']*\n,,
17242 ' >$as_me.lineno
&&
17243 chmod +x
$as_me.lineno ||
17244 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17245 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17246 { (exit 1); exit 1; }; }
17248 # Don't try to exec as it changes $[0], causing all sort of problems
17249 # (the dirname of $[0] is not the place where we might find the
17250 # original and so on. Autoconf is especially sensible to this).
17252 # Exit status is that of the last command.
17257 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17258 *c
*,-n*) ECHO_N
= ECHO_C
='
17260 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17261 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17264 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17270 rm -f conf$$ conf$$.exe conf$$.
file
17272 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17273 # We could just check for DJGPP; but this test a) works b) is more generic
17274 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17275 if test -f conf$$.exe
; then
17276 # Don't use ln at all; we don't have any links
17281 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17286 rm -f conf$$ conf$$.exe conf$$.
file
17288 if mkdir
-p .
2>/dev
/null
; then
17291 test -d .
/-p && rmdir .
/-p
17295 as_executable_p
="test -f"
17297 # Sed expression to map a string onto a valid CPP name.
17298 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17300 # Sed expression to map a string onto a valid variable name.
17301 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17305 # We need space, tab and new line, in precisely that order.
17315 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17316 # report actual input values of CONFIG_FILES etc. instead of their
17317 # values after options handling. Logging --version etc. is OK.
17321 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17322 ## Running $as_me. ##
17327 This file was extended by $as_me, which was
17328 generated by GNU Autoconf 2.59. Invocation command line was
17330 CONFIG_FILES = $CONFIG_FILES
17331 CONFIG_HEADERS = $CONFIG_HEADERS
17332 CONFIG_LINKS = $CONFIG_LINKS
17333 CONFIG_COMMANDS = $CONFIG_COMMANDS
17337 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17341 # Files that config.status was made for.
17342 if test -n "$ac_config_files"; then
17343 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17346 if test -n "$ac_config_headers"; then
17347 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17350 if test -n "$ac_config_links"; then
17351 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17354 if test -n "$ac_config_commands"; then
17355 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17358 cat >>$CONFIG_STATUS <<\_ACEOF
17361 \`$as_me' instantiates files from templates according to the
17362 current configuration.
17364 Usage: $0 [OPTIONS] [FILE]...
17366 -h, --help print this help, then exit
17367 -V, --version print version number, then exit
17368 -q, --quiet do not print progress messages
17369 -d, --debug don't remove temporary files
17370 --recheck update $as_me by reconfiguring in the same conditions
17371 --file=FILE[:TEMPLATE]
17372 instantiate the configuration file FILE
17373 --header=FILE[:TEMPLATE]
17374 instantiate the configuration header FILE
17376 Configuration files:
17379 Configuration headers:
17382 Configuration commands:
17385 Report bugs to <bug-autoconf@gnu.org>."
17388 cat >>$CONFIG_STATUS <<_ACEOF
17391 configured by $0, generated by GNU Autoconf 2.59,
17392 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17394 Copyright (C) 2003 Free Software Foundation, Inc.
17395 This config.status script is free software; the Free Software Foundation
17396 gives unlimited permission to copy, distribute and modify it."
17400 cat >>$CONFIG_STATUS <<\_ACEOF
17401 # If no file are specified by the user, then we need to provide default
17402 # value. By we need to know if files were specified by the user.
17408 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17409 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17417 *) # This is not an option, so the user has probably given explicit
17420 ac_need_defaults
=false
;;
17424 # Handling of the options.
17426 cat >>$CONFIG_STATUS <<\_ACEOF
17427 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17429 --version |
--vers* |
-V )
17430 echo "$ac_cs_version"; exit 0 ;;
17432 # Conflict between --help and --header
17433 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17434 Try \`$0 --help' for more information." >&5
17435 echo "$as_me: error: ambiguous option: $1
17436 Try \`$0 --help' for more information." >&2;}
17437 { (exit 1); exit 1; }; };;
17438 --help |
--hel |
-h )
17439 echo "$ac_cs_usage"; exit 0 ;;
17440 --debug |
--d* |
-d )
17442 --file |
--fil |
--fi |
--f )
17444 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17445 ac_need_defaults
=false
;;
17446 --header |
--heade |
--head |
--hea )
17448 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17449 ac_need_defaults
=false
;;
17450 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17451 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17454 # This is an error.
17455 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17456 Try \`$0 --help' for more information." >&5
17457 echo "$as_me: error: unrecognized option: $1
17458 Try \`$0 --help' for more information." >&2;}
17459 { (exit 1); exit 1; }; } ;;
17461 *) ac_config_targets
="$ac_config_targets $1" ;;
17467 ac_configure_extra_args
=
17469 if $ac_cs_silent; then
17471 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17475 cat >>$CONFIG_STATUS <<_ACEOF
17476 if \$ac_cs_recheck; then
17477 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17478 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17483 cat >>$CONFIG_STATUS <<_ACEOF
17485 # INIT-COMMANDS section.
17494 cat >>$CONFIG_STATUS <<\_ACEOF
17495 for ac_config_target
in $ac_config_targets
17497 case "$ac_config_target" in
17498 # Handling of arguments.
17499 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
17500 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17501 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
17502 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
17503 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17504 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
17505 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17506 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17507 { (exit 1); exit 1; }; };;
17511 # If the user did not use the arguments to specify the items to instantiate,
17512 # then the envvar interface is used. Set only those that are not.
17513 # We use the long form for the default assignment because of an extremely
17514 # bizarre bug on SunOS 4.1.3.
17515 if $ac_need_defaults; then
17516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17521 # Have a temporary directory for convenience. Make it in the build tree
17522 # simply because there is no reason to put it here, and in addition,
17523 # creating and moving files from /tmp can sometimes cause problems.
17524 # Create a temporary directory, and hook for its removal unless debugging.
17527 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17528 trap '{ (exit 1); exit 1; }' 1 2 13 15
17531 # Create a (secure) tmp directory for tmp files.
17534 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17535 test -n "$tmp" && test -d "$tmp"
17538 tmp
=.
/confstat$$
-$RANDOM
17539 (umask 077 && mkdir
$tmp)
17542 echo "$me: cannot create a temporary directory in ." >&2
17543 { (exit 1); exit 1; }
17548 cat >>$CONFIG_STATUS <<_ACEOF
17551 # CONFIG_FILES section.
17554 # No need to generate the scripts if there are no CONFIG_FILES.
17555 # This happens for instance when ./config.status config.h
17556 if test -n "\$CONFIG_FILES"; then
17557 # Protect against being on the right side of a sed subst in config.status.
17558 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17559 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17560 s,@SHELL@,$SHELL,;t t
17561 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17562 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17563 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17564 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17565 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17566 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17567 s,@exec_prefix@,$exec_prefix,;t t
17568 s,@prefix@,$prefix,;t t
17569 s,@program_transform_name@,$program_transform_name,;t t
17570 s,@bindir@,$bindir,;t t
17571 s,@sbindir@,$sbindir,;t t
17572 s,@libexecdir@,$libexecdir,;t t
17573 s,@datadir@,$datadir,;t t
17574 s,@sysconfdir@,$sysconfdir,;t t
17575 s,@sharedstatedir@,$sharedstatedir,;t t
17576 s,@localstatedir@,$localstatedir,;t t
17577 s,@libdir@,$libdir,;t t
17578 s,@includedir@,$includedir,;t t
17579 s,@oldincludedir@,$oldincludedir,;t t
17580 s,@infodir@,$infodir,;t t
17581 s,@mandir@,$mandir,;t t
17582 s,@build_alias@,$build_alias,;t t
17583 s,@host_alias@,$host_alias,;t t
17584 s,@target_alias@,$target_alias,;t t
17585 s,@DEFS@,$DEFS,;t t
17586 s,@ECHO_C@,$ECHO_C,;t t
17587 s,@ECHO_N@,$ECHO_N,;t t
17588 s,@ECHO_T@,$ECHO_T,;t t
17589 s,@LIBS@,$LIBS,;t t
17590 s,@build@,$build,;t t
17591 s,@build_cpu@,$build_cpu,;t t
17592 s,@build_vendor@,$build_vendor,;t t
17593 s,@build_os@,$build_os,;t t
17594 s,@host@,$host,;t t
17595 s,@host_cpu@,$host_cpu,;t t
17596 s,@host_vendor@,$host_vendor,;t t
17597 s,@host_os@,$host_os,;t t
17598 s,@target@,$target,;t t
17599 s,@target_cpu@,$target_cpu,;t t
17600 s,@target_vendor@,$target_vendor,;t t
17601 s,@target_os@,$target_os,;t t
17602 s,@target_noncanonical@,$target_noncanonical,;t t
17603 s,@build_libsubdir@,$build_libsubdir,;t t
17604 s,@build_subdir@,$build_subdir,;t t
17605 s,@host_subdir@,$host_subdir,;t t
17606 s,@target_subdir@,$target_subdir,;t t
17607 s,@GENINSRC@,$GENINSRC,;t t
17609 s,@CFLAGS@,$CFLAGS,;t t
17610 s,@LDFLAGS@,$LDFLAGS,;t t
17611 s,@CPPFLAGS@,$CPPFLAGS,;t t
17612 s,@ac_ct_CC@,$ac_ct_CC,;t t
17613 s,@EXEEXT@,$EXEEXT,;t t
17614 s,@OBJEXT@,$OBJEXT,;t t
17615 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17616 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17618 s,@EGREP@,$EGREP,;t t
17619 s,@loose_warn@,$loose_warn,;t t
17620 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17621 s,@strict_warn@,$strict_warn,;t t
17622 s,@warn_cflags@,$warn_cflags,;t t
17623 s,@nocommon_flag@,$nocommon_flag,;t t
17624 s,@TREEBROWSER@,$TREEBROWSER,;t t
17625 s,@valgrind_path@,$valgrind_path,;t t
17626 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17627 s,@valgrind_command@,$valgrind_command,;t t
17628 s,@coverage_flags@,$coverage_flags,;t t
17629 s,@enable_multilib@,$enable_multilib,;t t
17630 s,@enable_decimal_float@,$enable_decimal_float,;t t
17631 s,@enable_shared@,$enable_shared,;t t
17632 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17633 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17634 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17635 s,@onestep@,$onestep,;t t
17636 s,@datarootdir@,$datarootdir,;t t
17637 s,@docdir@,$docdir,;t t
17638 s,@htmldir@,$htmldir,;t t
17639 s,@SET_MAKE@,$SET_MAKE,;t t
17641 s,@LN_S@,$LN_S,;t t
17643 s,@RANLIB@,$RANLIB,;t t
17644 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17645 s,@ranlib_flags@,$ranlib_flags,;t t
17646 s,@INSTALL@,$INSTALL,;t t
17647 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17648 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17649 s,@make_compare_target@,$make_compare_target,;t t
17650 s,@have_mktemp_command@,$have_mktemp_command,;t t
17651 s,@MAKEINFO@,$MAKEINFO,;t t
17652 s,@BUILD_INFO@,$BUILD_INFO,;t t
17653 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17654 s,@FLEX@,$FLEX,;t t
17655 s,@BISON@,$BISON,;t t
17658 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17659 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17660 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17661 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17662 s,@LIBICONV@,$LIBICONV,;t t
17663 s,@LTLIBICONV@,$LTLIBICONV,;t t
17664 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17665 s,@manext@,$manext,;t t
17666 s,@objext@,$objext,;t t
17667 s,@gthread_flags@,$gthread_flags,;t t
17668 s,@extra_modes_file@,$extra_modes_file,;t t
17669 s,@extra_opt_files@,$extra_opt_files,;t t
17670 s,@USE_NLS@,$USE_NLS,;t t
17671 s,@LIBINTL@,$LIBINTL,;t t
17672 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17673 s,@INCINTL@,$INCINTL,;t t
17674 s,@XGETTEXT@,$XGETTEXT,;t t
17675 s,@GMSGFMT@,$GMSGFMT,;t t
17676 s,@POSUB@,$POSUB,;t t
17677 s,@CATALOGS@,$CATALOGS,;t t
17678 s,@DATADIRNAME@,$DATADIRNAME,;t t
17679 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17680 s,@GENCAT@,$GENCAT,;t t
17681 s,@CATOBJEXT@,$CATOBJEXT,;t t
17682 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17683 s,@CROSS@,$CROSS,;t t
17685 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17686 s,@inhibit_libc@,$inhibit_libc,;t t
17687 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17688 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17689 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17690 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17691 s,@collect2@,$collect2,;t t
17692 s,@gcc_cv_as@,$gcc_cv_as,;t t
17693 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17694 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17695 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17696 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17697 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17698 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17699 s,@libgcc_visibility@,$libgcc_visibility,;t t
17701 s,@zlibdir@,$zlibdir,;t t
17702 s,@zlibinc@,$zlibinc,;t t
17703 s,@MAINT@,$MAINT,;t t
17704 s,@gcc_tooldir@,$gcc_tooldir,;t t
17705 s,@dollar@,$dollar,;t t
17706 s,@slibdir@,$slibdir,;t t
17707 s,@objdir@,$objdir,;t t
17708 s,@subdirs@,$subdirs,;t t
17709 s,@srcdir@,$srcdir,;t t
17710 s,@all_compilers@,$all_compilers,;t t
17711 s,@all_gtfiles@,$all_gtfiles,;t t
17712 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17713 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17714 s,@all_languages@,$all_languages,;t t
17715 s,@all_selected_languages@,$all_selected_languages,;t t
17716 s,@build_exeext@,$build_exeext,;t t
17717 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17718 s,@build_xm_file_list@,$build_xm_file_list,;t t
17719 s,@build_xm_include_list@,$build_xm_include_list,;t t
17720 s,@build_xm_defines@,$build_xm_defines,;t t
17721 s,@check_languages@,$check_languages,;t t
17722 s,@cpp_install_dir@,$cpp_install_dir,;t t
17723 s,@xmake_file@,$xmake_file,;t t
17724 s,@tmake_file@,$tmake_file,;t t
17725 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17726 s,@extra_headers_list@,$extra_headers_list,;t t
17727 s,@extra_objs@,$extra_objs,;t t
17728 s,@extra_parts@,$extra_parts,;t t
17729 s,@extra_passes@,$extra_passes,;t t
17730 s,@extra_programs@,$extra_programs,;t t
17731 s,@float_h_file@,$float_h_file,;t t
17732 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17733 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17734 s,@host_exeext@,$host_exeext,;t t
17735 s,@host_xm_file_list@,$host_xm_file_list,;t t
17736 s,@host_xm_include_list@,$host_xm_include_list,;t t
17737 s,@host_xm_defines@,$host_xm_defines,;t t
17738 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17739 s,@install@,$install,;t t
17740 s,@lang_opt_files@,$lang_opt_files,;t t
17741 s,@lang_specs_files@,$lang_specs_files,;t t
17742 s,@lang_tree_files@,$lang_tree_files,;t t
17743 s,@local_prefix@,$local_prefix,;t t
17744 s,@md_file@,$md_file,;t t
17745 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17746 s,@out_file@,$out_file,;t t
17747 s,@out_object_file@,$out_object_file,;t t
17748 s,@thread_file@,$thread_file,;t t
17749 s,@tm_file_list@,$tm_file_list,;t t
17750 s,@tm_include_list@,$tm_include_list,;t t
17751 s,@tm_defines@,$tm_defines,;t t
17752 s,@tm_p_file_list@,$tm_p_file_list,;t t
17753 s,@tm_p_include_list@,$tm_p_include_list,;t t
17754 s,@xm_file_list@,$xm_file_list,;t t
17755 s,@xm_include_list@,$xm_include_list,;t t
17756 s,@xm_defines@,$xm_defines,;t t
17757 s,@c_target_objs@,$c_target_objs,;t t
17758 s,@cxx_target_objs@,$cxx_target_objs,;t t
17759 s,@target_cpu_default@,$target_cpu_default,;t t
17760 s,@GMPLIBS@,$GMPLIBS,;t t
17761 s,@GMPINC@,$GMPINC,;t t
17762 s,@LIBOBJS@,$LIBOBJS,;t t
17763 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17764 /@language_hooks@/r $language_hooks
17765 s,@language_hooks@,,;t t
17770 cat >>$CONFIG_STATUS <<\_ACEOF
17771 # Split the substitutions into bite-sized pieces for seds with
17772 # small command number limits, like on Digital OSF/1 and HP-UX.
17773 ac_max_sed_lines
=48
17774 ac_sed_frag
=1 # Number of current file.
17775 ac_beg
=1 # First line for current file.
17776 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17779 while $ac_more_lines; do
17780 if test $ac_beg -gt 1; then
17781 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17783 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17785 if test ! -s $tmp/subs.frag
; then
17786 ac_more_lines
=false
17788 # The purpose of the label and of the branching condition is to
17789 # speed up the sed processing (if there are no `@' at all, there
17790 # is no need to browse any of the substitutions).
17791 # These are the two extra sed commands mentioned above.
17793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17794 if test -z "$ac_sed_cmds"; then
17795 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17797 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17799 ac_sed_frag
=`expr $ac_sed_frag + 1`
17801 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17804 if test -z "$ac_sed_cmds"; then
17807 fi # test -n "$CONFIG_FILES"
17810 cat >>$CONFIG_STATUS <<\_ACEOF
17811 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17814 - |
*:- |
*:-:* ) # input from stdin
17816 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17817 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17818 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17819 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17820 * ) ac_file_in
=$ac_file.
in ;;
17823 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17824 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17826 X"$ac_file" : 'X\(//\)[^/]' \| \
17827 X"$ac_file" : 'X\(//\)$' \| \
17828 X"$ac_file" : 'X\(/\)' \| \
17829 . : '\(.\)' 2>/dev/null ||
17831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17833 /^X\(\/\/\)$/{ s//\1/; q; }
17834 /^X\(\/\).*/{ s//\1/; q; }
17836 { if $as_mkdir_p; then
17841 while test ! -d "$as_dir"; do
17842 as_dirs
="$as_dir $as_dirs"
17843 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17845 X"$as_dir" : 'X\(//\)[^/]' \| \
17846 X"$as_dir" : 'X\(//\)$' \| \
17847 X"$as_dir" : 'X\(/\)' \| \
17848 . : '\(.\)' 2>/dev/null ||
17850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17852 /^X\(\/\/\)$/{ s//\1/; q; }
17853 /^X\(\/\).*/{ s//\1/; q; }
17856 test ! -n "$as_dirs" || mkdir
$as_dirs
17857 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17858 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17859 { (exit 1); exit 1; }; }; }
17863 if test "$ac_dir" != .
; then
17864 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17865 # A "../" for each directory in $ac_dir_suffix.
17866 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17868 ac_dir_suffix
= ac_top_builddir
=
17872 .
) # No --srcdir option. We are building in place.
17874 if test -z "$ac_top_builddir"; then
17877 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17879 [\\/]* | ?
:[\\/]* ) # Absolute path.
17880 ac_srcdir
=$srcdir$ac_dir_suffix;
17881 ac_top_srcdir
=$srcdir ;;
17882 *) # Relative path.
17883 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17884 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17887 # Do not use `cd foo && pwd` to compute absolute paths, because
17888 # the directories may not exist.
17890 .
) ac_abs_builddir
="$ac_dir";;
17893 .
) ac_abs_builddir
=`pwd`;;
17894 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17895 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17898 case $ac_abs_builddir in
17899 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17901 case ${ac_top_builddir}.
in
17902 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17903 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17904 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17907 case $ac_abs_builddir in
17908 .
) ac_abs_srcdir
=$ac_srcdir;;
17911 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17912 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17913 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17916 case $ac_abs_builddir in
17917 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17919 case $ac_top_srcdir in
17920 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17921 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17922 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17928 if test x
"$ac_file" != x-
; then
17929 { echo "$as_me:$LINENO: creating $ac_file" >&5
17930 echo "$as_me: creating $ac_file" >&6;}
17933 # Let's still pretend it is `configure' which instantiates (i.e., don't
17934 # use $as_me), people would be surprised to read:
17935 # /* config.h. Generated by config.status. */
17936 if test x
"$ac_file" = x-
; then
17939 configure_input
="$ac_file. "
17941 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17942 sed 's,.*/,,'` by configure."
17944 # First look for the input files in the build tree, otherwise in the
17946 ac_file_inputs
=`IFS=:
17947 for f in $ac_file_in; do
17949 -) echo $tmp/stdin ;;
17951 # Absolute (can't be DOS-style, as IFS=:)
17952 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17953 echo "$as_me: error: cannot find input file: $f" >&2;}
17954 { (exit 1); exit 1; }; }
17957 if test -f "$f"; then
17960 elif test -f "$srcdir/$f"; then
17965 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17966 echo "$as_me: error: cannot find input file: $f" >&2;}
17967 { (exit 1); exit 1; }; }
17970 done` ||
{ (exit 1); exit 1; }
17972 cat >>$CONFIG_STATUS <<_ACEOF
17976 cat >>$CONFIG_STATUS <<\_ACEOF
17978 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17979 s
,@configure_input@
,$configure_input,;t t
17980 s
,@srcdir@
,$ac_srcdir,;t t
17981 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17982 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17983 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17984 s
,@builddir@
,$ac_builddir,;t t
17985 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17986 s
,@top_builddir@
,$ac_top_builddir,;t t
17987 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17988 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17990 if test x"$ac_file" != x-; then
17991 mv $tmp/out $ac_file
17997 # Run the commands associated with the file.
17999 as ) chmod +x as ;;
18000 collect-ld ) chmod +x collect-ld ;;
18001 nm ) chmod +x nm ;;
18005 cat >>$CONFIG_STATUS <<\_ACEOF
18008 # CONFIG_HEADER section.
18011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18014 # ac_d sets the value in "#define NAME VALUE" lines.
18015 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18016 ac_dB
='[ ].*$,\1#\2'
18019 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18020 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18021 ac_uB
='$,\1#\2define\3'
18025 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18028 - |
*:- |
*:-:* ) # input from stdin
18030 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18031 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18032 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18033 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18034 * ) ac_file_in
=$ac_file.
in ;;
18037 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
18038 echo "$as_me: creating $ac_file" >&6;}
18040 # First look for the input files in the build tree, otherwise in the
18042 ac_file_inputs
=`IFS=:
18043 for f in $ac_file_in; do
18045 -) echo $tmp/stdin ;;
18047 # Absolute (can't be DOS-style, as IFS=:)
18048 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18049 echo "$as_me: error: cannot find input file: $f" >&2;}
18050 { (exit 1); exit 1; }; }
18051 # Do quote $f, to prevent DOS paths from being IFS'd.
18054 if test -f "$f"; then
18057 elif test -f "$srcdir/$f"; then
18062 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18063 echo "$as_me: error: cannot find input file: $f" >&2;}
18064 { (exit 1); exit 1; }; }
18067 done` ||
{ (exit 1); exit 1; }
18068 # Remove the trailing spaces.
18069 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18073 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18074 # `conftest.undefs', that substitutes the proper values into
18075 # config.h.in to produce config.h. The first handles `#define'
18076 # templates, and the second `#undef' templates.
18077 # And first: Protect against being on the right side of a sed subst in
18078 # config.status. Protect against being in an unquoted here document
18079 # in config.status.
18080 rm -f conftest.defines conftest.undefs
18081 # Using a here document instead of a string reduces the quoting nightmare.
18082 # Putting comments in sed scripts is not portable.
18084 # `end' is used to avoid that the second main sed command (meant for
18085 # 0-ary CPP macros) applies to n-ary macro definitions.
18086 # See the Autoconf documentation for `clear'.
18087 cat >confdef2sed.
sed <<\_ACEOF
18092 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18094 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18097 # If some macros were called several times there might be several times
18098 # the same #defines, which is useless. Nevertheless, we may not want to
18099 # sort them, since we want the *last* AC-DEFINE to be honored.
18100 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18101 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18102 rm -f confdef2sed.sed
18104 # This sed command replaces #undef with comments. This is necessary, for
18105 # example, in the case of _POSIX_SOURCE, which is predefined and required
18106 # on some systems where configure will not decide to define it.
18107 cat >>conftest.undefs <<\_ACEOF
18108 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18111 # Break up conftest.defines because some shells have a limit on the size
18112 # of here documents, and old seds have small limits too (100 cmds).
18113 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18114 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18115 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18116 echo ' :' >>$CONFIG_STATUS
18117 rm -f conftest.tail
18118 while grep . conftest.defines >/dev/null
18120 # Write a limited-size here document to $tmp/defines.sed.
18121 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18122 # Speed up: don't consider the non `#define' lines.
18123 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18124 # Work around the forget-to-reset-the-flag bug.
18125 echo 't clr' >>$CONFIG_STATUS
18126 echo ': clr' >>$CONFIG_STATUS
18127 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18129 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18131 mv $tmp/out $tmp/in
18133 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18134 rm -f conftest.defines
18135 mv conftest.
tail conftest.defines
18137 rm -f conftest.defines
18138 echo ' fi # grep' >>$CONFIG_STATUS
18139 echo >>$CONFIG_STATUS
18141 # Break up conftest.undefs because some shells have a limit on the size
18142 # of here documents, and old seds have small limits too (100 cmds).
18143 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18144 rm -f conftest.
tail
18145 while grep . conftest.undefs
>/dev
/null
18147 # Write a limited-size here document to $tmp/undefs.sed.
18148 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18149 # Speed up: don't consider the non
`#undef'
18150 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18151 # Work around the forget-to-reset-the-flag bug.
18152 echo 't clr' >>$CONFIG_STATUS
18153 echo ': clr' >>$CONFIG_STATUS
18154 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18156 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18158 mv $tmp/out $tmp/in
18160 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18161 rm -f conftest.undefs
18162 mv conftest.tail conftest.undefs
18164 rm -f conftest.undefs
18166 cat >>$CONFIG_STATUS <<\_ACEOF
18167 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18168 # use $as_me), people would be surprised to read:
18169 # /* config.h. Generated by config.status. */
18170 if test x
"$ac_file" = x-
; then
18171 echo "/* Generated by configure. */" >$tmp/config.h
18173 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18175 cat $tmp/in >>$tmp/config.h
18177 if test x
"$ac_file" != x-
; then
18178 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18179 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18180 echo "$as_me: $ac_file is unchanged" >&6;}
18182 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18184 X"$ac_file" : 'X\(//\)[^/]' \| \
18185 X"$ac_file" : 'X\(//\)$' \| \
18186 X"$ac_file" : 'X\(/\)' \| \
18187 . : '\(.\)' 2>/dev/null ||
18189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18191 /^X\(\/\/\)$/{ s//\1/; q; }
18192 /^X\(\/\).*/{ s//\1/; q; }
18194 { if $as_mkdir_p; then
18199 while test ! -d "$as_dir"; do
18200 as_dirs
="$as_dir $as_dirs"
18201 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18203 X"$as_dir" : 'X\(//\)[^/]' \| \
18204 X"$as_dir" : 'X\(//\)$' \| \
18205 X"$as_dir" : 'X\(/\)' \| \
18206 . : '\(.\)' 2>/dev/null ||
18208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18210 /^X\(\/\/\)$/{ s//\1/; q; }
18211 /^X\(\/\).*/{ s//\1/; q; }
18214 test ! -n "$as_dirs" || mkdir
$as_dirs
18215 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18216 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18217 { (exit 1); exit 1; }; }; }
18220 mv $tmp/config.h
$ac_file
18224 rm -f $tmp/config.h
18228 cat >>$CONFIG_STATUS <<\_ACEOF
18231 # CONFIG_COMMANDS section.
18233 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18234 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18235 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18236 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18237 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18238 X"$ac_dest" : 'X\(//\)[^/]' \| \
18239 X"$ac_dest" : 'X\(//\)$' \| \
18240 X"$ac_dest" : 'X\(/\)' \| \
18241 . : '\(.\)' 2>/dev/null ||
18243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18245 /^X\(\/\/\)$/{ s//\1/; q; }
18246 /^X\(\/\).*/{ s//\1/; q; }
18248 { if $as_mkdir_p; then
18253 while test ! -d "$as_dir"; do
18254 as_dirs
="$as_dir $as_dirs"
18255 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18257 X"$as_dir" : 'X\(//\)[^/]' \| \
18258 X"$as_dir" : 'X\(//\)$' \| \
18259 X"$as_dir" : 'X\(/\)' \| \
18260 . : '\(.\)' 2>/dev/null ||
18262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18264 /^X\(\/\/\)$/{ s//\1/; q; }
18265 /^X\(\/\).*/{ s//\1/; q; }
18268 test ! -n "$as_dirs" || mkdir
$as_dirs
18269 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18271 { (exit 1); exit 1; }; }; }
18275 if test "$ac_dir" != .
; then
18276 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18277 # A "../" for each directory in $ac_dir_suffix.
18278 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18280 ac_dir_suffix
= ac_top_builddir
=
18284 .
) # No --srcdir option. We are building in place.
18286 if test -z "$ac_top_builddir"; then
18289 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18291 [\\/]* | ?
:[\\/]* ) # Absolute path.
18292 ac_srcdir
=$srcdir$ac_dir_suffix;
18293 ac_top_srcdir
=$srcdir ;;
18294 *) # Relative path.
18295 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18296 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18299 # Do not use `cd foo && pwd` to compute absolute paths, because
18300 # the directories may not exist.
18302 .
) ac_abs_builddir
="$ac_dir";;
18305 .
) ac_abs_builddir
=`pwd`;;
18306 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18307 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18310 case $ac_abs_builddir in
18311 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18313 case ${ac_top_builddir}.
in
18314 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18315 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18316 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18319 case $ac_abs_builddir in
18320 .
) ac_abs_srcdir
=$ac_srcdir;;
18323 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18324 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18325 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18328 case $ac_abs_builddir in
18329 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18331 case $ac_top_srcdir in
18332 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18333 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18334 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18339 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18340 echo "$as_me: executing $ac_dest commands" >&6;}
18343 case ${CONFIG_HEADERS} in
18344 *auto-host.h
:config.
in*)
18347 # Make sure all the subdirs exist.
18348 for d
in $subdirs doc build
18350 test -d $d || mkdir
$d
18357 cat >>$CONFIG_STATUS <<\_ACEOF
18359 { (exit 0); exit 0; }
18361 chmod +x
$CONFIG_STATUS
18362 ac_clean_files
=$ac_clean_files_save
18365 # configure is writing to config.log, and then calls config.status.
18366 # config.status does its own redirection, appending to config.log.
18367 # Unfortunately, on DOS this fails, as config.log is still kept open
18368 # by configure, so config.status won't be able to write to it; its
18369 # output is simply discarded. So we exec the FD to /dev/null,
18370 # effectively closing config.log, so it can be properly (re)opened and
18371 # appended to by config.status. When coming back to configure, we
18372 # need to make the FD available again.
18373 if test "$no_create" != yes; then
18375 ac_config_status_args
=
18376 test "$silent" = yes &&
18377 ac_config_status_args
="$ac_config_status_args --quiet"
18379 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18381 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18382 # would make configure fail if this is the last instruction.
18383 $ac_cs_success ||
{ (exit 1); exit 1; }