2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: yes,no
,all
,none
,release.
871 Flags are
: assert
,fold,gc
,gcac
,misc
,
872 rtlflag
,rtl
,runtime
,tree
,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler
's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don
't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --disable-rpath do not hardcode runtime library paths
891 --enable-initfini-array use .init_array/.fini_array sections
892 --enable-sjlj-exceptions
893 arrange to use setjmp/longjmp exception handling
894 --disable-win32-registry
895 disable lookup of installation paths in the
896 Registry on Windows hosts
897 --enable-win32-registry enable registry lookup (default)
898 --enable-win32-registry=KEY
899 use KEY instead of GCC version as the last portion
901 --enable-maintainer-mode
902 enable make rules and dependencies not useful
903 (and sometimes confusing) to the casual installer
904 --enable-version-specific-runtime-libs
905 specify that runtime libraries should be
906 installed in a compiler-specific directory
909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
911 --with-local-prefix=DIR specifies directory to put local include
912 --with-gxx-include-dir=DIR
913 specifies directory to put g++ header files
914 --with-cpp-install-dir=DIR
915 install the user visible C preprocessor in DIR
916 (relative to PREFIX) as well as PREFIX/bin
917 --with-gnu-ld arrange to work with GNU ld.
918 --with-ld arrange to use the specified ld (full pathname)
919 --with-demangler-in-ld try to use demangler in GNU ld.
920 --with-gnu-as arrange to work with GNU as
921 --with-as arrange to use the specified as (full pathname)
922 --with-stabs arrange to use stabs instead of host debug format
923 --with-dwarf2 force the default debug format to be DWARF 2
924 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
925 --with-gnu-ld assume the C compiler uses GNU ld default=no
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
928 --with-system-libunwind use installed libunwind
929 --with-gc={page
,zone
} choose the garbage collection mechanism to use
931 --with-system-zlib use installed libz
932 --with-slibdir=DIR shared libraries
in DIR LIBDIR
934 Some influential environment variables
:
935 CC C compiler
command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
938 nonstandard directory
<lib dir
>
939 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
940 headers
in a nonstandard directory
<include dir
>
942 GMPLIBS How to link GMP
943 GMPINC How to
find GMP include files
945 Use these variables to override the choices made by
`configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
951 if test "$ac_init_help" = "recursive"; then
952 # If there are subdirs, report their specific --help.
954 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955 test -d $ac_dir || continue
958 if test "$ac_dir" != .; then
959 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
960 # A "../" for each directory in $ac_dir_suffix.
961 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
963 ac_dir_suffix= ac_top_builddir=
967 .) # No --srcdir option. We are building in place.
969 if test -z "$ac_top_builddir"; then
972 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
974 [\\/]* | ?:[\\/]* ) # Absolute path.
975 ac_srcdir=$srcdir$ac_dir_suffix;
976 ac_top_srcdir=$srcdir ;;
978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
982 # Do not use `cd foo
&& pwd` to compute absolute paths, because
983 # the directories may not exist.
985 .) ac_abs_builddir="$ac_dir";;
988 .) ac_abs_builddir=`pwd`;;
989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
996 case ${ac_top_builddir}. in
997 .) ac_abs_top_builddir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1006 .) ac_abs_srcdir=$ac_abs_builddir;;
1007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 case $ac_top_srcdir in
1015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1022 # Check for guested configure; otherwise get Cygnus style configure.
1023 if test -f $ac_srcdir/configure.gnu; then
1025 $SHELL $ac_srcdir/configure.gnu --help=recursive
1026 elif test -f $ac_srcdir/configure; then
1028 $SHELL $ac_srcdir/configure --help=recursive
1029 elif test -f $ac_srcdir/configure.ac ||
1030 test -f $ac_srcdir/configure.in; then
1032 $ac_configure --help
1034 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59. Invocation command line was
1067 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1068 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1069 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1070 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1071 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1073 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1074 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1076 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1077 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1078 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1079 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1080 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1081 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1082 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1090 test -z "$as_dir" && as_dir=.
1091 echo "PATH: $as_dir"
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1115 ac_must_keep_next=false
1121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1129 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132 if test $ac_must_keep_next = true; then
1133 ac_must_keep_next=false # Got value, back to normal.
1136 *=* | --config-cache | -C | -disable-* | --disable-* \
1137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139 | -with-* | --with-* | -without-* | --without-* | --x)
1140 case "$ac_configure_args0 " in
1141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1144 -* ) ac_must_keep_next=true ;;
1147 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148 # Get rid of the leading space.
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log. We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close
' the trap.
1162 trap 'exit_status
=$?
1163 # Save into config.log some information that might help in debugging.
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1173 # The following way of writing the cache mishandles newlines in values,
1176 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1179 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1196 for ac_var
in $ac_subst_vars
1198 eval ac_val
=$
`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1203 if test -n "$ac_subst_files"; then
1210 for ac_var
in $ac_subst_files
1212 eval ac_val
=$
`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1218 if test -s confdefs.h
; then
1225 sed "/^$/d" confdefs.h |
sort
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1232 rm -f core
*.core
&&
1233 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 # Predefined preprocessor variables.
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's
/^
/|
/' "$ac_site_file" >&5
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1308 # Check that the precious variables saved in the cache have kept the same
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1321 ac_cache_corrupted=: ;;
1323 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1330 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1355 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1362 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1384 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1387 # Determine the host, build, and target systems
1389 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1390 if test -f $ac_dir/install-sh; then
1392 ac_install_sh="$ac_aux_dir/install-sh -c"
1394 elif test -f $ac_dir/install.sh; then
1396 ac_install_sh="$ac_aux_dir/install.sh -c"
1398 elif test -f $ac_dir/shtool; then
1400 ac_install_sh="$ac_aux_dir/shtool install -c"
1404 if test -z "$ac_aux_dir"; then
1405 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1407 { (exit 1); exit 1; }; }
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 # Make sure we can run config.sub.
1414 $ac_config_sub sun4 >/dev/null 2>&1 ||
1415 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1416 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1417 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: checking build system type" >&5
1420 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1421 if test "${ac_cv_build+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 ac_cv_build_alias=$build_alias
1425 test -z "$ac_cv_build_alias" &&
1426 ac_cv_build_alias=`$ac_config_guess`
1427 test -z "$ac_cv_build_alias" &&
1428 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1429 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1430 { (exit 1); exit 1; }; }
1431 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1432 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1433 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1434 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1438 echo "${ECHO_T}$ac_cv_build" >&6
1440 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1441 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1442 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1445 echo "$as_me:$LINENO: checking host system type" >&5
1446 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1447 if test "${ac_cv_host+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 ac_cv_host_alias=$host_alias
1451 test -z "$ac_cv_host_alias" &&
1452 ac_cv_host_alias=$ac_cv_build_alias
1453 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1456 { (exit 1); exit 1; }; }
1459 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1460 echo "${ECHO_T}$ac_cv_host" >&6
1462 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1463 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1464 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1467 echo "$as_me:$LINENO: checking target system type" >&5
1468 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1469 if test "${ac_cv_target+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 ac_cv_target_alias=$target_alias
1473 test "x$ac_cv_target_alias" = "x" &&
1474 ac_cv_target_alias=$ac_cv_host_alias
1475 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1478 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1482 echo "${ECHO_T}$ac_cv_target" >&6
1483 target=$ac_cv_target
1484 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1485 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1486 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1489 # The aliases save the names the user supplied, while $host etc.
1490 # will get canonicalized.
1491 test -n "$target_alias" &&
1492 test "$program_prefix$program_suffix$program_transform_name" = \
1494 program_prefix=${target_alias}-
1496 # Determine the noncanonical target name, for directory use.
1497 case ${build_alias} in
1498 "") build_noncanonical=${build} ;;
1499 *) build_noncanonical=${build_alias} ;;
1502 case ${host_alias} in
1503 "") host_noncanonical=${build_noncanonical} ;;
1504 *) host_noncanonical=${host_alias} ;;
1507 case ${target_alias} in
1508 "") target_noncanonical=${host_noncanonical} ;;
1509 *) target_noncanonical=${target_alias} ;;
1515 # Determine the target- and build-specific subdirectories
1516 # Prefix 'build-
' so this never conflicts with target_subdir.
1517 build_subdir="build-${build_noncanonical}"
1518 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1519 if ( test $srcdir = . && test -d gcc ) \
1520 || test -d $srcdir/../host-${host_noncanonical}; then
1521 host_subdir="host-${host_noncanonical}"
1526 target_subdir=${target_noncanonical}
1529 # Set program_transform_name
1530 test "$program_prefix" != NONE &&
1531 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1532 # Use a double $ so make ignores it.
1533 test "$program_suffix" != NONE &&
1534 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1535 # Double any \ or $. echo might interpret backslashes.
1536 # By default was `s,x,x', remove it
if useless.
1537 cat <<\_ACEOF
>conftest.
sed
1538 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1540 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1544 # Check for bogus environment variables.
1545 # Test if LIBRARY_PATH contains the notation for the current directory
1546 # since this would lead to problems installing/building glibc.
1547 # LIBRARY_PATH contains the current directory if one of the following
1549 # - one of the terminals (":" and ";") is the first or last sign
1550 # - two terminals occur directly after each other
1551 # - the path contains an element with a dot in it
1552 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1553 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1554 case ${LIBRARY_PATH} in
1555 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1556 library_path_setting
="contains current directory"
1559 library_path_setting
="ok"
1562 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1563 echo "${ECHO_T}$library_path_setting" >&6
1564 if test "$library_path_setting" != "ok"; then
1565 { { echo "$as_me:$LINENO: error:
1566 *** LIBRARY_PATH shouldn't contain the current directory when
1567 *** building gcc. Please change the environment variable
1568 *** and run configure again." >&5
1569 echo "$as_me: error:
1570 *** LIBRARY_PATH shouldn't contain the current directory when
1571 *** building gcc. Please change the environment variable
1572 *** and run configure again." >&2;}
1573 { (exit 1); exit 1; }; }
1576 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1577 # since this would lead to problems installing/building glibc.
1578 # GCC_EXEC_PREFIX contains the current directory if one of the following
1580 # - one of the terminals (":" and ";") is the first or last sign
1581 # - two terminals occur directly after each other
1582 # - the path contains an element with a dot in it
1583 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1584 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1585 case ${GCC_EXEC_PREFIX} in
1586 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1587 gcc_exec_prefix_setting
="contains current directory"
1590 gcc_exec_prefix_setting
="ok"
1593 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1594 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1595 if test "$gcc_exec_prefix_setting" != "ok"; then
1596 { { echo "$as_me:$LINENO: error:
1597 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1598 *** building gcc. Please change the environment variable
1599 *** and run configure again." >&5
1600 echo "$as_me: error:
1601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&2;}
1604 { (exit 1); exit 1; }; }
1611 # Specify the local prefix
1614 # Check whether --with-local-prefix or --without-local-prefix was given.
1615 if test "${with_local_prefix+set}" = set; then
1616 withval
="$with_local_prefix"
1617 case "${withval}" in
1618 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1619 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1620 { (exit 1); exit 1; }; } ;;
1622 *) local_prefix
=$with_local_prefix ;;
1626 # Default local prefix if it is empty
1627 if test x
$local_prefix = x
; then
1628 local_prefix
=/usr
/local
1631 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1632 # passed in by the toplevel make and thus we'd get different behavior
1633 # depending on where we built the sources.
1634 gcc_gxx_include_dir
=
1635 # Specify the g++ header file directory
1637 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1638 if test "${with_gxx_include_dir+set}" = set; then
1639 withval
="$with_gxx_include_dir"
1640 case "${withval}" in
1641 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1642 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1643 { (exit 1); exit 1; }; } ;;
1645 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1649 if test x
${gcc_gxx_include_dir} = x
; then
1650 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1651 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1653 libstdcxx_incdir
='c++/$(version)'
1654 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1659 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1660 if test "${with_cpp_install_dir+set}" = set; then
1661 withval
="$with_cpp_install_dir"
1662 if test x
$withval = xyes
; then
1663 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1664 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1665 { (exit 1); exit 1; }; }
1666 elif test x
$withval != xno
; then
1667 cpp_install_dir
=$withval
1671 # We would like to our source tree to be readonly. However when releases or
1672 # pre-releases are generated, the flex/bison generated files as well as the
1673 # various formats of manuals need to be included along with the rest of the
1674 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1677 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1678 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1679 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1680 if test "${enable_generated_files_in_srcdir+set}" = set; then
1681 enableval
="$enable_generated_files_in_srcdir"
1682 generated_files_in_srcdir
=$enableval
1684 generated_files_in_srcdir
=no
1687 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1688 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1690 if test "$generated_files_in_srcdir" = "yes"; then
1697 # -------------------
1698 # Find default linker
1699 # -------------------
1703 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1704 if test "${with_gnu_ld+set}" = set; then
1705 withval
="$with_gnu_ld"
1706 gnu_ld_flag
="$with_gnu_ld"
1711 # With pre-defined ld
1713 # Check whether --with-ld or --without-ld was given.
1714 if test "${with_ld+set}" = set; then
1716 DEFAULT_LINKER
="$with_ld"
1718 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1719 if test ! -x "$DEFAULT_LINKER"; then
1720 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1721 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1722 { (exit 1); exit 1; }; }
1723 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1727 cat >>confdefs.h
<<_ACEOF
1728 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1733 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1734 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1735 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1736 if test x
"$gnu_ld_flag" = x
"no"; then
1737 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1738 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1740 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1741 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 # With demangler in GNU ld
1750 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1751 if test "${with_demangler_in_ld+set}" = set; then
1752 withval
="$with_demangler_in_ld"
1753 demangler_in_ld
="$with_demangler_in_ld"
1758 # ----------------------
1759 # Find default assembler
1760 # ----------------------
1764 # Check whether --with-gnu-as or --without-gnu-as was given.
1765 if test "${with_gnu_as+set}" = set; then
1766 withval
="$with_gnu_as"
1767 gas_flag
="$with_gnu_as"
1773 # Check whether --with-as or --without-as was given.
1774 if test "${with_as+set}" = set; then
1776 DEFAULT_ASSEMBLER
="$with_as"
1778 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1779 if test ! -x "$DEFAULT_ASSEMBLER"; then
1780 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1781 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1782 { (exit 1); exit 1; }; }
1783 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1787 cat >>confdefs.h
<<_ACEOF
1788 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1793 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1794 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1795 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1796 if test x
"$gas_flag" = x
"no"; then
1797 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1798 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1800 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1801 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1812 # If a non-executable a.out is present (e.g. created by GNU as above even if
1813 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1814 # file, even when creating an executable, so an execution test fails.
1815 # Remove possible default executable files to avoid this.
1817 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1818 # Autoconf includes it.
1819 rm -f a.out a.exe b.out
1821 # Find the native compiler
1823 ac_cpp
='$CPP $CPPFLAGS'
1824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1829 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC
="$CC" # Let the user override the test.
1838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir
=.
1843 for ac_exec_ext
in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1864 if test -z "$ac_cv_prog_CC"; then
1866 # Extract the first word of "gcc", so it can be a program name with args.
1867 set dummy gcc
; ac_word
=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1880 test -z "$as_dir" && as_dir
=.
1881 for ac_exec_ext
in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC
="gcc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1906 if test -z "$CC"; then
1907 if test -n "$ac_tool_prefix"; then
1908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1909 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC
="$CC" # Let the user override the test.
1918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir
=.
1923 for ac_exec_ext
in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 if test -n "$CC"; then
1936 echo "$as_me:$LINENO: result: $CC" >&5
1937 echo "${ECHO_T}$CC" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1944 if test -z "$ac_cv_prog_CC"; then
1946 # Extract the first word of "cc", so it can be a program name with args.
1947 set dummy cc
; ac_word
=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 if test -n "$ac_ct_CC"; then
1954 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1960 test -z "$as_dir" && as_dir
=.
1961 for ac_exec_ext
in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CC
="cc"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1973 if test -n "$ac_ct_CC"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1975 echo "${ECHO_T}$ac_ct_CC" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1987 if test -z "$CC"; then
1988 # Extract the first word of "cc", so it can be a program name with args.
1989 set dummy cc
; ac_word
=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 if test -n "$CC"; then
1996 ac_cv_prog_CC
="$CC" # Let the user override the test.
1999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir
=.
2004 for ac_exec_ext
in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2007 ac_prog_rejected
=yes
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 if test $ac_prog_rejected = yes; then
2018 # We found a bogon in the path, so make sure we never use it.
2019 set dummy
$ac_cv_prog_CC
2021 if test $# != 0; then
2022 # We chose a different compiler from the bogus one.
2023 # However, it has the same basename, so the bogon will be chosen
2024 # first if we set CC to just the basename; use the full file name.
2026 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2032 if test -n "$CC"; then
2033 echo "$as_me:$LINENO: result: $CC" >&5
2034 echo "${ECHO_T}$CC" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2041 if test -z "$CC"; then
2042 if test -n "$ac_tool_prefix"; then
2045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2046 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC
="$CC" # Let the user override the test.
2055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir
=.
2060 for ac_exec_ext
in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2080 test -n "$CC" && break
2083 if test -z "$CC"; then
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy
$ac_prog; ac_word
=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir
=.
2102 for ac_exec_ext
in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC
="$ac_prog"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2122 test -n "$ac_ct_CC" && break
2131 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2137 # Provide some information about the compiler.
2138 echo "$as_me:$LINENO:" \
2139 "checking for C compiler version" >&5
2140 ac_compiler
=`set X $ac_compile; echo $2`
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2142 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2147 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2152 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }
2157 cat >conftest.
$ac_ext <<_ACEOF
2160 cat confdefs.h
>>conftest.
$ac_ext
2161 cat >>conftest.
$ac_ext <<_ACEOF
2162 /* end confdefs.h. */
2172 ac_clean_files_save
=$ac_clean_files
2173 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2174 # Try to create an executable without -o first, disregard a.out.
2175 # It will help us diagnose broken compilers, and finding out an intuition
2177 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2178 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2179 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2180 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2181 (eval $ac_link_default) 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; then
2185 # Find the output, starting from the most likely. This scheme is
2186 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2189 # Be careful to initialize this variable, since it used to be cached.
2190 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2192 # b.out is created by i960 compilers.
2193 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2195 test -f "$ac_file" ||
continue
2197 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2200 # This is the source file.
2203 # We found the default executable, but exeext='' is most
2207 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 # FIXME: I believe we export ac_cv_exeext for Libtool,
2209 # but it would be cool to find out if it's true. Does anybody
2210 # maintain Libtool? --akim.
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.
$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&2;}
2225 { (exit 77); exit 77; }; }
2228 ac_exeext
=$ac_cv_exeext
2229 echo "$as_me:$LINENO: result: $ac_file" >&5
2230 echo "${ECHO_T}$ac_file" >&6
2232 # Check the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try
='./$ac_file'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 if test "$cross_compiling" = maybe
; then
2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2260 echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6
2263 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2264 ac_clean_files
=$ac_clean_files_save
2265 # Check the compiler produces executables we can run. If not, either
2266 # the compiler is broken, or we cross compile.
2267 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2269 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270 echo "${ECHO_T}$cross_compiling" >&6
2272 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2275 (eval $ac_link) 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 for ac_file
in conftest.exe conftest conftest.
*; do
2284 test -f "$ac_file" ||
continue
2286 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2287 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest
$ac_cv_exeext
2302 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303 echo "${ECHO_T}$ac_cv_exeext" >&6
2305 rm -f conftest.
$ac_ext
2306 EXEEXT
=$ac_cv_exeext
2308 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2310 if test "${ac_cv_objext+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 cat >conftest.
$ac_ext <<_ACEOF
2316 cat confdefs.h
>>conftest.
$ac_ext
2317 cat >>conftest.
$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2328 rm -f conftest.o conftest.obj
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2336 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2337 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.
$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2354 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6
2356 OBJEXT
=$ac_cv_objext
2358 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.
$ac_ext <<_ACEOF
2366 cat confdefs.h
>>conftest.
$ac_ext
2367 cat >>conftest.
$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2381 rm -f conftest.
$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2385 grep -v '^ *+' conftest.er1
>conftest.err
2387 cat conftest.err
>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try
='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.
$ac_ext >&5
2409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2410 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2413 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2414 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2415 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2416 ac_test_CFLAGS
=${CFLAGS+set}
2417 ac_save_CFLAGS
=$CFLAGS
2419 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2420 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2421 if test "${ac_cv_prog_cc_g+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 cat >conftest.
$ac_ext <<_ACEOF
2427 cat confdefs.h
>>conftest.
$ac_ext
2428 cat >>conftest.
$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2439 rm -f conftest.
$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>conftest.er1
2443 grep -v '^ *+' conftest.er1
>conftest.err
2445 cat conftest.err
>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; } &&
2454 { ac_try
='test -s conftest.$ac_objext'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; }; then
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.
$ac_ext >&5
2467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471 if test "$ac_test_CFLAGS" = set; then
2472 CFLAGS
=$ac_save_CFLAGS
2473 elif test $ac_cv_prog_cc_g = yes; then
2474 if test "$GCC" = yes; then
2480 if test "$GCC" = yes; then
2486 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 ac_cv_prog_cc_stdc
=no
2493 cat >conftest.
$ac_ext <<_ACEOF
2496 cat confdefs.h
>>conftest.
$ac_ext
2497 cat >>conftest.
$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2501 #include <sys/types.h>
2502 #include <sys/stat.h>
2503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2504 struct buf { int x; };
2505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506 static char *e (p, i)
2512 static char *f (char * (*g) (char **, int), char **p, ...)
2517 s = g (p, va_arg (v,int));
2522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2523 function prototypes and stuff, but not '\xHH' hex character constants.
2524 These don't provoke an error unfortunately, instead are silently treated
2525 as 'x'. The following induces an error, until -std1 is added to get
2526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2527 array size at least. It's necessary to write '\x00'==0 to get something
2528 that's true only with -std1. */
2529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531 int test (int i, double x);
2532 struct s1 {int (*f) (int a);};
2533 struct s2 {int (*f) (double a);};
2534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2545 # Don't try gcc -ansi; that turns off useful extensions and
2546 # breaks some systems' header files.
2547 # AIX -qlanglvl=ansi
2548 # Ultrix and OSF/1 -std1
2549 # HP-UX 10.20 and later -Ae
2550 # HP-UX older versions -Aa -D_HPUX_SOURCE
2551 # SVR4 -Xc -D__EXTENSIONS__
2552 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2554 CC
="$ac_save_CC $ac_arg"
2555 rm -f conftest.
$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2559 grep -v '^ *+' conftest.er1
>conftest.err
2561 cat conftest.err
>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try
='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 ac_cv_prog_cc_stdc
=$ac_arg
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.
$ac_ext >&5
2583 rm -f conftest.err conftest.
$ac_objext
2585 rm -f conftest.
$ac_ext conftest.
$ac_objext
2590 case "x$ac_cv_prog_cc_stdc" in
2592 echo "$as_me:$LINENO: result: none needed" >&5
2593 echo "${ECHO_T}none needed" >&6 ;;
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2597 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2600 # Some people use a C++ compiler to compile C. Since we use `exit',
2601 # in C++ we need to declare it. In case someone uses the same compiler
2602 # for both compiling C and C++ we need to have the C++ compiler decide
2603 # the declaration of exit, since it's the most demanding environment.
2604 cat >conftest.
$ac_ext <<_ACEOF
2609 rm -f conftest.
$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>conftest.er1
2613 grep -v '^ *+' conftest.er1
>conftest.err
2615 cat conftest.err
>&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } &&
2618 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; } &&
2624 { ac_try
='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 for ac_declaration
in \
2632 'extern "C" void std::exit (int) throw (); using std::exit;' \
2633 'extern "C" void std::exit (int); using std::exit;' \
2634 'extern "C" void exit (int) throw ();' \
2635 'extern "C" void exit (int);' \
2638 cat >conftest.
$ac_ext <<_ACEOF
2641 cat confdefs.h
>>conftest.
$ac_ext
2642 cat >>conftest.
$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2654 rm -f conftest.
$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>conftest.er1
2658 grep -v '^ *+' conftest.er1
>conftest.err
2660 cat conftest.err
>&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try
='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.
$ac_ext >&5
2682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 cat >conftest.
$ac_ext <<_ACEOF
2686 cat confdefs.h
>>conftest.
$ac_ext
2687 cat >>conftest.
$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.
$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2702 grep -v '^ *+' conftest.er1
>conftest.err
2704 cat conftest.err
>&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try
='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.
$ac_ext >&5
2725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2728 if test -n "$ac_declaration"; then
2729 echo '#ifdef __cplusplus' >>confdefs.h
2730 echo $ac_declaration >>confdefs.h
2731 echo '#endif' >>confdefs.h
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.
$ac_ext >&5
2739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2741 ac_cpp
='$CPP $CPPFLAGS'
2742 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2746 if test "x$CC" != xcc
; then
2747 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2748 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2750 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2751 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2753 set dummy
$CC; ac_cc
=`echo $2 |
2754 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2755 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 cat >conftest.
$ac_ext <<_ACEOF
2761 cat confdefs.h
>>conftest.
$ac_ext
2762 cat >>conftest.
$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2773 # Make sure it works both with $CC and with simple cc.
2774 # We do the test twice because some compilers refuse to overwrite an
2775 # existing .o file with -o, though they will create one.
2776 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2777 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); };
2788 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2789 if test "x$CC" != xcc
; then
2790 # Test first that cc exists at all.
2791 if { ac_try
='cc -c conftest.$ac_ext >&5'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2798 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); };
2812 # cc exists but doesn't like -o.
2813 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2818 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2823 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2824 echo "$as_me:$LINENO: result: yes" >&5
2825 echo "${ECHO_T}yes" >&6
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2830 cat >>confdefs.h
<<\_ACEOF
2831 #define NO_MINUS_C_MINUS_O 1
2836 # expand $ac_aux_dir to an absolute path
2837 am_aux_dir
=`cd $ac_aux_dir && pwd`
2839 # FIXME: we rely on the cache variable name because
2840 # there is no other way.
2842 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2843 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2844 # Losing compiler, so override with the script.
2845 # FIXME: It is wrong to rewrite CC.
2846 # But if we don't then we get into trouble of one sort or another.
2847 # A longer-term fix would be to have automake use am__CC in this case,
2848 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2849 CC
="$am_aux_dir/compile $CC"
2852 # autoconf is lame and doesn't give us any substitution variable for this.
2853 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2854 NO_MINUS_C_MINUS_O
=yes
2856 OUTPUT_OPTION
='-o $@'
2861 # -------------------------
2862 # Check C compiler features
2863 # -------------------------
2866 ac_cpp
='$CPP $CPPFLAGS'
2867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2870 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2871 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2872 # On Suns, sometimes $CPP names a directory.
2873 if test -n "$CPP" && test -d "$CPP"; then
2876 if test -z "$CPP"; then
2877 if test "${ac_cv_prog_CPP+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 # Double quotes because CPP needs to be expanded
2881 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2884 for ac_c_preproc_warn_flag
in '' yes
2886 # Use a header file that comes with gcc, so configuring glibc
2887 # with a fresh cross-compiler works.
2888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2889 # <limits.h> exists even on freestanding compilers.
2890 # On the NeXT, cc -E runs the code through the compiler's parser,
2891 # not just through cpp. "Syntax error" is here to catch this case.
2892 cat >conftest.
$ac_ext <<_ACEOF
2895 cat confdefs.h
>>conftest.
$ac_ext
2896 cat >>conftest.
$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2899 # include <limits.h>
2901 # include <assert.h>
2905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2906 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2908 grep -v '^ *+' conftest.er1
>conftest.err
2910 cat conftest.err
>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } >/dev
/null
; then
2913 if test -s conftest.err
; then
2914 ac_cpp_err
=$ac_c_preproc_warn_flag
2915 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2922 if test -z "$ac_cpp_err"; then
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.
$ac_ext >&5
2928 # Broken: fails on valid input.
2931 rm -f conftest.err conftest.
$ac_ext
2933 # OK, works on sane cases. Now check whether non-existent headers
2934 # can be detected and how.
2935 cat >conftest.
$ac_ext <<_ACEOF
2938 cat confdefs.h
>>conftest.
$ac_ext
2939 cat >>conftest.
$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #include <ac_nonexistent.h>
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1
>conftest.err
2948 cat conftest.err
>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } >/dev
/null
; then
2951 if test -s conftest.err
; then
2952 ac_cpp_err
=$ac_c_preproc_warn_flag
2953 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2960 if test -z "$ac_cpp_err"; then
2961 # Broken: success on invalid input.
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.
$ac_ext >&5
2967 # Passes both tests.
2971 rm -f conftest.err conftest.
$ac_ext
2974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2975 rm -f conftest.err conftest.
$ac_ext
2976 if $ac_preproc_ok; then
2988 echo "$as_me:$LINENO: result: $CPP" >&5
2989 echo "${ECHO_T}$CPP" >&6
2991 for ac_c_preproc_warn_flag
in '' yes
2993 # Use a header file that comes with gcc, so configuring glibc
2994 # with a fresh cross-compiler works.
2995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2996 # <limits.h> exists even on freestanding compilers.
2997 # On the NeXT, cc -E runs the code through the compiler's parser,
2998 # not just through cpp. "Syntax error" is here to catch this case.
2999 cat >conftest.
$ac_ext <<_ACEOF
3002 cat confdefs.h
>>conftest.
$ac_ext
3003 cat >>conftest.
$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3006 # include <limits.h>
3008 # include <assert.h>
3012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1
>conftest.err
3017 cat conftest.err
>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } >/dev
/null
; then
3020 if test -s conftest.err
; then
3021 ac_cpp_err
=$ac_c_preproc_warn_flag
3022 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3029 if test -z "$ac_cpp_err"; then
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.
$ac_ext >&5
3035 # Broken: fails on valid input.
3038 rm -f conftest.err conftest.
$ac_ext
3040 # OK, works on sane cases. Now check whether non-existent headers
3041 # can be detected and how.
3042 cat >conftest.
$ac_ext <<_ACEOF
3045 cat confdefs.h
>>conftest.
$ac_ext
3046 cat >>conftest.
$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048 #include <ac_nonexistent.h>
3050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3053 grep -v '^ *+' conftest.er1
>conftest.err
3055 cat conftest.err
>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } >/dev
/null
; then
3058 if test -s conftest.err
; then
3059 ac_cpp_err
=$ac_c_preproc_warn_flag
3060 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3067 if test -z "$ac_cpp_err"; then
3068 # Broken: success on invalid input.
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.
$ac_ext >&5
3074 # Passes both tests.
3078 rm -f conftest.err conftest.
$ac_ext
3081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3082 rm -f conftest.err conftest.
$ac_ext
3083 if $ac_preproc_ok; then
3086 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3087 See \`config.log' for more details." >&5
3088 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3094 ac_cpp
='$CPP $CPPFLAGS'
3095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3100 echo "$as_me:$LINENO: checking for inline" >&5
3101 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3102 if test "${ac_cv_c_inline+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 for ac_kw
in inline __inline__ __inline
; do
3107 cat >conftest.
$ac_ext <<_ACEOF
3110 cat confdefs.h
>>conftest.
$ac_ext
3111 cat >>conftest.
$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3115 static $ac_kw foo_t static_foo () {return 0; }
3116 $ac_kw foo_t foo () {return 0; }
3120 rm -f conftest.
$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122 (eval $ac_compile) 2>conftest.er1
3124 grep -v '^ *+' conftest.er1
>conftest.err
3126 cat conftest.err
>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try
='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 ac_cv_c_inline
=$ac_kw; break
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.
$ac_ext >&5
3147 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3151 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3152 echo "${ECHO_T}$ac_cv_c_inline" >&6
3155 case $ac_cv_c_inline in
3158 case $ac_cv_c_inline in
3160 *) ac_val
=$ac_cv_c_inline;;
3162 cat >>confdefs.h
<<_ACEOF
3164 #define inline $ac_val
3171 echo "$as_me:$LINENO: checking for long long int" >&5
3172 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3173 if test "${ac_cv_c_long_long+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 cat >conftest.
$ac_ext <<_ACEOF
3179 cat confdefs.h
>>conftest.
$ac_ext
3180 cat >>conftest.
$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.
$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>conftest.er1
3195 grep -v '^ *+' conftest.er1
>conftest.err
3197 cat conftest.err
>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; } &&
3206 { ac_try
='test -s conftest.$ac_objext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 ac_cv_c_long_long
=yes
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.
$ac_ext >&5
3217 ac_cv_c_long_long
=no
3219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3221 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3222 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3223 if test $ac_cv_c_long_long = yes; then
3225 cat >>confdefs.h
<<\_ACEOF
3226 #define HAVE_LONG_LONG 1
3230 echo "$as_me:$LINENO: checking for __int64" >&5
3231 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3232 if test "${ac_cv_c___int64+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 cat >conftest.
$ac_ext <<_ACEOF
3238 cat confdefs.h
>>conftest.
$ac_ext
3239 cat >>conftest.
$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3250 rm -f conftest.
$ac_objext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252 (eval $ac_compile) 2>conftest.er1
3254 grep -v '^ *+' conftest.er1
>conftest.err
3256 cat conftest.err
>&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } &&
3259 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; } &&
3265 { ac_try
='test -s conftest.$ac_objext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.
$ac_ext >&5
3278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3281 echo "${ECHO_T}$ac_cv_c___int64" >&6
3282 if test $ac_cv_c___int64 = yes; then
3284 cat >>confdefs.h
<<\_ACEOF
3285 #define HAVE___INT64 1
3291 # sizeof(char) is 1 by definition.
3293 echo "$as_me:$LINENO: checking for egrep" >&5
3294 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3295 if test "${ac_cv_prog_egrep+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3299 then ac_cv_prog_egrep
='grep -E'
3300 else ac_cv_prog_egrep
='egrep'
3303 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3304 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3305 EGREP
=$ac_cv_prog_egrep
3308 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3309 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3310 if test "${ac_cv_header_stdc+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 cat >conftest.
$ac_ext <<_ACEOF
3316 cat confdefs.h
>>conftest.
$ac_ext
3317 cat >>conftest.
$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3332 rm -f conftest.
$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3336 grep -v '^ *+' conftest.er1
>conftest.err
3338 cat conftest.err
>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try
='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_header_stdc
=yes
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.
$ac_ext >&5
3358 ac_cv_header_stdc
=no
3360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3362 if test $ac_cv_header_stdc = yes; then
3363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3364 cat >conftest.
$ac_ext <<_ACEOF
3367 cat confdefs.h
>>conftest.
$ac_ext
3368 cat >>conftest.
$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 $EGREP "memchr" >/dev
/null
2>&1; then
3377 ac_cv_header_stdc
=no
3383 if test $ac_cv_header_stdc = yes; then
3384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3385 cat >conftest.
$ac_ext <<_ACEOF
3388 cat confdefs.h
>>conftest.
$ac_ext
3389 cat >>conftest.
$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3395 $EGREP "free" >/dev
/null
2>&1; then
3398 ac_cv_header_stdc
=no
3404 if test $ac_cv_header_stdc = yes; then
3405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3406 if test "$cross_compiling" = yes; then
3409 cat >conftest.
$ac_ext <<_ACEOF
3412 cat confdefs.h
>>conftest.
$ac_ext
3413 cat >>conftest.
$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3416 #if ((' ' & 0x0FF) == 0x020)
3417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3420 # define ISLOWER(c) \
3421 (('a' <= (c) && (c) <= 'i') \
3422 || ('j' <= (c) && (c) <= 'r') \
3423 || ('s' <= (c) && (c) <= 'z'))
3424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3432 for (i = 0; i < 256; i++)
3433 if (XOR (islower (i), ISLOWER (i))
3434 || toupper (i) != TOUPPER (i))
3439 rm -f conftest
$ac_exeext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3441 (eval $ac_link) 2>&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3452 echo "$as_me: program exited with status $ac_status" >&5
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.
$ac_ext >&5
3457 ac_cv_header_stdc
=no
3459 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3463 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3464 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3465 if test $ac_cv_header_stdc = yes; then
3467 cat >>confdefs.h
<<\_ACEOF
3468 #define STDC_HEADERS 1
3473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3483 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3484 inttypes.h stdint.h unistd.h
3486 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3487 echo "$as_me:$LINENO: checking for $ac_header" >&5
3488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 cat >conftest.
$ac_ext <<_ACEOF
3495 cat confdefs.h
>>conftest.
$ac_ext
3496 cat >>conftest.
$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 $ac_includes_default
3500 #include <$ac_header>
3502 rm -f conftest.
$ac_objext
3503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3504 (eval $ac_compile) 2>conftest.er1
3506 grep -v '^ *+' conftest.er1
>conftest.err
3508 cat conftest.err
>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
3511 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; } &&
3517 { ac_try
='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 eval "$as_ac_Header=yes"
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.
$ac_ext >&5
3528 eval "$as_ac_Header=no"
3530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3535 cat >>confdefs.h
<<_ACEOF
3536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3544 echo "$as_me:$LINENO: checking for void *" >&5
3545 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3546 if test "${ac_cv_type_void_p+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 cat >conftest.
$ac_ext <<_ACEOF
3552 cat confdefs.h
>>conftest.
$ac_ext
3553 cat >>conftest.
$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 $ac_includes_default
3561 if (sizeof (void *))
3567 rm -f conftest.
$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1
>conftest.err
3573 cat conftest.err
>&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try
='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_type_void_p
=yes
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.
$ac_ext >&5
3593 ac_cv_type_void_p
=no
3595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3597 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3598 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3600 echo "$as_me:$LINENO: checking size of void *" >&5
3601 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3602 if test "${ac_cv_sizeof_void_p+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 if test "$ac_cv_type_void_p" = yes; then
3606 # The cast to unsigned long works around a bug in the HP C Compiler
3607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3609 # This bug is HP SR number 8606223364.
3610 if test "$cross_compiling" = yes; then
3611 # Depending upon the size, compute the lo and hi bounds.
3612 cat >conftest.
$ac_ext <<_ACEOF
3615 cat confdefs.h
>>conftest.
$ac_ext
3616 cat >>conftest.
$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 $ac_includes_default
3622 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3629 rm -f conftest.
$ac_objext
3630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3633 grep -v '^ *+' conftest.er1
>conftest.err
3635 cat conftest.err
>&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try
='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
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 *))) <= $ac_mid)];
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" || test ! -s conftest.err'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; } &&
3684 { ac_try
='test -s conftest.$ac_objext'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 ac_hi
=$ac_mid; break
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.
$ac_ext >&5
3695 ac_lo
=`expr $ac_mid + 1`
3696 if test $ac_lo -le $ac_mid; then
3700 ac_mid
=`expr 2 '*' $ac_mid + 1`
3702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.
$ac_ext >&5
3708 cat >conftest.
$ac_ext <<_ACEOF
3711 cat confdefs.h
>>conftest.
$ac_ext
3712 cat >>conftest.
$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 $ac_includes_default
3718 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3725 rm -f conftest.
$ac_objext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3727 (eval $ac_compile) 2>conftest.er1
3729 grep -v '^ *+' conftest.er1
>conftest.err
3731 cat conftest.err
>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try
='test -s conftest.$ac_objext'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3748 cat >conftest.
$ac_ext <<_ACEOF
3751 cat confdefs.h
>>conftest.
$ac_ext
3752 cat >>conftest.
$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 $ac_includes_default
3758 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3765 rm -f conftest.
$ac_objext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>conftest.er1
3769 grep -v '^ *+' conftest.er1
>conftest.err
3771 cat conftest.err
>&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try
='test -s conftest.$ac_objext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 ac_lo
=$ac_mid; break
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.
$ac_ext >&5
3791 ac_hi
=`expr '(' $ac_mid ')' - 1`
3792 if test $ac_mid -le $ac_hi; then
3796 ac_mid
=`expr 2 '*' $ac_mid`
3798 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.
$ac_ext >&5
3806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3809 # Binary search between lo and hi bounds.
3810 while test "x$ac_lo" != "x$ac_hi"; do
3811 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3812 cat >conftest.
$ac_ext <<_ACEOF
3815 cat confdefs.h
>>conftest.
$ac_ext
3816 cat >>conftest.
$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 $ac_includes_default
3822 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3829 rm -f conftest.
$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3833 grep -v '^ *+' conftest.er1
>conftest.err
3835 cat conftest.err
>&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try
='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.
$ac_ext >&5
3855 ac_lo
=`expr '(' $ac_mid ')' + 1`
3857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3860 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3861 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3862 See \`config.log' for more details." >&5
3863 echo "$as_me: error: cannot compute sizeof (void *), 77
3864 See \`config.log' for more details." >&2;}
3865 { (exit 1); exit 1; }; } ;;
3868 if test "$cross_compiling" = yes; then
3869 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3870 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3871 { (exit 1); exit 1; }; }
3873 cat >conftest.
$ac_ext <<_ACEOF
3876 cat confdefs.h
>>conftest.
$ac_ext
3877 cat >>conftest.
$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 $ac_includes_default
3880 long longval () { return (long) (sizeof (void *)); }
3881 unsigned long ulongval () { return (long) (sizeof (void *)); }
3888 FILE *f = fopen ("conftest.val", "w");
3891 if (((long) (sizeof (void *))) < 0)
3893 long i = longval ();
3894 if (i != ((long) (sizeof (void *))))
3896 fprintf (f, "%ld\n", i);
3900 unsigned long i = ulongval ();
3901 if (i != ((long) (sizeof (void *))))
3903 fprintf (f, "%lu\n", i);
3905 exit (ferror (f) || fclose (f) != 0);
3911 rm -f conftest
$ac_exeext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913 (eval $ac_link) 2>&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 ac_cv_sizeof_void_p
=`cat conftest.val`
3924 echo "$as_me: program exited with status $ac_status" >&5
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.
$ac_ext >&5
3929 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3930 See \`config.log' for more details." >&5
3931 echo "$as_me: error: cannot compute sizeof (void *), 77
3932 See \`config.log' for more details." >&2;}
3933 { (exit 1); exit 1; }; }
3935 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3940 ac_cv_sizeof_void_p
=0
3943 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3944 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3945 cat >>confdefs.h
<<_ACEOF
3946 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3950 echo "$as_me:$LINENO: checking for short" >&5
3951 echo $ECHO_N "checking for short... $ECHO_C" >&6
3952 if test "${ac_cv_type_short+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 cat >conftest.
$ac_ext <<_ACEOF
3958 cat confdefs.h
>>conftest.
$ac_ext
3959 cat >>conftest.
$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 $ac_includes_default
3973 rm -f conftest.
$ac_objext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>conftest.er1
3977 grep -v '^ *+' conftest.er1
>conftest.err
3979 cat conftest.err
>&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } &&
3982 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; } &&
3988 { ac_try
='test -s conftest.$ac_objext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_cv_type_short
=yes
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.
$ac_ext >&5
4001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4003 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4004 echo "${ECHO_T}$ac_cv_type_short" >&6
4006 echo "$as_me:$LINENO: checking size of short" >&5
4007 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4008 if test "${ac_cv_sizeof_short+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 if test "$ac_cv_type_short" = yes; then
4012 # The cast to unsigned long works around a bug in the HP C Compiler
4013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4015 # This bug is HP SR number 8606223364.
4016 if test "$cross_compiling" = yes; then
4017 # Depending upon the size, compute the lo and hi bounds.
4018 cat >conftest.
$ac_ext <<_ACEOF
4021 cat confdefs.h
>>conftest.
$ac_ext
4022 cat >>conftest.
$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4028 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4035 rm -f conftest.
$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>conftest.er1
4039 grep -v '^ *+' conftest.er1
>conftest.err
4041 cat conftest.err
>&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; } &&
4050 { ac_try
='test -s conftest.$ac_objext'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4058 cat >conftest.
$ac_ext <<_ACEOF
4061 cat confdefs.h
>>conftest.
$ac_ext
4062 cat >>conftest.
$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 $ac_includes_default
4068 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4075 rm -f conftest.
$ac_objext
4076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>conftest.er1
4079 grep -v '^ *+' conftest.er1
>conftest.err
4081 cat conftest.err
>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } &&
4084 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try
='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 ac_hi
=$ac_mid; break
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.
$ac_ext >&5
4101 ac_lo
=`expr $ac_mid + 1`
4102 if test $ac_lo -le $ac_mid; then
4106 ac_mid
=`expr 2 '*' $ac_mid + 1`
4108 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.
$ac_ext >&5
4114 cat >conftest.
$ac_ext <<_ACEOF
4117 cat confdefs.h
>>conftest.
$ac_ext
4118 cat >>conftest.
$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 $ac_includes_default
4124 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4131 rm -f conftest.
$ac_objext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>conftest.er1
4135 grep -v '^ *+' conftest.er1
>conftest.err
4137 cat conftest.err
>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try
='test -s conftest.$ac_objext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4154 cat >conftest.
$ac_ext <<_ACEOF
4157 cat confdefs.h
>>conftest.
$ac_ext
4158 cat >>conftest.
$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 $ac_includes_default
4164 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4171 rm -f conftest.
$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>conftest.er1
4175 grep -v '^ *+' conftest.er1
>conftest.err
4177 cat conftest.err
>&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try
='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_lo
=$ac_mid; break
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.
$ac_ext >&5
4197 ac_hi
=`expr '(' $ac_mid ')' - 1`
4198 if test $ac_mid -le $ac_hi; then
4202 ac_mid
=`expr 2 '*' $ac_mid`
4204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.
$ac_ext >&5
4212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4215 # Binary search between lo and hi bounds.
4216 while test "x$ac_lo" != "x$ac_hi"; do
4217 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4218 cat >conftest.
$ac_ext <<_ACEOF
4221 cat confdefs.h
>>conftest.
$ac_ext
4222 cat >>conftest.
$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 $ac_includes_default
4228 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4235 rm -f conftest.
$ac_objext
4236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4237 (eval $ac_compile) 2>conftest.er1
4239 grep -v '^ *+' conftest.er1
>conftest.err
4241 cat conftest.err
>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try
='test -s conftest.$ac_objext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.
$ac_ext >&5
4261 ac_lo
=`expr '(' $ac_mid ')' + 1`
4263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4266 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4267 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4268 See \`config.log' for more details." >&5
4269 echo "$as_me: error: cannot compute sizeof (short), 77
4270 See \`config.log' for more details." >&2;}
4271 { (exit 1); exit 1; }; } ;;
4274 if test "$cross_compiling" = yes; then
4275 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4276 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4277 { (exit 1); exit 1; }; }
4279 cat >conftest.
$ac_ext <<_ACEOF
4282 cat confdefs.h
>>conftest.
$ac_ext
4283 cat >>conftest.
$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 $ac_includes_default
4286 long longval () { return (long) (sizeof (short)); }
4287 unsigned long ulongval () { return (long) (sizeof (short)); }
4294 FILE *f = fopen ("conftest.val", "w");
4297 if (((long) (sizeof (short))) < 0)
4299 long i = longval ();
4300 if (i != ((long) (sizeof (short))))
4302 fprintf (f, "%ld\n", i);
4306 unsigned long i = ulongval ();
4307 if (i != ((long) (sizeof (short))))
4309 fprintf (f, "%lu\n", i);
4311 exit (ferror (f) || fclose (f) != 0);
4317 rm -f conftest
$ac_exeext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319 (eval $ac_link) 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 ac_cv_sizeof_short
=`cat conftest.val`
4330 echo "$as_me: program exited with status $ac_status" >&5
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.
$ac_ext >&5
4335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4336 See \`config.log' for more details." >&5
4337 echo "$as_me: error: cannot compute sizeof (short), 77
4338 See \`config.log' for more details." >&2;}
4339 { (exit 1); exit 1; }; }
4341 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4346 ac_cv_sizeof_short
=0
4349 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4350 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4351 cat >>confdefs.h
<<_ACEOF
4352 #define SIZEOF_SHORT $ac_cv_sizeof_short
4356 echo "$as_me:$LINENO: checking for int" >&5
4357 echo $ECHO_N "checking for int... $ECHO_C" >&6
4358 if test "${ac_cv_type_int+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 cat >conftest.
$ac_ext <<_ACEOF
4364 cat confdefs.h
>>conftest.
$ac_ext
4365 cat >>conftest.
$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 $ac_includes_default
4379 rm -f conftest.
$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>conftest.er1
4383 grep -v '^ *+' conftest.er1
>conftest.err
4385 cat conftest.err
>&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try
='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.
$ac_ext >&5
4407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4409 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4410 echo "${ECHO_T}$ac_cv_type_int" >&6
4412 echo "$as_me:$LINENO: checking size of int" >&5
4413 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4414 if test "${ac_cv_sizeof_int+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 if test "$ac_cv_type_int" = yes; then
4418 # The cast to unsigned long works around a bug in the HP C Compiler
4419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4421 # This bug is HP SR number 8606223364.
4422 if test "$cross_compiling" = yes; then
4423 # Depending upon the size, compute the lo and hi bounds.
4424 cat >conftest.
$ac_ext <<_ACEOF
4427 cat confdefs.h
>>conftest.
$ac_ext
4428 cat >>conftest.
$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 $ac_includes_default
4434 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4441 rm -f conftest.
$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
4445 grep -v '^ *+' conftest.er1
>conftest.err
4447 cat conftest.err
>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try
='test -z "$ac_c_werror_flag" || 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
4464 cat >conftest.
$ac_ext <<_ACEOF
4467 cat confdefs.h
>>conftest.
$ac_ext
4468 cat >>conftest.
$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 $ac_includes_default
4474 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4481 rm -f conftest.
$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4485 grep -v '^ *+' conftest.er1
>conftest.err
4487 cat conftest.err
>&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try
='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_hi
=$ac_mid; break
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.
$ac_ext >&5
4507 ac_lo
=`expr $ac_mid + 1`
4508 if test $ac_lo -le $ac_mid; then
4512 ac_mid
=`expr 2 '*' $ac_mid + 1`
4514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.
$ac_ext >&5
4520 cat >conftest.
$ac_ext <<_ACEOF
4523 cat confdefs.h
>>conftest.
$ac_ext
4524 cat >>conftest.
$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 $ac_includes_default
4530 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4537 rm -f conftest.
$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1
>conftest.err
4543 cat conftest.err
>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try
='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4560 cat >conftest.
$ac_ext <<_ACEOF
4563 cat confdefs.h
>>conftest.
$ac_ext
4564 cat >>conftest.
$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4570 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4577 rm -f conftest.
$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>conftest.er1
4581 grep -v '^ *+' conftest.er1
>conftest.err
4583 cat conftest.err
>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; } &&
4592 { ac_try
='test -s conftest.$ac_objext'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
4598 ac_lo
=$ac_mid; break
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.
$ac_ext >&5
4603 ac_hi
=`expr '(' $ac_mid ')' - 1`
4604 if test $ac_mid -le $ac_hi; then
4608 ac_mid
=`expr 2 '*' $ac_mid`
4610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.
$ac_ext >&5
4618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4621 # Binary search between lo and hi bounds.
4622 while test "x$ac_lo" != "x$ac_hi"; do
4623 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4624 cat >conftest.
$ac_ext <<_ACEOF
4627 cat confdefs.h
>>conftest.
$ac_ext
4628 cat >>conftest.
$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4634 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4641 rm -f conftest.
$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4645 grep -v '^ *+' conftest.er1
>conftest.err
4647 cat conftest.err
>&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try
='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.
$ac_ext >&5
4667 ac_lo
=`expr '(' $ac_mid ')' + 1`
4669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4672 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4673 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4674 See \`config.log' for more details." >&5
4675 echo "$as_me: error: cannot compute sizeof (int), 77
4676 See \`config.log' for more details." >&2;}
4677 { (exit 1); exit 1; }; } ;;
4680 if test "$cross_compiling" = yes; then
4681 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4682 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4683 { (exit 1); exit 1; }; }
4685 cat >conftest.
$ac_ext <<_ACEOF
4688 cat confdefs.h
>>conftest.
$ac_ext
4689 cat >>conftest.
$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 $ac_includes_default
4692 long longval () { return (long) (sizeof (int)); }
4693 unsigned long ulongval () { return (long) (sizeof (int)); }
4700 FILE *f = fopen ("conftest.val", "w");
4703 if (((long) (sizeof (int))) < 0)
4705 long i = longval ();
4706 if (i != ((long) (sizeof (int))))
4708 fprintf (f, "%ld\n", i);
4712 unsigned long i = ulongval ();
4713 if (i != ((long) (sizeof (int))))
4715 fprintf (f, "%lu\n", i);
4717 exit (ferror (f) || fclose (f) != 0);
4723 rm -f conftest
$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 ac_cv_sizeof_int
=`cat conftest.val`
4736 echo "$as_me: program exited with status $ac_status" >&5
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.
$ac_ext >&5
4741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4742 See \`config.log' for more details." >&5
4743 echo "$as_me: error: cannot compute sizeof (int), 77
4744 See \`config.log' for more details." >&2;}
4745 { (exit 1); exit 1; }; }
4747 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4755 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4756 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4757 cat >>confdefs.h
<<_ACEOF
4758 #define SIZEOF_INT $ac_cv_sizeof_int
4762 echo "$as_me:$LINENO: checking for long" >&5
4763 echo $ECHO_N "checking for long... $ECHO_C" >&6
4764 if test "${ac_cv_type_long+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 cat >conftest.
$ac_ext <<_ACEOF
4770 cat confdefs.h
>>conftest.
$ac_ext
4771 cat >>conftest.
$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773 $ac_includes_default
4785 rm -f conftest.
$ac_objext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>conftest.er1
4789 grep -v '^ *+' conftest.er1
>conftest.err
4791 cat conftest.err
>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; } &&
4800 { ac_try
='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.
$ac_ext >&5
4813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4815 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4816 echo "${ECHO_T}$ac_cv_type_long" >&6
4818 echo "$as_me:$LINENO: checking size of long" >&5
4819 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4820 if test "${ac_cv_sizeof_long+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 if test "$ac_cv_type_long" = yes; then
4824 # The cast to unsigned long works around a bug in the HP C Compiler
4825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4827 # This bug is HP SR number 8606223364.
4828 if test "$cross_compiling" = yes; then
4829 # Depending upon the size, compute the lo and hi bounds.
4830 cat >conftest.
$ac_ext <<_ACEOF
4833 cat confdefs.h
>>conftest.
$ac_ext
4834 cat >>conftest.
$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 $ac_includes_default
4840 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4847 rm -f conftest.
$ac_objext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>conftest.er1
4851 grep -v '^ *+' conftest.er1
>conftest.err
4853 cat conftest.err
>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; } &&
4862 { ac_try
='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4870 cat >conftest.
$ac_ext <<_ACEOF
4873 cat confdefs.h
>>conftest.
$ac_ext
4874 cat >>conftest.
$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 $ac_includes_default
4880 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4887 rm -f conftest.
$ac_objext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889 (eval $ac_compile) 2>conftest.er1
4891 grep -v '^ *+' conftest.er1
>conftest.err
4893 cat conftest.err
>&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; } &&
4902 { ac_try
='test -s conftest.$ac_objext'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4908 ac_hi
=$ac_mid; break
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.
$ac_ext >&5
4913 ac_lo
=`expr $ac_mid + 1`
4914 if test $ac_lo -le $ac_mid; then
4918 ac_mid
=`expr 2 '*' $ac_mid + 1`
4920 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.
$ac_ext >&5
4926 cat >conftest.
$ac_ext <<_ACEOF
4929 cat confdefs.h
>>conftest.
$ac_ext
4930 cat >>conftest.
$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 $ac_includes_default
4936 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4943 rm -f conftest.
$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>conftest.er1
4947 grep -v '^ *+' conftest.er1
>conftest.err
4949 cat conftest.err
>&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; } &&
4958 { ac_try
='test -s conftest.$ac_objext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4966 cat >conftest.
$ac_ext <<_ACEOF
4969 cat confdefs.h
>>conftest.
$ac_ext
4970 cat >>conftest.
$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 $ac_includes_default
4976 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4983 rm -f conftest.
$ac_objext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>conftest.er1
4987 grep -v '^ *+' conftest.er1
>conftest.err
4989 cat conftest.err
>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try
='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_lo
=$ac_mid; break
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.
$ac_ext >&5
5009 ac_hi
=`expr '(' $ac_mid ')' - 1`
5010 if test $ac_mid -le $ac_hi; then
5014 ac_mid
=`expr 2 '*' $ac_mid`
5016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.
$ac_ext >&5
5024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5027 # Binary search between lo and hi bounds.
5028 while test "x$ac_lo" != "x$ac_hi"; do
5029 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5030 cat >conftest.
$ac_ext <<_ACEOF
5033 cat confdefs.h
>>conftest.
$ac_ext
5034 cat >>conftest.
$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5040 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5047 rm -f conftest.
$ac_objext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049 (eval $ac_compile) 2>conftest.er1
5051 grep -v '^ *+' conftest.er1
>conftest.err
5053 cat conftest.err
>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try
='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.
$ac_ext >&5
5073 ac_lo
=`expr '(' $ac_mid ')' + 1`
5075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5078 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5079 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5080 See \`config.log' for more details." >&5
5081 echo "$as_me: error: cannot compute sizeof (long), 77
5082 See \`config.log' for more details." >&2;}
5083 { (exit 1); exit 1; }; } ;;
5086 if test "$cross_compiling" = yes; then
5087 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5088 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5089 { (exit 1); exit 1; }; }
5091 cat >conftest.
$ac_ext <<_ACEOF
5094 cat confdefs.h
>>conftest.
$ac_ext
5095 cat >>conftest.
$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5098 long longval () { return (long) (sizeof (long)); }
5099 unsigned long ulongval () { return (long) (sizeof (long)); }
5106 FILE *f = fopen ("conftest.val", "w");
5109 if (((long) (sizeof (long))) < 0)
5111 long i = longval ();
5112 if (i != ((long) (sizeof (long))))
5114 fprintf (f, "%ld\n", i);
5118 unsigned long i = ulongval ();
5119 if (i != ((long) (sizeof (long))))
5121 fprintf (f, "%lu\n", i);
5123 exit (ferror (f) || fclose (f) != 0);
5129 rm -f conftest
$ac_exeext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131 (eval $ac_link) 2>&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_cv_sizeof_long
=`cat conftest.val`
5142 echo "$as_me: program exited with status $ac_status" >&5
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.
$ac_ext >&5
5147 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: cannot compute sizeof (long), 77
5150 See \`config.log' for more details." >&2;}
5151 { (exit 1); exit 1; }; }
5153 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5161 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5162 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5163 cat >>confdefs.h
<<_ACEOF
5164 #define SIZEOF_LONG $ac_cv_sizeof_long
5168 if test $ac_cv_c_long_long = yes; then
5169 echo "$as_me:$LINENO: checking for long long" >&5
5170 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5171 if test "${ac_cv_type_long_long+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 cat >conftest.
$ac_ext <<_ACEOF
5177 cat confdefs.h
>>conftest.
$ac_ext
5178 cat >>conftest.
$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5184 if ((long long *) 0)
5186 if (sizeof (long long))
5192 rm -f conftest.
$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194 (eval $ac_compile) 2>conftest.er1
5196 grep -v '^ *+' conftest.er1
>conftest.err
5198 cat conftest.err
>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; } &&
5207 { ac_try
='test -s conftest.$ac_objext'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 ac_cv_type_long_long
=yes
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.
$ac_ext >&5
5218 ac_cv_type_long_long
=no
5220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5222 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5223 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5225 echo "$as_me:$LINENO: checking size of long long" >&5
5226 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5227 if test "${ac_cv_sizeof_long_long+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 if test "$ac_cv_type_long_long" = yes; then
5231 # The cast to unsigned long works around a bug in the HP C Compiler
5232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5234 # This bug is HP SR number 8606223364.
5235 if test "$cross_compiling" = yes; then
5236 # Depending upon the size, compute the lo and hi bounds.
5237 cat >conftest.
$ac_ext <<_ACEOF
5240 cat confdefs.h
>>conftest.
$ac_ext
5241 cat >>conftest.
$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 $ac_includes_default
5247 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5254 rm -f conftest.
$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256 (eval $ac_compile) 2>conftest.er1
5258 grep -v '^ *+' conftest.er1
>conftest.err
5260 cat conftest.err
>&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } &&
5263 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; } &&
5269 { ac_try
='test -s conftest.$ac_objext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5277 cat >conftest.
$ac_ext <<_ACEOF
5280 cat confdefs.h
>>conftest.
$ac_ext
5281 cat >>conftest.
$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 $ac_includes_default
5287 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5294 rm -f conftest.
$ac_objext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5296 (eval $ac_compile) 2>conftest.er1
5298 grep -v '^ *+' conftest.er1
>conftest.err
5300 cat conftest.err
>&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try
='test -s conftest.$ac_objext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 ac_hi
=$ac_mid; break
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.
$ac_ext >&5
5320 ac_lo
=`expr $ac_mid + 1`
5321 if test $ac_lo -le $ac_mid; then
5325 ac_mid
=`expr 2 '*' $ac_mid + 1`
5327 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.
$ac_ext >&5
5333 cat >conftest.
$ac_ext <<_ACEOF
5336 cat confdefs.h
>>conftest.
$ac_ext
5337 cat >>conftest.
$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 $ac_includes_default
5343 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5350 rm -f conftest.
$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5354 grep -v '^ *+' conftest.er1
>conftest.err
5356 cat conftest.err
>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try
='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5373 cat >conftest.
$ac_ext <<_ACEOF
5376 cat confdefs.h
>>conftest.
$ac_ext
5377 cat >>conftest.
$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 $ac_includes_default
5383 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5390 rm -f conftest.
$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5394 grep -v '^ *+' conftest.er1
>conftest.err
5396 cat conftest.err
>&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try
='test -s conftest.$ac_objext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_lo
=$ac_mid; break
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.
$ac_ext >&5
5416 ac_hi
=`expr '(' $ac_mid ')' - 1`
5417 if test $ac_mid -le $ac_hi; then
5421 ac_mid
=`expr 2 '*' $ac_mid`
5423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.
$ac_ext >&5
5431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5434 # Binary search between lo and hi bounds.
5435 while test "x$ac_lo" != "x$ac_hi"; do
5436 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5437 cat >conftest.
$ac_ext <<_ACEOF
5440 cat confdefs.h
>>conftest.
$ac_ext
5441 cat >>conftest.
$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 $ac_includes_default
5447 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5454 rm -f conftest.
$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5458 grep -v '^ *+' conftest.er1
>conftest.err
5460 cat conftest.err
>&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try
='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.
$ac_ext >&5
5480 ac_lo
=`expr '(' $ac_mid ')' + 1`
5482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5485 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5486 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5487 See \`config.log' for more details." >&5
5488 echo "$as_me: error: cannot compute sizeof (long long), 77
5489 See \`config.log' for more details." >&2;}
5490 { (exit 1); exit 1; }; } ;;
5493 if test "$cross_compiling" = yes; then
5494 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5495 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5496 { (exit 1); exit 1; }; }
5498 cat >conftest.
$ac_ext <<_ACEOF
5501 cat confdefs.h
>>conftest.
$ac_ext
5502 cat >>conftest.
$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5505 long longval () { return (long) (sizeof (long long)); }
5506 unsigned long ulongval () { return (long) (sizeof (long long)); }
5513 FILE *f = fopen ("conftest.val", "w");
5516 if (((long) (sizeof (long long))) < 0)
5518 long i = longval ();
5519 if (i != ((long) (sizeof (long long))))
5521 fprintf (f, "%ld\n", i);
5525 unsigned long i = ulongval ();
5526 if (i != ((long) (sizeof (long long))))
5528 fprintf (f, "%lu\n", i);
5530 exit (ferror (f) || fclose (f) != 0);
5536 rm -f conftest
$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_sizeof_long_long
=`cat conftest.val`
5549 echo "$as_me: program exited with status $ac_status" >&5
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.
$ac_ext >&5
5554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5555 See \`config.log' for more details." >&5
5556 echo "$as_me: error: cannot compute sizeof (long long), 77
5557 See \`config.log' for more details." >&2;}
5558 { (exit 1); exit 1; }; }
5560 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5565 ac_cv_sizeof_long_long
=0
5568 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5569 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5570 cat >>confdefs.h
<<_ACEOF
5571 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5576 if test $ac_cv_c___int64 = yes; then
5577 echo "$as_me:$LINENO: checking for __int64" >&5
5578 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5579 if test "${ac_cv_type___int64+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 cat >conftest.
$ac_ext <<_ACEOF
5585 cat confdefs.h
>>conftest.
$ac_ext
5586 cat >>conftest.
$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 $ac_includes_default
5594 if (sizeof (__int64))
5600 rm -f conftest.
$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5604 grep -v '^ *+' conftest.er1
>conftest.err
5606 cat conftest.err
>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try
='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_type___int64
=yes
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.
$ac_ext >&5
5626 ac_cv_type___int64
=no
5628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5631 echo "${ECHO_T}$ac_cv_type___int64" >&6
5633 echo "$as_me:$LINENO: checking size of __int64" >&5
5634 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5635 if test "${ac_cv_sizeof___int64+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 if test "$ac_cv_type___int64" = yes; then
5639 # The cast to unsigned long works around a bug in the HP C Compiler
5640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5642 # This bug is HP SR number 8606223364.
5643 if test "$cross_compiling" = yes; then
5644 # Depending upon the size, compute the lo and hi bounds.
5645 cat >conftest.
$ac_ext <<_ACEOF
5648 cat confdefs.h
>>conftest.
$ac_ext
5649 cat >>conftest.
$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5655 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5662 rm -f conftest.
$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1
>conftest.err
5668 cat conftest.err
>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try
='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5685 cat >conftest.
$ac_ext <<_ACEOF
5688 cat confdefs.h
>>conftest.
$ac_ext
5689 cat >>conftest.
$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5691 $ac_includes_default
5695 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5702 rm -f conftest.
$ac_objext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704 (eval $ac_compile) 2>conftest.er1
5706 grep -v '^ *+' conftest.er1
>conftest.err
5708 cat conftest.err
>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try
='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_hi
=$ac_mid; break
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.
$ac_ext >&5
5728 ac_lo
=`expr $ac_mid + 1`
5729 if test $ac_lo -le $ac_mid; then
5733 ac_mid
=`expr 2 '*' $ac_mid + 1`
5735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.
$ac_ext >&5
5741 cat >conftest.
$ac_ext <<_ACEOF
5744 cat confdefs.h
>>conftest.
$ac_ext
5745 cat >>conftest.
$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 $ac_includes_default
5751 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5758 rm -f conftest.
$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5762 grep -v '^ *+' conftest.er1
>conftest.err
5764 cat conftest.err
>&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try
='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5781 cat >conftest.
$ac_ext <<_ACEOF
5784 cat confdefs.h
>>conftest.
$ac_ext
5785 cat >>conftest.
$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 $ac_includes_default
5791 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5798 rm -f conftest.
$ac_objext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800 (eval $ac_compile) 2>conftest.er1
5802 grep -v '^ *+' conftest.er1
>conftest.err
5804 cat conftest.err
>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try
='test -s conftest.$ac_objext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_lo
=$ac_mid; break
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.
$ac_ext >&5
5824 ac_hi
=`expr '(' $ac_mid ')' - 1`
5825 if test $ac_mid -le $ac_hi; then
5829 ac_mid
=`expr 2 '*' $ac_mid`
5831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.
$ac_ext >&5
5839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5842 # Binary search between lo and hi bounds.
5843 while test "x$ac_lo" != "x$ac_hi"; do
5844 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5845 cat >conftest.
$ac_ext <<_ACEOF
5848 cat confdefs.h
>>conftest.
$ac_ext
5849 cat >>conftest.
$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 $ac_includes_default
5855 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5862 rm -f conftest.
$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5866 grep -v '^ *+' conftest.er1
>conftest.err
5868 cat conftest.err
>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try
='test -s conftest.$ac_objext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.
$ac_ext >&5
5888 ac_lo
=`expr '(' $ac_mid ')' + 1`
5890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5893 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5894 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5895 See \`config.log' for more details." >&5
5896 echo "$as_me: error: cannot compute sizeof (__int64), 77
5897 See \`config.log' for more details." >&2;}
5898 { (exit 1); exit 1; }; } ;;
5901 if test "$cross_compiling" = yes; then
5902 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5903 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5904 { (exit 1); exit 1; }; }
5906 cat >conftest.
$ac_ext <<_ACEOF
5909 cat confdefs.h
>>conftest.
$ac_ext
5910 cat >>conftest.
$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 $ac_includes_default
5913 long longval () { return (long) (sizeof (__int64)); }
5914 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5921 FILE *f = fopen ("conftest.val", "w");
5924 if (((long) (sizeof (__int64))) < 0)
5926 long i = longval ();
5927 if (i != ((long) (sizeof (__int64))))
5929 fprintf (f, "%ld\n", i);
5933 unsigned long i = ulongval ();
5934 if (i != ((long) (sizeof (__int64))))
5936 fprintf (f, "%lu\n", i);
5938 exit (ferror (f) || fclose (f) != 0);
5944 rm -f conftest
$ac_exeext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5946 (eval $ac_link) 2>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_sizeof___int64
=`cat conftest.val`
5957 echo "$as_me: program exited with status $ac_status" >&5
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.
$ac_ext >&5
5962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5963 See \`config.log' for more details." >&5
5964 echo "$as_me: error: cannot compute sizeof (__int64), 77
5965 See \`config.log' for more details." >&2;}
5966 { (exit 1); exit 1; }; }
5968 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5973 ac_cv_sizeof___int64
=0
5976 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5977 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5978 cat >>confdefs.h
<<_ACEOF
5979 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5985 # ---------------------
5986 # Warnings and checking
5987 # ---------------------
5989 # Check $CC warning features (if it's GCC).
5990 # We want to use -pedantic, but we don't want warnings about
5993 # So, we only use -pedantic if we can disable those warnings.
5995 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
5996 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
5997 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 save_CFLAGS
="$CFLAGS"
6001 CFLAGS
="-Wno-long-long"
6002 cat >conftest.
$ac_ext <<_ACEOF
6005 cat confdefs.h
>>conftest.
$ac_ext
6006 cat >>conftest.
$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6010 rm -f conftest.
$ac_objext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012 (eval $ac_compile) 2>conftest.er1
6014 grep -v '^ *+' conftest.er1
>conftest.err
6016 cat conftest.err
>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try
='test -s conftest.$ac_objext'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6031 ac_cv_prog_cc_w_no_long_long
=yes
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.
$ac_ext >&5
6036 ac_cv_prog_cc_w_no_long_long
=no
6038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6039 CFLAGS
="$save_CFLAGS"
6042 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6043 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6045 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6046 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6047 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 save_CFLAGS
="$CFLAGS"
6051 CFLAGS
="-Wno-variadic-macros"
6052 cat >conftest.
$ac_ext <<_ACEOF
6055 cat confdefs.h
>>conftest.
$ac_ext
6056 cat >>conftest.
$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6060 rm -f conftest.
$ac_objext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062 (eval $ac_compile) 2>conftest.er1
6064 grep -v '^ *+' conftest.er1
>conftest.err
6066 cat conftest.err
>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try
='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_cv_prog_cc_w_no_variadic_macros
=yes
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.
$ac_ext >&5
6086 ac_cv_prog_cc_w_no_variadic_macros
=no
6088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6089 CFLAGS
="$save_CFLAGS"
6092 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6093 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6096 if test $ac_cv_prog_cc_w_no_long_long = yes \
6097 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6098 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6102 # Add -Wold-style-definition if it's accepted
6103 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6104 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6105 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 save_CFLAGS
="$CFLAGS"
6109 CFLAGS
="-Wold-style-definition"
6110 cat >conftest.
$ac_ext <<_ACEOF
6113 cat confdefs.h
>>conftest.
$ac_ext
6114 cat >>conftest.
$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6118 rm -f conftest.
$ac_objext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>conftest.er1
6122 grep -v '^ *+' conftest.er1
>conftest.err
6124 cat conftest.err
>&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try
='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_prog_cc_w_old_style_definition
=yes
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.
$ac_ext >&5
6144 ac_cv_prog_cc_w_old_style_definition
=no
6146 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6147 CFLAGS
="$save_CFLAGS"
6150 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6151 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6152 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6153 strict1_warn
="${strict1_warn} -Wold-style-definition"
6156 # Enable -Werror, period.
6157 # Check whether --enable-werror_always or --disable-werror_always was given.
6158 if test "${enable_werror_always+set}" = set; then
6159 enableval
="$enable_werror_always"
6162 enable_werror_always
=no
6164 if test x
${enable_werror_always} = xyes
; then
6165 strict1_warn
="${strict1_warn} -Werror"
6169 # If the native compiler is GCC, we can enable warnings even in stage1.
6170 # That's useful for people building cross-compilers, or just running a
6173 if test "x$GCC" = "xyes"; then
6174 warn_cflags
='$(GCC_WARN_CFLAGS)'
6178 # Enable -Werror in bootstrap stage2 and later.
6180 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6183 # Check whether --enable-werror or --disable-werror was given.
6184 if test "${enable_werror+set}" = set; then
6185 enableval
="$enable_werror"
6188 if test x
$is_release = x
; then
6189 # Default to "yes" on development branches.
6192 # Default to "no" on release branches.
6196 if test x
$enable_werror = xyes
; then
6201 # Enable expensive internal checks
6202 # Check whether --enable-checking or --disable-checking was given.
6203 if test "${enable_checking+set}" = set; then
6204 enableval
="$enable_checking"
6205 ac_checking_flags
="${enableval}"
6208 # Determine the default checks.
6209 if test x
$is_release = x
; then
6210 ac_checking_flags
=yes
6212 ac_checking_flags
=release
6215 ac_assert_checking
=1
6219 ac_gc_always_collect
=
6221 ac_rtlflag_checking
=
6222 ac_runtime_checking
=1
6224 ac_valgrind_checking
=
6225 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6226 for check
in $ac_checking_flags
6229 # these set all the flags to specific states
6230 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6231 ac_fold_checking
= ; ac_gc_checking
=1 ;
6232 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6233 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6234 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6235 no|none
) ac_assert_checking
= ; ac_checking
= ;
6236 ac_fold_checking
= ; ac_gc_checking
= ;
6237 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6238 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6239 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6240 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6241 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6242 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6243 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6244 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6245 release
) ac_assert_checking
=1 ; ac_checking
= ;
6246 ac_fold_checking
= ; ac_gc_checking
= ;
6247 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6248 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6249 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6250 # these enable particular checks
6251 assert
) ac_assert_checking
=1 ;;
6252 fold) ac_fold_checking
=1 ;;
6253 gc
) ac_gc_checking
=1 ;;
6254 gcac
) ac_gc_always_collect
=1 ;;
6255 misc
) ac_checking
=1 ;;
6256 rtl
) ac_rtl_checking
=1 ;;
6257 rtlflag
) ac_rtlflag_checking
=1 ;;
6258 runtime
) ac_runtime_checking
=1 ;;
6259 tree
) ac_tree_checking
=1 ;;
6260 valgrind
) ac_valgrind_checking
=1 ;;
6261 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6262 echo "$as_me: error: unknown check category $check" >&2;}
6263 { (exit 1); exit 1; }; } ;;
6269 if test x
$ac_checking != x
; then
6271 cat >>confdefs.h
<<\_ACEOF
6272 #define ENABLE_CHECKING 1
6275 nocommon_flag
=-fno-common
6278 if test x
$ac_assert_checking != x
; then
6280 cat >>confdefs.h
<<\_ACEOF
6281 #define ENABLE_ASSERT_CHECKING 1
6286 if test x
$ac_runtime_checking != x
; then
6288 cat >>confdefs.h
<<\_ACEOF
6289 #define ENABLE_RUNTIME_CHECKING 1
6293 if test x
$ac_tree_checking != x
; then
6295 cat >>confdefs.h
<<\_ACEOF
6296 #define ENABLE_TREE_CHECKING 1
6299 TREEBROWSER
=tree-browser.o
6302 if test x
$ac_rtl_checking != x
; then
6304 cat >>confdefs.h
<<\_ACEOF
6305 #define ENABLE_RTL_CHECKING 1
6309 if test x
$ac_rtlflag_checking != x
; then
6311 cat >>confdefs.h
<<\_ACEOF
6312 #define ENABLE_RTL_FLAG_CHECKING 1
6316 if test x
$ac_gc_checking != x
; then
6318 cat >>confdefs.h
<<\_ACEOF
6319 #define ENABLE_GC_CHECKING 1
6323 if test x
$ac_gc_always_collect != x
; then
6325 cat >>confdefs.h
<<\_ACEOF
6326 #define ENABLE_GC_ALWAYS_COLLECT 1
6330 if test x
$ac_fold_checking != x
; then
6332 cat >>confdefs.h
<<\_ACEOF
6333 #define ENABLE_FOLD_CHECKING 1
6337 valgrind_path_defines
=
6340 if test "${ac_cv_header_valgrind_h+set}" = set; then
6341 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6342 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6343 if test "${ac_cv_header_valgrind_h+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6347 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6349 # Is the header compilable?
6350 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6351 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6352 cat >conftest.
$ac_ext <<_ACEOF
6355 cat confdefs.h
>>conftest.
$ac_ext
6356 cat >>conftest.
$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 $ac_includes_default
6359 #include <valgrind.h>
6361 rm -f conftest.
$ac_objext
6362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6363 (eval $ac_compile) 2>conftest.er1
6365 grep -v '^ *+' conftest.er1
>conftest.err
6367 cat conftest.err
>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try
='test -s conftest.$ac_objext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 ac_header_compiler
=yes
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.
$ac_ext >&5
6387 ac_header_compiler
=no
6389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6391 echo "${ECHO_T}$ac_header_compiler" >&6
6393 # Is the header present?
6394 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6395 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6396 cat >conftest.
$ac_ext <<_ACEOF
6399 cat confdefs.h
>>conftest.
$ac_ext
6400 cat >>conftest.
$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 #include <valgrind.h>
6404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6405 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6407 grep -v '^ *+' conftest.er1
>conftest.err
6409 cat conftest.err
>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } >/dev
/null
; then
6412 if test -s conftest.err
; then
6413 ac_cpp_err
=$ac_c_preproc_warn_flag
6414 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6421 if test -z "$ac_cpp_err"; then
6422 ac_header_preproc
=yes
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.
$ac_ext >&5
6427 ac_header_preproc
=no
6429 rm -f conftest.err conftest.
$ac_ext
6430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6431 echo "${ECHO_T}$ac_header_preproc" >&6
6433 # So? What about this header?
6434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6436 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6437 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6439 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6440 ac_header_preproc
=yes
6443 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6444 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6446 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6448 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6450 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6452 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6454 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6457 ## ------------------------------------------ ##
6458 ## Report this to the AC_PACKAGE_NAME lists. ##
6459 ## ------------------------------------------ ##
6462 sed "s/^/$as_me: WARNING: /" >&2
6465 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6466 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6467 if test "${ac_cv_header_valgrind_h+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 ac_cv_header_valgrind_h
=$ac_header_preproc
6472 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6473 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6476 if test $ac_cv_header_valgrind_h = yes; then
6484 if test x
$ac_valgrind_checking != x
; then
6485 # It is certainly possible that there's valgrind but no valgrind.h.
6486 # GCC relies on making annotations so we must have both.
6487 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6488 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6489 cat >conftest.
$ac_ext <<_ACEOF
6492 cat confdefs.h
>>conftest.
$ac_ext
6493 cat >>conftest.
$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 #include <valgrind/memcheck.h>
6496 #ifndef VALGRIND_DISCARD
6497 #error VALGRIND_DISCARD not defined
6500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6501 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6503 grep -v '^ *+' conftest.er1
>conftest.err
6505 cat conftest.err
>&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } >/dev
/null
; then
6508 if test -s conftest.err
; then
6509 ac_cpp_err
=$ac_c_preproc_warn_flag
6510 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6517 if test -z "$ac_cpp_err"; then
6518 gcc_cv_header_valgrind_memcheck_h
=yes
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.
$ac_ext >&5
6523 gcc_cv_header_valgrind_memcheck_h
=no
6525 rm -f conftest.err conftest.
$ac_ext
6526 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6527 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6528 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6529 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6530 cat >conftest.
$ac_ext <<_ACEOF
6533 cat confdefs.h
>>conftest.
$ac_ext
6534 cat >>conftest.
$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 #include <memcheck.h>
6537 #ifndef VALGRIND_DISCARD
6538 #error VALGRIND_DISCARD not defined
6541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6542 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1
>conftest.err
6546 cat conftest.err
>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } >/dev
/null
; then
6549 if test -s conftest.err
; then
6550 ac_cpp_err
=$ac_c_preproc_warn_flag
6551 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6558 if test -z "$ac_cpp_err"; then
6559 gcc_cv_header_memcheck_h
=yes
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.
$ac_ext >&5
6564 gcc_cv_header_memcheck_h
=no
6566 rm -f conftest.err conftest.
$ac_ext
6567 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6568 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6570 # Prepare PATH_SEPARATOR.
6571 # The user is always right.
6572 if test "${PATH_SEPARATOR+set}" != set; then
6573 echo "#! /bin/sh" >conf$$.sh
6574 echo "exit 0" >>conf$$.sh
6576 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6584 # Find out how to test for executable files. Don't use a zero-byte file,
6585 # as systems may use methods other than mode bits to determine executability.
6586 cat >conf$$.
file <<_ASEOF
6590 chmod +x conf$$.
file
6591 if test -x conf$$.
file >/dev
/null
2>&1; then
6592 ac_executable_p
="test -x"
6594 ac_executable_p
="test -f"
6598 # Extract the first word of "valgrind", so it can be a program name with args.
6599 set dummy valgrind
; ac_word
=$2
6600 echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6602 if test "${ac_cv_path_valgrind_path+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 case "$valgrind_path" in
6607 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6610 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6611 for ac_dir
in $PATH; do
6613 test -z "$ac_dir" && ac_dir
=.
6614 for ac_exec_ext
in '' $ac_executable_extensions; do
6615 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6616 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6617 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6627 valgrind_path
="$ac_cv_path_valgrind_path"
6628 if test -n "$valgrind_path"; then
6629 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6630 echo "${ECHO_T}$valgrind_path" >&6
6632 echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6
6636 if test "x$valgrind_path" = "x" \
6637 ||
(test $have_valgrind_h = no \
6638 && test $gcc_cv_header_memcheck_h = no \
6639 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6640 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6641 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6642 { (exit 1); exit 1; }; }
6644 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6645 valgrind_command
="$valgrind_path -q"
6647 cat >>confdefs.h
<<\_ACEOF
6648 #define ENABLE_VALGRIND_CHECKING 1
6651 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6653 cat >>confdefs.h
<<\_ACEOF
6654 #define HAVE_VALGRIND_MEMCHECK_H 1
6658 if test $gcc_cv_header_memcheck_h = yes; then
6660 cat >>confdefs.h
<<\_ACEOF
6661 #define HAVE_MEMCHECK_H 1
6669 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6670 if test "${enable_mapped_location+set}" = set; then
6671 enableval
="$enable_mapped_location"
6674 enable_mapped_location
=no
6677 if test "$enable_mapped_location" = yes ; then
6679 cat >>confdefs.h
<<\_ACEOF
6680 #define USE_MAPPED_LOCATION 1
6685 # Enable code coverage collection
6686 # Check whether --enable-coverage or --disable-coverage was given.
6687 if test "${enable_coverage+set}" = set; then
6688 enableval
="$enable_coverage"
6689 case "${enableval}" in
6691 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6694 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6697 # a.k.a. --disable-coverage
6701 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6702 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6703 { (exit 1); exit 1; }; }
6711 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6712 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6713 enableval
="$enable_gather_detailed_mem_stats"
6716 enable_gather_detailed_mem_stats
=no
6718 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6720 cat >>confdefs.h
<<\_ACEOF
6721 #define GATHER_STATISTICS 1
6726 # -------------------------------
6727 # Miscenalleous configure options
6728 # -------------------------------
6732 # Check whether --with-stabs or --without-stabs was given.
6733 if test "${with_stabs+set}" = set; then
6734 withval
="$with_stabs"
6740 # Determine whether or not multilibs are enabled.
6741 # Check whether --enable-multilib or --disable-multilib was given.
6742 if test "${enable_multilib+set}" = set; then
6743 enableval
="$enable_multilib"
6750 # Enable __cxa_atexit for C++.
6751 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6752 if test "${enable___cxa_atexit+set}" = set; then
6753 enableval
="$enable___cxa_atexit"
6758 # Pass with no value to take the default
6759 # Pass with a value to specify a thread package
6760 # Check whether --enable-threads or --disable-threads was given.
6761 if test "${enable_threads+set}" = set; then
6762 enableval
="$enable_threads"
6768 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6769 if test "${enable_objc_gc+set}" = set; then
6770 enableval
="$enable_objc_gc"
6771 if test x
$enable_objc_gc = xno
; then
6781 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6782 if test "${with_dwarf2+set}" = set; then
6783 withval
="$with_dwarf2"
6784 dwarf2
="$with_dwarf2"
6789 # Check whether --enable-shared or --disable-shared was given.
6790 if test "${enable_shared+set}" = set; then
6791 enableval
="$enable_shared"
6793 case $enable_shared in
6797 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6798 for pkg
in $enableval; do
6799 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6813 # Check whether --with-sysroot or --without-sysroot was given.
6814 if test "${with_sysroot+set}" = set; then
6815 withval
="$with_sysroot"
6817 case ${with_sysroot} in
6818 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6819 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6822 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6823 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6825 if test "x$exec_prefix" = xNONE
; then
6826 if test "x$prefix" = xNONE
; then
6827 test_prefix
=/usr
/local
6832 test_prefix
=$exec_prefix
6834 case ${TARGET_SYSTEM_ROOT} in
6835 "${test_prefix}"|
"${test_prefix}/"*|\
6836 '${exec_prefix}'|
'${exec_prefix}/'*)
6837 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6838 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6845 TARGET_SYSTEM_ROOT_DEFINE
=
6846 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6853 # Build with intermodule optimisations
6854 # Check whether --enable-intermodule or --disable-intermodule was given.
6855 if test "${enable_intermodule+set}" = set; then
6856 enableval
="$enable_intermodule"
6857 case ${enable_intermodule} in
6858 yes) onestep
="-onestep";;
6866 # Sanity check enable_languages in case someone does not run the toplevel
6867 # configure # script.
6868 # Check whether --enable-languages or --disable-languages was given.
6869 if test "${enable_languages+set}" = set; then
6870 enableval
="$enable_languages"
6871 case ,${enable_languages}, in
6873 # go safe -- we cannot be much sure without the toplevel
6875 # analysis of which target libs are present and usable
6879 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6880 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6881 { (exit 1); exit 1; }; }
6886 enable_languages
=c
,${enable_languages}
6894 for lang
in ${srcdir}/*/config-lang.
in
6897 # The odd quoting in the next line works around
6898 # an apparent bug in bash 1.12 on linux.
6899 ${srcdir}/[*]/config-lang.
in) ;;
6901 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6902 if test "x$lang_alias" = x
6904 echo "$lang doesn't set \$language." 1>&2
6907 case ",$enable_languages," in
6909 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6916 # -------------------------
6917 # Checks for other programs
6918 # -------------------------
6920 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6921 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6922 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6923 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 cat >conftest.
make <<\_ACEOF
6928 @
echo 'ac_maketemp="$(MAKE)"'
6930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6931 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6932 if test -n "$ac_maketemp"; then
6933 eval ac_cv_prog_make_
${ac_make}_set
=yes
6935 eval ac_cv_prog_make_
${ac_make}_set
=no
6939 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6940 echo "$as_me:$LINENO: result: yes" >&5
6941 echo "${ECHO_T}yes" >&6
6944 echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6946 SET_MAKE
="MAKE=${MAKE-make}"
6950 # Find some useful tools
6951 for ac_prog
in gawk mawk nawk
awk
6953 # Extract the first word of "$ac_prog", so it can be a program name with args.
6954 set dummy
$ac_prog; ac_word
=$2
6955 echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6957 if test "${ac_cv_prog_AWK+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 if test -n "$AWK"; then
6961 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir
=.
6968 for ac_exec_ext
in '' $ac_executable_extensions; do
6969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_AWK
="$ac_prog"
6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 if test -n "$AWK"; then
6981 echo "$as_me:$LINENO: result: $AWK" >&5
6982 echo "${ECHO_T}$AWK" >&6
6984 echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6
6988 test -n "$AWK" && break
6991 # We need awk to create options.c and options.h.
6992 # Bail out if it's missing.
6994 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
6995 echo "$as_me: error: can't build without awk, bailing out" >&2;}
6996 { (exit 1); exit 1; }; } ;;
6999 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7000 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7001 if test "${gcc_cv_prog_LN_S+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 rm -f conftestdata_t
7005 echo >conftestdata_f
7006 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7008 gcc_cv_prog_LN_S
="ln -s"
7010 if ln conftestdata_f conftestdata_t
2>/dev
/null
7014 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7016 gcc_cv_prog_LN_S
="cp -p"
7022 rm -f conftestdata_f conftestdata_t
7025 LN_S
="$gcc_cv_prog_LN_S"
7026 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7027 echo "$as_me:$LINENO: result: yes" >&5
7028 echo "${ECHO_T}yes" >&6
7030 if test "$gcc_cv_prog_LN_S" = "ln"; then
7031 echo "$as_me:$LINENO: result: no, using ln" >&5
7032 echo "${ECHO_T}no, using ln" >&6
7034 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7035 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7039 echo "$as_me:$LINENO: checking whether ln works" >&5
7040 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7041 if test "${acx_cv_prog_LN+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 rm -f conftestdata_t
7045 echo >conftestdata_f
7046 if ln conftestdata_f conftestdata_t
2>/dev
/null
7052 rm -f conftestdata_f conftestdata_t
7055 if test $acx_cv_prog_LN = no
; then
7057 echo "$as_me:$LINENO: result: no, using $LN" >&5
7058 echo "${ECHO_T}no, using $LN" >&6
7060 LN
="$acx_cv_prog_LN"
7061 echo "$as_me:$LINENO: result: yes" >&5
7062 echo "${ECHO_T}yes" >&6
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7067 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7068 echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7070 if test "${ac_cv_prog_RANLIB+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 if test -n "$RANLIB"; then
7074 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir
=.
7081 for ac_exec_ext
in '' $ac_executable_extensions; do
7082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 RANLIB
=$ac_cv_prog_RANLIB
7093 if test -n "$RANLIB"; then
7094 echo "$as_me:$LINENO: result: $RANLIB" >&5
7095 echo "${ECHO_T}$RANLIB" >&6
7097 echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6
7102 if test -z "$ac_cv_prog_RANLIB"; then
7103 ac_ct_RANLIB
=$RANLIB
7104 # Extract the first word of "ranlib", so it can be a program name with args.
7105 set dummy ranlib
; ac_word
=$2
7106 echo "$as_me:$LINENO: checking for $ac_word" >&5
7107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7108 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 if test -n "$ac_ct_RANLIB"; then
7112 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7118 test -z "$as_dir" && as_dir
=.
7119 for ac_exec_ext
in '' $ac_executable_extensions; do
7120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7131 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7132 if test -n "$ac_ct_RANLIB"; then
7133 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7134 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7136 echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6
7140 RANLIB
=$ac_ct_RANLIB
7142 RANLIB
="$ac_cv_prog_RANLIB"
7147 # By default, the Darwin ranlib will not treat common symbols as
7148 # definitions when building the archive table of contents. Other
7149 # ranlibs do that; pass an option to the Darwin ranlib that makes
7150 # it behave similarly.
7158 # Find a good install program. We prefer a C program (faster),
7159 # so one script is as good as another. But avoid the broken or
7160 # incompatible versions:
7161 # SysV /etc/install, /usr/sbin/install
7162 # SunOS /usr/etc/install
7163 # IRIX /sbin/install
7165 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7166 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7167 # ./install, which can be erroneously created by make from ./install.sh.
7168 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7169 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7170 if test -z "$INSTALL"; then
7171 if test "${ac_cv_path_install+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7175 for ac_dir
in $PATH; do
7176 # Account for people who put trailing slashes in PATH elements.
7178 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7180 # OSF1 and SCO ODT 3.0 have their own names for install.
7181 for ac_prog
in ginstall scoinst
install; do
7182 if test -f $ac_dir/$ac_prog; then
7183 if test $ac_prog = install &&
7184 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7185 # AIX install. It has an incompatible calling convention.
7186 # OSF/1 installbsd also uses dspmsg, but is usable.
7189 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7200 if test "${ac_cv_path_install+set}" = set; then
7201 INSTALL
="$ac_cv_path_install"
7203 # As a last resort, use the slow shell script. We don't cache a
7204 # path for INSTALL within a source directory, because that will
7205 # break other packages using the cache if that directory is
7206 # removed, or if the path is relative.
7207 INSTALL
="$ac_install_sh"
7210 echo "$as_me:$LINENO: result: $INSTALL" >&5
7211 echo "${ECHO_T}$INSTALL" >&6
7213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7214 # It thinks the first close brace ends the variable substitution.
7215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7217 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7220 # See if cmp has --ignore-initial.
7221 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7222 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7223 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 gcc_cv_prog_cmp_skip
=slowcompare
7229 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7230 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7233 gcc_cv_prog_cmp_skip
=gnucompare
7236 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7237 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7238 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7241 gcc_cv_prog_cmp_skip
=fastcompare
7248 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7249 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7250 make_compare_target
=$gcc_cv_prog_cmp_skip
7254 # See if we have the mktemp command.
7255 # Extract the first word of "mktemp", so it can be a program name with args.
7256 set dummy mktemp
; ac_word
=$2
7257 echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7259 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 if test -n "$have_mktemp_command"; then
7263 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir
=.
7270 for ac_exec_ext
in '' $ac_executable_extensions; do
7271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_have_mktemp_command
="yes"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7282 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7283 if test -n "$have_mktemp_command"; then
7284 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7285 echo "${ECHO_T}$have_mktemp_command" >&6
7287 echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6
7292 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7294 # See if makeinfo has been installed and is modern enough
7295 # that we can use it.
7296 # Extract the first word of "makeinfo", so it can be a program name with args.
7297 set dummy makeinfo
; ac_word
=$2
7298 echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7300 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 if test -n "$MAKEINFO"; then
7304 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7310 test -z "$as_dir" && as_dir
=.
7311 for ac_exec_ext
in '' $ac_executable_extensions; do
7312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_MAKEINFO
="makeinfo"
7314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 MAKEINFO
=$ac_cv_prog_MAKEINFO
7323 if test -n "$MAKEINFO"; then
7324 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7325 echo "${ECHO_T}$MAKEINFO" >&6
7327 echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6
7331 if test -n "$MAKEINFO"; then
7332 # Found it, now check the version.
7333 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7334 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7335 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7339 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7340 echo "configure:7340: version of makeinfo is $ac_prog_version" >&5
7341 case $ac_prog_version in
7342 '') gcc_cv_prog_makeinfo_modern
=no
;;
7344 gcc_cv_prog_makeinfo_modern
=yes;;
7345 *) gcc_cv_prog_makeinfo_modern
=no
;;
7349 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7350 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7352 gcc_cv_prog_makeinfo_modern
=no
7355 if test $gcc_cv_prog_makeinfo_modern = no
; then
7356 MAKEINFO
="$MISSING makeinfo"
7357 { echo "$as_me:$LINENO: WARNING:
7358 *** Makeinfo is missing or too old.
7359 *** Info documentation will not be built." >&5
7360 echo "$as_me: WARNING:
7361 *** Makeinfo is missing or too old.
7362 *** Info documentation will not be built." >&2;}
7369 # Is pod2man recent enough to regenerate manpages?
7370 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7371 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7372 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7373 echo "$as_me:$LINENO: result: yes" >&5
7374 echo "${ECHO_T}yes" >&6
7375 GENERATED_MANPAGES
=generated-manpages
7377 echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7386 # Extract the first word of "$ac_prog", so it can be a program name with args.
7387 set dummy
$ac_prog; ac_word
=$2
7388 echo "$as_me:$LINENO: checking for $ac_word" >&5
7389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7390 if test "${ac_cv_prog_FLEX+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 if test -n "$FLEX"; then
7394 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir
=.
7401 for ac_exec_ext
in '' $ac_executable_extensions; do
7402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_FLEX
="$ac_prog"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 FLEX
=$ac_cv_prog_FLEX
7413 if test -n "$FLEX"; then
7414 echo "$as_me:$LINENO: result: $FLEX" >&5
7415 echo "${ECHO_T}$FLEX" >&6
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7421 test -n "$FLEX" && break
7423 test -n "$FLEX" || FLEX
="$MISSING flex"
7427 for ac_prog
in bison
7429 # Extract the first word of "$ac_prog", so it can be a program name with args.
7430 set dummy
$ac_prog; ac_word
=$2
7431 echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7433 if test "${ac_cv_prog_BISON+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 if test -n "$BISON"; then
7437 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir
=.
7444 for ac_exec_ext
in '' $ac_executable_extensions; do
7445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_BISON
="$ac_prog"
7447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 BISON
=$ac_cv_prog_BISON
7456 if test -n "$BISON"; then
7457 echo "$as_me:$LINENO: result: $BISON" >&5
7458 echo "${ECHO_T}$BISON" >&6
7460 echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7464 test -n "$BISON" && break
7466 test -n "$BISON" || BISON
="$MISSING bison"
7469 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7470 # check for build == host before using them.
7473 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7474 && test -d ..
/binutils
; then
7475 NM
='$(objdir)/../binutils/nm-new'
7477 # Extract the first word of "nm", so it can be a program name with args.
7478 set dummy nm
; ac_word
=$2
7479 echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7481 if test "${ac_cv_prog_NM+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 if test -n "$NM"; then
7485 ac_cv_prog_NM
="$NM" # Let the user override the test.
7487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir
=.
7492 for ac_exec_ext
in '' $ac_executable_extensions; do
7493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7505 if test -n "$NM"; then
7506 echo "$as_me:$LINENO: result: $NM" >&5
7507 echo "${ECHO_T}$NM" >&6
7509 echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6
7516 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7517 && test -d ..
/binutils
; then
7518 AR
='$(objdir)/../binutils/ar'
7520 # Extract the first word of "ar", so it can be a program name with args.
7521 set dummy
ar; ac_word
=$2
7522 echo "$as_me:$LINENO: checking for $ac_word" >&5
7523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7524 if test "${ac_cv_prog_AR+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 if test -n "$AR"; then
7528 ac_cv_prog_AR
="$AR" # Let the user override the test.
7530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7534 test -z "$as_dir" && as_dir
=.
7535 for ac_exec_ext
in '' $ac_executable_extensions; do
7536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7548 if test -n "$AR"; then
7549 echo "$as_me:$LINENO: result: $AR" >&5
7550 echo "${ECHO_T}$AR" >&6
7552 echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6
7559 # --------------------
7560 # Checks for C headers
7561 # --------------------
7563 echo "$as_me:$LINENO: checking for GNU C library" >&5
7564 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7565 if test "${gcc_cv_glibc+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 cat >conftest.
$ac_ext <<_ACEOF
7571 cat confdefs.h
>>conftest.
$ac_ext
7572 cat >>conftest.
$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 #include <features.h>
7579 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7580 #error Not a GNU C library system
7586 rm -f conftest.
$ac_objext
7587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588 (eval $ac_compile) 2>conftest.er1
7590 grep -v '^ *+' conftest.er1
>conftest.err
7592 cat conftest.err
>&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } &&
7595 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; } &&
7601 { ac_try
='test -s conftest.$ac_objext'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; }; then
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.
$ac_ext >&5
7614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7617 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7618 echo "${ECHO_T}$gcc_cv_glibc" >&6
7619 if test $gcc_cv_glibc = yes; then
7621 cat >>confdefs.h
<<\_ACEOF
7622 #define _GNU_SOURCE 1
7627 # Need to reject headers which give warnings, so that the -Werror bootstrap
7628 # works later. *sigh* This needs to come before all header checks.
7630 ac_c_preproc_warn_flag
=yes
7632 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7633 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7634 if test "${ac_cv_header_stdc+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 cat >conftest.
$ac_ext <<_ACEOF
7640 cat confdefs.h
>>conftest.
$ac_ext
7641 cat >>conftest.
$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7656 rm -f conftest.
$ac_objext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7658 (eval $ac_compile) 2>conftest.er1
7660 grep -v '^ *+' conftest.er1
>conftest.err
7662 cat conftest.err
>&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try
='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 ac_cv_header_stdc
=yes
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.
$ac_ext >&5
7682 ac_cv_header_stdc
=no
7684 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7686 if test $ac_cv_header_stdc = yes; then
7687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7688 cat >conftest.
$ac_ext <<_ACEOF
7691 cat confdefs.h
>>conftest.
$ac_ext
7692 cat >>conftest.
$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7698 $EGREP "memchr" >/dev
/null
2>&1; then
7701 ac_cv_header_stdc
=no
7707 if test $ac_cv_header_stdc = yes; then
7708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7709 cat >conftest.
$ac_ext <<_ACEOF
7712 cat confdefs.h
>>conftest.
$ac_ext
7713 cat >>conftest.
$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7719 $EGREP "free" >/dev
/null
2>&1; then
7722 ac_cv_header_stdc
=no
7728 if test $ac_cv_header_stdc = yes; then
7729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7730 if test "$cross_compiling" = yes; then
7733 cat >conftest.
$ac_ext <<_ACEOF
7736 cat confdefs.h
>>conftest.
$ac_ext
7737 cat >>conftest.
$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7740 #if ((' ' & 0x0FF) == 0x020)
7741 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7742 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7744 # define ISLOWER(c) \
7745 (('a' <= (c) && (c) <= 'i') \
7746 || ('j' <= (c) && (c) <= 'r') \
7747 || ('s' <= (c) && (c) <= 'z'))
7748 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7751 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7756 for (i = 0; i < 256; i++)
7757 if (XOR (islower (i), ISLOWER (i))
7758 || toupper (i) != TOUPPER (i))
7763 rm -f conftest
$ac_exeext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765 (eval $ac_link) 2>&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7776 echo "$as_me: program exited with status $ac_status" >&5
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.
$ac_ext >&5
7781 ac_cv_header_stdc
=no
7783 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7787 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7788 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7789 if test $ac_cv_header_stdc = yes; then
7791 cat >>confdefs.h
<<\_ACEOF
7792 #define STDC_HEADERS 1
7797 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7798 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7799 if test "${ac_cv_header_time+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 cat >conftest.
$ac_ext <<_ACEOF
7805 cat confdefs.h
>>conftest.
$ac_ext
7806 cat >>conftest.
$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <sys/types.h>
7809 #include <sys/time.h>
7815 if ((struct tm *) 0)
7821 rm -f conftest.
$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823 (eval $ac_compile) 2>conftest.er1
7825 grep -v '^ *+' conftest.er1
>conftest.err
7827 cat conftest.err
>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try
='test -s conftest.$ac_objext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_header_time
=yes
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.
$ac_ext >&5
7847 ac_cv_header_time
=no
7849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7851 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7852 echo "${ECHO_T}$ac_cv_header_time" >&6
7853 if test $ac_cv_header_time = yes; then
7855 cat >>confdefs.h
<<\_ACEOF
7856 #define TIME_WITH_SYS_TIME 1
7861 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7862 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7863 if test "${gcc_cv_header_string+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 cat >conftest.
$ac_ext <<_ACEOF
7869 cat confdefs.h
>>conftest.
$ac_ext
7870 cat >>conftest.
$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7873 #include <strings.h>
7882 rm -f conftest.
$ac_objext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>conftest.er1
7886 grep -v '^ *+' conftest.er1
>conftest.err
7888 cat conftest.err
>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try
='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 gcc_cv_header_string
=yes
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.
$ac_ext >&5
7908 gcc_cv_header_string
=no
7910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7912 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7913 echo "${ECHO_T}$gcc_cv_header_string" >&6
7914 if test $gcc_cv_header_string = yes; then
7916 cat >>confdefs.h
<<\_ACEOF
7917 #define STRING_WITH_STRINGS 1
7922 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7923 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7924 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 cat >conftest.
$ac_ext <<_ACEOF
7930 cat confdefs.h
>>conftest.
$ac_ext
7931 cat >>conftest.
$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 #include <sys/types.h>
7934 #include <sys/wait.h>
7936 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7939 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7947 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7952 rm -f conftest.
$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7956 grep -v '^ *+' conftest.er1
>conftest.err
7958 cat conftest.err
>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try
='test -s conftest.$ac_objext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_cv_header_sys_wait_h
=yes
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.
$ac_ext >&5
7978 ac_cv_header_sys_wait_h
=no
7980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7982 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7983 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7984 if test $ac_cv_header_sys_wait_h = yes; then
7986 cat >>confdefs.h
<<\_ACEOF
7987 #define HAVE_SYS_WAIT_H 1
8014 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8015 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8016 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8017 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8019 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8020 echo "$as_me:$LINENO: checking for $ac_header" >&5
8021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 cat >conftest.
$ac_ext <<_ACEOF
8028 cat confdefs.h
>>conftest.
$ac_ext
8029 cat >>conftest.
$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 #include <$ac_header>
8033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8034 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8036 grep -v '^ *+' conftest.er1
>conftest.err
8038 cat conftest.err
>&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } >/dev
/null
; then
8041 if test -s conftest.err
; then
8042 ac_cpp_err
=$ac_c_preproc_warn_flag
8043 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8050 if test -z "$ac_cpp_err"; then
8051 eval "$as_ac_Header=yes"
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.
$ac_ext >&5
8056 eval "$as_ac_Header=no"
8058 rm -f conftest.err conftest.
$ac_ext
8060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8063 cat >>confdefs.h
<<_ACEOF
8064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8071 # Check for thread headers.
8072 echo "$as_me:$LINENO: checking for thread.h" >&5
8073 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8074 if test "${ac_cv_header_thread_h+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 cat >conftest.
$ac_ext <<_ACEOF
8080 cat confdefs.h
>>conftest.
$ac_ext
8081 cat >>conftest.
$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8086 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8088 grep -v '^ *+' conftest.er1
>conftest.err
8090 cat conftest.err
>&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } >/dev
/null
; then
8093 if test -s conftest.err
; then
8094 ac_cpp_err
=$ac_c_preproc_warn_flag
8095 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8102 if test -z "$ac_cpp_err"; then
8103 ac_cv_header_thread_h
=yes
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.
$ac_ext >&5
8108 ac_cv_header_thread_h
=no
8110 rm -f conftest.err conftest.
$ac_ext
8112 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8113 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8114 if test $ac_cv_header_thread_h = yes; then
8120 echo "$as_me:$LINENO: checking for pthread.h" >&5
8121 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8122 if test "${ac_cv_header_pthread_h+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 cat >conftest.
$ac_ext <<_ACEOF
8128 cat confdefs.h
>>conftest.
$ac_ext
8129 cat >>conftest.
$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 #include <pthread.h>
8133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8134 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8136 grep -v '^ *+' conftest.er1
>conftest.err
8138 cat conftest.err
>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } >/dev
/null
; then
8141 if test -s conftest.err
; then
8142 ac_cpp_err
=$ac_c_preproc_warn_flag
8143 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8150 if test -z "$ac_cpp_err"; then
8151 ac_cv_header_pthread_h
=yes
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.
$ac_ext >&5
8156 ac_cv_header_pthread_h
=no
8158 rm -f conftest.err conftest.
$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8161 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8162 if test $ac_cv_header_pthread_h = yes; then
8169 # These tests can't be done till we know if we have limits.h.
8170 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8171 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8172 if test "${gcc_cv_decl_char_bit+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 cat >conftest.
$ac_ext <<_ACEOF
8178 cat confdefs.h
>>conftest.
$ac_ext
8179 cat >>conftest.
$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 #ifdef HAVE_LIMITS_H
8188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8189 $EGREP "found" >/dev
/null
2>&1; then
8190 gcc_cv_decl_char_bit
=yes
8192 gcc_cv_decl_char_bit
=no
8198 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8199 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8200 if test $gcc_cv_decl_char_bit = no
; then
8201 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8202 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8203 if test "${gcc_cv_c_nbby+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 while test $i -lt 65; do
8209 cat >conftest.
$ac_ext <<_ACEOF
8212 cat confdefs.h
>>conftest.
$ac_ext
8213 cat >>conftest.
$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8220 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8221 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8227 rm -f conftest.
$ac_objext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8229 (eval $ac_compile) 2>conftest.er1
8231 grep -v '^ *+' conftest.er1
>conftest.err
8233 cat conftest.err
>&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
8236 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; } &&
8242 { ac_try
='test -s conftest.$ac_objext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 gcc_cv_c_nbby
=$i; break
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.
$ac_ext >&5
8254 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8257 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8260 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8261 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8262 if test $gcc_cv_c_nbby = failed
; then
8263 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8264 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8265 { (exit 1); exit 1; }; }
8268 cat >>confdefs.h
<<_ACEOF
8269 #define CHAR_BIT $gcc_cv_c_nbby
8274 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8275 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8276 if test "${ac_cv_c_bigendian+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 # See if sys/param.h defines the BYTE_ORDER macro.
8280 cat >conftest.
$ac_ext <<_ACEOF
8283 cat confdefs.h
>>conftest.
$ac_ext
8284 cat >>conftest.
$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 #include <sys/types.h>
8287 #include <sys/param.h>
8292 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8300 rm -f conftest.
$ac_objext
8301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8302 (eval $ac_compile) 2>conftest.er1
8304 grep -v '^ *+' conftest.er1
>conftest.err
8306 cat conftest.err
>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; } &&
8315 { ac_try
='test -s conftest.$ac_objext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 # It does; now see whether it defined to BIG_ENDIAN or not.
8322 cat >conftest.
$ac_ext <<_ACEOF
8325 cat confdefs.h
>>conftest.
$ac_ext
8326 cat >>conftest.
$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8328 #include <sys/types.h>
8329 #include <sys/param.h>
8334 #if BYTE_ORDER != BIG_ENDIAN
8342 rm -f conftest.
$ac_objext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8344 (eval $ac_compile) 2>conftest.er1
8346 grep -v '^ *+' conftest.er1
>conftest.err
8348 cat conftest.err
>&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try
='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_c_bigendian
=yes
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.
$ac_ext >&5
8368 ac_cv_c_bigendian
=no
8370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.
$ac_ext >&5
8375 # It does not; compile a test program.
8376 if test "$cross_compiling" = yes; then
8377 # try to guess the endianness by grepping values into an object file
8378 ac_cv_c_bigendian
=unknown
8379 cat >conftest.
$ac_ext <<_ACEOF
8382 cat confdefs.h
>>conftest.
$ac_ext
8383 cat >>conftest.
$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8386 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8387 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8388 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8389 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8390 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8394 _ascii (); _ebcdic ();
8399 rm -f conftest.
$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8403 grep -v '^ *+' conftest.er1
>conftest.err
8405 cat conftest.err
>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try
='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8421 ac_cv_c_bigendian
=yes
8423 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8424 if test "$ac_cv_c_bigendian" = unknown
; then
8425 ac_cv_c_bigendian
=no
8427 # finding both strings is unlikely to happen, but who knows?
8428 ac_cv_c_bigendian
=unknown
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.
$ac_ext >&5
8436 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8438 cat >conftest.
$ac_ext <<_ACEOF
8441 cat confdefs.h
>>conftest.
$ac_ext
8442 cat >>conftest.
$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8447 /* Are we little or big endian? From Harbison&Steele. */
8451 char c[sizeof (long)];
8454 exit (u.c[sizeof (long) - 1] == 1);
8457 rm -f conftest
$ac_exeext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459 (eval $ac_link) 2>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_c_bigendian
=no
8470 echo "$as_me: program exited with status $ac_status" >&5
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.
$ac_ext >&5
8475 ac_cv_c_bigendian
=yes
8477 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8480 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8482 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8483 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8484 case $ac_cv_c_bigendian in
8487 cat >>confdefs.h
<<\_ACEOF
8488 #define WORDS_BIGENDIAN 1
8494 { { echo "$as_me:$LINENO: error: unknown endianness
8495 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8496 echo "$as_me: error: unknown endianness
8497 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8498 { (exit 1); exit 1; }; } ;;
8506 # Stage specific cflags for build.
8510 if test x
$GCC = xyes
8512 stage1_cflags
="-Wa,-J"
8518 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8519 # sources; use -no-cpp-precomp to get to GNU cpp.
8520 # Apple's GCC has bugs in designated initializer handling, so disable
8522 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8527 # These libraries may be used by collect2.
8528 # We may need a special search path to get them linked.
8529 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8530 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8531 if test "${gcc_cv_collect2_libs+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 for libs
in '' -lld -lmld \
8536 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8537 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8540 cat >conftest.
$ac_ext <<_ACEOF
8543 cat confdefs.h
>>conftest.
$ac_ext
8544 cat >>conftest.
$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8547 /* Override any gcc2 internal prototype to avoid an error. */
8551 /* We use char because int might match the return type of a gcc2
8552 builtin and then its argument prototype would still apply. */
8562 rm -f conftest.
$ac_objext conftest
$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564 (eval $ac_link) 2>conftest.er1
8566 grep -v '^ *+' conftest.er1
>conftest.err
8568 cat conftest.err
>&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try
='test -s conftest$ac_exeext'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 gcc_cv_collect2_libs
="$libs"; break
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.
$ac_ext >&5
8589 rm -f conftest.err conftest.
$ac_objext \
8590 conftest
$ac_exeext conftest.
$ac_ext
8593 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8595 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8596 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8597 case $gcc_cv_collect2_libs in
8599 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8603 # When building Ada code on Alpha, we need exc_resume which is usually in
8604 # -lexc. So test for it.
8607 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8608 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8609 if test "${ac_cv_search_exc_resume+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 ac_func_search_save_LIBS
=$LIBS
8613 ac_cv_search_exc_resume
=no
8614 cat >conftest.
$ac_ext <<_ACEOF
8617 cat confdefs.h
>>conftest.
$ac_ext
8618 cat >>conftest.
$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8621 /* Override any gcc2 internal prototype to avoid an error. */
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8636 rm -f conftest.
$ac_objext conftest
$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>conftest.er1
8640 grep -v '^ *+' conftest.er1
>conftest.err
8642 cat conftest.err
>&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try
='test -s conftest$ac_exeext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 ac_cv_search_exc_resume
="none required"
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.
$ac_ext >&5
8663 rm -f conftest.err conftest.
$ac_objext \
8664 conftest
$ac_exeext conftest.
$ac_ext
8665 if test "$ac_cv_search_exc_resume" = no
; then
8666 for ac_lib
in exc
; do
8667 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8668 cat >conftest.
$ac_ext <<_ACEOF
8671 cat confdefs.h
>>conftest.
$ac_ext
8672 cat >>conftest.
$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8675 /* Override any gcc2 internal prototype to avoid an error. */
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8690 rm -f conftest.
$ac_objext conftest
$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>conftest.er1
8694 grep -v '^ *+' conftest.er1
>conftest.err
8696 cat conftest.err
>&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try
='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_search_exc_resume
="-l$ac_lib"
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.
$ac_ext >&5
8718 rm -f conftest.err conftest.
$ac_objext \
8719 conftest
$ac_exeext conftest.
$ac_ext
8722 LIBS
=$ac_func_search_save_LIBS
8724 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8725 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8726 if test "$ac_cv_search_exc_resume" != no
; then
8727 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8735 # Some systems put ldexp and frexp in libm instead of libc; assume
8736 # they're both in the same place. jcf-dump needs them.
8739 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8740 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8741 if test "${ac_cv_search_ldexp+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 ac_func_search_save_LIBS
=$LIBS
8745 ac_cv_search_ldexp
=no
8746 cat >conftest.
$ac_ext <<_ACEOF
8749 cat confdefs.h
>>conftest.
$ac_ext
8750 cat >>conftest.
$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8753 /* Override any gcc2 internal prototype to avoid an error. */
8757 /* We use char because int might match the return type of a gcc2
8758 builtin and then its argument prototype would still apply. */
8768 rm -f conftest.
$ac_objext conftest
$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>conftest.er1
8772 grep -v '^ *+' conftest.er1
>conftest.err
8774 cat conftest.err
>&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try
='test -s conftest$ac_exeext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_cv_search_ldexp
="none required"
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.
$ac_ext >&5
8795 rm -f conftest.err conftest.
$ac_objext \
8796 conftest
$ac_exeext conftest.
$ac_ext
8797 if test "$ac_cv_search_ldexp" = no
; then
8799 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8800 cat >conftest.
$ac_ext <<_ACEOF
8803 cat confdefs.h
>>conftest.
$ac_ext
8804 cat >>conftest.
$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8807 /* Override any gcc2 internal prototype to avoid an error. */
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8822 rm -f conftest.
$ac_objext conftest
$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8826 grep -v '^ *+' conftest.er1
>conftest.err
8828 cat conftest.err
>&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try
='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_search_ldexp
="-l$ac_lib"
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.
$ac_ext >&5
8850 rm -f conftest.err conftest.
$ac_objext \
8851 conftest
$ac_exeext conftest.
$ac_ext
8854 LIBS
=$ac_func_search_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8857 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8858 if test "$ac_cv_search_ldexp" != no
; then
8859 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8867 # Use <inttypes.h> only if it exists,
8868 # doesn't clash with <sys/types.h>, and declares intmax_t.
8869 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8870 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8871 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 cat >conftest.
$ac_ext <<_ACEOF
8877 cat confdefs.h
>>conftest.
$ac_ext
8878 cat >>conftest.
$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 #include <sys/types.h>
8881 #include <inttypes.h>
8890 rm -f conftest.
$ac_objext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8892 (eval $ac_compile) 2>conftest.er1
8894 grep -v '^ *+' conftest.er1
>conftest.err
8896 cat conftest.err
>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; } &&
8905 { ac_try
='test -s conftest.$ac_objext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 gcc_cv_header_inttypes_h
=yes
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.
$ac_ext >&5
8916 gcc_cv_header_inttypes_h
=no
8918 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8921 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8922 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8923 if test $gcc_cv_header_inttypes_h = yes; then
8925 cat >>confdefs.h
<<\_ACEOF
8926 #define HAVE_INTTYPES_H 1
8969 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
8970 sysconf strsignal getrusage nl_langinfo scandir alphasort \
8971 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8972 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
8974 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8975 echo "$as_me:$LINENO: checking for $ac_func" >&5
8976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8977 if eval "test \"\${$as_ac_var+set}\" = set"; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 cat >conftest.
$ac_ext <<_ACEOF
8983 cat confdefs.h
>>conftest.
$ac_ext
8984 cat >>conftest.
$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8988 #define $ac_func innocuous_$ac_func
8990 /* System header to define __stub macros and hopefully few prototypes,
8991 which can conflict with char $ac_func (); below.
8992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8993 <limits.h> exists even on freestanding compilers. */
8996 # include <limits.h>
8998 # include <assert.h>
9003 /* Override any gcc2 internal prototype to avoid an error. */
9008 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */
9011 /* The GNU C library defines this for functions which it implements
9012 to always fail with ENOSYS. Some functions are actually named
9013 something starting with __ and the normal name is an alias. */
9014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9017 char (*f) () = $ac_func;
9026 return f != $ac_func;
9031 rm -f conftest.
$ac_objext conftest
$ac_exeext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9033 (eval $ac_link) 2>conftest.er1
9035 grep -v '^ *+' conftest.er1
>conftest.err
9037 cat conftest.err
>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } &&
9040 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try
='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 eval "$as_ac_var=yes"
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.
$ac_ext >&5
9057 eval "$as_ac_var=no"
9059 rm -f conftest.err conftest.
$ac_objext \
9060 conftest
$ac_exeext conftest.
$ac_ext
9062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9064 if test `eval echo '${'$as_ac_var'}'` = yes; then
9065 cat >>confdefs.h
<<_ACEOF
9066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9073 if test x
$ac_cv_func_mbstowcs = xyes
; then
9074 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9075 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9076 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 if test "$cross_compiling" = yes; then
9080 gcc_cv_func_mbstowcs_works
=yes
9082 cat >conftest.
$ac_ext <<_ACEOF
9085 cat confdefs.h
>>conftest.
$ac_ext
9086 cat >>conftest.
$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9095 rm -f conftest
$ac_exeext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097 (eval $ac_link) 2>&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9106 gcc_cv_func_mbstowcs_works
=yes
9108 echo "$as_me: program exited with status $ac_status" >&5
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.
$ac_ext >&5
9113 gcc_cv_func_mbstowcs_works
=no
9115 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9118 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9119 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9120 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9122 cat >>confdefs.h
<<\_ACEOF
9123 #define HAVE_WORKING_MBSTOWCS 1
9129 echo "$as_me:$LINENO: checking for ssize_t" >&5
9130 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9131 if test "${ac_cv_type_ssize_t+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 cat >conftest.
$ac_ext <<_ACEOF
9137 cat confdefs.h
>>conftest.
$ac_ext
9138 cat >>conftest.
$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 $ac_includes_default
9146 if (sizeof (ssize_t))
9152 rm -f conftest.
$ac_objext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9154 (eval $ac_compile) 2>conftest.er1
9156 grep -v '^ *+' conftest.er1
>conftest.err
9158 cat conftest.err
>&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; } &&
9167 { ac_try
='test -s conftest.$ac_objext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_type_ssize_t
=yes
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.
$ac_ext >&5
9178 ac_cv_type_ssize_t
=no
9180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9182 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9183 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9184 if test $ac_cv_type_ssize_t = yes; then
9188 cat >>confdefs.h
<<_ACEOF
9195 # Try to determine the array type of the second argument of getgroups
9196 # for the target system (int or gid_t).
9197 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9198 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9199 if test "${ac_cv_type_uid_t+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 cat >conftest.
$ac_ext <<_ACEOF
9205 cat confdefs.h
>>conftest.
$ac_ext
9206 cat >>conftest.
$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <sys/types.h>
9211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9212 $EGREP "uid_t" >/dev
/null
2>&1; then
9213 ac_cv_type_uid_t
=yes
9220 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9221 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9222 if test $ac_cv_type_uid_t = no
; then
9224 cat >>confdefs.h
<<\_ACEOF
9229 cat >>confdefs.h
<<\_ACEOF
9235 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9236 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9237 if test "${ac_cv_type_getgroups+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 if test "$cross_compiling" = yes; then
9241 ac_cv_type_getgroups
=cross
9243 cat >conftest.
$ac_ext <<_ACEOF
9246 cat confdefs.h
>>conftest.
$ac_ext
9247 cat >>conftest.
$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 /* Thanks to Mike Rendell for this test. */
9250 #include <sys/types.h>
9253 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9260 union { gid_t gval; long lval; } val;
9263 for (i = 0; i < NGID; i++)
9264 gidset[i] = val.gval;
9265 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9267 /* Exit non-zero if getgroups seems to require an array of ints. This
9268 happens when gid_t is short but getgroups modifies an array of ints. */
9269 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9272 rm -f conftest
$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_type_getgroups
=gid_t
9285 echo "$as_me: program exited with status $ac_status" >&5
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.
$ac_ext >&5
9290 ac_cv_type_getgroups
=int
9292 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9294 if test $ac_cv_type_getgroups = cross
; then
9295 cat >conftest.
$ac_ext <<_ACEOF
9298 cat confdefs.h
>>conftest.
$ac_ext
9299 cat >>conftest.
$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9305 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9306 ac_cv_type_getgroups
=gid_t
9308 ac_cv_type_getgroups
=int
9314 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9315 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9317 cat >>confdefs.h
<<_ACEOF
9318 #define GETGROUPS_T $ac_cv_type_getgroups
9322 if test "${target}" = "${build}"; then
9323 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9326 # This condition may need some tweaking. It should include all
9327 # targets where the array type of the second argument of getgroups
9328 # is int and the type of gid_t is not equivalent to int.
9329 *-*-sunos* |
*-*-ultrix*)
9330 TARGET_GETGROUPS_T
=int
9333 TARGET_GETGROUPS_T
=gid_t
9339 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9340 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9341 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 if test "$cross_compiling" = yes; then
9345 gcc_cv_func_printf_ptr
=no
9347 cat >conftest.
$ac_ext <<_ACEOF
9350 cat confdefs.h
>>conftest.
$ac_ext
9351 cat >>conftest.
$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9358 char *p = buf, *q = NULL;
9359 sprintf(buf, "%p", p);
9360 sscanf(buf, "%p", &q);
9364 rm -f conftest
$ac_exeext
9365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9366 (eval $ac_link) 2>&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 gcc_cv_func_printf_ptr
=yes
9377 echo "$as_me: program exited with status $ac_status" >&5
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.
$ac_ext >&5
9382 gcc_cv_func_printf_ptr
=no
9384 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9386 rm -f core core.
* *.core
9388 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9389 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9390 if test $gcc_cv_func_printf_ptr = yes ; then
9392 cat >>confdefs.h
<<\_ACEOF
9393 #define HAVE_PRINTF_PTR 1
9399 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9400 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9401 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 cat >conftest.
$ac_ext <<_ACEOF
9407 cat confdefs.h
>>conftest.
$ac_ext
9408 cat >>conftest.
$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 #include <sys/mman.h>
9412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9415 grep -v '^ *+' conftest.er1
>conftest.err
9417 cat conftest.err
>&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } >/dev
/null
; then
9420 if test -s conftest.err
; then
9421 ac_cpp_err
=$ac_c_preproc_warn_flag
9422 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9429 if test -z "$ac_cpp_err"; then
9430 ac_cv_header_sys_mman_h
=yes
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.
$ac_ext >&5
9435 ac_cv_header_sys_mman_h
=no
9437 rm -f conftest.err conftest.
$ac_ext
9439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9440 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9441 if test $ac_cv_header_sys_mman_h = yes; then
9442 gcc_header_sys_mman_h
=yes
9444 gcc_header_sys_mman_h
=no
9447 echo "$as_me:$LINENO: checking for mmap" >&5
9448 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9449 if test "${ac_cv_func_mmap+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 cat >conftest.
$ac_ext <<_ACEOF
9455 cat confdefs.h
>>conftest.
$ac_ext
9456 cat >>conftest.
$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9460 #define mmap innocuous_mmap
9462 /* System header to define __stub macros and hopefully few prototypes,
9463 which can conflict with char mmap (); below.
9464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9465 <limits.h> exists even on freestanding compilers. */
9468 # include <limits.h>
9470 # include <assert.h>
9475 /* Override any gcc2 internal prototype to avoid an error. */
9480 /* We use char because int might match the return type of a gcc2
9481 builtin and then its argument prototype would still apply. */
9483 /* The GNU C library defines this for functions which it implements
9484 to always fail with ENOSYS. Some functions are actually named
9485 something starting with __ and the normal name is an alias. */
9486 #if defined (__stub_mmap) || defined (__stub___mmap)
9489 char (*f) () = mmap;
9503 rm -f conftest.
$ac_objext conftest
$ac_exeext
9504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9505 (eval $ac_link) 2>conftest.er1
9507 grep -v '^ *+' conftest.er1
>conftest.err
9509 cat conftest.err
>&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try
='test -s conftest$ac_exeext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.
$ac_ext >&5
9531 rm -f conftest.err conftest.
$ac_objext \
9532 conftest
$ac_exeext conftest.
$ac_ext
9534 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9535 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9536 if test $ac_cv_func_mmap = yes; then
9542 if test "$gcc_header_sys_mman_h" != yes \
9543 ||
test "$gcc_func_mmap" != yes; then
9544 gcc_cv_func_mmap_file
=no
9545 gcc_cv_func_mmap_dev_zero
=no
9546 gcc_cv_func_mmap_anon
=no
9548 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9549 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9550 if test "${gcc_cv_func_mmap_file+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 # Add a system to this blacklist if
9554 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9555 # memory area containing the same data that you'd get if you applied
9556 # read() to the same fd. The only system known to have a problem here
9557 # is VMS, where text files have record structure.
9560 gcc_cv_func_mmap_file
=no
;;
9562 gcc_cv_func_mmap_file
=yes;;
9565 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9566 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9567 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9568 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9569 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 # Add a system to this blacklist if it has mmap() but /dev/zero
9573 # does not exist, or if mmapping /dev/zero does not give anonymous
9574 # zeroed pages with both the following properties:
9575 # 1. If you map N consecutive pages in with one call, and then
9576 # unmap any subset of those pages, the pages that were not
9577 # explicitly unmapped remain accessible.
9578 # 2. If you map two adjacent blocks of memory and then unmap them
9579 # both at once, they must both go away.
9580 # Systems known to be in this category are Windows (all variants),
9583 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9584 gcc_cv_func_mmap_dev_zero
=no
;;
9586 gcc_cv_func_mmap_dev_zero
=yes;;
9589 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9590 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9592 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9593 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9594 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9595 if test "${gcc_cv_decl_map_anon+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 cat >conftest.
$ac_ext <<_ACEOF
9601 cat confdefs.h
>>conftest.
$ac_ext
9602 cat >>conftest.
$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 #include <sys/types.h>
9605 #include <sys/mman.h>
9608 #ifndef MAP_ANONYMOUS
9609 #define MAP_ANONYMOUS MAP_ANON
9615 int n = MAP_ANONYMOUS;
9620 rm -f conftest.
$ac_objext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622 (eval $ac_compile) 2>conftest.er1
9624 grep -v '^ *+' conftest.er1
>conftest.err
9626 cat conftest.err
>&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try
='test -s conftest.$ac_objext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 gcc_cv_decl_map_anon
=yes
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.
$ac_ext >&5
9646 gcc_cv_decl_map_anon
=no
9648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9650 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9651 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9653 if test $gcc_cv_decl_map_anon = no
; then
9654 gcc_cv_func_mmap_anon
=no
9656 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9657 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9658 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9662 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9663 # doesn't give anonymous zeroed pages with the same properties listed
9664 # above for use of /dev/zero.
9665 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9667 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9668 gcc_cv_func_mmap_anon
=no
;;
9670 gcc_cv_func_mmap_anon
=yes;;
9673 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9674 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9678 if test $gcc_cv_func_mmap_file = yes; then
9680 cat >>confdefs.h
<<\_ACEOF
9681 #define HAVE_MMAP_FILE 1
9685 if test $gcc_cv_func_mmap_dev_zero = yes; then
9687 cat >>confdefs.h
<<\_ACEOF
9688 #define HAVE_MMAP_DEV_ZERO 1
9692 if test $gcc_cv_func_mmap_anon = yes; then
9694 cat >>confdefs.h
<<\_ACEOF
9695 #define HAVE_MMAP_ANON 1
9703 # Under VMS, vfork works very differently than on Unix. The standard test
9704 # won't work, and it isn't easily adaptable. It makes more sense to
9706 ac_cv_func_vfork_works
=yes
9709 echo "$as_me:$LINENO: checking for pid_t" >&5
9710 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9711 if test "${ac_cv_type_pid_t+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 cat >conftest.
$ac_ext <<_ACEOF
9717 cat confdefs.h
>>conftest.
$ac_ext
9718 cat >>conftest.
$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 $ac_includes_default
9732 rm -f conftest.
$ac_objext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9734 (eval $ac_compile) 2>conftest.er1
9736 grep -v '^ *+' conftest.er1
>conftest.err
9738 cat conftest.err
>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try
='test -s conftest.$ac_objext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_type_pid_t
=yes
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.
$ac_ext >&5
9760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9762 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9763 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9764 if test $ac_cv_type_pid_t = yes; then
9768 cat >>confdefs.h
<<_ACEOF
9776 for ac_header
in unistd.h vfork.h
9778 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9779 echo "$as_me:$LINENO: checking for $ac_header" >&5
9780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 cat >conftest.
$ac_ext <<_ACEOF
9787 cat confdefs.h
>>conftest.
$ac_ext
9788 cat >>conftest.
$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790 #include <$ac_header>
9792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9793 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9795 grep -v '^ *+' conftest.er1
>conftest.err
9797 cat conftest.err
>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } >/dev
/null
; then
9800 if test -s conftest.err
; then
9801 ac_cpp_err
=$ac_c_preproc_warn_flag
9802 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9809 if test -z "$ac_cpp_err"; then
9810 eval "$as_ac_Header=yes"
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.
$ac_ext >&5
9815 eval "$as_ac_Header=no"
9817 rm -f conftest.err conftest.
$ac_ext
9819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9822 cat >>confdefs.h
<<_ACEOF
9823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9831 for ac_func
in fork vfork
9833 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9834 echo "$as_me:$LINENO: checking for $ac_func" >&5
9835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_var+set}\" = set"; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 cat >conftest.
$ac_ext <<_ACEOF
9842 cat confdefs.h
>>conftest.
$ac_ext
9843 cat >>conftest.
$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9847 #define $ac_func innocuous_$ac_func
9849 /* System header to define __stub macros and hopefully few prototypes,
9850 which can conflict with char $ac_func (); below.
9851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9852 <limits.h> exists even on freestanding compilers. */
9855 # include <limits.h>
9857 # include <assert.h>
9862 /* Override any gcc2 internal prototype to avoid an error. */
9867 /* We use char because int might match the return type of a gcc2
9868 builtin and then its argument prototype would still apply. */
9870 /* The GNU C library defines this for functions which it implements
9871 to always fail with ENOSYS. Some functions are actually named
9872 something starting with __ and the normal name is an alias. */
9873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9876 char (*f) () = $ac_func;
9885 return f != $ac_func;
9890 rm -f conftest.
$ac_objext conftest
$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9894 grep -v '^ *+' conftest.er1
>conftest.err
9896 cat conftest.err
>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try
='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 eval "$as_ac_var=yes"
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.
$ac_ext >&5
9916 eval "$as_ac_var=no"
9918 rm -f conftest.err conftest.
$ac_objext \
9919 conftest
$ac_exeext conftest.
$ac_ext
9921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9923 if test `eval echo '${'$as_ac_var'}'` = yes; then
9924 cat >>confdefs.h
<<_ACEOF
9925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9931 if test "x$ac_cv_func_fork" = xyes
; then
9932 echo "$as_me:$LINENO: checking for working fork" >&5
9933 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9934 if test "${ac_cv_func_fork_works+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 if test "$cross_compiling" = yes; then
9938 ac_cv_func_fork_works
=cross
9940 cat >conftest.
$ac_ext <<_ACEOF
9941 /* By Ruediger Kuhlmann. */
9942 #include <sys/types.h>
9944 # include <unistd.h>
9946 /* Some systems only have a dummy stub for fork() */
9954 rm -f conftest
$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_cv_func_fork_works
=yes
9967 echo "$as_me: program exited with status $ac_status" >&5
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.
$ac_ext >&5
9972 ac_cv_func_fork_works
=no
9974 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9977 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9978 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9981 ac_cv_func_fork_works
=$ac_cv_func_fork
9983 if test "x$ac_cv_func_fork_works" = xcross
; then
9985 *-*-amigaos* |
*-*-msdosdjgpp*)
9986 # Override, as these systems have only a dummy fork() stub
9987 ac_cv_func_fork_works
=no
9990 ac_cv_func_fork_works
=yes
9993 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9994 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9996 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9997 if test "x$ac_cv_func_vfork" = xyes
; then
9998 echo "$as_me:$LINENO: checking for working vfork" >&5
9999 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10000 if test "${ac_cv_func_vfork_works+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 if test "$cross_compiling" = yes; then
10004 ac_cv_func_vfork_works
=cross
10006 cat >conftest.
$ac_ext <<_ACEOF
10009 cat confdefs.h
>>conftest.
$ac_ext
10010 cat >>conftest.
$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 /* Thanks to Paul Eggert for this test. */
10014 #include <stdlib.h>
10015 #include <sys/types.h>
10016 #include <sys/stat.h>
10017 #include <sys/wait.h>
10019 # include <unistd.h>
10022 # include <vfork.h>
10024 /* On some sparc systems, changes by the child to local and incoming
10025 argument registers are propagated back to the parent. The compiler
10026 is told about this with #include <vfork.h>, but some compilers
10027 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10028 static variable whose address is put into a register that is
10029 clobbered by the vfork. */
10032 sparc_address_test (int arg)
10034 sparc_address_test (arg) int arg;
10037 static pid_t child;
10055 pid_t parent = getpid ();
10058 sparc_address_test (0);
10063 /* Here is another test for sparc vfork register problems. This
10064 test uses lots of local variables, at least as many local
10065 variables as main has allocated so far including compiler
10066 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10067 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10068 reuse the register of parent for one of the local variables,
10069 since it will think that parent can't possibly be used any more
10070 in this routine. Assigning to the local variable will thus
10071 munge parent in the parent process. */
10073 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10074 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10075 /* Convince the compiler that p..p7 are live; otherwise, it might
10076 use the same hardware register for all 8 local variables. */
10077 if (p != p1 || p != p2 || p != p3 || p != p4
10078 || p != p5 || p != p6 || p != p7)
10081 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10082 from child file descriptors. If the child closes a descriptor
10083 before it execs or exits, this munges the parent's descriptor
10084 as well. Test for this by closing stdout in the child. */
10085 _exit(close(fileno(stdout)) != 0);
10090 while (wait(&status) != child)
10093 /* Was there some problem with vforking? */
10096 /* Did the child fail? (This shouldn't happen.) */
10099 /* Did the vfork/compiler bug occur? */
10100 || parent != getpid()
10102 /* Did the file descriptor bug occur? */
10103 || fstat(fileno(stdout), &st) != 0
10108 rm -f conftest
$ac_exeext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110 (eval $ac_link) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_func_vfork_works
=yes
10121 echo "$as_me: program exited with status $ac_status" >&5
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.
$ac_ext >&5
10125 ( exit $ac_status )
10126 ac_cv_func_vfork_works
=no
10128 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10131 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10132 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10135 if test "x$ac_cv_func_fork_works" = xcross
; then
10136 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10137 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10138 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10141 if test "x$ac_cv_func_vfork_works" = xyes
; then
10143 cat >>confdefs.h
<<\_ACEOF
10144 #define HAVE_WORKING_VFORK 1
10149 cat >>confdefs.h
<<\_ACEOF
10154 if test "x$ac_cv_func_fork_works" = xyes
; then
10156 cat >>confdefs.h
<<\_ACEOF
10157 #define HAVE_WORKING_FORK 1
10164 if test "X$prefix" = "XNONE"; then
10165 acl_final_prefix
="$ac_default_prefix"
10167 acl_final_prefix
="$prefix"
10169 if test "X$exec_prefix" = "XNONE"; then
10170 acl_final_exec_prefix
='${prefix}'
10172 acl_final_exec_prefix
="$exec_prefix"
10174 acl_save_prefix
="$prefix"
10175 prefix
="$acl_final_prefix"
10176 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10177 prefix
="$acl_save_prefix"
10180 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10181 if test "${with_gnu_ld+set}" = set; then
10182 withval
="$with_gnu_ld"
10183 test "$withval" = no || with_gnu_ld
=yes
10187 # Prepare PATH_SEPARATOR.
10188 # The user is always right.
10189 if test "${PATH_SEPARATOR+set}" != set; then
10190 echo "#! /bin/sh" >conf$$.sh
10191 echo "exit 0" >>conf$$.sh
10193 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10201 if test "$GCC" = yes; then
10202 # Check if gcc -print-prog-name=ld gives a path.
10203 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10204 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10207 # gcc leaves a trailing carriage return which upsets mingw
10208 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10210 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10213 # Accept absolute paths.
10214 [\\/]* |
[A-Za-z
]:[\\/]*)
10215 re_direlt
='/[^/][^/]*/\.\./'
10216 # Canonicalize the path of ld
10217 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10218 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10219 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10221 test -z "$LD" && LD
="$ac_prog"
10224 # If it fails, then pretend we aren't using GCC.
10228 # If it is relative, then search for the first ld in PATH.
10229 with_gnu_ld
=unknown
10232 elif test "$with_gnu_ld" = yes; then
10233 echo "$as_me:$LINENO: checking for GNU ld" >&5
10234 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10236 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10237 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10239 if test "${acl_cv_path_LD+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 if test -z "$LD"; then
10243 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10244 for ac_dir
in $PATH; do
10245 test -z "$ac_dir" && ac_dir
=.
10246 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10247 acl_cv_path_LD
="$ac_dir/$ac_prog"
10248 # Check to see if the program is GNU ld. I'd rather use --version,
10249 # but apparently some GNU ld's only accept -v.
10250 # Break only if it was the GNU/non-GNU ld that we prefer.
10251 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10252 test "$with_gnu_ld" != no
&& break
10254 test "$with_gnu_ld" != yes && break
10260 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10264 LD
="$acl_cv_path_LD"
10265 if test -n "$LD"; then
10266 echo "$as_me:$LINENO: result: $LD" >&5
10267 echo "${ECHO_T}$LD" >&6
10269 echo "$as_me:$LINENO: result: no" >&5
10270 echo "${ECHO_T}no" >&6
10272 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10273 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10274 { (exit 1); exit 1; }; }
10275 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10276 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10277 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10281 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10282 acl_cv_prog_gnu_ld
=yes
10284 acl_cv_prog_gnu_ld
=no
10287 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10288 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10289 with_gnu_ld
=$acl_cv_prog_gnu_ld
10293 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10294 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10295 if test "${acl_cv_rpath+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10300 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10302 rm -f .
/conftest.sh
10306 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10307 echo "${ECHO_T}$acl_cv_rpath" >&6
10309 libext
="$acl_cv_libext"
10310 shlibext
="$acl_cv_shlibext"
10311 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10312 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10313 hardcode_direct
="$acl_cv_hardcode_direct"
10314 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10315 # Check whether --enable-rpath or --disable-rpath was given.
10316 if test "${enable_rpath+set}" = set; then
10317 enableval
="$enable_rpath"
10331 acl_save_prefix
="$prefix"
10332 prefix
="$acl_final_prefix"
10333 acl_save_exec_prefix
="$exec_prefix"
10334 exec_prefix
="$acl_final_exec_prefix"
10336 eval additional_includedir
=\"$includedir\"
10337 eval additional_libdir
=\"$libdir\"
10339 exec_prefix
="$acl_save_exec_prefix"
10340 prefix
="$acl_save_prefix"
10343 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10344 if test "${with_libiconv_prefix+set}" = set; then
10345 withval
="$with_libiconv_prefix"
10347 if test "X$withval" = "Xno"; then
10350 if test "X$withval" = "X"; then
10352 acl_save_prefix
="$prefix"
10353 prefix
="$acl_final_prefix"
10354 acl_save_exec_prefix
="$exec_prefix"
10355 exec_prefix
="$acl_final_exec_prefix"
10357 eval additional_includedir
=\"$includedir\"
10358 eval additional_libdir
=\"$libdir\"
10360 exec_prefix
="$acl_save_exec_prefix"
10361 prefix
="$acl_save_prefix"
10364 additional_includedir
="$withval/include"
10365 additional_libdir
="$withval/lib"
10375 names_already_handled
=
10376 names_next_round
='iconv '
10377 while test -n "$names_next_round"; do
10378 names_this_round
="$names_next_round"
10380 for name
in $names_this_round; do
10382 for n
in $names_already_handled; do
10383 if test "$n" = "$name"; then
10384 already_handled
=yes
10388 if test -z "$already_handled"; then
10389 names_already_handled
="$names_already_handled $name"
10390 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10391 eval value
=\"\
$HAVE_LIB$uppername\"
10392 if test -n "$value"; then
10393 if test "$value" = yes; then
10394 eval value
=\"\
$LIB$uppername\"
10395 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10396 eval value
=\"\
$LTLIB$uppername\"
10397 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10406 if test $use_additional = yes; then
10407 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10408 found_dir
="$additional_libdir"
10409 found_so
="$additional_libdir/lib$name.$shlibext"
10410 if test -f "$additional_libdir/lib$name.la"; then
10411 found_la
="$additional_libdir/lib$name.la"
10414 if test -f "$additional_libdir/lib$name.$libext"; then
10415 found_dir
="$additional_libdir"
10416 found_a
="$additional_libdir/lib$name.$libext"
10417 if test -f "$additional_libdir/lib$name.la"; then
10418 found_la
="$additional_libdir/lib$name.la"
10423 if test "X$found_dir" = "X"; then
10424 for x
in $LDFLAGS $LTLIBICONV; do
10426 acl_save_prefix
="$prefix"
10427 prefix
="$acl_final_prefix"
10428 acl_save_exec_prefix
="$exec_prefix"
10429 exec_prefix
="$acl_final_exec_prefix"
10431 exec_prefix
="$acl_save_exec_prefix"
10432 prefix
="$acl_save_prefix"
10436 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10437 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10439 found_so
="$dir/lib$name.$shlibext"
10440 if test -f "$dir/lib$name.la"; then
10441 found_la
="$dir/lib$name.la"
10444 if test -f "$dir/lib$name.$libext"; then
10446 found_a
="$dir/lib$name.$libext"
10447 if test -f "$dir/lib$name.la"; then
10448 found_la
="$dir/lib$name.la"
10454 if test "X$found_dir" != "X"; then
10459 if test "X$found_dir" != "X"; then
10460 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10461 if test "X$found_so" != "X"; then
10462 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10463 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10466 for x
in $ltrpathdirs; do
10467 if test "X$x" = "X$found_dir"; then
10472 if test -z "$haveit"; then
10473 ltrpathdirs
="$ltrpathdirs $found_dir"
10475 if test "$hardcode_direct" = yes; then
10476 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10478 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10479 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10481 for x
in $rpathdirs; do
10482 if test "X$x" = "X$found_dir"; then
10487 if test -z "$haveit"; then
10488 rpathdirs
="$rpathdirs $found_dir"
10492 for x
in $LDFLAGS $LIBICONV; do
10494 acl_save_prefix
="$prefix"
10495 prefix
="$acl_final_prefix"
10496 acl_save_exec_prefix
="$exec_prefix"
10497 exec_prefix
="$acl_final_exec_prefix"
10499 exec_prefix
="$acl_save_exec_prefix"
10500 prefix
="$acl_save_prefix"
10502 if test "X$x" = "X-L$found_dir"; then
10507 if test -z "$haveit"; then
10508 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10510 if test "$hardcode_minus_L" != no
; then
10511 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10513 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10519 if test "X$found_a" != "X"; then
10520 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10522 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10525 additional_includedir
=
10526 case "$found_dir" in
10528 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10529 additional_includedir
="$basedir/include"
10532 if test "X$additional_includedir" != "X"; then
10533 if test "X$additional_includedir" != "X/usr/include"; then
10535 if test "X$additional_includedir" = "X/usr/local/include"; then
10536 if test -n "$GCC"; then
10538 linux
*) haveit
=yes;;
10542 if test -z "$haveit"; then
10543 for x
in $CPPFLAGS $INCICONV; do
10545 acl_save_prefix
="$prefix"
10546 prefix
="$acl_final_prefix"
10547 acl_save_exec_prefix
="$exec_prefix"
10548 exec_prefix
="$acl_final_exec_prefix"
10550 exec_prefix
="$acl_save_exec_prefix"
10551 prefix
="$acl_save_prefix"
10553 if test "X$x" = "X-I$additional_includedir"; then
10558 if test -z "$haveit"; then
10559 if test -d "$additional_includedir"; then
10560 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10566 if test -n "$found_la"; then
10567 save_libdir
="$libdir"
10568 case "$found_la" in
10569 */* |
*\\*) .
"$found_la" ;;
10570 *) .
"./$found_la" ;;
10572 libdir
="$save_libdir"
10573 for dep
in $dependency_libs; do
10576 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10577 if test "X$additional_libdir" != "X/usr/lib"; then
10579 if test "X$additional_libdir" = "X/usr/local/lib"; then
10580 if test -n "$GCC"; then
10582 linux
*) haveit
=yes;;
10586 if test -z "$haveit"; then
10588 for x
in $LDFLAGS $LIBICONV; do
10590 acl_save_prefix
="$prefix"
10591 prefix
="$acl_final_prefix"
10592 acl_save_exec_prefix
="$exec_prefix"
10593 exec_prefix
="$acl_final_exec_prefix"
10595 exec_prefix
="$acl_save_exec_prefix"
10596 prefix
="$acl_save_prefix"
10598 if test "X$x" = "X-L$additional_libdir"; then
10603 if test -z "$haveit"; then
10604 if test -d "$additional_libdir"; then
10605 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10609 for x
in $LDFLAGS $LTLIBICONV; do
10611 acl_save_prefix
="$prefix"
10612 prefix
="$acl_final_prefix"
10613 acl_save_exec_prefix
="$exec_prefix"
10614 exec_prefix
="$acl_final_exec_prefix"
10616 exec_prefix
="$acl_save_exec_prefix"
10617 prefix
="$acl_save_prefix"
10619 if test "X$x" = "X-L$additional_libdir"; then
10624 if test -z "$haveit"; then
10625 if test -d "$additional_libdir"; then
10626 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10633 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10634 if test "$enable_rpath" != no
; then
10636 for x
in $rpathdirs; do
10637 if test "X$x" = "X$dir"; then
10642 if test -z "$haveit"; then
10643 rpathdirs
="$rpathdirs $dir"
10646 for x
in $ltrpathdirs; do
10647 if test "X$x" = "X$dir"; then
10652 if test -z "$haveit"; then
10653 ltrpathdirs
="$ltrpathdirs $dir"
10658 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10661 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10664 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10665 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10671 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10672 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10678 if test "X$rpathdirs" != "X"; then
10679 if test -n "$hardcode_libdir_separator"; then
10681 for found_dir
in $rpathdirs; do
10682 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10684 acl_save_libdir
="$libdir"
10686 eval flag
=\"$hardcode_libdir_flag_spec\"
10687 libdir
="$acl_save_libdir"
10688 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10690 for found_dir
in $rpathdirs; do
10691 acl_save_libdir
="$libdir"
10692 libdir
="$found_dir"
10693 eval flag
=\"$hardcode_libdir_flag_spec\"
10694 libdir
="$acl_save_libdir"
10695 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10699 if test "X$ltrpathdirs" != "X"; then
10700 for found_dir
in $ltrpathdirs; do
10701 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10711 am_save_CPPFLAGS
="$CPPFLAGS"
10713 for element
in $INCICONV; do
10715 for x
in $CPPFLAGS; do
10717 acl_save_prefix
="$prefix"
10718 prefix
="$acl_final_prefix"
10719 acl_save_exec_prefix
="$exec_prefix"
10720 exec_prefix
="$acl_final_exec_prefix"
10722 exec_prefix
="$acl_save_exec_prefix"
10723 prefix
="$acl_save_prefix"
10725 if test "X$x" = "X$element"; then
10730 if test -z "$haveit"; then
10731 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10736 echo "$as_me:$LINENO: checking for iconv" >&5
10737 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10738 if test "${am_cv_func_iconv+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 am_cv_func_iconv
="no, consider installing GNU libiconv"
10744 cat >conftest.
$ac_ext <<_ACEOF
10747 cat confdefs.h
>>conftest.
$ac_ext
10748 cat >>conftest.
$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 #include <stdlib.h>
10755 iconv_t cd = iconv_open("","");
10756 iconv(cd,NULL,NULL,NULL,NULL);
10762 rm -f conftest.
$ac_objext conftest
$ac_exeext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10764 (eval $ac_link) 2>conftest.er1
10766 grep -v '^ *+' conftest.er1
>conftest.err
10768 cat conftest.err
>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try
='test -s conftest$ac_exeext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 am_cv_func_iconv
=yes
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.
$ac_ext >&5
10789 rm -f conftest.err conftest.
$ac_objext \
10790 conftest
$ac_exeext conftest.
$ac_ext
10791 if test "$am_cv_func_iconv" != yes; then
10792 am_save_LIBS
="$LIBS"
10793 LIBS
="$LIBS $LIBICONV"
10794 cat >conftest.
$ac_ext <<_ACEOF
10797 cat confdefs.h
>>conftest.
$ac_ext
10798 cat >>conftest.
$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 #include <stdlib.h>
10805 iconv_t cd = iconv_open("","");
10806 iconv(cd,NULL,NULL,NULL,NULL);
10812 rm -f conftest.
$ac_objext conftest
$ac_exeext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10814 (eval $ac_link) 2>conftest.er1
10816 grep -v '^ *+' conftest.er1
>conftest.err
10818 cat conftest.err
>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try
='test -s conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 am_cv_lib_iconv
=yes
10834 am_cv_func_iconv
=yes
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.
$ac_ext >&5
10840 rm -f conftest.err conftest.
$ac_objext \
10841 conftest
$ac_exeext conftest.
$ac_ext
10842 LIBS
="$am_save_LIBS"
10846 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10847 echo "${ECHO_T}$am_cv_func_iconv" >&6
10848 if test "$am_cv_func_iconv" = yes; then
10850 cat >>confdefs.h
<<\_ACEOF
10851 #define HAVE_ICONV 1
10855 if test "$am_cv_lib_iconv" = yes; then
10856 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10857 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10858 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10859 echo "${ECHO_T}$LIBICONV" >&6
10861 CPPFLAGS
="$am_save_CPPFLAGS"
10868 if test "$am_cv_func_iconv" = yes; then
10869 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10870 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10871 if test "${am_cv_proto_iconv+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 cat >conftest.
$ac_ext <<_ACEOF
10878 cat confdefs.h
>>conftest.
$ac_ext
10879 cat >>conftest.
$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10882 #include <stdlib.h>
10888 #if defined(__STDC__) || defined(__cplusplus)
10889 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10902 rm -f conftest.
$ac_objext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904 (eval $ac_compile) 2>conftest.er1
10906 grep -v '^ *+' conftest.er1
>conftest.err
10908 cat conftest.err
>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; } &&
10917 { ac_try
='test -s conftest.$ac_objext'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 am_cv_proto_iconv_arg1
=""
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.
$ac_ext >&5
10928 am_cv_proto_iconv_arg1
="const"
10930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10931 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);"
10934 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10935 echo "$as_me:$LINENO: result: ${ac_t:-
10936 }$am_cv_proto_iconv" >&5
10937 echo "${ECHO_T}${ac_t:-
10938 }$am_cv_proto_iconv" >&6
10940 cat >>confdefs.h
<<_ACEOF
10941 #define ICONV_CONST $am_cv_proto_iconv_arg1
10946 # Until we have in-tree GNU iconv:
10951 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10952 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10953 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 cat >conftest.
$ac_ext <<_ACEOF
10959 cat confdefs.h
>>conftest.
$ac_ext
10960 cat >>conftest.
$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 #include <locale.h>
10971 rm -f conftest.
$ac_objext conftest
$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>conftest.er1
10975 grep -v '^ *+' conftest.er1
>conftest.err
10977 cat conftest.err
>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try
='test -s conftest$ac_exeext'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 am_cv_val_LC_MESSAGES
=yes
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.
$ac_ext >&5
10997 am_cv_val_LC_MESSAGES
=no
10999 rm -f conftest.err conftest.
$ac_objext \
11000 conftest
$ac_exeext conftest.
$ac_ext
11002 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11003 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11004 if test $am_cv_val_LC_MESSAGES = yes; then
11006 cat >>confdefs.h
<<\_ACEOF
11007 #define HAVE_LC_MESSAGES 1
11014 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11015 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11016 if test "${am_cv_langinfo_codeset+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 cat >conftest.
$ac_ext <<_ACEOF
11022 cat confdefs.h
>>conftest.
$ac_ext
11023 cat >>conftest.
$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <langinfo.h>
11029 char* cs = nl_langinfo(CODESET);
11034 rm -f conftest.
$ac_objext conftest
$ac_exeext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036 (eval $ac_link) 2>conftest.er1
11038 grep -v '^ *+' conftest.er1
>conftest.err
11040 cat conftest.err
>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try
='test -s conftest$ac_exeext'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 am_cv_langinfo_codeset
=yes
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.
$ac_ext >&5
11060 am_cv_langinfo_codeset
=no
11062 rm -f conftest.err conftest.
$ac_objext \
11063 conftest
$ac_exeext conftest.
$ac_ext
11066 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11067 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11068 if test $am_cv_langinfo_codeset = yes; then
11070 cat >>confdefs.h
<<\_ACEOF
11071 #define HAVE_LANGINFO_CODESET 1
11077 # We will need to find libiberty.h and ansidecl.h
11078 saved_CFLAGS
="$CFLAGS"
11079 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11117 for ac_func
in getenv atol sbrk abort atof getcwd getwd strsignal \
11118 strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
11119 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
11121 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11122 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11123 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11124 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 cat >conftest.
$ac_ext <<_ACEOF
11130 cat confdefs.h
>>conftest.
$ac_ext
11131 cat >>conftest.
$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11134 #define $ac_tr_decl 1
11136 #include "ansidecl.h"
11137 #include "system.h"
11143 char *(*pfn) = (char *(*)) $ac_func ;
11149 rm -f conftest.
$ac_objext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11151 (eval $ac_compile) 2>conftest.er1
11153 grep -v '^ *+' conftest.er1
>conftest.err
11155 cat conftest.err
>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try
='test -s conftest.$ac_objext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 eval "gcc_cv_have_decl_$ac_func=yes"
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.
$ac_ext >&5
11175 eval "gcc_cv_have_decl_$ac_func=no"
11177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11180 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11181 echo "$as_me:$LINENO: result: yes" >&5
11182 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11183 #define $ac_tr_decl 1
11187 echo "$as_me:$LINENO: result: no" >&5
11188 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11189 #define $ac_tr_decl 0
11200 for ac_func
in getrlimit setrlimit getrusage
11202 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11203 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11204 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11205 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 cat >conftest.
$ac_ext <<_ACEOF
11211 cat confdefs.h
>>conftest.
$ac_ext
11212 cat >>conftest.
$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11215 #define $ac_tr_decl 1
11217 #include "ansidecl.h"
11218 #include "system.h"
11219 #ifdef HAVE_SYS_RESOURCE_H
11220 #include <sys/resource.h>
11228 char *(*pfn) = (char *(*)) $ac_func ;
11234 rm -f conftest.
$ac_objext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11236 (eval $ac_compile) 2>conftest.er1
11238 grep -v '^ *+' conftest.er1
>conftest.err
11240 cat conftest.err
>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; } &&
11249 { ac_try
='test -s conftest.$ac_objext'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 eval "gcc_cv_have_decl_$ac_func=yes"
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.
$ac_ext >&5
11260 eval "gcc_cv_have_decl_$ac_func=no"
11262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11265 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11266 echo "$as_me:$LINENO: result: yes" >&5
11267 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11268 #define $ac_tr_decl 1
11272 echo "$as_me:$LINENO: result: no" >&5
11273 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11274 #define $ac_tr_decl 0
11282 cat >conftest.
$ac_ext <<_ACEOF
11285 cat confdefs.h
>>conftest.
$ac_ext
11286 cat >>conftest.
$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11289 #include "ansidecl.h"
11290 #include "system.h"
11291 #ifdef HAVE_SYS_RESOURCE_H
11292 #include <sys/resource.h>
11303 rm -f conftest.
$ac_objext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>conftest.er1
11307 grep -v '^ *+' conftest.er1
>conftest.err
11309 cat conftest.err
>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try
='test -s conftest.$ac_objext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.
$ac_ext >&5
11330 cat >>confdefs.h
<<\_ACEOF
11331 #define rlim_t long
11335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11337 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11338 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11339 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11340 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11342 for ac_func
in ldgetname
11344 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11345 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11346 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11347 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 cat >conftest.
$ac_ext <<_ACEOF
11353 cat confdefs.h
>>conftest.
$ac_ext
11354 cat >>conftest.
$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11357 #define $ac_tr_decl 1
11359 #include "ansidecl.h"
11360 #include "system.h"
11361 #ifdef HAVE_LDFCN_H
11372 char *(*pfn) = (char *(*)) $ac_func ;
11378 rm -f conftest.
$ac_objext
11379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11380 (eval $ac_compile) 2>conftest.er1
11382 grep -v '^ *+' conftest.er1
>conftest.err
11384 cat conftest.err
>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } &&
11387 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; } &&
11393 { ac_try
='test -s conftest.$ac_objext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 eval "gcc_cv_have_decl_$ac_func=yes"
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.
$ac_ext >&5
11404 eval "gcc_cv_have_decl_$ac_func=no"
11406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11409 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11410 echo "$as_me:$LINENO: result: yes" >&5
11411 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11412 #define $ac_tr_decl 1
11416 echo "$as_me:$LINENO: result: no" >&5
11417 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11418 #define $ac_tr_decl 0
11427 for ac_func
in times
11429 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11430 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11431 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11432 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 cat >conftest.
$ac_ext <<_ACEOF
11438 cat confdefs.h
>>conftest.
$ac_ext
11439 cat >>conftest.
$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11442 #define $ac_tr_decl 1
11444 #include "ansidecl.h"
11445 #include "system.h"
11446 #ifdef HAVE_SYS_TIMES_H
11447 #include <sys/times.h>
11455 char *(*pfn) = (char *(*)) $ac_func ;
11461 rm -f conftest.
$ac_objext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>conftest.er1
11465 grep -v '^ *+' conftest.er1
>conftest.err
11467 cat conftest.err
>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try
='test -s conftest.$ac_objext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 eval "gcc_cv_have_decl_$ac_func=yes"
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.
$ac_ext >&5
11487 eval "gcc_cv_have_decl_$ac_func=no"
11489 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11492 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11493 echo "$as_me:$LINENO: result: yes" >&5
11494 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11495 #define $ac_tr_decl 1
11499 echo "$as_me:$LINENO: result: no" >&5
11500 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11501 #define $ac_tr_decl 0
11509 # More time-related stuff.
11510 echo "$as_me:$LINENO: checking for struct tms" >&5
11511 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11512 if test "${ac_cv_struct_tms+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 cat >conftest.
$ac_ext <<_ACEOF
11519 cat confdefs.h
>>conftest.
$ac_ext
11520 cat >>conftest.
$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11523 #include "ansidecl.h"
11524 #include "system.h"
11525 #ifdef HAVE_SYS_TIMES_H
11526 #include <sys/times.h>
11537 rm -f conftest.
$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>conftest.er1
11541 grep -v '^ *+' conftest.er1
>conftest.err
11543 cat conftest.err
>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try
='test -s conftest.$ac_objext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_struct_tms
=yes
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.
$ac_ext >&5
11563 ac_cv_struct_tms
=no
11565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11567 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11568 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11569 if test $ac_cv_struct_tms = yes; then
11571 cat >>confdefs.h
<<\_ACEOF
11572 #define HAVE_STRUCT_TMS 1
11577 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11578 # revisit after autoconf 2.50.
11579 echo "$as_me:$LINENO: checking for clock_t" >&5
11580 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11581 if test "${gcc_cv_type_clock_t+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 cat >conftest.
$ac_ext <<_ACEOF
11588 cat confdefs.h
>>conftest.
$ac_ext
11589 cat >>conftest.
$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11592 #include "ansidecl.h"
11593 #include "system.h"
11603 rm -f conftest.
$ac_objext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11605 (eval $ac_compile) 2>conftest.er1
11607 grep -v '^ *+' conftest.er1
>conftest.err
11609 cat conftest.err
>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try
='test -s conftest.$ac_objext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 gcc_cv_type_clock_t
=yes
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.
$ac_ext >&5
11629 gcc_cv_type_clock_t
=no
11631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11633 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11634 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11635 if test $gcc_cv_type_clock_t = yes; then
11637 cat >>confdefs.h
<<\_ACEOF
11638 #define HAVE_CLOCK_T 1
11643 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11644 CFLAGS
="$saved_CFLAGS"
11646 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11647 if test "${enable_initfini_array+set}" = set; then
11648 enableval
="$enable_initfini_array"
11652 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11653 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11654 if test "${gcc_cv_initfini_array+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 if test "$cross_compiling" = yes; then
11658 gcc_cv_initfini_array
=no
11660 cat >conftest.
$ac_ext <<_ACEOF
11663 cat confdefs.h
>>conftest.
$ac_ext
11664 cat >>conftest.
$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11668 int main (void) { return x; }
11669 int foo (void) { x = 0; }
11670 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11672 rm -f conftest
$ac_exeext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674 (eval $ac_link) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 gcc_cv_initfini_array
=yes
11685 echo "$as_me: program exited with status $ac_status" >&5
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.
$ac_ext >&5
11689 ( exit $ac_status )
11690 gcc_cv_initfini_array
=no
11692 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11695 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11696 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11697 enable_initfini_array
=$gcc_cv_initfini_array
11700 if test $enable_initfini_array = yes; then
11702 cat >>confdefs.h
<<\_ACEOF
11703 #define HAVE_INITFINI_ARRAY 1
11708 # mkdir takes a single argument on some systems.
11709 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11710 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11711 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 cat >conftest.
$ac_ext <<_ACEOF
11717 cat confdefs.h
>>conftest.
$ac_ext
11718 cat >>conftest.
$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 #include <sys/types.h>
11722 #ifdef HAVE_SYS_STAT_H
11723 # include <sys/stat.h>
11725 #ifdef HAVE_UNISTD_H
11726 # include <unistd.h>
11728 #ifdef HAVE_DIRECT_H
11729 # include <direct.h>
11739 rm -f conftest.
$ac_objext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741 (eval $ac_compile) 2>conftest.er1
11743 grep -v '^ *+' conftest.er1
>conftest.err
11745 cat conftest.err
>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try
='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 gcc_cv_mkdir_takes_one_arg
=no
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.
$ac_ext >&5
11765 gcc_cv_mkdir_takes_one_arg
=yes
11767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11769 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11770 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11771 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11773 cat >>confdefs.h
<<\_ACEOF
11774 #define MKDIR_TAKES_ONE_ARG 1
11786 # With Setjmp/Longjmp based exception handling.
11787 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11788 if test "${enable_sjlj_exceptions+set}" = set; then
11789 enableval
="$enable_sjlj_exceptions"
11790 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11792 cat >>confdefs.h
<<_ACEOF
11793 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11798 # For platforms with the unwind ABI which includes an unwind library,
11799 # libunwind, we can choose to use the system libunwind.
11801 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11802 if test "${with_system_libunwind+set}" = set; then
11803 withval
="$with_system_libunwind"
11807 # --------------------------------------------------------
11808 # Build, host, and target specific configuration fragments
11809 # --------------------------------------------------------
11811 # Collect build-machine-specific information.
11812 .
${srcdir}/config.build
11814 # Collect host-machine-specific information.
11815 .
${srcdir}/config.
host
11819 # Collect target-machine-specific information.
11820 .
${srcdir}/config.gcc
11822 extra_objs
="${host_extra_objs} ${extra_objs}"
11823 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11825 # Default the target-machine variables that were not explicitly set.
11826 if test x
"$tm_file" = x
11827 then tm_file
=$cpu_type/$cpu_type.h
; fi
11829 if test x
"$extra_headers" = x
11830 then extra_headers
=; fi
11832 if test x
$md_file = x
11833 then md_file
=$cpu_type/$cpu_type.md
; fi
11835 if test x
$out_file = x
11836 then out_file
=$cpu_type/$cpu_type.c
; fi
11838 if test x
"$tmake_file" = x
11839 then tmake_file
=$cpu_type/t-
$cpu_type
11842 if test x
"$dwarf2" = xyes
11843 then tm_file
="$tm_file tm-dwarf2.h"
11846 # Say what files are being used for the output code and MD file.
11847 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11848 echo "Using \`$srcdir/config/$md_file' as machine description file."
11850 # If any of the xm_file variables contain nonexistent files, warn
11851 # about them and drop them.
11854 for x
in $build_xm_file; do
11855 if test -f $srcdir/config
/$x
11857 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11858 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11861 build_xm_file
="$bx"
11864 for x
in $host_xm_file; do
11865 if test -f $srcdir/config
/$x
11867 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11868 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11874 for x
in $xm_file; do
11875 if test -f $srcdir/config
/$x
11877 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11878 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11884 for f
in $tm_file; do
11887 if test $count = ax
; then
11888 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11890 echo "Using the following target machine macro files:"
11891 for f
in $tm_file; do
11892 echo " $srcdir/config/$f"
11896 if test x
$need_64bit_hwint = xyes
; then
11898 cat >>confdefs.h
<<\_ACEOF
11899 #define NEED_64BIT_HOST_WIDE_INT 1
11904 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11906 cat >>confdefs.h
<<\_ACEOF
11907 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11913 for f
in $host_xm_file; do
11916 if test $count = a
; then
11918 elif test $count = ax
; then
11919 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11921 echo "Using the following host machine macro files:"
11922 for f
in $host_xm_file; do
11923 echo " $srcdir/config/$f"
11926 echo "Using ${out_host_hook_obj} for host machine hooks."
11928 if test "$host_xm_file" != "$build_xm_file"; then
11930 for f
in $build_xm_file; do
11933 if test $count = a
; then
11935 elif test $count = ax
; then
11936 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11938 echo "Using the following build machine macro files:"
11939 for f
in $build_xm_file; do
11940 echo " $srcdir/config/$f"
11949 # Check if a valid thread package
11950 case ${enable_threads} in
11953 target_thread_file
='single'
11957 target_thread_file
='single'
11959 aix | dce | gnat | irix | posix | posix95 | rtems | \
11960 single | solaris | vxworks | win32
)
11961 target_thread_file
=${enable_threads}
11964 echo "${enable_threads} is an unknown thread package" 1>&2
11969 if test x
${thread_file} = x
; then
11970 # No thread file set by target-specific clauses in config.gcc,
11971 # so use file chosen by default logic above
11972 thread_file
=${target_thread_file}
11975 # Make gthr-default.h if we have a thread file.
11977 if test $thread_file != single
; then
11978 rm -f gthr-default.h
11979 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11980 gthread_flags
=-DHAVE_GTHR_DEFAULT
11989 if test x
$enable___cxa_atexit = xyes || \
11990 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11991 if test x
$host = x
$target; then
11992 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11993 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11994 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 cat >conftest.
$ac_ext <<_ACEOF
12000 cat confdefs.h
>>conftest.
$ac_ext
12001 cat >>conftest.
$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12005 #define __cxa_atexit innocuous___cxa_atexit
12007 /* System header to define __stub macros and hopefully few prototypes,
12008 which can conflict with char __cxa_atexit (); below.
12009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12010 <limits.h> exists even on freestanding compilers. */
12013 # include <limits.h>
12015 # include <assert.h>
12018 #undef __cxa_atexit
12020 /* Override any gcc2 internal prototype to avoid an error. */
12025 /* We use char because int might match the return type of a gcc2
12026 builtin and then its argument prototype would still apply. */
12027 char __cxa_atexit ();
12028 /* The GNU C library defines this for functions which it implements
12029 to always fail with ENOSYS. Some functions are actually named
12030 something starting with __ and the normal name is an alias. */
12031 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12034 char (*f) () = __cxa_atexit;
12043 return f != __cxa_atexit;
12048 rm -f conftest.
$ac_objext conftest
$ac_exeext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>conftest.er1
12052 grep -v '^ *+' conftest.er1
>conftest.err
12054 cat conftest.err
>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try
='test -s conftest$ac_exeext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 ac_cv_func___cxa_atexit
=yes
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.
$ac_ext >&5
12074 ac_cv_func___cxa_atexit
=no
12076 rm -f conftest.err conftest.
$ac_objext \
12077 conftest
$ac_exeext conftest.
$ac_ext
12079 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12080 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12081 if test $ac_cv_func___cxa_atexit = yes; then
12084 echo "__cxa_atexit can't be enabled on this target"
12088 # We can't check for __cxa_atexit when building a cross, so assume
12092 if test x
$use_cxa_atexit = xyes
; then
12094 cat >>confdefs.h
<<\_ACEOF
12095 #define DEFAULT_USE_CXA_ATEXIT 1
12101 # Look for a file containing extra machine modes.
12102 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12103 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12106 cat >>confdefs.h
<<_ACEOF
12107 #define EXTRA_MODES_FILE "config/$extra_modes"
12112 # Convert extra_options into a form suitable for Makefile use.
12114 for f
in $extra_options; do
12115 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12119 # auto-host.h is the file containing items generated by autoconf and is
12120 # the first file included by config.h.
12121 # If host=build, it is correct to have bconfig include auto-host.h
12122 # as well. If host!=build, we are in error and need to do more
12123 # work to find out the build config parameters.
12124 if test x
$host = x
$build
12126 build_auto
=auto-host.h
12128 # We create a subdir, then run autoconf in the subdir.
12129 # To prevent recursion we set host and build for the new
12130 # invocation of configure to the build for this invocation
12137 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12138 *) realsrcdir
=..
/${srcdir};;
12140 saved_CFLAGS
="${CFLAGS}"
12141 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12142 ${realsrcdir}/configure \
12143 --enable-languages=${enable_languages-all} \
12144 --target=$target_alias --host=$build_alias --build=$build_alias
12145 CFLAGS
="${saved_CFLAGS}"
12147 # We just finished tests for the build machine, so rename
12148 # the file auto-build.h in the gcc directory.
12149 mv auto-host.h ..
/auto-build.h
12152 build_auto
=auto-build.h
12156 tm_file
="${tm_file} defaults.h"
12157 tm_p_file
="${tm_p_file} tm-preds.h"
12158 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12159 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12160 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12161 # put this back in temporarily.
12162 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12168 # Compile in configure arguments.
12169 if test -f configargs.h
; then
12170 # Being re-configured.
12171 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12172 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12174 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12177 # Double all backslashes and backslash all quotes to turn
12178 # gcc_config_arguments into a C string.
12179 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12180 $gcc_config_arguments
12182 gcc_config_arguments_str
=`cat conftest.out`
12185 cat > configargs.h
<<EOF
12186 /* Generated automatically. */
12187 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12188 static const char thread_model[] = "$thread_file";
12190 static const struct {
12191 const char *name, *value;
12192 } configure_default_options[] = $configure_default_options;
12195 # Internationalization
12196 # If we haven't got the data from the intl directory,
12197 # assume NLS is disabled.
12205 if test -f ..
/intl
/config.intl
; then
12206 . ..
/intl
/config.intl
12208 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12209 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12210 if test x
"$USE_NLS" != xyes
; then
12211 echo "$as_me:$LINENO: result: no" >&5
12212 echo "${ECHO_T}no" >&6
12214 echo "$as_me:$LINENO: result: yes" >&5
12215 echo "${ECHO_T}yes" >&6
12217 cat >>confdefs.h
<<\_ACEOF
12218 #define ENABLE_NLS 1
12222 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12223 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12224 # Look for .po and .gmo files in the source directory.
12227 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12228 # If there aren't any .gmo files the shell will give us the
12229 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12231 case "$cat" in *\
**)
12234 # The quadruple backslash is collapsed to a double backslash
12235 # by the backticks, then collapsed again by the double quotes,
12236 # leaving us with one backslash in the sed expression (right
12237 # before the dot that mustn't act as a wildcard).
12238 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12239 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12240 # The user is allowed to set LINGUAS to a list of languages to
12241 # install catalogs for. If it's empty that means "all of them."
12242 if test "x$LINGUAS" = x
; then
12243 CATALOGS
="$CATALOGS $cat"
12244 XLINGUAS
="$XLINGUAS $lang"
12246 case "$LINGUAS" in *$lang*)
12247 CATALOGS
="$CATALOGS $cat"
12248 XLINGUAS
="$XLINGUAS $lang"
12253 LINGUAS
="$XLINGUAS"
12254 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12255 echo "${ECHO_T}$LINGUAS" >&6
12258 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12259 # -liconv on the link line twice.
12260 case "$LIBINTL" in *$LIBICONV*)
12264 # Windows32 Registry support for specifying GCC installation paths.
12265 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12266 if test "${enable_win32_registry+set}" = set; then
12267 enableval
="$enable_win32_registry"
12272 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12273 if test "x$enable_win32_registry" != xno
; then
12274 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12275 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12276 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 ac_func_search_save_LIBS
=$LIBS
12280 ac_cv_search_RegOpenKeyExA
=no
12281 cat >conftest.
$ac_ext <<_ACEOF
12284 cat confdefs.h
>>conftest.
$ac_ext
12285 cat >>conftest.
$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12288 /* Override any gcc2 internal prototype to avoid an error. */
12292 /* We use char because int might match the return type of a gcc2
12293 builtin and then its argument prototype would still apply. */
12294 char RegOpenKeyExA ();
12303 rm -f conftest.
$ac_objext conftest
$ac_exeext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305 (eval $ac_link) 2>conftest.er1
12307 grep -v '^ *+' conftest.er1
>conftest.err
12309 cat conftest.err
>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try
='test -s conftest$ac_exeext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 ac_cv_search_RegOpenKeyExA
="none required"
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.
$ac_ext >&5
12330 rm -f conftest.err conftest.
$ac_objext \
12331 conftest
$ac_exeext conftest.
$ac_ext
12332 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12333 for ac_lib
in advapi32
; do
12334 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12335 cat >conftest.
$ac_ext <<_ACEOF
12338 cat confdefs.h
>>conftest.
$ac_ext
12339 cat >>conftest.
$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12342 /* Override any gcc2 internal prototype to avoid an error. */
12346 /* We use char because int might match the return type of a gcc2
12347 builtin and then its argument prototype would still apply. */
12348 char RegOpenKeyExA ();
12357 rm -f conftest.
$ac_objext conftest
$ac_exeext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359 (eval $ac_link) 2>conftest.er1
12361 grep -v '^ *+' conftest.er1
>conftest.err
12363 cat conftest.err
>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try
='test -s conftest$ac_exeext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.
$ac_ext >&5
12385 rm -f conftest.err conftest.
$ac_objext \
12386 conftest
$ac_exeext conftest.
$ac_ext
12389 LIBS
=$ac_func_search_save_LIBS
12391 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12392 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12393 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12394 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12397 enable_win32_registry
=no
12402 if test "x$enable_win32_registry" != xno
; then
12404 cat >>confdefs.h
<<\_ACEOF
12405 #define ENABLE_WIN32_REGISTRY 1
12409 if test "x$enable_win32_registry" != xyes \
12410 && test "x$enable_win32_registry" != x
; then
12412 cat >>confdefs.h
<<_ACEOF
12413 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12421 # Get an absolute path to the GCC top-level source directory
12422 holddir
=`${PWDCMD-pwd}`
12424 topdir
=`${PWDCMD-pwd}`
12427 # Conditionalize the makefile for this host machine.
12429 for f
in ${host_xmake_file}
12431 if test -f ${srcdir}/config
/$f
12433 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12437 # Conditionalize the makefile for this target machine.
12439 for f
in ${tmake_file}
12441 if test -f ${srcdir}/config
/$f
12443 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12446 tmake_file
="${tmake_file_}"
12448 # If the host doesn't support symlinks, modify CC in
12449 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12450 # Otherwise, we can use "CC=$(CC)".
12454 cc_set_by_configure
="\$(CC)"
12455 quoted_cc_set_by_configure
="\$(CC)"
12456 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12457 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12460 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12461 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12462 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12463 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12467 # This is a terrible hack which will go away some day.
12468 host_cc_for_libada
=${CC}
12471 out_object_file
=`basename $out_file .c`.o
12473 tm_file_list
="options.h"
12474 tm_include_list
="options.h"
12475 for f
in $tm_file; do
12478 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12479 tm_include_list
="${tm_include_list} $f"
12482 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12483 tm_include_list
="${tm_include_list} config/$f"
12490 for f
in $tm_p_file; do
12493 tm_p_file_list
="${tm_p_file_list} $f"
12494 tm_p_include_list
="${tm_p_include_list} $f"
12497 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12498 tm_p_include_list
="${tm_p_include_list} config/$f"
12504 for f
in $xm_file; do
12507 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12508 xm_include_list
="${xm_include_list} $f"
12511 xm_file_list
="${xm_file_list} $f"
12512 xm_include_list
="${xm_include_list} $f"
12515 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12516 xm_include_list
="${xm_include_list} config/$f"
12522 host_xm_include_list
=
12523 for f
in $host_xm_file; do
12526 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12527 host_xm_include_list
="${host_xm_include_list} $f"
12530 host_xm_file_list
="${host_xm_file_list} $f"
12531 host_xm_include_list
="${host_xm_include_list} $f"
12534 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12535 host_xm_include_list
="${host_xm_include_list} config/$f"
12540 build_xm_file_list
=
12541 for f
in $build_xm_file; do
12544 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12545 build_xm_include_list
="${build_xm_include_list} $f"
12547 auto-build.h | auto-host.h
)
12548 build_xm_file_list
="${build_xm_file_list} $f"
12549 build_xm_include_list
="${build_xm_include_list} $f"
12552 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12553 build_xm_include_list
="${build_xm_include_list} config/$f"
12558 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12559 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12562 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12563 if test x
$host != x
$target
12565 CROSS
="-DCROSS_COMPILE"
12567 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12568 case "$host","$target" in
12569 # Darwin crosses can use the host system's libraries and headers,
12570 # because of the fat library support. Of course, it must be the
12571 # same version of Darwin on both sides. Allow the user to
12572 # just say --target=foo-darwin without a version number to mean
12573 # "the version on this system".
12574 *-*-darwin*,*-*-darwin*)
12575 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12576 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12577 if test $hostos = $targetos -o $targetos = darwin
; then
12579 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12584 i?
86-*-*,x86_64-
*-* \
12585 | powerpc
*-*-*,powerpc64
*-*-*)
12586 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12588 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12589 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12590 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12593 # If this is a cross-compiler that does not
12594 # have its own set of headers then define
12597 # If this is using newlib, without having the headers available now,
12598 # then define inhibit_libc in LIBGCC2_CFLAGS.
12599 # This prevents libgcc2 from containing any code which requires libc
12602 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12603 test x
$with_newlib = xyes
; } &&
12604 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12605 inhibit_libc
=-Dinhibit_libc
12609 # When building gcc with a cross-compiler, we need to adjust things so
12610 # that the generator programs are still built with the native compiler.
12611 # Also, we cannot run fixincludes or fix-header.
12613 # These are the normal (build=host) settings:
12614 CC_FOR_BUILD
='$(CC)'
12615 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12616 STMP_FIXINC
=stmp-fixinc
12618 # Possibly disable fixproto, on a per-target basis.
12619 case ${use_fixproto} in
12624 STMP_FIXPROTO
=stmp-fixproto
12629 # And these apply if build != host, or we are generating coverage data
12630 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12632 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12634 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12635 if test "x$STMP_FIXPROTO" != x
; then
12636 STMP_FIXPROTO
=stmp-install-fixproto
12641 # Expand extra_headers to include complete path.
12642 # This substitutes for lots of t-* files.
12643 extra_headers_list
=
12644 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12645 for file in ${extra_headers} ; do
12646 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12649 # Define collect2 in Makefile.
12650 case $host_can_use_collect2 in
12652 *) collect2
='collect2$(exeext)' ;;
12656 # Add a definition of USE_COLLECT2 if system wants one.
12657 case $use_collect2 in
12658 no
) use_collect2
= ;;
12661 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12662 xm_defines
="${xm_defines} USE_COLLECT2"
12663 case $host_can_use_collect2 in
12665 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12666 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12667 { (exit 1); exit 1; }; }
12673 # ---------------------------
12674 # Assembler & linker features
12675 # ---------------------------
12677 # Identify the assembler which will work hand-in-glove with the newly
12678 # built GCC, so that we can examine its features. This is the assembler
12679 # which will be driven by the driver program.
12681 # If build != host, and we aren't building gas in-tree, we identify a
12682 # build->target assembler and hope that it will have the same features
12683 # as the host->target assembler we'll be using.
12684 echo "$as_me:$LINENO: checking what assembler to use" >&5
12685 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12688 gcc_cv_gas_major_version
=
12689 gcc_cv_gas_minor_version
=
12690 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12691 if test -x "$DEFAULT_ASSEMBLER"; then
12692 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12693 elif test -x as
$build_exeext; then
12694 # Build using assembler in the current directory.
12695 gcc_cv_as
=.
/as
$build_exeext
12696 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12697 && test -f ..
/gas
/Makefile \
12698 && test x
$build = x
$host; then
12699 # Single tree build which includes gas. We want to prefer it
12700 # over whatever linker top-level may have detected, since
12701 # we'll use what we're building after installation anyway.
12703 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12704 for f
in $gcc_cv_as_bfd_srcdir/configure \
12705 $gcc_cv_as_gas_srcdir/configure \
12706 $gcc_cv_as_gas_srcdir/configure.
in \
12707 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12708 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12709 if test x
$gcc_cv_gas_version != x
; then
12713 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12714 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12715 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12716 case $gcc_cv_gas_patch_version in
12717 "") gcc_cv_gas_patch_version
="0" ;;
12719 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12720 + $gcc_cv_gas_minor_version \) \* 1000 \
12721 + $gcc_cv_gas_patch_version`
12723 rm -f as
$build_exeext
12724 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12725 in_tree_gas_is_elf
=no
12726 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12727 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12728 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12730 in_tree_gas_is_elf
=yes
12732 elif test -x "$AS_FOR_TARGET"; then
12733 gcc_cv_as
="$AS_FOR_TARGET"
12734 elif test -x "$AS" && test x
$host = x
$target; then
12738 gcc_version
=`cat $srcdir/BASE-VER`
12740 if test "x$gcc_cv_as" = x
; then
12741 # Search the same directories that the installed compiler will
12742 # search. Else we may find the wrong assembler and lose. If we
12743 # do not find a suitable assembler binary, then try the user's
12746 # Also note we have to check MD_EXEC_PREFIX before checking the
12747 # user's path. Unfortunately, there is no good way to get at the
12748 # value of MD_EXEC_PREFIX here. So we do a brute force search
12749 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12750 # to be fixed as part of the make/configure rewrite too.
12752 if test "x$exec_prefix" = xNONE
; then
12753 if test "x$prefix" = xNONE
; then
12754 test_prefix
=/usr
/local
12756 test_prefix
=$prefix
12759 test_prefix
=$exec_prefix
12762 # If the loop below does not find an assembler, then use whatever
12763 # one we can find in the users's path. We are looking for a
12764 # ${build} -> ${target} assembler.
12765 if test "x$program_prefix" != xNONE
; then
12766 gcc_cv_as
=${program_prefix}as
$build_exeext
12767 elif test x
$build != x
$host && test x
$build != x
$target; then
12768 gcc_cv_as
=${target_noncanonical}-as$build_exeext
12770 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12773 if test x
$host = x
$build; then
12774 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12775 $test_prefix/libexec/gcc/$target_noncanonical \
12776 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12777 /usr/lib/gcc/$target_noncanonical \
12778 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12779 $test_prefix/$target_noncanonical/bin"
12784 if test x
$build = x
$target; then
12785 test_dirs
="$test_dirs \
12790 /bsd43/usr/lib/cmplrs/cc \
12791 /usr/cross64/usr/bin \
12792 /usr/lib/cmplrs/cc \
12793 /sysv/usr/lib/cmplrs/cc \
12794 /svr4/usr/lib/cmplrs/cc \
12798 for dir
in $test_dirs; do
12799 if test -x $dir/as
$build_exeext; then
12800 gcc_cv_as
=$dir/as
$build_exeext
12805 case $in_tree_gas in
12807 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12808 echo "${ECHO_T}\"newly built gas\"" >&6
12811 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12812 echo "${ECHO_T}$gcc_cv_as" >&6
12816 # Identify the linker which will work hand-in-glove with the newly
12817 # built GCC, so that we can examine its features. This is the linker
12818 # which will be driven by the driver program.
12820 # If build != host, and we aren't building gas in-tree, we identify a
12821 # build->target linker and hope that it will have the same features
12822 # as the host->target linker we'll be using.
12823 echo "$as_me:$LINENO: checking what linker to use" >&5
12824 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12827 gcc_cv_gld_major_version
=
12828 gcc_cv_gld_minor_version
=
12829 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12830 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12831 if test -x "$DEFAULT_LINKER"; then
12832 gcc_cv_ld
="$DEFAULT_LINKER"
12833 elif test -x collect-ld
$build_exeext; then
12834 # Build using linker in the current directory.
12835 gcc_cv_ld
=.
/collect-ld
$build_exeext
12836 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12837 && test -f ..
/ld
/Makefile \
12838 && test x
$build = x
$host; then
12839 # Single tree build which includes ld. We want to prefer it
12840 # over whatever linker top-level may have detected, since
12841 # we'll use what we're building after installation anyway.
12843 in_tree_ld_is_elf
=no
12844 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12845 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12846 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12847 in_tree_ld_is_elf
=yes
12849 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
12851 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12852 if test x
$gcc_cv_gld_version != x
; then
12856 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12857 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12858 rm -f collect-ld
$build_exeext
12859 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12860 elif test -x "$LD_FOR_TARGET"; then
12861 gcc_cv_ld
="$LD_FOR_TARGET"
12862 elif test -x "$LD" && test x
$host = x
$target; then
12866 if test "x$gcc_cv_ld" = x
; then
12867 # Search the same directories that the installed compiler will
12868 # search. Else we may find the wrong linker and lose. If we
12869 # do not find a suitable linker binary, then try the user's
12872 # Also note we have to check MD_EXEC_PREFIX before checking the
12873 # user's path. Unfortunately, there is no good way to get at the
12874 # value of MD_EXEC_PREFIX here. So we do a brute force search
12875 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12876 # to be fixed as part of the make/configure rewrite too.
12878 if test "x$exec_prefix" = xNONE
; then
12879 if test "x$prefix" = xNONE
; then
12880 test_prefix
=/usr
/local
12882 test_prefix
=$prefix
12885 test_prefix
=$exec_prefix
12888 # If the loop below does not find a linker, then use whatever
12889 # one we can find in the users's path. We are looking for a
12890 # ${build} -> ${target} linker.
12891 if test "x$program_prefix" != xNONE
; then
12892 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12893 elif test x
$build != x
$host && test x
$build != x
$target; then
12894 gcc_cv_ld
=${target_noncanonical}-ld$build_exeext
12896 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
12899 if test x
$host = x
$build; then
12900 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12901 $test_prefix/libexec/gcc/$target_noncanonical \
12902 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12903 /usr/lib/gcc/$target_noncanonical \
12904 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12905 $test_prefix/$target_noncanonical/bin"
12910 if test x
$build = x
$target; then
12911 test_dirs
="$test_dirs \
12916 /bsd43/usr/lib/cmplrs/cc \
12917 /usr/cross64/usr/bin \
12918 /usr/lib/cmplrs/cc \
12919 /sysv/usr/lib/cmplrs/cc \
12920 /svr4/usr/lib/cmplrs/cc \
12924 for dir
in $test_dirs; do
12925 if test -x $dir/ld
$build_exeext; then
12926 gcc_cv_ld
=$dir/ld
$build_exeext
12931 case $in_tree_ld in
12933 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12934 echo "${ECHO_T}\"newly built ld\"" >&6
12937 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12938 echo "${ECHO_T}$gcc_cv_ld" >&6
12942 # Figure out what nm we will be using.
12943 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12944 echo "$as_me:$LINENO: checking what nm to use" >&5
12945 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12947 if test -x nm
$build_exeext; then
12948 gcc_cv_nm
=.
/nm
$build_exeext
12949 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12950 && test -f ..
/binutils
/Makefile
; then
12951 # Single tree build which includes binutils.
12953 gcc_cv_nm
=.
/nm
$build_exeext
12954 rm -f nm
$build_exeext
12955 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
12956 elif test "x$program_prefix" != xNONE
; then
12957 gcc_cv_nm
=${program_prefix}nm
$build_exeext
12958 elif test x
$build != x
$host && test x
$build != x
$target; then
12959 gcc_cv_nm
=${target_noncanonical}-nm$build_exeext
12961 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
12963 case $in_tree_nm in
12964 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12965 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12966 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12967 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12970 # Figure out what objdump we will be using.
12971 echo "$as_me:$LINENO: checking what objdump to use" >&5
12972 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12974 if test -x objdump
$build_exeext; then
12975 gcc_cv_objdump
=.
/objdump
$build_exeext
12976 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12977 && test -f ..
/binutils
/Makefile
; then
12978 # Single tree build which includes binutils.
12979 in_tree_objdump
=yes
12980 gcc_cv_objdump
=.
/objdump
$build_exeext
12981 rm -f objdump
$build_exeext
12982 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
12983 elif test "x$program_prefix" != xNONE
; then
12984 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
12985 elif test x
$build != x
$host && test x
$build != x
$target; then
12986 gcc_cv_objdump
=${target_noncanonical}-objdump$build_exeext
12988 gcc_cv_objdump
=`echo objdump | \
12989 sed "${program_transform_name}"`$build_exeext
12991 case $in_tree_objdump in
12992 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12993 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12994 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12995 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12998 # Figure out what assembler alignment features are present.
12999 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13000 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13001 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 gcc_cv_as_balign_and_p2align
=no
13005 if test $in_tree_gas = yes; then
13006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13007 then gcc_cv_as_balign_and_p2align
=yes
13009 elif test x
$gcc_cv_as != x
; then
13011 .p2align 2' > conftest.s
13012 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }
13019 gcc_cv_as_balign_and_p2align
=yes
13021 echo "configure: failed program was" >&5
13024 rm -f conftest.o conftest.s
13027 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13028 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13029 if test $gcc_cv_as_balign_and_p2align = yes; then
13031 cat >>confdefs.h
<<\_ACEOF
13032 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13037 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13038 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13039 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13042 gcc_cv_as_max_skip_p2align
=no
13043 if test $in_tree_gas = yes; then
13044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13045 then gcc_cv_as_max_skip_p2align
=yes
13047 elif test x
$gcc_cv_as != x
; then
13048 echo '.p2align 4,,7' > conftest.s
13049 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }
13056 gcc_cv_as_max_skip_p2align
=yes
13058 echo "configure: failed program was" >&5
13061 rm -f conftest.o conftest.s
13064 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13065 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13066 if test $gcc_cv_as_max_skip_p2align = yes; then
13068 cat >>confdefs.h
<<\_ACEOF
13069 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13074 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13075 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13076 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 gcc_cv_as_subsection_m1
=no
13080 if test $in_tree_gas = yes; then
13081 if test $in_tree_gas_is_elf = yes \
13082 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13083 then gcc_cv_as_subsection_m1
=yes
13085 elif test x
$gcc_cv_as != x
; then
13086 echo 'conftest_label1: .word 0
13088 conftest_label2: .word 0
13089 .previous' > conftest.s
13090 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092 (eval $ac_try) 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }
13097 if test x
$gcc_cv_nm != x
; then
13098 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13099 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13100 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13102 else gcc_cv_as_subsection_m1
=yes
13104 rm -f conftest.nm1 conftest.nm2
13107 echo "configure: failed program was" >&5
13110 rm -f conftest.o conftest.s
13113 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13114 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13115 if test $gcc_cv_as_subsection_m1 = yes; then
13117 cat >>confdefs.h
<<\_ACEOF
13118 #define HAVE_GAS_SUBSECTION_ORDERING 1
13123 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13124 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13125 if test "${gcc_cv_as_weak+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13129 if test $in_tree_gas = yes; then
13130 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13131 then gcc_cv_as_weak
=yes
13133 elif test x
$gcc_cv_as != x
; then
13134 echo ' .weak foobar' > conftest.s
13135 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }
13144 echo "configure: failed program was" >&5
13147 rm -f conftest.o conftest.s
13150 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13151 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13152 if test $gcc_cv_as_weak = yes; then
13154 cat >>confdefs.h
<<\_ACEOF
13155 #define HAVE_GAS_WEAK 1
13160 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13161 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13162 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 gcc_cv_as_nsubspa_comdat
=no
13166 if test $in_tree_gas = yes; then
13167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13168 then gcc_cv_as_nsubspa_comdat
=yes
13170 elif test x
$gcc_cv_as != x
; then
13171 echo ' .SPACE $TEXT$
13172 .NSUBSPA $CODE$,COMDAT' > conftest.s
13173 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }
13180 gcc_cv_as_nsubspa_comdat
=yes
13182 echo "configure: failed program was" >&5
13185 rm -f conftest.o conftest.s
13188 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13189 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13190 if test $gcc_cv_as_nsubspa_comdat = yes; then
13192 cat >>confdefs.h
<<\_ACEOF
13193 #define HAVE_GAS_NSUBSPA_COMDAT 1
13198 # .hidden needs to be supported in both the assembler and the linker,
13199 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13200 # This is irritatingly difficult to feature test for; we have to check the
13201 # date string after the version number. If we've got an in-tree
13202 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13204 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13205 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13206 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13207 if test "${gcc_cv_as_hidden+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 gcc_cv_as_hidden
=no
13211 if test $in_tree_gas = yes; then
13212 if test $in_tree_gas_is_elf = yes \
13213 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13214 then gcc_cv_as_hidden
=yes
13216 elif test x
$gcc_cv_as != x
; then
13217 echo ' .hidden foobar
13218 foobar:' > conftest.s
13219 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }
13226 gcc_cv_as_hidden
=yes
13228 echo "configure: failed program was" >&5
13231 rm -f conftest.o conftest.s
13234 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13235 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13238 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13239 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13240 if test "${gcc_cv_ld_hidden+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 if test $in_tree_ld = yes ; then
13244 gcc_cv_ld_hidden
=no
13245 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 \
13246 && test $in_tree_ld_is_elf = yes; then
13247 gcc_cv_ld_hidden
=yes
13250 gcc_cv_ld_hidden
=yes
13251 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13252 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13253 ld_vers
=`echo $ld_ver | sed -n \
13254 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13255 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13256 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13257 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13258 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13259 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13260 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13261 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'`
13262 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13263 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13264 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13265 if test 0"$ld_date" -lt 20020404; then
13266 if test -n "$ld_date"; then
13267 # If there was date string, but was earlier than 2002-04-04, fail
13268 gcc_cv_ld_hidden
=no
13269 elif test -z "$ld_vers"; then
13270 # If there was no date string nor ld version number, something is wrong
13271 gcc_cv_ld_hidden
=no
13273 test -z "$ld_vers_patch" && ld_vers_patch
=0
13274 if test "$ld_vers_major" -lt 2; then
13275 gcc_cv_ld_hidden
=no
13276 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13277 gcc_cv_ld_hidden
="no"
13278 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13279 gcc_cv_ld_hidden
=no
13284 case "${target}" in
13285 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13286 gcc_cv_ld_hidden
=yes
13289 gcc_cv_ld_hidden
=no
13295 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13296 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13297 libgcc_visibility
=no
13300 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13301 libgcc_visibility
=yes
13303 cat >>confdefs.h
<<\_ACEOF
13304 #define HAVE_GAS_HIDDEN 1
13309 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13310 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13311 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13312 if test "${gcc_cv_as_leb128+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 gcc_cv_as_leb128
=no
13316 if test $in_tree_gas = yes; then
13317 if test $in_tree_gas_is_elf = yes \
13318 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13319 then gcc_cv_as_leb128
=yes
13321 elif test x
$gcc_cv_as != x
; then
13328 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }
13335 # GAS versions before 2.11 do not support uleb128,
13336 # despite appearing to.
13337 # ??? There exists an elf-specific test that will crash
13338 # the assembler. Perhaps it's better to figure out whether
13339 # arbitrary sections are supported and try the test.
13340 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13341 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13342 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13343 as_major
=`echo $as_ver | sed 's/\..*//'`
13344 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13345 if test $as_major -eq 2 && test $as_minor -lt 11
13347 else gcc_cv_as_leb128
=yes
13351 echo "configure: failed program was" >&5
13354 rm -f conftest.o conftest.s
13357 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13358 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13359 if test $gcc_cv_as_leb128 = yes; then
13361 cat >>confdefs.h
<<\_ACEOF
13362 #define HAVE_AS_LEB128 1
13367 # GAS versions up to and including 2.11.0 may mis-optimize
13369 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13370 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13371 if test "${gcc_cv_as_eh_frame+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 gcc_cv_as_eh_frame
=no
13375 if test $in_tree_gas = yes; then
13376 if test $in_tree_gas_is_elf = yes \
13377 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13378 then gcc_cv_as_eh_frame
=yes
13380 elif test x
$gcc_cv_as != x
; then
13387 .section .eh_frame,"aw",@progbits
13389 .4byte .LECIE1-.LSCIE1
13403 .4byte .LEFDE1-.LASFDE1
13405 .4byte .LASFDE1-__FRAME_BEGIN__
13412 .LEFDE1:' > conftest.s
13413 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }
13420 cat > conftest.lit
<<EOF
13421 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13422 0010 01000000 12000000 18000000 00000000 ................
13423 0020 08000000 04080000 0044 .........D
13425 cat > conftest.big
<<EOF
13426 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13427 0010 00000001 00000012 00000018 00000000 ................
13428 0020 00000008 04000000 0844 .........D
13430 # If the assembler didn't choke, and we can objdump,
13431 # and we got the correct data, then succeed.
13432 if test x
$gcc_cv_objdump != x \
13433 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13434 |
tail -3 > conftest.got \
13435 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13436 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13438 gcc_cv_as_eh_frame
=yes
13439 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 gcc_cv_as_eh_frame
=buggy
13447 # Uh oh, what do we do now?
13448 gcc_cv_as_eh_frame
=no
13451 echo "configure: failed program was" >&5
13454 rm -f conftest.o conftest.s
13457 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13458 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13461 if test $gcc_cv_as_eh_frame = buggy
; then
13463 cat >>confdefs.h
<<\_ACEOF
13464 #define USE_AS_TRADITIONAL_FORMAT 1
13469 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13470 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13471 if test "${gcc_cv_as_shf_merge+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 gcc_cv_as_shf_merge
=no
13475 if test $in_tree_gas = yes; then
13476 if test $in_tree_gas_is_elf = yes \
13477 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13478 then gcc_cv_as_shf_merge
=yes
13480 elif test x
$gcc_cv_as != x
; then
13481 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13482 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }
13489 gcc_cv_as_shf_merge
=yes
13491 echo "configure: failed program was" >&5
13494 rm -f conftest.o conftest.s
13497 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13498 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13500 if test $gcc_cv_as_shf_merge = no
; then
13501 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13502 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13503 if test "${gcc_cv_as_shf_merge+set}" = set; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 gcc_cv_as_shf_merge
=no
13507 if test $in_tree_gas = yes; then
13508 if test $in_tree_gas_is_elf = yes \
13509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13510 then gcc_cv_as_shf_merge
=yes
13512 elif test x
$gcc_cv_as != x
; then
13513 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13514 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }
13521 gcc_cv_as_shf_merge
=yes
13523 echo "configure: failed program was" >&5
13526 rm -f conftest.o conftest.s
13529 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13530 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13534 cat >>confdefs.h
<<_ACEOF
13535 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13539 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13540 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13541 if test "${gcc_cv_as_comdat_group+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 gcc_cv_as_comdat_group
=no
13545 if test $in_tree_gas = yes; then
13546 if test $in_tree_gas_is_elf = yes \
13547 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13548 then gcc_cv_as_comdat_group
=yes
13550 elif test x
$gcc_cv_as != x
; then
13551 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13552 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }
13559 gcc_cv_as_comdat_group
=yes
13561 echo "configure: failed program was" >&5
13564 rm -f conftest.o conftest.s
13567 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13568 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13570 if test $gcc_cv_as_comdat_group = yes; then
13571 gcc_cv_as_comdat_group_percent
=no
13573 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13574 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13575 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 gcc_cv_as_comdat_group_percent
=no
13579 if test $in_tree_gas = yes; then
13580 if test $in_tree_gas_is_elf = yes \
13581 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13582 then gcc_cv_as_comdat_group_percent
=yes
13584 elif test x
$gcc_cv_as != x
; then
13585 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13586 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }
13593 gcc_cv_as_comdat_group_percent
=yes
13595 echo "configure: failed program was" >&5
13598 rm -f conftest.o conftest.s
13601 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13602 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13605 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
13607 if test 0"$ld_date" -lt 20050308; then
13608 if test -n "$ld_date"; then
13609 # If there was date string, but was earlier than 2005-03-08, fail
13611 elif test "$ld_vers_major" -lt 2; then
13613 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13617 if test $comdat_group = no
; then
13618 gcc_cv_as_comdat_group
=no
13619 gcc_cv_as_comdat_group_percent
=no
13623 cat >>confdefs.h
<<_ACEOF
13624 #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`
13628 # Thread-local storage - the check is heavily parametrized.
13636 .section ".tdata","awT",@progbits
13639 ldq $27,__tls_get_addr($29) !literal!1
13640 lda $16,foo($29) !tlsgd!1
13641 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13642 ldq $27,__tls_get_addr($29) !literal!2
13643 lda $16,foo($29) !tlsldm!2
13644 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13645 ldq $1,foo($29) !gotdtprel
13646 ldah $2,foo($29) !dtprelhi
13647 lda $3,foo($2) !dtprello
13648 lda $4,foo($29) !dtprel
13649 ldq $1,foo($29) !gottprel
13650 ldah $2,foo($29) !tprelhi
13651 lda $3,foo($2) !tprello
13652 lda $4,foo($29) !tprel'
13655 tls_as_opt
=--fatal-warnings
13659 .section ".tdata","awT",@progbits
13662 call #gettlsoff(x)'
13668 .section ".tdata","awT",@progbits
13672 leal foo@TLSGD(,%ebx,1), %eax
13673 leal foo@TLSLDM(%ebx), %eax
13674 leal foo@DTPOFF(%eax), %edx
13675 movl foo@GOTTPOFF(%ebx), %eax
13676 subl foo@GOTTPOFF(%ebx), %eax
13677 addl foo@GOTNTPOFF(%ebx), %eax
13678 movl foo@INDNTPOFF, %eax
13679 movl $foo@TPOFF, %eax
13680 subl $foo@TPOFF, %eax
13681 leal foo@NTPOFF(%ecx), %eax'
13684 tls_as_opt
=--fatal-warnings
13688 .section ".tdata","awT",@progbits
13692 leaq foo@TLSGD(%rip), %rdi
13693 leaq foo@TLSLD(%rip), %rdi
13694 leaq foo@DTPOFF(%rax), %rdx
13695 movq foo@GOTTPOFF(%rip), %rax
13696 movq $foo@TPOFF, %rax'
13699 tls_as_opt
=--fatal-warnings
13703 .section ".tdata","awT",@progbits
13706 addl r16 = @ltoff(@dtpmod(foo#)), gp
13707 addl r17 = @ltoff(@dtprel(foo#)), gp
13708 addl r18 = @ltoff(@tprel(foo#)), gp
13709 addl r19 = @dtprel(foo#), gp
13710 adds r21 = @dtprel(foo#), r13
13711 movl r23 = @dtprel(foo#)
13712 addl r20 = @tprel(foo#), gp
13713 adds r22 = @tprel(foo#), r13
13714 movl r24 = @tprel(foo#)'
13717 tls_as_opt
=--fatal-warnings
13721 .section .tdata,"awT",@progbits
13725 addiu $4, $28, %tlsgd(x)
13726 addiu $4, $28, %tlsldm(x)
13727 lui $4, %dtprel_hi(x)
13728 addiu $4, $4, %dtprel_lo(x)
13729 lw $4, %gottprel(x)($28)
13730 lui $4, %tprel_hi(x)
13731 addiu $4, $4, %tprel_lo(x)'
13734 tls_as_opt
='-32 --fatal-warnings'
13738 .section ".tdata","awT",@progbits
13746 addi 3,31,ld0@got@tlsgd
13748 addi 3,31,x1@got@tlsld
13751 addis 9,3,x2@dtprel@ha
13752 addi 9,9,x2@dtprel@l
13753 lwz 9,x3@got@tprel(31)
13756 addis 9,2,x2@tprel@ha
13757 addi 9,9,x2@tprel@l'
13760 tls_as_opt
="-a32 --fatal-warnings"
13764 .section ".tdata","awT",@progbits
13772 addi 3,2,ld0@got@tlsgd
13778 addi 3,2,x1@got@tlsld
13784 addis 9,3,x2@dtprel@ha
13785 addi 9,9,x2@dtprel@l
13788 ld 9,x3@got@dtprel(2)
13794 tls_as_opt
="-a64 --fatal-warnings"
13798 .section ".tdata","awT",@progbits
13805 .long foo@GOTNTPOFF
13806 .long foo@INDNTPOFF
13807 l %r1,foo@GOTNTPOFF(%r12)
13808 l %r1,0(%r1):tls_load:foo
13809 bas %r14,0(%r1,%r13):tls_gdcall:foo
13810 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13813 tls_as_opt
="-m31 --fatal-warnings"
13817 .section ".tdata","awT",@progbits
13824 .quad foo@GOTNTPOFF
13825 lg %r1,foo@GOTNTPOFF(%r12)
13826 larl %r1,foo@INDNTPOFF
13827 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13828 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13831 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13833 sh-
*-* | sh
[34]-*-*)
13835 .section ".tdata","awT",@progbits
13845 tls_as_opt
=--fatal-warnings
13849 sparc
*-sun-solaris2.
*)
13856 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13858 .section ".tdata",#alloc,#write,#tls
13861 sethi %tgd_hi22(foo), %o0
13862 add %o0, %tgd_lo10(foo), %o1
13863 add %l7, %o1, %o0, %tgd_add(foo)
13864 call __tls_get_addr, %tgd_call(foo)
13865 sethi %tldm_hi22(foo), %l1
13866 add %l1, %tldm_lo10(foo), %l2
13867 add %l7, %l2, %o0, %tldm_add(foo)
13868 call __tls_get_addr, %tldm_call(foo)
13869 sethi %tldo_hix22(foo), %l3
13870 xor %l3, %tldo_lox10(foo), %l4
13871 add %o0, %l4, %l5, %tldo_add(foo)
13872 sethi %tie_hi22(foo), %o3
13873 add %o3, %tie_lo10(foo), %o3
13874 ld [%l7 + %o3], %o2, %tie_ld(foo)
13875 add %g7, %o2, %o4, %tie_add(foo)
13876 sethi %tle_hix22(foo), %l1
13877 xor %l1, %tle_lox10(foo), %o5
13878 ld [%g7 + %o5], %o1'
13883 .section ".tdata","awT",@progbits
13886 sethi %tgd_hi22(foo), %o0
13887 add %o0, %tgd_lo10(foo), %o1
13888 add %l7, %o1, %o0, %tgd_add(foo)
13889 call __tls_get_addr, %tgd_call(foo)
13890 sethi %tldm_hi22(foo), %l1
13891 add %l1, %tldm_lo10(foo), %l2
13892 add %l7, %l2, %o0, %tldm_add(foo)
13893 call __tls_get_addr, %tldm_call(foo)
13894 sethi %tldo_hix22(foo), %l3
13895 xor %l3, %tldo_lox10(foo), %l4
13896 add %o0, %l4, %l5, %tldo_add(foo)
13897 sethi %tie_hi22(foo), %o3
13898 add %o3, %tie_lo10(foo), %o3
13899 ld [%l7 + %o3], %o2, %tie_ld(foo)
13900 add %g7, %o2, %o4, %tie_add(foo)
13901 sethi %tle_hix22(foo), %l1
13902 xor %l1, %tle_lox10(foo), %o5
13903 ld [%g7 + %o5], %o1'
13906 tls_as_opt
="-32 --fatal-warnings"
13910 if test -z "$tls_first_major"; then
13911 : # If we don't have a check, assume no support.
13913 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13914 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13915 if test "${gcc_cv_as_tls+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 if test $in_tree_gas = yes; then
13920 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13921 then gcc_cv_as_tls
=yes
13923 elif test x
$gcc_cv_as != x
; then
13924 echo "$conftest_s" > conftest.s
13925 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }
13934 echo "configure: failed program was" >&5
13937 rm -f conftest.o conftest.s
13940 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13941 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13942 if test $gcc_cv_as_tls = yes; then
13944 cat >>confdefs.h
<<\_ACEOF
13945 #define HAVE_AS_TLS 1
13951 # Target-specific assembler checks.
13953 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13954 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13955 gcc_cv_ld_static_dynamic
=no
13956 if test $in_tree_ld = yes ; then
13957 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13958 gcc_cv_ld_static_dynamic
=yes
13960 elif test x
$gcc_cv_ld != x
; then
13961 # Check if linker supports -Bstatic/-Bdynamic option
13962 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
13963 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
13964 gcc_cv_ld_static_dynamic
=yes
13967 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
13969 cat >>confdefs.h
<<\_ACEOF
13970 #define HAVE_LD_STATIC_DYNAMIC 1
13974 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13975 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13977 if test x
"$demangler_in_ld" = xyes
; then
13978 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13979 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13980 gcc_cv_ld_demangle
=no
13981 if test $in_tree_ld = yes; then
13982 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 \
13983 gcc_cv_ld_demangle
=yes
13985 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
13986 # Check if the GNU linker supports --demangle option
13987 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
13988 gcc_cv_ld_demangle
=yes
13991 if test x
"$gcc_cv_ld_demangle" = xyes
; then
13993 cat >>confdefs.h
<<\_ACEOF
13994 #define HAVE_LD_DEMANGLE 1
13998 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13999 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14003 # All TARGET_ABI_OSF targets.
14004 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14005 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14006 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14007 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 gcc_cv_as_alpha_explicit_relocs
=no
14011 if test $in_tree_gas = yes; then
14012 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14013 then gcc_cv_as_alpha_explicit_relocs
=yes
14015 elif test x
$gcc_cv_as != x
; then
14016 echo ' .set nomacro
14018 extbl $3, $2, $3 !lituse_bytoff!1
14019 ldq $2, a($29) !literal!1
14020 ldq $4, b($29) !literal!2
14021 ldq_u $3, 0($2) !lituse_base!1
14022 ldq $27, f($29) !literal!5
14023 jsr $26, ($27), f !lituse_jsr!5
14024 ldah $29, 0($26) !gpdisp!3
14025 lda $0, c($29) !gprel
14026 ldah $1, d($29) !gprelhigh
14027 lda $1, d($1) !gprellow
14028 lda $29, 0($29) !gpdisp!3' > conftest.s
14029 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }
14036 gcc_cv_as_alpha_explicit_relocs
=yes
14038 echo "configure: failed program was" >&5
14041 rm -f conftest.o conftest.s
14044 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14045 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14046 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14048 cat >>confdefs.h
<<\_ACEOF
14049 #define HAVE_AS_EXPLICIT_RELOCS 1
14056 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14057 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14058 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 gcc_cv_as_cris_no_mul_bug
=no
14062 if test $in_tree_gas = yes; then
14063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14064 then gcc_cv_as_cris_no_mul_bug
=yes
14066 elif test x
$gcc_cv_as != x
; then
14067 echo '.text' > conftest.s
14068 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }
14075 gcc_cv_as_cris_no_mul_bug
=yes
14077 echo "configure: failed program was" >&5
14080 rm -f conftest.o conftest.s
14083 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14084 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14085 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14087 cat >>confdefs.h
<<\_ACEOF
14088 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14095 echo "$as_me:$LINENO: checking assembler for .register" >&5
14096 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14097 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 gcc_cv_as_sparc_register_op
=no
14101 if test x
$gcc_cv_as != x
; then
14102 echo '.register %g2, #scratch' > 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 gcc_cv_as_sparc_register_op
=yes
14112 echo "configure: failed program was" >&5
14115 rm -f conftest.o conftest.s
14118 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14119 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14120 if test $gcc_cv_as_sparc_register_op = yes; then
14122 cat >>confdefs.h
<<\_ACEOF
14123 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14128 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14129 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14130 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 gcc_cv_as_sparc_relax
=no
14134 if test x
$gcc_cv_as != x
; then
14135 echo '.text' > conftest.s
14136 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }
14143 gcc_cv_as_sparc_relax
=yes
14145 echo "configure: failed program was" >&5
14148 rm -f conftest.o conftest.s
14151 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14152 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14153 if test $gcc_cv_as_sparc_relax = yes; then
14155 cat >>confdefs.h
<<\_ACEOF
14156 #define HAVE_AS_RELAX_OPTION 1
14161 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14162 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14163 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 gcc_cv_as_sparc_ua_pcrel
=no
14167 if test x
$gcc_cv_as != x
; then
14174 .uaword %r_disp32(foo)' > conftest.s
14175 if { ac_try
='$gcc_cv_as -K PIC -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 if test x
$gcc_cv_ld != x \
14183 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14184 gcc_cv_as_sparc_ua_pcrel
=yes
14188 echo "configure: failed program was" >&5
14191 rm -f conftest.o conftest.s
14194 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14195 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14196 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14198 cat >>confdefs.h
<<\_ACEOF
14199 #define HAVE_AS_SPARC_UA_PCREL 1
14203 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14204 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14205 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14209 if test x
$gcc_cv_as != x
; then
14213 .uaword %r_disp32(foo)
14214 .byte 0x32, 0x33, 0x34
14218 .skip 4' > conftest.s
14219 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }
14226 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14227 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14228 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14229 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14230 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14231 |
grep 'DISP32' > /dev
/null
2>&1; then
14234 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14239 echo "configure: failed program was" >&5
14242 rm -f conftest.o conftest.s
14245 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14246 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14247 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14249 cat >>confdefs.h
<<\_ACEOF
14250 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14255 fi # unaligned pcrel relocs
14257 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14258 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14259 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 gcc_cv_as_sparc_offsetable_lo10
=no
14263 if test x
$gcc_cv_as != x
; then
14265 or %g1, %lo(ab) + 12, %g1
14266 or %g1, %lo(ab + 12), %g1' > conftest.s
14267 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }
14274 if test x
$gcc_cv_objdump != x \
14275 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14276 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14277 gcc_cv_as_sparc_offsetable_lo10
=yes
14280 echo "configure: failed program was" >&5
14283 rm -f conftest.o conftest.s
14286 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14287 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14288 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14290 cat >>confdefs.h
<<\_ACEOF
14291 #define HAVE_AS_OFFSETABLE_LO10 1
14297 i
[34567]86-*-* | x86_64-
*-*)
14299 cygwin
* | pe | mingw32
*)
14300 # Used for DWARF 2 in PE
14301 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14302 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14303 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 gcc_cv_as_ix86_pe_secrel32
=no
14307 if test $in_tree_gas = yes; then
14308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14309 then gcc_cv_as_ix86_pe_secrel32
=yes
14311 elif test x
$gcc_cv_as != x
; then
14315 .secrel32 foo' > conftest.s
14316 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; }
14323 if test x
$gcc_cv_ld != x \
14324 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14325 gcc_cv_as_ix86_pe_secrel32
=yes
14329 echo "configure: failed program was" >&5
14332 rm -f conftest.o conftest.s
14335 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14336 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14337 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14339 cat >>confdefs.h
<<\_ACEOF
14340 #define HAVE_GAS_PE_SECREL32_RELOC 1
14347 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14348 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14349 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 gcc_cv_as_ix86_filds_fists
=no
14353 if test $in_tree_gas = yes; then
14354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14355 then gcc_cv_as_ix86_filds_fists
=yes
14357 elif test x
$gcc_cv_as != x
; then
14358 echo 'filds mem; fists mem' > conftest.s
14359 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }
14366 gcc_cv_as_ix86_filds_fists
=yes
14368 echo "configure: failed program was" >&5
14371 rm -f conftest.o conftest.s
14374 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14375 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14376 if test $gcc_cv_as_ix86_filds_fists = yes; then
14378 cat >>confdefs.h
<<\_ACEOF
14379 #define HAVE_GAS_FILDS_FISTS 1
14384 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14385 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14386 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 gcc_cv_as_ix86_cmov_sun_syntax
=no
14390 if test x
$gcc_cv_as != x
; then
14391 echo 'cmovl.l %edx, %eax' > conftest.s
14392 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }
14399 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14401 echo "configure: failed program was" >&5
14404 rm -f conftest.o conftest.s
14407 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14408 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14409 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14411 cat >>confdefs.h
<<\_ACEOF
14412 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14417 # This one is used unconditionally by i386.[ch]; it is to be defined
14418 # to 1 if the feature is present, 0 otherwise.
14419 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14420 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14421 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 gcc_cv_as_ix86_gotoff_in_data
=no
14425 if test $in_tree_gas = yes; then
14426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14427 then gcc_cv_as_ix86_gotoff_in_data
=yes
14429 elif test x
$gcc_cv_as != x
; then
14434 .long .L0@GOTOFF' > conftest.s
14435 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }
14442 gcc_cv_as_ix86_gotoff_in_data
=yes
14444 echo "configure: failed program was" >&5
14447 rm -f conftest.o conftest.s
14450 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14451 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14454 cat >>confdefs.h
<<_ACEOF
14455 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14461 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14462 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14463 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14467 if test $in_tree_gas = yes; then
14468 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14469 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14471 elif test x
$gcc_cv_as != x
; then
14473 addl r15 = @ltoffx(x#), gp
14475 ld8.mov r16 = [r15], x#' > conftest.s
14476 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }
14483 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14485 echo "configure: failed program was" >&5
14488 rm -f conftest.o conftest.s
14491 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14492 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14493 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14495 cat >>confdefs.h
<<\_ACEOF
14496 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14505 *-*-aix*) conftest_s
=' .machine "pwr5"
14509 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14510 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14511 if test "${gcc_cv_as_machine_directive+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 gcc_cv_as_machine_directive
=no
14515 if test x
$gcc_cv_as != x
; then
14516 echo ' .machine ppc7400' > conftest.s
14517 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }
14524 gcc_cv_as_machine_directive
=yes
14526 echo "configure: failed program was" >&5
14529 rm -f conftest.o conftest.s
14532 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14533 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14535 if test x
$gcc_cv_as_machine_directive != xyes
; then
14536 echo "*** This target requires an assembler supporting \".machine\"" >&2
14537 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14538 test x
$build = x
$target && exit 1
14542 *) conftest_s
=' .machine power4
14547 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14548 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14549 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 gcc_cv_as_powerpc_mfcrf
=no
14553 if test $in_tree_gas = yes; then
14554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14555 then gcc_cv_as_powerpc_mfcrf
=yes
14557 elif test x
$gcc_cv_as != x
; then
14558 echo "$conftest_s" > conftest.s
14559 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }
14566 gcc_cv_as_powerpc_mfcrf
=yes
14568 echo "configure: failed program was" >&5
14571 rm -f conftest.o conftest.s
14574 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14575 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14576 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14578 cat >>confdefs.h
<<\_ACEOF
14579 #define HAVE_AS_MFCRF 1
14585 *-*-aix*) conftest_s
=' .machine "pwr5"
14588 *) conftest_s
=' .machine power5
14593 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
14594 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
14595 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 gcc_cv_as_powerpc_popcntb
=no
14599 if test $in_tree_gas = yes; then
14600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14601 then gcc_cv_as_powerpc_popcntb
=yes
14603 elif test x
$gcc_cv_as != x
; then
14604 echo "$conftest_s" > conftest.s
14605 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }
14612 gcc_cv_as_powerpc_popcntb
=yes
14614 echo "configure: failed program was" >&5
14617 rm -f conftest.o conftest.s
14620 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
14621 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
14622 if test $gcc_cv_as_powerpc_popcntb = yes; then
14624 cat >>confdefs.h
<<\_ACEOF
14625 #define HAVE_AS_POPCNTB 1
14633 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14634 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14635 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 gcc_cv_as_mips_explicit_relocs
=no
14639 if test $in_tree_gas = yes; then
14640 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14641 then gcc_cv_as_mips_explicit_relocs
=yes
14643 elif test x
$gcc_cv_as != x
; then
14644 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14645 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }
14652 gcc_cv_as_mips_explicit_relocs
=yes
14654 echo "configure: failed program was" >&5
14657 rm -f conftest.o conftest.s
14660 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14661 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14662 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14663 if test x
$target_cpu_default = x
14664 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14665 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14669 if test x
$gas_flag = xyes \
14670 ||
test x
"$host" != x
"$build" \
14671 ||
test ! -x "$gcc_cv_as" \
14672 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14675 echo "*** This configuration requires the GNU assembler" >&2
14680 # ??? Not all targets support dwarf2 debug_line, even within a version
14681 # of gas. Moreover, we need to emit a valid instruction to trigger any
14682 # info to the output file. So, as supported targets are added to gas 2.11,
14683 # add some instruction here to (also) show we expect this might work.
14684 # ??? Once 2.11 is released, probably need to add first known working
14685 # version to the per-target configury.
14687 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14688 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14689 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14692 ia64
*-*-* | s390
*-*-*)
14699 if test x
"$insn" != x
; then
14701 .file 1 \"conftest.s\"
14704 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14705 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14706 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14709 gcc_cv_as_dwarf2_debug_line
=no
14710 if test $in_tree_gas = yes; then
14711 if test $in_tree_gas_is_elf = yes \
14712 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14713 then gcc_cv_as_dwarf2_debug_line
=yes
14715 elif test x
$gcc_cv_as != x
; then
14716 echo "$conftest_s" > conftest.s
14717 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }
14724 if test x
$gcc_cv_objdump != x \
14725 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14726 |
grep debug_line
> /dev
/null
2>&1; then
14727 gcc_cv_as_dwarf2_debug_line
=yes
14730 echo "configure: failed program was" >&5
14733 rm -f conftest.o conftest.s
14736 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14737 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14740 # The .debug_line file table must be in the exact order that
14741 # we specified the files, since these indices are also used
14742 # by DW_AT_decl_file. Approximate this test by testing if
14743 # the assembler bitches if the same index is assigned twice.
14744 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14745 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14746 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 gcc_cv_as_dwarf2_file_buggy
=no
14750 if test x
$gcc_cv_as != x
; then
14751 echo ' .file 1 "foo.s"
14752 .file 1 "bar.s"' > conftest.s
14753 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }
14760 gcc_cv_as_dwarf2_file_buggy
=yes
14762 echo "configure: failed program was" >&5
14765 rm -f conftest.o conftest.s
14768 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14769 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14772 if test $gcc_cv_as_dwarf2_debug_line = yes \
14773 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14775 cat >>confdefs.h
<<\_ACEOF
14776 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14781 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14782 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14783 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 gcc_cv_as_gdwarf2_flag
=no
14787 if test $in_tree_gas = yes; then
14788 if test $in_tree_gas_is_elf = yes \
14789 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14790 then gcc_cv_as_gdwarf2_flag
=yes
14792 elif test x
$gcc_cv_as != x
; then
14793 echo "$insn" > conftest.s
14794 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }
14801 gcc_cv_as_gdwarf2_flag
=yes
14803 echo "configure: failed program was" >&5
14806 rm -f conftest.o conftest.s
14809 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14810 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14811 if test $gcc_cv_as_gdwarf2_flag = yes; then
14813 cat >>confdefs.h
<<\_ACEOF
14814 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14819 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14820 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14821 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 gcc_cv_as_gstabs_flag
=no
14825 if test $in_tree_gas = yes; then
14826 if test $in_tree_gas_is_elf = yes \
14827 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14828 then gcc_cv_as_gstabs_flag
=yes
14830 elif test x
$gcc_cv_as != x
; then
14831 echo "$insn" > conftest.s
14832 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }
14839 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14840 # and warns about it, but still exits successfully. So check for
14842 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }
14849 else gcc_cv_as_gstabs_flag
=yes
14852 echo "configure: failed program was" >&5
14855 rm -f conftest.o conftest.s
14858 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14859 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14860 if test $gcc_cv_as_gstabs_flag = yes; then
14862 cat >>confdefs.h
<<\_ACEOF
14863 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14869 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14870 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14871 gcc_cv_ld_ro_rw_mix
=unknown
14872 if test $in_tree_ld = yes ; then
14873 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 \
14874 && test $in_tree_ld_is_elf = yes; then
14875 gcc_cv_ld_ro_rw_mix
=read-write
14877 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14878 echo '.section myfoosect, "a"' > conftest1.s
14879 echo '.section myfoosect, "aw"' > conftest2.s
14880 echo '.byte 1' >> conftest2.s
14881 echo '.section myfoosect, "a"' > conftest3.s
14882 echo '.byte 0' >> conftest3.s
14883 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14884 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14885 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14886 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14887 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14888 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14889 | sed -e '/myfoosect/!d' -e N`
14890 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14891 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14892 gcc_cv_ld_ro_rw_mix
=read-only
14894 gcc_cv_ld_ro_rw_mix
=read-write
14898 rm -f conftest.
* conftest
[123].
*
14900 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
14902 cat >>confdefs.h
<<\_ACEOF
14903 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14907 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14908 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14910 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14911 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14912 gcc_cv_ld_eh_frame_hdr
=no
14913 if test $in_tree_ld = yes ; then
14914 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 \
14915 && test $in_tree_ld_is_elf = yes; then
14916 gcc_cv_ld_eh_frame_hdr
=yes
14918 elif test x
$gcc_cv_ld != x
; then
14919 # Check if linker supports --eh-frame-hdr option
14920 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
14921 gcc_cv_ld_eh_frame_hdr
=yes
14925 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
14927 cat >>confdefs.h
<<\_ACEOF
14928 #define HAVE_LD_EH_FRAME_HDR 1
14932 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14933 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14935 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14936 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14938 if test $in_tree_ld = yes ; then
14939 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 \
14940 && test $in_tree_ld_is_elf = yes; then
14943 elif test x
$gcc_cv_ld != x
; then
14944 # Check if linker supports -pie option
14945 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
14949 if test x
"$gcc_cv_ld_pie" = xyes
; then
14951 cat >>confdefs.h
<<\_ACEOF
14952 #define HAVE_LD_PIE 1
14956 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14957 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14963 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14964 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14965 if test "${gcc_cv_ld_as_needed+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 gcc_cv_ld_as_needed
=no
14969 if test $in_tree_ld = yes ; then
14970 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 \
14971 && test $in_tree_ld_is_elf = yes; then
14972 gcc_cv_ld_as_needed
=yes
14974 elif test x
$gcc_cv_ld != x
; then
14975 # Check if linker supports --as-needed and --no-as-needed options
14976 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
14977 gcc_cv_ld_as_needed
=yes
14982 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14983 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14984 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
14986 cat >>confdefs.h
<<\_ACEOF
14987 #define HAVE_LD_AS_NEEDED 1
14993 powerpc64
*-*-linux*)
14994 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14995 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14996 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 gcc_cv_ld_no_dot_syms
=no
15000 if test $in_tree_ld = yes ; then
15001 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
15002 gcc_cv_ld_no_dot_syms
=yes
15004 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15005 cat > conftest1.s
<<EOF
15009 cat > conftest2.s
<<EOF
15010 .section ".opd","aw"
15013 .type foo,@function
15015 .quad .LEfoo,.TOC.@tocbase,0
15021 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15022 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15023 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15024 gcc_cv_ld_no_dot_syms
=yes
15026 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15030 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15031 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15032 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15034 cat >>confdefs.h
<<\_ACEOF
15035 #define HAVE_LD_NO_DOT_SYMS 1
15042 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15043 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15044 if test "${gcc_cv_ld_sysroot+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 gcc_cv_ld_sysroot
=no
15048 if test $in_tree_ld = yes ; then
15049 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
15050 gcc_cv_ld_sysroot
= yes
15052 elif test x
$gcc_cv_ld != x
; then
15053 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
15054 gcc_cv_ld_sysroot
=yes
15058 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15059 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15060 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
15062 cat >>confdefs.h
<<\_ACEOF
15063 #define HAVE_LD_SYSROOT 1
15068 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15069 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15071 cat >>confdefs.h
<<_ACEOF
15072 #define PREFIX_INCLUDE_DIR "$prefix/include"
15077 # Find out what GC implementation we want, or may, use.
15079 # Check whether --with-gc or --without-gc was given.
15080 if test "${with_gc+set}" = set; then
15089 cat >>confdefs.h
<<\_ACEOF
15095 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15096 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15097 { (exit 1); exit 1; }; }
15104 echo "Using $GGC for garbage collection."
15106 # Use the system's zlib library.
15108 zlibinc
="-I\$(srcdir)/../zlib"
15110 # Check whether --with-system-zlib or --without-system-zlib was given.
15111 if test "${with_system_zlib+set}" = set; then
15112 withval
="$with_system_zlib"
15121 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15122 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15123 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15124 if test "${enable_maintainer_mode+set}" = set; then
15125 enableval
="$enable_maintainer_mode"
15126 maintainer_mode
=$enableval
15131 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15132 echo "${ECHO_T}$maintainer_mode" >&6
15134 if test "$maintainer_mode" = "yes"; then
15144 # Make empty files to contain the specs and options for each language.
15145 # Then add #include lines to for a compiler that has specs and/or options.
15150 for subdir
in .
$subdirs
15152 if test -f $srcdir/$subdir/lang.opt
; then
15153 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15155 if test -f $srcdir/$subdir/lang-specs.h
; then
15156 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15158 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15159 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15163 # These (without "all_") are set in each config-lang.in.
15164 # `language' must be a single word so is spelled singularly.
15166 all_boot_languages
=
15169 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15170 # List of language makefile fragments.
15171 all_lang_makefrags
=
15172 # List of language subdirectory makefiles. Deprecated.
15173 all_lang_makefiles
=
15174 # Files for gengtype
15175 all_gtfiles
="$target_gtfiles"
15176 # Files for gengtype with language
15177 all_gtfiles_files_langs
=
15178 all_gtfiles_files_files
=
15180 # Add the language fragments.
15181 # Languages are added via two mechanisms. Some information must be
15182 # recorded in makefile variables, these are defined in config-lang.in.
15183 # We accumulate them and plug them into the main Makefile.
15184 # The other mechanism is a set of hooks for each of the main targets
15185 # like `clean', `install', etc.
15187 language_hooks
="Make-hooks"
15197 .
${srcdir}/$s/config-lang.
in
15198 if test "x$language" = x
15200 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15203 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15204 if test -f ${srcdir}/$s/Makefile.
in
15205 then all_lang_makefiles
="$s/Makefile"
15207 all_languages
="$all_languages $language"
15208 if test "x$boot_language" = xyes
15210 all_boot_languages
="$all_boot_languages $language"
15212 all_compilers
="$all_compilers $compilers"
15213 all_stagestuff
="$all_stagestuff $stagestuff"
15214 all_outputs
="$all_outputs $outputs"
15215 all_gtfiles
="$all_gtfiles $gtfiles"
15218 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15219 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15223 # Pick up gtfiles for c
15226 .
${srcdir}/c-config-lang.
in
15227 all_gtfiles
="$all_gtfiles $gtfiles"
15230 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15231 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15235 for language
in $all_languages
15237 check_languages
="$check_languages check-$language"
15240 # We link each language in with a set of hooks, reached indirectly via
15245 target_list
="all.build all.cross start.encap rest.encap tags \
15246 install-normal install-common install-man \
15247 uninstall info man srcextra srcman srcinfo \
15248 mostlyclean clean distclean maintainer-clean \
15249 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15250 for t
in $target_list
15253 for lang
in $all_languages
15257 echo "lang.$t: $x" >> Make-hooks
15266 echo "dir ." > .gdbinit
15267 echo "dir ${srcdir}" >> .gdbinit
15268 if test x
$gdb_needs_out_file_path = xyes
15270 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15272 if test "x$subdirs" != x
; then
15275 echo "dir ${srcdir}/$s" >> .gdbinit
15278 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15280 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15281 # absolute path for gcc_tooldir based on inserting the number of up-directory
15282 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15283 # $(libsubdir)/@(unlibsubdir) based path.
15284 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15285 # make and thus we'd get different behavior depending on where we built the
15287 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15288 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15290 # An explanation of the sed strings:
15291 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15292 # -e 's|/$||' match a trailing forward slash and eliminates it
15293 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15294 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15296 # (*) Note this pattern overwrites the first character of the string
15297 # with a forward slash if one is not already present. This is not a
15298 # problem because the exact names of the sub-directories concerned is
15299 # unimportant, just the number of them matters.
15301 # The practical upshot of these patterns is like this:
15303 # prefix exec_prefix result
15304 # ------ ----------- ------
15305 # /foo /foo/bar ../
15306 # /foo/ /foo/bar ../
15307 # /foo /foo/bar/ ../
15308 # /foo/ /foo/bar/ ../
15309 # /foo /foo/bar/ugg ../../
15312 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15317 # Find a directory in which to install a shared libgcc.
15319 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15320 if test "${enable_version_specific_runtime_libs+set}" = set; then
15321 enableval
="$enable_version_specific_runtime_libs"
15326 # Check whether --with-slibdir or --without-slibdir was given.
15327 if test "${with_slibdir+set}" = set; then
15328 withval
="$with_slibdir"
15329 slibdir
="$with_slibdir"
15331 if test "${enable_version_specific_runtime_libs+set}" = set; then
15332 slibdir
='$(libsubdir)'
15333 elif test "$host" != "$target"; then
15334 slibdir
='$(build_tooldir)/lib'
15336 slibdir
='$(libdir)'
15341 objdir
=`${PWDCMD-pwd}`
15344 # Substitute configuration variables
15409 if test x
${build} = x
${host} ; then
15410 if test x
${host} = x
${target} ; then
15411 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15413 echo "Links are now set up to build a cross-compiler" 1>&2
15414 echo " from ${host} to ${target}." 1>&2
15417 if test x
${host} = x
${target} ; then
15418 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15419 echo " for ${target}." 1>&2
15421 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15422 echo " from ${host} to ${target}." 1>&2
15429 # Configure the subdirectories
15430 # AC_CONFIG_SUBDIRS($subdirs)
15432 # Create the Makefile
15433 # and configure language subdirectories
15434 ac_config_files
="$ac_config_files $all_outputs"
15437 ac_config_commands
="$ac_config_commands default"
15439 cat >confcache
<<\_ACEOF
15440 # This file is a shell script that caches the results of configure
15441 # tests run on this system so they can be shared between configure
15442 # scripts and configure runs, see configure's option --config-cache.
15443 # It is not useful on other systems. If it contains results you don't
15444 # want to keep, you may remove or edit it.
15446 # config.status only pays attention to the cache file if you give it
15447 # the --recheck option to rerun configure.
15449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15451 # following values.
15455 # The following way of writing the cache mishandles newlines in values,
15456 # but we know of no workaround that is simple, portable, and efficient.
15457 # So, don't put newlines in cache variables' values.
15458 # Ultrix sh set writes to stderr and can't be redirected directly,
15459 # and sets the high bit in the cache file unless we assign to the vars.
15462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15464 # `set' does not quote correctly, so add quotes (double-quote
15465 # substitution turns \\\\ into \\, and sed turns \\ into \).
15468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15471 # `set' quotes correctly as required by POSIX, so do not add quotes.
15473 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15482 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15484 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15485 if test -w $cache_file; then
15486 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15487 cat confcache
>$cache_file
15489 echo "not updating unwritable cache $cache_file"
15494 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15495 # Let make expand exec_prefix.
15496 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15500 # trailing colons and then remove the whole line if VPATH becomes empty
15501 # (actually we leave an empty line to preserve line numbers).
15502 if test "x$srcdir" = x.
; then
15503 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15504 s/:*\$(srcdir):*/:/;
15505 s/:*\${srcdir}:*/:/;
15507 s/^\([^=]*=[ ]*\):*/\1/;
15513 DEFS
=-DHAVE_CONFIG_H
15517 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15518 # 1. Remove the extension, and $U if already installed.
15519 ac_i
=`echo "$ac_i" |
15520 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15522 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15523 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15525 LIBOBJS
=$ac_libobjs
15527 LTLIBOBJS
=$ac_ltlibobjs
15531 : ${CONFIG_STATUS=./config.status}
15532 ac_clean_files_save
=$ac_clean_files
15533 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15534 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15535 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15536 cat >$CONFIG_STATUS <<_ACEOF
15538 # Generated by $as_me.
15539 # Run this file to recreate the current configuration.
15540 # Compiler output produced by configure, useful for debugging
15541 # configure, is in config.log if it exists.
15544 ac_cs_recheck=false
15546 SHELL=\${CONFIG_SHELL-$SHELL}
15549 cat >>$CONFIG_STATUS <<\_ACEOF
15550 ## --------------------- ##
15551 ## M4sh Initialization. ##
15552 ## --------------------- ##
15554 # Be Bourne compatible
15555 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15558 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15559 # is contrary to our usage. Disable this feature.
15560 alias -g '${1+"$@"}'='"$@"'
15561 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15564 DUALCASE
=1; export DUALCASE
# for MKS sh
15566 # Support unset when possible.
15567 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15574 # Work around bugs in pre-3.0 UWIN ksh.
15575 $as_unset ENV MAIL MAILPATH
15582 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15583 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15584 LC_TELEPHONE LC_TIME
15586 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15587 eval $as_var=C
; export $as_var
15593 # Required to use basename.
15594 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15600 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15601 as_basename
=basename
15607 # Name of the executable.
15608 as_me
=`$as_basename "$0" ||
15609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15610 X"$0" : 'X\(//\)$' \| \
15611 X"$0" : 'X\(/\)$' \| \
15612 . : '\(.\)' 2>/dev/null ||
15614 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15615 /^X\/\(\/\/\)$/{ s//\1/; q; }
15616 /^X\/\(\/\).*/{ s//\1/; q; }
15620 # PATH needs CR, and LINENO needs CR and PATH.
15621 # Avoid depending upon Character Ranges.
15622 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15623 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15624 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15625 as_cr_digits
='0123456789'
15626 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15628 # The user is always right.
15629 if test "${PATH_SEPARATOR+set}" != set; then
15630 echo "#! /bin/sh" >conf$$.sh
15631 echo "exit 0" >>conf$$.sh
15633 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15642 as_lineno_1
=$LINENO
15643 as_lineno_2
=$LINENO
15644 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15645 test "x$as_lineno_1" != "x$as_lineno_2" &&
15646 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15647 # Find who we are. Look in the path if we contain no path at all
15650 *[\\/]* ) as_myself
=$0 ;;
15651 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15652 for as_dir
in $PATH
15655 test -z "$as_dir" && as_dir
=.
15656 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15661 # We did not find ourselves, most probably we were run as `sh COMMAND'
15662 # in which case we are not to be found in the path.
15663 if test "x$as_myself" = x
; then
15666 if test ! -f "$as_myself"; then
15667 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15668 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15669 { (exit 1); exit 1; }; }
15671 case $CONFIG_SHELL in
15673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15674 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15677 test -z "$as_dir" && as_dir
=.
15678 for as_base
in sh bash ksh sh5
; do
15681 if ("$as_dir/$as_base" -c '
15682 as_lineno_1=$LINENO
15683 as_lineno_2=$LINENO
15684 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15685 test "x$as_lineno_1" != "x$as_lineno_2" &&
15686 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15687 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15688 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15689 CONFIG_SHELL
=$as_dir/$as_base
15690 export CONFIG_SHELL
15691 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15699 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15700 # uniformly replaced by the line number. The first 'sed' inserts a
15701 # line-number line before each line; the second 'sed' does the real
15702 # work. The second script uses 'N' to pair each line-number line
15703 # with the numbered line, and appends trailing '-' during
15704 # substitution so that $LINENO is not a special case at line end.
15705 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15706 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15707 sed '=' <$as_myself |
15712 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15715 s,^['$as_cr_digits']*\n,,
15716 ' >$as_me.lineno
&&
15717 chmod +x
$as_me.lineno ||
15718 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15719 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15720 { (exit 1); exit 1; }; }
15722 # Don't try to exec as it changes $[0], causing all sort of problems
15723 # (the dirname of $[0] is not the place where we might find the
15724 # original and so on. Autoconf is especially sensible to this).
15726 # Exit status is that of the last command.
15731 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15732 *c
*,-n*) ECHO_N
= ECHO_C
='
15734 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15735 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15738 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15744 rm -f conf$$ conf$$.exe conf$$.
file
15746 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15747 # We could just check for DJGPP; but this test a) works b) is more generic
15748 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15749 if test -f conf$$.exe
; then
15750 # Don't use ln at all; we don't have any links
15755 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15760 rm -f conf$$ conf$$.exe conf$$.
file
15762 if mkdir
-p .
2>/dev
/null
; then
15765 test -d .
/-p && rmdir .
/-p
15769 as_executable_p
="test -f"
15771 # Sed expression to map a string onto a valid CPP name.
15772 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15774 # Sed expression to map a string onto a valid variable name.
15775 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15779 # We need space, tab and new line, in precisely that order.
15789 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15790 # report actual input values of CONFIG_FILES etc. instead of their
15791 # values after options handling. Logging --version etc. is OK.
15795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15796 ## Running $as_me. ##
15801 This file was extended by $as_me, which was
15802 generated by GNU Autoconf 2.59. Invocation command line was
15804 CONFIG_FILES = $CONFIG_FILES
15805 CONFIG_HEADERS = $CONFIG_HEADERS
15806 CONFIG_LINKS = $CONFIG_LINKS
15807 CONFIG_COMMANDS = $CONFIG_COMMANDS
15811 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15815 # Files that config.status was made for.
15816 if test -n "$ac_config_files"; then
15817 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15820 if test -n "$ac_config_headers"; then
15821 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15824 if test -n "$ac_config_links"; then
15825 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15828 if test -n "$ac_config_commands"; then
15829 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15832 cat >>$CONFIG_STATUS <<\_ACEOF
15835 \`$as_me' instantiates files from templates according to the
15836 current configuration.
15838 Usage: $0 [OPTIONS] [FILE]...
15840 -h, --help print this help, then exit
15841 -V, --version print version number, then exit
15842 -q, --quiet do not print progress messages
15843 -d, --debug don't remove temporary files
15844 --recheck update $as_me by reconfiguring in the same conditions
15845 --file=FILE[:TEMPLATE]
15846 instantiate the configuration file FILE
15847 --header=FILE[:TEMPLATE]
15848 instantiate the configuration header FILE
15850 Configuration files:
15853 Configuration headers:
15856 Configuration commands:
15859 Report bugs to <bug-autoconf@gnu.org>."
15862 cat >>$CONFIG_STATUS <<_ACEOF
15865 configured by $0, generated by GNU Autoconf 2.59,
15866 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15868 Copyright (C) 2003 Free Software Foundation, Inc.
15869 This config.status script is free software; the Free Software Foundation
15870 gives unlimited permission to copy, distribute and modify it."
15874 cat >>$CONFIG_STATUS <<\_ACEOF
15875 # If no file are specified by the user, then we need to provide default
15876 # value. By we need to know if files were specified by the user.
15882 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15883 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15891 *) # This is not an option, so the user has probably given explicit
15894 ac_need_defaults
=false
;;
15898 # Handling of the options.
15900 cat >>$CONFIG_STATUS <<\_ACEOF
15901 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15903 --version |
--vers* |
-V )
15904 echo "$ac_cs_version"; exit 0 ;;
15906 # Conflict between --help and --header
15907 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15908 Try \`$0 --help' for more information." >&5
15909 echo "$as_me: error: ambiguous option: $1
15910 Try \`$0 --help' for more information." >&2;}
15911 { (exit 1); exit 1; }; };;
15912 --help |
--hel |
-h )
15913 echo "$ac_cs_usage"; exit 0 ;;
15914 --debug |
--d* |
-d )
15916 --file |
--fil |
--fi |
--f )
15918 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15919 ac_need_defaults
=false
;;
15920 --header |
--heade |
--head |
--hea )
15922 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15923 ac_need_defaults
=false
;;
15924 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15925 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15928 # This is an error.
15929 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15930 Try \`$0 --help' for more information." >&5
15931 echo "$as_me: error: unrecognized option: $1
15932 Try \`$0 --help' for more information." >&2;}
15933 { (exit 1); exit 1; }; } ;;
15935 *) ac_config_targets
="$ac_config_targets $1" ;;
15941 ac_configure_extra_args
=
15943 if $ac_cs_silent; then
15945 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15949 cat >>$CONFIG_STATUS <<_ACEOF
15950 if \$ac_cs_recheck; then
15951 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15952 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15957 cat >>$CONFIG_STATUS <<_ACEOF
15959 # INIT-COMMANDS section.
15968 cat >>$CONFIG_STATUS <<\_ACEOF
15969 for ac_config_target
in $ac_config_targets
15971 case "$ac_config_target" in
15972 # Handling of arguments.
15973 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
15974 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15975 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
15976 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15977 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15978 { (exit 1); exit 1; }; };;
15982 # If the user did not use the arguments to specify the items to instantiate,
15983 # then the envvar interface is used. Set only those that are not.
15984 # We use the long form for the default assignment because of an extremely
15985 # bizarre bug on SunOS 4.1.3.
15986 if $ac_need_defaults; then
15987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15992 # Have a temporary directory for convenience. Make it in the build tree
15993 # simply because there is no reason to put it here, and in addition,
15994 # creating and moving files from /tmp can sometimes cause problems.
15995 # Create a temporary directory, and hook for its removal unless debugging.
15998 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15999 trap '{ (exit 1); exit 1; }' 1 2 13 15
16002 # Create a (secure) tmp directory for tmp files.
16005 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16006 test -n "$tmp" && test -d "$tmp"
16009 tmp
=.
/confstat$$
-$RANDOM
16010 (umask 077 && mkdir
$tmp)
16013 echo "$me: cannot create a temporary directory in ." >&2
16014 { (exit 1); exit 1; }
16019 cat >>$CONFIG_STATUS <<_ACEOF
16022 # CONFIG_FILES section.
16025 # No need to generate the scripts if there are no CONFIG_FILES.
16026 # This happens for instance when ./config.status config.h
16027 if test -n "\$CONFIG_FILES"; then
16028 # Protect against being on the right side of a sed subst in config.status.
16029 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16030 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16031 s,@SHELL@,$SHELL,;t t
16032 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16033 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16034 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16035 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16036 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16037 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16038 s,@exec_prefix@,$exec_prefix,;t t
16039 s,@prefix@,$prefix,;t t
16040 s,@program_transform_name@,$program_transform_name,;t t
16041 s,@bindir@,$bindir,;t t
16042 s,@sbindir@,$sbindir,;t t
16043 s,@libexecdir@,$libexecdir,;t t
16044 s,@datadir@,$datadir,;t t
16045 s,@sysconfdir@,$sysconfdir,;t t
16046 s,@sharedstatedir@,$sharedstatedir,;t t
16047 s,@localstatedir@,$localstatedir,;t t
16048 s,@libdir@,$libdir,;t t
16049 s,@includedir@,$includedir,;t t
16050 s,@oldincludedir@,$oldincludedir,;t t
16051 s,@infodir@,$infodir,;t t
16052 s,@mandir@,$mandir,;t t
16053 s,@build_alias@,$build_alias,;t t
16054 s,@host_alias@,$host_alias,;t t
16055 s,@target_alias@,$target_alias,;t t
16056 s,@DEFS@,$DEFS,;t t
16057 s,@ECHO_C@,$ECHO_C,;t t
16058 s,@ECHO_N@,$ECHO_N,;t t
16059 s,@ECHO_T@,$ECHO_T,;t t
16060 s,@LIBS@,$LIBS,;t t
16061 s,@build@,$build,;t t
16062 s,@build_cpu@,$build_cpu,;t t
16063 s,@build_vendor@,$build_vendor,;t t
16064 s,@build_os@,$build_os,;t t
16065 s,@host@,$host,;t t
16066 s,@host_cpu@,$host_cpu,;t t
16067 s,@host_vendor@,$host_vendor,;t t
16068 s,@host_os@,$host_os,;t t
16069 s,@target@,$target,;t t
16070 s,@target_cpu@,$target_cpu,;t t
16071 s,@target_vendor@,$target_vendor,;t t
16072 s,@target_os@,$target_os,;t t
16073 s,@target_noncanonical@,$target_noncanonical,;t t
16074 s,@build_subdir@,$build_subdir,;t t
16075 s,@host_subdir@,$host_subdir,;t t
16076 s,@target_subdir@,$target_subdir,;t t
16077 s,@GENINSRC@,$GENINSRC,;t t
16079 s,@CFLAGS@,$CFLAGS,;t t
16080 s,@LDFLAGS@,$LDFLAGS,;t t
16081 s,@CPPFLAGS@,$CPPFLAGS,;t t
16082 s,@ac_ct_CC@,$ac_ct_CC,;t t
16083 s,@EXEEXT@,$EXEEXT,;t t
16084 s,@OBJEXT@,$OBJEXT,;t t
16085 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16086 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16088 s,@EGREP@,$EGREP,;t t
16089 s,@strict1_warn@,$strict1_warn,;t t
16090 s,@warn_cflags@,$warn_cflags,;t t
16091 s,@WERROR@,$WERROR,;t t
16092 s,@nocommon_flag@,$nocommon_flag,;t t
16093 s,@TREEBROWSER@,$TREEBROWSER,;t t
16094 s,@valgrind_path@,$valgrind_path,;t t
16095 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16096 s,@valgrind_command@,$valgrind_command,;t t
16097 s,@coverage_flags@,$coverage_flags,;t t
16098 s,@enable_multilib@,$enable_multilib,;t t
16099 s,@enable_shared@,$enable_shared,;t t
16100 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16101 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16102 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16103 s,@onestep@,$onestep,;t t
16104 s,@SET_MAKE@,$SET_MAKE,;t t
16106 s,@LN_S@,$LN_S,;t t
16108 s,@RANLIB@,$RANLIB,;t t
16109 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16110 s,@ranlib_flags@,$ranlib_flags,;t t
16111 s,@INSTALL@,$INSTALL,;t t
16112 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16113 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16114 s,@make_compare_target@,$make_compare_target,;t t
16115 s,@have_mktemp_command@,$have_mktemp_command,;t t
16116 s,@MAKEINFO@,$MAKEINFO,;t t
16117 s,@BUILD_INFO@,$BUILD_INFO,;t t
16118 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16119 s,@FLEX@,$FLEX,;t t
16120 s,@BISON@,$BISON,;t t
16123 s,@stage1_cflags@,$stage1_cflags,;t t
16124 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16125 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16126 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16127 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16128 s,@LIBICONV@,$LIBICONV,;t t
16129 s,@LTLIBICONV@,$LTLIBICONV,;t t
16130 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16131 s,@manext@,$manext,;t t
16132 s,@objext@,$objext,;t t
16133 s,@gthread_flags@,$gthread_flags,;t t
16134 s,@extra_modes_file@,$extra_modes_file,;t t
16135 s,@extra_opt_files@,$extra_opt_files,;t t
16136 s,@USE_NLS@,$USE_NLS,;t t
16137 s,@LIBINTL@,$LIBINTL,;t t
16138 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16139 s,@INCINTL@,$INCINTL,;t t
16140 s,@XGETTEXT@,$XGETTEXT,;t t
16141 s,@GMSGFMT@,$GMSGFMT,;t t
16142 s,@POSUB@,$POSUB,;t t
16143 s,@CATALOGS@,$CATALOGS,;t t
16144 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16145 s,@CROSS@,$CROSS,;t t
16147 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16148 s,@inhibit_libc@,$inhibit_libc,;t t
16149 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16150 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16151 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16152 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16153 s,@collect2@,$collect2,;t t
16154 s,@libgcc_visibility@,$libgcc_visibility,;t t
16156 s,@zlibdir@,$zlibdir,;t t
16157 s,@zlibinc@,$zlibinc,;t t
16158 s,@MAINT@,$MAINT,;t t
16159 s,@gcc_tooldir@,$gcc_tooldir,;t t
16160 s,@dollar@,$dollar,;t t
16161 s,@slibdir@,$slibdir,;t t
16162 s,@objdir@,$objdir,;t t
16163 s,@subdirs@,$subdirs,;t t
16164 s,@srcdir@,$srcdir,;t t
16165 s,@all_boot_languages@,$all_boot_languages,;t t
16166 s,@all_compilers@,$all_compilers,;t t
16167 s,@all_gtfiles@,$all_gtfiles,;t t
16168 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16169 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16170 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16171 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16172 s,@all_languages@,$all_languages,;t t
16173 s,@all_stagestuff@,$all_stagestuff,;t t
16174 s,@build_exeext@,$build_exeext,;t t
16175 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16176 s,@build_xm_file_list@,$build_xm_file_list,;t t
16177 s,@build_xm_include_list@,$build_xm_include_list,;t t
16178 s,@build_xm_defines@,$build_xm_defines,;t t
16179 s,@check_languages@,$check_languages,;t t
16180 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16181 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16182 s,@cpp_install_dir@,$cpp_install_dir,;t t
16183 s,@xmake_file@,$xmake_file,;t t
16184 s,@tmake_file@,$tmake_file,;t t
16185 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16186 s,@extra_headers_list@,$extra_headers_list,;t t
16187 s,@extra_objs@,$extra_objs,;t t
16188 s,@extra_parts@,$extra_parts,;t t
16189 s,@extra_passes@,$extra_passes,;t t
16190 s,@extra_programs@,$extra_programs,;t t
16191 s,@float_h_file@,$float_h_file,;t t
16192 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16193 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16194 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16195 s,@host_exeext@,$host_exeext,;t t
16196 s,@host_xm_file_list@,$host_xm_file_list,;t t
16197 s,@host_xm_include_list@,$host_xm_include_list,;t t
16198 s,@host_xm_defines@,$host_xm_defines,;t t
16199 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16200 s,@install@,$install,;t t
16201 s,@lang_opt_files@,$lang_opt_files,;t t
16202 s,@lang_specs_files@,$lang_specs_files,;t t
16203 s,@lang_tree_files@,$lang_tree_files,;t t
16204 s,@local_prefix@,$local_prefix,;t t
16205 s,@md_file@,$md_file,;t t
16206 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16207 s,@out_file@,$out_file,;t t
16208 s,@out_object_file@,$out_object_file,;t t
16209 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16210 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16211 s,@thread_file@,$thread_file,;t t
16212 s,@tm_file_list@,$tm_file_list,;t t
16213 s,@tm_include_list@,$tm_include_list,;t t
16214 s,@tm_defines@,$tm_defines,;t t
16215 s,@tm_p_file_list@,$tm_p_file_list,;t t
16216 s,@tm_p_include_list@,$tm_p_include_list,;t t
16217 s,@xm_file_list@,$xm_file_list,;t t
16218 s,@xm_include_list@,$xm_include_list,;t t
16219 s,@xm_defines@,$xm_defines,;t t
16220 s,@c_target_objs@,$c_target_objs,;t t
16221 s,@cxx_target_objs@,$cxx_target_objs,;t t
16222 s,@target_cpu_default@,$target_cpu_default,;t t
16223 s,@GMPLIBS@,$GMPLIBS,;t t
16224 s,@GMPINC@,$GMPINC,;t t
16225 s,@LIBOBJS@,$LIBOBJS,;t t
16226 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16227 /@language_hooks@/r $language_hooks
16228 s,@language_hooks@,,;t t
16233 cat >>$CONFIG_STATUS <<\_ACEOF
16234 # Split the substitutions into bite-sized pieces for seds with
16235 # small command number limits, like on Digital OSF/1 and HP-UX.
16236 ac_max_sed_lines
=48
16237 ac_sed_frag
=1 # Number of current file.
16238 ac_beg
=1 # First line for current file.
16239 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16242 while $ac_more_lines; do
16243 if test $ac_beg -gt 1; then
16244 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16246 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16248 if test ! -s $tmp/subs.frag
; then
16249 ac_more_lines
=false
16251 # The purpose of the label and of the branching condition is to
16252 # speed up the sed processing (if there are no `@' at all, there
16253 # is no need to browse any of the substitutions).
16254 # These are the two extra sed commands mentioned above.
16256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16257 if test -z "$ac_sed_cmds"; then
16258 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16260 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16262 ac_sed_frag
=`expr $ac_sed_frag + 1`
16264 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16267 if test -z "$ac_sed_cmds"; then
16270 fi # test -n "$CONFIG_FILES"
16273 cat >>$CONFIG_STATUS <<\_ACEOF
16274 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16275 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16277 - |
*:- |
*:-:* ) # input from stdin
16279 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16280 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16281 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16282 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16283 * ) ac_file_in
=$ac_file.
in ;;
16286 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16287 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16289 X"$ac_file" : 'X\(//\)[^/]' \| \
16290 X"$ac_file" : 'X\(//\)$' \| \
16291 X"$ac_file" : 'X\(/\)' \| \
16292 . : '\(.\)' 2>/dev/null ||
16294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16296 /^X\(\/\/\)$/{ s//\1/; q; }
16297 /^X\(\/\).*/{ s//\1/; q; }
16299 { if $as_mkdir_p; then
16304 while test ! -d "$as_dir"; do
16305 as_dirs
="$as_dir $as_dirs"
16306 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308 X"$as_dir" : 'X\(//\)[^/]' \| \
16309 X"$as_dir" : 'X\(//\)$' \| \
16310 X"$as_dir" : 'X\(/\)' \| \
16311 . : '\(.\)' 2>/dev/null ||
16313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16315 /^X\(\/\/\)$/{ s//\1/; q; }
16316 /^X\(\/\).*/{ s//\1/; q; }
16319 test ! -n "$as_dirs" || mkdir
$as_dirs
16320 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16322 { (exit 1); exit 1; }; }; }
16326 if test "$ac_dir" != .
; then
16327 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16328 # A "../" for each directory in $ac_dir_suffix.
16329 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16331 ac_dir_suffix
= ac_top_builddir
=
16335 .
) # No --srcdir option. We are building in place.
16337 if test -z "$ac_top_builddir"; then
16340 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16342 [\\/]* | ?
:[\\/]* ) # Absolute path.
16343 ac_srcdir
=$srcdir$ac_dir_suffix;
16344 ac_top_srcdir
=$srcdir ;;
16345 *) # Relative path.
16346 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16347 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16350 # Do not use `cd foo && pwd` to compute absolute paths, because
16351 # the directories may not exist.
16353 .
) ac_abs_builddir
="$ac_dir";;
16356 .
) ac_abs_builddir
=`pwd`;;
16357 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16358 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16361 case $ac_abs_builddir in
16362 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16364 case ${ac_top_builddir}.
in
16365 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16366 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16367 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16370 case $ac_abs_builddir in
16371 .
) ac_abs_srcdir
=$ac_srcdir;;
16374 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16375 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16376 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16379 case $ac_abs_builddir in
16380 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16382 case $ac_top_srcdir in
16383 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16384 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16385 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16391 # Let's still pretend it is `configure' which instantiates (i.e., don't
16392 # use $as_me), people would be surprised to read:
16393 # /* config.h. Generated by config.status. */
16394 if test x
"$ac_file" = x-
; then
16397 configure_input
="$ac_file. "
16399 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16400 sed 's,.*/,,'` by configure."
16402 # First look for the input files in the build tree, otherwise in the
16404 ac_file_inputs
=`IFS=:
16405 for f in $ac_file_in; do
16407 -) echo $tmp/stdin ;;
16409 # Absolute (can't be DOS-style, as IFS=:)
16410 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16411 echo "$as_me: error: cannot find input file: $f" >&2;}
16412 { (exit 1); exit 1; }; }
16415 if test -f "$f"; then
16418 elif test -f "$srcdir/$f"; then
16423 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16424 echo "$as_me: error: cannot find input file: $f" >&2;}
16425 { (exit 1); exit 1; }; }
16428 done` ||
{ (exit 1); exit 1; }
16430 if test x
"$ac_file" != x-
; then
16431 { echo "$as_me:$LINENO: creating $ac_file" >&5
16432 echo "$as_me: creating $ac_file" >&6;}
16436 cat >>$CONFIG_STATUS <<_ACEOF
16440 cat >>$CONFIG_STATUS <<\_ACEOF
16442 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16443 s
,@configure_input@
,$configure_input,;t t
16444 s
,@srcdir@
,$ac_srcdir,;t t
16445 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16446 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16447 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16448 s
,@builddir@
,$ac_builddir,;t t
16449 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16450 s
,@top_builddir@
,$ac_top_builddir,;t t
16451 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16452 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16454 if test x"$ac_file" != x-; then
16455 mv $tmp/out $ac_file
16463 cat >>$CONFIG_STATUS <<\_ACEOF
16466 # CONFIG_HEADER section.
16469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16472 # ac_d sets the value in "#define NAME VALUE" lines.
16473 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16474 ac_dB
='[ ].*$,\1#\2'
16477 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16478 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16479 ac_uB
='$,\1#\2define\3'
16483 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16486 - |
*:- |
*:-:* ) # input from stdin
16488 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16489 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16490 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16491 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16492 * ) ac_file_in
=$ac_file.
in ;;
16495 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16496 echo "$as_me: creating $ac_file" >&6;}
16498 # First look for the input files in the build tree, otherwise in the
16500 ac_file_inputs
=`IFS=:
16501 for f in $ac_file_in; do
16503 -) echo $tmp/stdin ;;
16505 # Absolute (can't be DOS-style, as IFS=:)
16506 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16507 echo "$as_me: error: cannot find input file: $f" >&2;}
16508 { (exit 1); exit 1; }; }
16509 # Do quote $f, to prevent DOS paths from being IFS'd.
16512 if test -f "$f"; then
16515 elif test -f "$srcdir/$f"; then
16520 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16521 echo "$as_me: error: cannot find input file: $f" >&2;}
16522 { (exit 1); exit 1; }; }
16525 done` ||
{ (exit 1); exit 1; }
16526 # Remove the trailing spaces.
16527 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16531 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16532 # `conftest.undefs', that substitutes the proper values into
16533 # config.h.in to produce config.h. The first handles `#define'
16534 # templates, and the second `#undef' templates.
16535 # And first: Protect against being on the right side of a sed subst in
16536 # config.status. Protect against being in an unquoted here document
16537 # in config.status.
16538 rm -f conftest.defines conftest.undefs
16539 # Using a here document instead of a string reduces the quoting nightmare.
16540 # Putting comments in sed scripts is not portable.
16542 # `end' is used to avoid that the second main sed command (meant for
16543 # 0-ary CPP macros) applies to n-ary macro definitions.
16544 # See the Autoconf documentation for `clear'.
16545 cat >confdef2sed.
sed <<\_ACEOF
16550 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16552 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16555 # If some macros were called several times there might be several times
16556 # the same #defines, which is useless. Nevertheless, we may not want to
16557 # sort them, since we want the *last* AC-DEFINE to be honored.
16558 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16559 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16560 rm -f confdef2sed.sed
16562 # This sed command replaces #undef with comments. This is necessary, for
16563 # example, in the case of _POSIX_SOURCE, which is predefined and required
16564 # on some systems where configure will not decide to define it.
16565 cat >>conftest.undefs <<\_ACEOF
16566 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16569 # Break up conftest.defines because some shells have a limit on the size
16570 # of here documents, and old seds have small limits too (100 cmds).
16571 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16572 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16573 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16574 echo ' :' >>$CONFIG_STATUS
16575 rm -f conftest.tail
16576 while grep . conftest.defines >/dev/null
16578 # Write a limited-size here document to $tmp/defines.sed.
16579 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16580 # Speed up: don't consider the non `#define' lines.
16581 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16582 # Work around the forget-to-reset-the-flag bug.
16583 echo 't clr' >>$CONFIG_STATUS
16584 echo ': clr' >>$CONFIG_STATUS
16585 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16587 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16589 mv $tmp/out $tmp/in
16591 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16592 rm -f conftest.defines
16593 mv conftest.
tail conftest.defines
16595 rm -f conftest.defines
16596 echo ' fi # grep' >>$CONFIG_STATUS
16597 echo >>$CONFIG_STATUS
16599 # Break up conftest.undefs because some shells have a limit on the size
16600 # of here documents, and old seds have small limits too (100 cmds).
16601 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16602 rm -f conftest.
tail
16603 while grep . conftest.undefs
>/dev
/null
16605 # Write a limited-size here document to $tmp/undefs.sed.
16606 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16607 # Speed up: don't consider the non
`#undef'
16608 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16609 # Work around the forget-to-reset-the-flag bug.
16610 echo 't clr' >>$CONFIG_STATUS
16611 echo ': clr' >>$CONFIG_STATUS
16612 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16614 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16616 mv $tmp/out $tmp/in
16618 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16619 rm -f conftest.undefs
16620 mv conftest.tail conftest.undefs
16622 rm -f conftest.undefs
16624 cat >>$CONFIG_STATUS <<\_ACEOF
16625 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16626 # use $as_me), people would be surprised to read:
16627 # /* config.h. Generated by config.status. */
16628 if test x
"$ac_file" = x-
; then
16629 echo "/* Generated by configure. */" >$tmp/config.h
16631 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16633 cat $tmp/in >>$tmp/config.h
16635 if test x
"$ac_file" != x-
; then
16636 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16637 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16638 echo "$as_me: $ac_file is unchanged" >&6;}
16640 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16642 X"$ac_file" : 'X\(//\)[^/]' \| \
16643 X"$ac_file" : 'X\(//\)$' \| \
16644 X"$ac_file" : 'X\(/\)' \| \
16645 . : '\(.\)' 2>/dev/null ||
16647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16649 /^X\(\/\/\)$/{ s//\1/; q; }
16650 /^X\(\/\).*/{ s//\1/; q; }
16652 { if $as_mkdir_p; then
16657 while test ! -d "$as_dir"; do
16658 as_dirs
="$as_dir $as_dirs"
16659 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16661 X"$as_dir" : 'X\(//\)[^/]' \| \
16662 X"$as_dir" : 'X\(//\)$' \| \
16663 X"$as_dir" : 'X\(/\)' \| \
16664 . : '\(.\)' 2>/dev/null ||
16666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16668 /^X\(\/\/\)$/{ s//\1/; q; }
16669 /^X\(\/\).*/{ s//\1/; q; }
16672 test ! -n "$as_dirs" || mkdir
$as_dirs
16673 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16674 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16675 { (exit 1); exit 1; }; }; }
16678 mv $tmp/config.h
$ac_file
16682 rm -f $tmp/config.h
16686 cat >>$CONFIG_STATUS <<\_ACEOF
16689 # CONFIG_COMMANDS section.
16691 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16692 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16693 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16694 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16695 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16696 X"$ac_dest" : 'X\(//\)[^/]' \| \
16697 X"$ac_dest" : 'X\(//\)$' \| \
16698 X"$ac_dest" : 'X\(/\)' \| \
16699 . : '\(.\)' 2>/dev/null ||
16701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16703 /^X\(\/\/\)$/{ s//\1/; q; }
16704 /^X\(\/\).*/{ s//\1/; q; }
16706 { if $as_mkdir_p; then
16711 while test ! -d "$as_dir"; do
16712 as_dirs
="$as_dir $as_dirs"
16713 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16715 X"$as_dir" : 'X\(//\)[^/]' \| \
16716 X"$as_dir" : 'X\(//\)$' \| \
16717 X"$as_dir" : 'X\(/\)' \| \
16718 . : '\(.\)' 2>/dev/null ||
16720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16722 /^X\(\/\/\)$/{ s//\1/; q; }
16723 /^X\(\/\).*/{ s//\1/; q; }
16726 test ! -n "$as_dirs" || mkdir
$as_dirs
16727 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16729 { (exit 1); exit 1; }; }; }
16733 if test "$ac_dir" != .
; then
16734 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16735 # A "../" for each directory in $ac_dir_suffix.
16736 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16738 ac_dir_suffix
= ac_top_builddir
=
16742 .
) # No --srcdir option. We are building in place.
16744 if test -z "$ac_top_builddir"; then
16747 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16749 [\\/]* | ?
:[\\/]* ) # Absolute path.
16750 ac_srcdir
=$srcdir$ac_dir_suffix;
16751 ac_top_srcdir
=$srcdir ;;
16752 *) # Relative path.
16753 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16754 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16757 # Do not use `cd foo && pwd` to compute absolute paths, because
16758 # the directories may not exist.
16760 .
) ac_abs_builddir
="$ac_dir";;
16763 .
) ac_abs_builddir
=`pwd`;;
16764 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16765 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16768 case $ac_abs_builddir in
16769 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16771 case ${ac_top_builddir}.
in
16772 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16773 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16774 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16777 case $ac_abs_builddir in
16778 .
) ac_abs_srcdir
=$ac_srcdir;;
16781 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16782 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16783 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16786 case $ac_abs_builddir in
16787 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16789 case $ac_top_srcdir in
16790 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16791 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16792 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16797 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16798 echo "$as_me: executing $ac_dest commands" >&6;}
16801 case ${CONFIG_HEADERS} in
16802 *auto-host.h
:config.
in*)
16805 # Make sure all the subdirs exist.
16806 for d
in $subdirs doc build
16808 test -d $d || mkdir
$d
16810 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16811 # bootstrapping and the installation procedure can still use
16812 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16813 # FLAGS_TO_PASS has been modified to solve the problem there.
16814 # This is virtually a duplicate of what happens in configure.lang; we do
16815 # an extra check to make sure this only happens if ln -s can be used.
16818 for d
in ${subdirs} ; do
16819 STARTDIR
=`${PWDCMD-pwd}`
16821 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16824 $LN_S ..
/$t $t 2>/dev
/null
16835 cat >>$CONFIG_STATUS <<\_ACEOF
16837 { (exit 0); exit 0; }
16839 chmod +x
$CONFIG_STATUS
16840 ac_clean_files
=$ac_clean_files_save
16843 # configure is writing to config.log, and then calls config.status.
16844 # config.status does its own redirection, appending to config.log.
16845 # Unfortunately, on DOS this fails, as config.log is still kept open
16846 # by configure, so config.status won't be able to write to it; its
16847 # output is simply discarded. So we exec the FD to /dev/null,
16848 # effectively closing config.log, so it can be properly (re)opened and
16849 # appended to by config.status. When coming back to configure, we
16850 # need to make the FD available again.
16851 if test "$no_create" != yes; then
16853 ac_config_status_args
=
16854 test "$silent" = yes &&
16855 ac_config_status_args
="$ac_config_status_args --quiet"
16857 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16859 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16860 # would make configure fail if this is the last instruction.
16861 $ac_cs_success ||
{ (exit 1); exit 1; }