2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir gcc_version_trigger gcc_version_full gcc_version GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default set_gcc_lib_path GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: assert
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,tree
,valgrind
,release
,yes,all
;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler
's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don
't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page
,zone
} choose the garbage collection mechanism to use
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries
in DIR LIBDIR
933 Some influential environment variables
:
934 CC C compiler
command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
937 nonstandard directory
<lib dir
>
938 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
939 headers
in a nonstandard directory
<include dir
>
941 GMPLIBS How to link GMP
942 GMPINC How to
find GMP include files
944 Use these variables to override the choices made by
`configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
962 ac_dir_suffix= ac_top_builddir=
966 .) # No --srcdir option. We are building in place.
968 if test -z "$ac_top_builddir"; then
971 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 # Do not use `cd foo
&& pwd` to compute absolute paths, because
982 # the directories may not exist.
984 .) ac_abs_builddir="$ac_dir";;
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1031 $ac_configure --help
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1066 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1067 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1068 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1069 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1070 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1072 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1073 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1075 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1076 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1077 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1078 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1079 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1080 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1081 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1114 ac_must_keep_next=false
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143 -* ) ac_must_keep_next=true ;;
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close
' the trap.
1161 trap 'exit_status
=$?
1162 # Save into config.log some information that might help in debugging.
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1172 # The following way of writing the cache mishandles newlines in values,
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1195 for ac_var
in $ac_subst_vars
1197 eval ac_val
=$
`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1202 if test -n "$ac_subst_files"; then
1209 for ac_var
in $ac_subst_files
1211 eval ac_val
=$
`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1217 if test -s confdefs.h
; then
1224 sed "/^$/d" confdefs.h |
sort
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1231 rm -f core
*.core
&&
1232 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's
/^
/|
/' "$ac_site_file" >&5
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1307 # Check that the precious variables saved in the cache have kept the same
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1320 ac_cache_corrupted=: ;;
1322 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1329 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1354 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1361 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386 #Set to 1 on a release branch
1389 # Determine the host, build, and target systems
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392 if test -f $ac_dir/install-sh; then
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1396 elif test -f $ac_dir/install.sh; then
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1400 elif test -f $ac_dir/shtool; then
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409 { (exit 1); exit 1; }; }
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428 ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432 { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1442 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1444 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454 ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1464 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1466 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476 ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1488 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494 test "$program_prefix$program_suffix$program_transform_name" = \
1496 program_prefix=${target_alias}-
1498 # Determine the noncanonical target name, for directory use.
1499 case ${build_alias} in
1500 "") build_noncanonical=${build} ;;
1501 *) build_noncanonical=${build_alias} ;;
1504 case ${host_alias} in
1505 "") host_noncanonical=${build_noncanonical} ;;
1506 *) host_noncanonical=${host_alias} ;;
1509 case ${target_alias} in
1510 "") target_noncanonical=${host_noncanonical} ;;
1511 *) target_noncanonical=${target_alias} ;;
1517 # Determine the target- and build-specific subdirectories
1518 # Prefix 'build-
' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1521 if ( test $srcdir = . && test -d gcc ) \
1522 || test -d $srcdir/../host-${host_noncanonical}; then
1523 host_subdir="host-${host_noncanonical}"
1528 target_subdir=${target_noncanonical}
1531 # Set program_transform_name
1532 test "$program_prefix" != NONE &&
1533 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1534 # Use a double $ so make ignores it.
1535 test "$program_suffix" != NONE &&
1536 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1537 # Double any \ or $. echo might interpret backslashes.
1538 # By default was `s,x,x', remove it
if useless.
1539 cat <<\_ACEOF
>conftest.
sed
1540 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1542 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1546 # Check for bogus environment variables.
1547 # Test if LIBRARY_PATH contains the notation for the current directory
1548 # since this would lead to problems installing/building glibc.
1549 # LIBRARY_PATH contains the current directory if one of the following
1551 # - one of the terminals (":" and ";") is the first or last sign
1552 # - two terminals occur directly after each other
1553 # - the path contains an element with a dot in it
1554 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1555 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1556 case ${LIBRARY_PATH} in
1557 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1558 library_path_setting
="contains current directory"
1561 library_path_setting
="ok"
1564 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1565 echo "${ECHO_T}$library_path_setting" >&6
1566 if test "$library_path_setting" != "ok"; then
1567 { { echo "$as_me:$LINENO: error:
1568 *** LIBRARY_PATH shouldn't contain the current directory when
1569 *** building gcc. Please change the environment variable
1570 *** and run configure again." >&5
1571 echo "$as_me: error:
1572 *** LIBRARY_PATH shouldn't contain the current directory when
1573 *** building gcc. Please change the environment variable
1574 *** and run configure again." >&2;}
1575 { (exit 1); exit 1; }; }
1578 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # GCC_EXEC_PREFIX contains the current directory if one of the following
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1586 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1587 case ${GCC_EXEC_PREFIX} in
1588 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1589 gcc_exec_prefix_setting
="contains current directory"
1592 gcc_exec_prefix_setting
="ok"
1595 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1596 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1597 if test "$gcc_exec_prefix_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1610 if test "${with_gcc_version_trigger+set}" = set; then
1611 gcc_version_trigger
=$with_gcc_version_trigger
1613 gcc_version_trigger
=$srcdir/..
/gcc
/version.c
1615 if test -f "${gcc_version_trigger}"; then
1616 gcc_version_full
=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1618 gcc_version_full
=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1620 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1630 # Specify the local prefix
1633 # Check whether --with-local-prefix or --without-local-prefix was given.
1634 if test "${with_local_prefix+set}" = set; then
1635 withval
="$with_local_prefix"
1636 case "${withval}" in
1637 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1638 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1639 { (exit 1); exit 1; }; } ;;
1641 *) local_prefix
=$with_local_prefix ;;
1645 # Default local prefix if it is empty
1646 if test x
$local_prefix = x
; then
1647 local_prefix
=/usr
/local
1650 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1651 # passed in by the toplevel make and thus we'd get different behavior
1652 # depending on where we built the sources.
1653 gcc_gxx_include_dir
=
1654 # Specify the g++ header file directory
1656 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1657 if test "${with_gxx_include_dir+set}" = set; then
1658 withval
="$with_gxx_include_dir"
1659 case "${withval}" in
1660 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1661 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1662 { (exit 1); exit 1; }; } ;;
1664 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1668 if test x
${gcc_gxx_include_dir} = x
; then
1669 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1670 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1672 libstdcxx_incdir
=c
++/${gcc_version}
1673 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1678 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1679 if test "${with_cpp_install_dir+set}" = set; then
1680 withval
="$with_cpp_install_dir"
1681 if test x
$withval = xyes
; then
1682 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1683 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1684 { (exit 1); exit 1; }; }
1685 elif test x
$withval != xno
; then
1686 cpp_install_dir
=$withval
1690 # We would like to our source tree to be readonly. However when releases or
1691 # pre-releases are generated, the flex/bison generated files as well as the
1692 # various formats of manuals need to be included along with the rest of the
1693 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1696 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1697 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1698 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1699 if test "${enable_generated_files_in_srcdir+set}" = set; then
1700 enableval
="$enable_generated_files_in_srcdir"
1701 generated_files_in_srcdir
=$enableval
1703 generated_files_in_srcdir
=no
1706 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1707 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1709 if test "$generated_files_in_srcdir" = "yes"; then
1716 # -------------------
1717 # Find default linker
1718 # -------------------
1722 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1723 if test "${with_gnu_ld+set}" = set; then
1724 withval
="$with_gnu_ld"
1725 gnu_ld_flag
="$with_gnu_ld"
1730 # With pre-defined ld
1732 # Check whether --with-ld or --without-ld was given.
1733 if test "${with_ld+set}" = set; then
1735 DEFAULT_LINKER
="$with_ld"
1737 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1738 if test ! -x "$DEFAULT_LINKER"; then
1739 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1740 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1741 { (exit 1); exit 1; }; }
1742 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1746 cat >>confdefs.h
<<_ACEOF
1747 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1752 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1753 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1754 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1755 if test x
"$gnu_ld_flag" = x
"no"; then
1756 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1757 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1759 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1760 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 # With demangler in GNU ld
1769 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1770 if test "${with_demangler_in_ld+set}" = set; then
1771 withval
="$with_demangler_in_ld"
1772 demangler_in_ld
="$with_demangler_in_ld"
1777 # ----------------------
1778 # Find default assembler
1779 # ----------------------
1783 # Check whether --with-gnu-as or --without-gnu-as was given.
1784 if test "${with_gnu_as+set}" = set; then
1785 withval
="$with_gnu_as"
1786 gas_flag
="$with_gnu_as"
1792 # Check whether --with-as or --without-as was given.
1793 if test "${with_as+set}" = set; then
1795 DEFAULT_ASSEMBLER
="$with_as"
1797 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1798 if test ! -x "$DEFAULT_ASSEMBLER"; then
1799 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1800 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1801 { (exit 1); exit 1; }; }
1802 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1806 cat >>confdefs.h
<<_ACEOF
1807 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1812 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1813 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1814 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1815 if test x
"$gas_flag" = x
"no"; then
1816 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1817 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1819 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1820 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1831 # If a non-executable a.out is present (e.g. created by GNU as above even if
1832 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1833 # file, even when creating an executable, so an execution test fails.
1834 # Remove possible default executable files to avoid this.
1836 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1837 # Autoconf includes it.
1838 rm -f a.out a.exe b.out
1840 # Find the native compiler
1842 ac_cpp
='$CPP $CPPFLAGS'
1843 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1848 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC
="$CC" # Let the user override the test.
1857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1861 test -z "$as_dir" && as_dir
=.
1862 for ac_exec_ext
in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 if test -n "$CC"; then
1875 echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1883 if test -z "$ac_cv_prog_CC"; then
1885 # Extract the first word of "gcc", so it can be a program name with args.
1886 set dummy gcc
; ac_word
=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$ac_ct_CC"; then
1893 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir
=.
1900 for ac_exec_ext
in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_CC
="gcc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1912 if test -n "$ac_ct_CC"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914 echo "${ECHO_T}$ac_ct_CC" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1925 if test -z "$CC"; then
1926 if test -n "$ac_tool_prefix"; then
1927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1928 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC
="$CC" # Let the user override the test.
1937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir
=.
1942 for ac_exec_ext
in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 if test -n "$CC"; then
1955 echo "$as_me:$LINENO: result: $CC" >&5
1956 echo "${ECHO_T}$CC" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1963 if test -z "$ac_cv_prog_CC"; then
1965 # Extract the first word of "cc", so it can be a program name with args.
1966 set dummy cc
; ac_word
=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$ac_ct_CC"; then
1973 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir
=.
1980 for ac_exec_ext
in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_ac_ct_CC
="cc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1992 if test -n "$ac_ct_CC"; then
1993 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1994 echo "${ECHO_T}$ac_ct_CC" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc
; ac_word
=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC
="$CC" # Let the user override the test.
2018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir
=.
2023 for ac_exec_ext
in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026 ac_prog_rejected
=yes
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test $ac_prog_rejected = yes; then
2037 # We found a bogon in the path, so make sure we never use it.
2038 set dummy
$ac_cv_prog_CC
2040 if test $# != 0; then
2041 # We chose a different compiler from the bogus one.
2042 # However, it has the same basename, so the bogon will be chosen
2043 # first if we set CC to just the basename; use the full file name.
2045 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2060 if test -z "$CC"; then
2061 if test -n "$ac_tool_prefix"; then
2064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2065 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 if test -n "$CC"; then
2072 ac_cv_prog_CC
="$CC" # Let the user override the test.
2074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2078 test -z "$as_dir" && as_dir
=.
2079 for ac_exec_ext
in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 if test -n "$CC"; then
2092 echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2099 test -n "$CC" && break
2102 if test -z "$CC"; then
2106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy
$ac_prog; ac_word
=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir
=.
2121 for ac_exec_ext
in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_ac_ct_CC
="$ac_prog"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2133 if test -n "$ac_ct_CC"; then
2134 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135 echo "${ECHO_T}$ac_ct_CC" >&6
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2141 test -n "$ac_ct_CC" && break
2150 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: no acceptable C compiler found in \$PATH
2153 See \`config.log' for more details." >&2;}
2154 { (exit 1); exit 1; }; }
2156 # Provide some information about the compiler.
2157 echo "$as_me:$LINENO:" \
2158 "checking for C compiler version" >&5
2159 ac_compiler
=`set X $ac_compile; echo $2`
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2161 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2166 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2170 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2171 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }
2176 cat >conftest.
$ac_ext <<_ACEOF
2179 cat confdefs.h
>>conftest.
$ac_ext
2180 cat >>conftest.
$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2191 ac_clean_files_save
=$ac_clean_files
2192 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2193 # Try to create an executable without -o first, disregard a.out.
2194 # It will help us diagnose broken compilers, and finding out an intuition
2196 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2198 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2200 (eval $ac_link_default) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 # Find the output, starting from the most likely. This scheme is
2205 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2208 # Be careful to initialize this variable, since it used to be cached.
2209 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2211 # b.out is created by i960 compilers.
2212 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2214 test -f "$ac_file" ||
continue
2216 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2219 # This is the source file.
2222 # We found the default executable, but exeext='' is most
2226 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # FIXME: I believe we export ac_cv_exeext for Libtool,
2228 # but it would be cool to find out if it's true. Does anybody
2229 # maintain Libtool? --akim.
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.
$ac_ext >&5
2240 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: C compiler cannot create executables
2243 See \`config.log' for more details." >&2;}
2244 { (exit 77); exit 77; }; }
2247 ac_exeext
=$ac_cv_exeext
2248 echo "$as_me:$LINENO: result: $ac_file" >&5
2249 echo "${ECHO_T}$ac_file" >&6
2251 # Check the compiler produces executables we can run. If not, either
2252 # the compiler is broken, or we cross compile.
2253 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256 # If not cross compiling, check that we can run a simple program.
2257 if test "$cross_compiling" != yes; then
2258 if { ac_try
='./$ac_file'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2266 if test "$cross_compiling" = maybe
; then
2269 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2279 echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6
2282 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2283 ac_clean_files
=$ac_clean_files_save
2284 # Check the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2288 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289 echo "${ECHO_T}$cross_compiling" >&6
2291 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294 (eval $ac_link) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 for ac_file
in conftest.exe conftest conftest.
*; do
2303 test -f "$ac_file" ||
continue
2305 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2306 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2320 rm -f conftest
$ac_cv_exeext
2321 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6
2324 rm -f conftest.
$ac_ext
2325 EXEEXT
=$ac_cv_exeext
2327 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2329 if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.
$ac_ext <<_ACEOF
2335 cat confdefs.h
>>conftest.
$ac_ext
2336 cat >>conftest.
$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2347 rm -f conftest.o conftest.obj
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2355 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2356 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.
$ac_ext >&5
2364 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2371 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2373 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2374 echo "${ECHO_T}$ac_cv_objext" >&6
2375 OBJEXT
=$ac_cv_objext
2377 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2378 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2379 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 cat >conftest.
$ac_ext <<_ACEOF
2385 cat confdefs.h
>>conftest.
$ac_ext
2386 cat >>conftest.
$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2400 rm -f conftest.
$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1
>conftest.err
2406 cat conftest.err
>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try
='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try
='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.
$ac_ext >&5
2429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2430 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2433 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2434 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2435 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2436 ac_test_CFLAGS
=${CFLAGS+set}
2437 ac_save_CFLAGS
=$CFLAGS
2439 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2441 if test "${ac_cv_prog_cc_g+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 cat >conftest.
$ac_ext <<_ACEOF
2447 cat confdefs.h
>>conftest.
$ac_ext
2448 cat >>conftest.
$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2459 rm -f conftest.
$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>conftest.er1
2463 grep -v '^ *+' conftest.er1
>conftest.err
2465 cat conftest.err
>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try
='test -z "$ac_c_werror_flag"
2469 || test ! -s conftest.err'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try
='test -s conftest.$ac_objext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.
$ac_ext >&5
2488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2490 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2491 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2492 if test "$ac_test_CFLAGS" = set; then
2493 CFLAGS
=$ac_save_CFLAGS
2494 elif test $ac_cv_prog_cc_g = yes; then
2495 if test "$GCC" = yes; then
2501 if test "$GCC" = yes; then
2507 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2508 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2509 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 ac_cv_prog_cc_stdc
=no
2514 cat >conftest.
$ac_ext <<_ACEOF
2517 cat confdefs.h
>>conftest.
$ac_ext
2518 cat >>conftest.
$ac_ext <<_ACEOF
2519 /* end confdefs.h. */
2522 #include <sys/types.h>
2523 #include <sys/stat.h>
2524 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2525 struct buf { int x; };
2526 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2527 static char *e (p, i)
2533 static char *f (char * (*g) (char **, int), char **p, ...)
2538 s = g (p, va_arg (v,int));
2543 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2544 function prototypes and stuff, but not '\xHH' hex character constants.
2545 These don't provoke an error unfortunately, instead are silently treated
2546 as 'x'. The following induces an error, until -std1 is added to get
2547 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2548 array size at least. It's necessary to write '\x00'==0 to get something
2549 that's true only with -std1. */
2550 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2552 int test (int i, double x);
2553 struct s1 {int (*f) (int a);};
2554 struct s2 {int (*f) (double a);};
2555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2561 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2566 # Don't try gcc -ansi; that turns off useful extensions and
2567 # breaks some systems' header files.
2568 # AIX -qlanglvl=ansi
2569 # Ultrix and OSF/1 -std1
2570 # HP-UX 10.20 and later -Ae
2571 # HP-UX older versions -Aa -D_HPUX_SOURCE
2572 # SVR4 -Xc -D__EXTENSIONS__
2573 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2575 CC
="$ac_save_CC $ac_arg"
2576 rm -f conftest.
$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>conftest.er1
2580 grep -v '^ *+' conftest.er1
>conftest.err
2582 cat conftest.err
>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try
='test -z "$ac_c_werror_flag"
2586 || test ! -s conftest.err'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try
='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 ac_cv_prog_cc_stdc
=$ac_arg
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.
$ac_ext >&5
2605 rm -f conftest.err conftest.
$ac_objext
2607 rm -f conftest.
$ac_ext conftest.
$ac_objext
2612 case "x$ac_cv_prog_cc_stdc" in
2614 echo "$as_me:$LINENO: result: none needed" >&5
2615 echo "${ECHO_T}none needed" >&6 ;;
2617 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2618 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2619 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2622 # Some people use a C++ compiler to compile C. Since we use `exit',
2623 # in C++ we need to declare it. In case someone uses the same compiler
2624 # for both compiling C and C++ we need to have the C++ compiler decide
2625 # the declaration of exit, since it's the most demanding environment.
2626 cat >conftest.
$ac_ext <<_ACEOF
2631 rm -f conftest.
$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>conftest.er1
2635 grep -v '^ *+' conftest.er1
>conftest.err
2637 cat conftest.err
>&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } &&
2640 { ac_try
='test -z "$ac_c_werror_flag"
2641 || test ! -s conftest.err'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; } &&
2647 { ac_try
='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 for ac_declaration
in \
2655 'extern "C" void std::exit (int) throw (); using std::exit;' \
2656 'extern "C" void std::exit (int); using std::exit;' \
2657 'extern "C" void exit (int) throw ();' \
2658 'extern "C" void exit (int);' \
2661 cat >conftest.
$ac_ext <<_ACEOF
2664 cat confdefs.h
>>conftest.
$ac_ext
2665 cat >>conftest.
$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2677 rm -f conftest.
$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2681 grep -v '^ *+' conftest.er1
>conftest.err
2683 cat conftest.err
>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try
='test -z "$ac_c_werror_flag"
2687 || test ! -s conftest.err'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; } &&
2693 { ac_try
='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.
$ac_ext >&5
2706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2707 cat >conftest.
$ac_ext <<_ACEOF
2710 cat confdefs.h
>>conftest.
$ac_ext
2711 cat >>conftest.
$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2722 rm -f conftest.
$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>conftest.er1
2726 grep -v '^ *+' conftest.er1
>conftest.err
2728 cat conftest.err
>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try
='test -z "$ac_c_werror_flag"
2732 || test ! -s conftest.err'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; } &&
2738 { ac_try
='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.
$ac_ext >&5
2750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2753 if test -n "$ac_declaration"; then
2754 echo '#ifdef __cplusplus' >>confdefs.h
2755 echo $ac_declaration >>confdefs.h
2756 echo '#endif' >>confdefs.h
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.
$ac_ext >&5
2764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2766 ac_cpp
='$CPP $CPPFLAGS'
2767 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2771 if test "x$CC" != xcc
; then
2772 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2773 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2775 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2776 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2778 set dummy
$CC; ac_cc
=`echo $2 |
2779 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2780 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 cat >conftest.
$ac_ext <<_ACEOF
2786 cat confdefs.h
>>conftest.
$ac_ext
2787 cat >>conftest.
$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2798 # Make sure it works both with $CC and with simple cc.
2799 # We do the test twice because some compilers refuse to overwrite an
2800 # existing .o file with -o, though they will create one.
2801 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2802 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); };
2813 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2814 if test "x$CC" != xcc
; then
2815 # Test first that cc exists at all.
2816 if { ac_try
='cc -c conftest.$ac_ext >&5'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2823 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); };
2837 # cc exists but doesn't like -o.
2838 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2843 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2849 echo "$as_me:$LINENO: result: yes" >&5
2850 echo "${ECHO_T}yes" >&6
2852 echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6
2855 cat >>confdefs.h
<<\_ACEOF
2856 #define NO_MINUS_C_MINUS_O 1
2861 # expand $ac_aux_dir to an absolute path
2862 am_aux_dir
=`cd $ac_aux_dir && pwd`
2864 # FIXME: we rely on the cache variable name because
2865 # there is no other way.
2867 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2868 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2869 # Losing compiler, so override with the script.
2870 # FIXME: It is wrong to rewrite CC.
2871 # But if we don't then we get into trouble of one sort or another.
2872 # A longer-term fix would be to have automake use am__CC in this case,
2873 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2874 CC
="$am_aux_dir/compile $CC"
2877 # autoconf is lame and doesn't give us any substitution variable for this.
2878 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2879 NO_MINUS_C_MINUS_O
=yes
2881 OUTPUT_OPTION
='-o $@'
2886 # -------------------------
2887 # Check C compiler features
2888 # -------------------------
2891 ac_cpp
='$CPP $CPPFLAGS'
2892 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2895 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2897 # On Suns, sometimes $CPP names a directory.
2898 if test -n "$CPP" && test -d "$CPP"; then
2901 if test -z "$CPP"; then
2902 if test "${ac_cv_prog_CPP+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 # Double quotes because CPP needs to be expanded
2906 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2909 for ac_c_preproc_warn_flag
in '' yes
2911 # Use a header file that comes with gcc, so configuring glibc
2912 # with a fresh cross-compiler works.
2913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2914 # <limits.h> exists even on freestanding compilers.
2915 # On the NeXT, cc -E runs the code through the compiler's parser,
2916 # not just through cpp. "Syntax error" is here to catch this case.
2917 cat >conftest.
$ac_ext <<_ACEOF
2920 cat confdefs.h
>>conftest.
$ac_ext
2921 cat >>conftest.
$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2924 # include <limits.h>
2926 # include <assert.h>
2930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2931 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2933 grep -v '^ *+' conftest.er1
>conftest.err
2935 cat conftest.err
>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } >/dev
/null
; then
2938 if test -s conftest.err
; then
2939 ac_cpp_err
=$ac_c_preproc_warn_flag
2940 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2947 if test -z "$ac_cpp_err"; then
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.
$ac_ext >&5
2953 # Broken: fails on valid input.
2956 rm -f conftest.err conftest.
$ac_ext
2958 # OK, works on sane cases. Now check whether non-existent headers
2959 # can be detected and how.
2960 cat >conftest.
$ac_ext <<_ACEOF
2963 cat confdefs.h
>>conftest.
$ac_ext
2964 cat >>conftest.
$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #include <ac_nonexistent.h>
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2971 grep -v '^ *+' conftest.er1
>conftest.err
2973 cat conftest.err
>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } >/dev
/null
; then
2976 if test -s conftest.err
; then
2977 ac_cpp_err
=$ac_c_preproc_warn_flag
2978 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2985 if test -z "$ac_cpp_err"; then
2986 # Broken: success on invalid input.
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.
$ac_ext >&5
2992 # Passes both tests.
2996 rm -f conftest.err conftest.
$ac_ext
2999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3000 rm -f conftest.err conftest.
$ac_ext
3001 if $ac_preproc_ok; then
3013 echo "$as_me:$LINENO: result: $CPP" >&5
3014 echo "${ECHO_T}$CPP" >&6
3016 for ac_c_preproc_warn_flag
in '' yes
3018 # Use a header file that comes with gcc, so configuring glibc
3019 # with a fresh cross-compiler works.
3020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3021 # <limits.h> exists even on freestanding compilers.
3022 # On the NeXT, cc -E runs the code through the compiler's parser,
3023 # not just through cpp. "Syntax error" is here to catch this case.
3024 cat >conftest.
$ac_ext <<_ACEOF
3027 cat confdefs.h
>>conftest.
$ac_ext
3028 cat >>conftest.
$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3031 # include <limits.h>
3033 # include <assert.h>
3037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3038 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3040 grep -v '^ *+' conftest.er1
>conftest.err
3042 cat conftest.err
>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } >/dev
/null
; then
3045 if test -s conftest.err
; then
3046 ac_cpp_err
=$ac_c_preproc_warn_flag
3047 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3054 if test -z "$ac_cpp_err"; then
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.
$ac_ext >&5
3060 # Broken: fails on valid input.
3063 rm -f conftest.err conftest.
$ac_ext
3065 # OK, works on sane cases. Now check whether non-existent headers
3066 # can be detected and how.
3067 cat >conftest.
$ac_ext <<_ACEOF
3070 cat confdefs.h
>>conftest.
$ac_ext
3071 cat >>conftest.
$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #include <ac_nonexistent.h>
3075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3078 grep -v '^ *+' conftest.er1
>conftest.err
3080 cat conftest.err
>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } >/dev
/null
; then
3083 if test -s conftest.err
; then
3084 ac_cpp_err
=$ac_c_preproc_warn_flag
3085 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3092 if test -z "$ac_cpp_err"; then
3093 # Broken: success on invalid input.
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.
$ac_ext >&5
3099 # Passes both tests.
3103 rm -f conftest.err conftest.
$ac_ext
3106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3107 rm -f conftest.err conftest.
$ac_ext
3108 if $ac_preproc_ok; then
3111 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&5
3113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3114 See \`config.log' for more details." >&2;}
3115 { (exit 1); exit 1; }; }
3119 ac_cpp
='$CPP $CPPFLAGS'
3120 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3125 echo "$as_me:$LINENO: checking for inline" >&5
3126 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3127 if test "${ac_cv_c_inline+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 for ac_kw
in inline __inline__ __inline
; do
3132 cat >conftest.
$ac_ext <<_ACEOF
3135 cat confdefs.h
>>conftest.
$ac_ext
3136 cat >>conftest.
$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3140 static $ac_kw foo_t static_foo () {return 0; }
3141 $ac_kw foo_t foo () {return 0; }
3145 rm -f conftest.
$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>conftest.er1
3149 grep -v '^ *+' conftest.er1
>conftest.err
3151 cat conftest.err
>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try
='test -z "$ac_c_werror_flag"
3155 || test ! -s conftest.err'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try
='test -s conftest.$ac_objext'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_cv_c_inline
=$ac_kw; break
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.
$ac_ext >&5
3173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3177 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3178 echo "${ECHO_T}$ac_cv_c_inline" >&6
3181 case $ac_cv_c_inline in
3184 case $ac_cv_c_inline in
3186 *) ac_val
=$ac_cv_c_inline;;
3188 cat >>confdefs.h
<<_ACEOF
3190 #define inline $ac_val
3197 echo "$as_me:$LINENO: checking for long long int" >&5
3198 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3199 if test "${ac_cv_c_long_long+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 cat >conftest.
$ac_ext <<_ACEOF
3205 cat confdefs.h
>>conftest.
$ac_ext
3206 cat >>conftest.
$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3217 rm -f conftest.
$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>conftest.er1
3221 grep -v '^ *+' conftest.er1
>conftest.err
3223 cat conftest.err
>&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try
='test -z "$ac_c_werror_flag"
3227 || test ! -s conftest.err'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; } &&
3233 { ac_try
='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_c_long_long
=yes
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.
$ac_ext >&5
3244 ac_cv_c_long_long
=no
3246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3248 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3249 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3250 if test $ac_cv_c_long_long = yes; then
3252 cat >>confdefs.h
<<\_ACEOF
3253 #define HAVE_LONG_LONG 1
3257 echo "$as_me:$LINENO: checking for __int64" >&5
3258 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3259 if test "${ac_cv_c___int64+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 cat >conftest.
$ac_ext <<_ACEOF
3265 cat confdefs.h
>>conftest.
$ac_ext
3266 cat >>conftest.
$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3277 rm -f conftest.
$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3281 grep -v '^ *+' conftest.er1
>conftest.err
3283 cat conftest.err
>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try
='test -z "$ac_c_werror_flag"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try
='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.
$ac_ext >&5
3306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3308 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3309 echo "${ECHO_T}$ac_cv_c___int64" >&6
3310 if test $ac_cv_c___int64 = yes; then
3312 cat >>confdefs.h
<<\_ACEOF
3313 #define HAVE___INT64 1
3319 # sizeof(char) is 1 by definition.
3321 echo "$as_me:$LINENO: checking for egrep" >&5
3322 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3323 if test "${ac_cv_prog_egrep+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3327 then ac_cv_prog_egrep
='grep -E'
3328 else ac_cv_prog_egrep
='egrep'
3331 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3332 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3333 EGREP
=$ac_cv_prog_egrep
3336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3338 if test "${ac_cv_header_stdc+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 cat >conftest.
$ac_ext <<_ACEOF
3344 cat confdefs.h
>>conftest.
$ac_ext
3345 cat >>conftest.
$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3360 rm -f conftest.
$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>conftest.er1
3364 grep -v '^ *+' conftest.er1
>conftest.err
3366 cat conftest.err
>&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try
='test -z "$ac_c_werror_flag"
3370 || test ! -s conftest.err'
3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; } &&
3376 { ac_try
='test -s conftest.$ac_objext'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; }; then
3382 ac_cv_header_stdc
=yes
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.
$ac_ext >&5
3387 ac_cv_header_stdc
=no
3389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3391 if test $ac_cv_header_stdc = yes; then
3392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3393 cat >conftest.
$ac_ext <<_ACEOF
3396 cat confdefs.h
>>conftest.
$ac_ext
3397 cat >>conftest.
$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3403 $EGREP "memchr" >/dev
/null
2>&1; then
3406 ac_cv_header_stdc
=no
3412 if test $ac_cv_header_stdc = yes; then
3413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3414 cat >conftest.
$ac_ext <<_ACEOF
3417 cat confdefs.h
>>conftest.
$ac_ext
3418 cat >>conftest.
$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "free" >/dev
/null
2>&1; then
3427 ac_cv_header_stdc
=no
3433 if test $ac_cv_header_stdc = yes; then
3434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3435 if test "$cross_compiling" = yes; then
3438 cat >conftest.
$ac_ext <<_ACEOF
3441 cat confdefs.h
>>conftest.
$ac_ext
3442 cat >>conftest.
$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3445 #if ((' ' & 0x0FF) == 0x020)
3446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3449 # define ISLOWER(c) \
3450 (('a' <= (c) && (c) <= 'i') \
3451 || ('j' <= (c) && (c) <= 'r') \
3452 || ('s' <= (c) && (c) <= 'z'))
3453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3461 for (i = 0; i < 256; i++)
3462 if (XOR (islower (i), ISLOWER (i))
3463 || toupper (i) != TOUPPER (i))
3468 rm -f conftest
$ac_exeext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3470 (eval $ac_link) 2>&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3481 echo "$as_me: program exited with status $ac_status" >&5
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.
$ac_ext >&5
3486 ac_cv_header_stdc
=no
3488 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3494 if test $ac_cv_header_stdc = yes; then
3496 cat >>confdefs.h
<<\_ACEOF
3497 #define STDC_HEADERS 1
3502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3512 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3513 inttypes.h stdint.h unistd.h
3515 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3516 echo "$as_me:$LINENO: checking for $ac_header" >&5
3517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 cat >conftest.
$ac_ext <<_ACEOF
3524 cat confdefs.h
>>conftest.
$ac_ext
3525 cat >>conftest.
$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 $ac_includes_default
3529 #include <$ac_header>
3531 rm -f conftest.
$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3535 grep -v '^ *+' conftest.er1
>conftest.err
3537 cat conftest.err
>&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try
='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try
='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 eval "$as_ac_Header=yes"
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.
$ac_ext >&5
3558 eval "$as_ac_Header=no"
3560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3565 cat >>confdefs.h
<<_ACEOF
3566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3574 echo "$as_me:$LINENO: checking for void *" >&5
3575 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3576 if test "${ac_cv_type_void_p+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 cat >conftest.
$ac_ext <<_ACEOF
3582 cat confdefs.h
>>conftest.
$ac_ext
3583 cat >>conftest.
$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 $ac_includes_default
3591 if (sizeof (void *))
3597 rm -f conftest.
$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>conftest.er1
3601 grep -v '^ *+' conftest.er1
>conftest.err
3603 cat conftest.err
>&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 { ac_try
='test -z "$ac_c_werror_flag"
3607 || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try
='test -s conftest.$ac_objext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 ac_cv_type_void_p
=yes
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.
$ac_ext >&5
3624 ac_cv_type_void_p
=no
3626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3628 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3629 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3631 echo "$as_me:$LINENO: checking size of void *" >&5
3632 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3633 if test "${ac_cv_sizeof_void_p+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 if test "$ac_cv_type_void_p" = yes; then
3637 # The cast to unsigned long works around a bug in the HP C Compiler
3638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3640 # This bug is HP SR number 8606223364.
3641 if test "$cross_compiling" = yes; then
3642 # Depending upon the size, compute the lo and hi bounds.
3643 cat >conftest.
$ac_ext <<_ACEOF
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 $ac_includes_default
3653 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3660 rm -f conftest.
$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3664 grep -v '^ *+' conftest.er1
>conftest.err
3666 cat conftest.err
>&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try
='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try
='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3684 cat >conftest.
$ac_ext <<_ACEOF
3687 cat confdefs.h
>>conftest.
$ac_ext
3688 cat >>conftest.
$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 $ac_includes_default
3694 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3701 rm -f conftest.
$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3705 grep -v '^ *+' conftest.er1
>conftest.err
3707 cat conftest.err
>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try
='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try
='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 ac_hi
=$ac_mid; break
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.
$ac_ext >&5
3728 ac_lo
=`expr $ac_mid + 1`
3729 if test $ac_lo -le $ac_mid; then
3733 ac_mid
=`expr 2 '*' $ac_mid + 1`
3735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.
$ac_ext >&5
3741 cat >conftest.
$ac_ext <<_ACEOF
3744 cat confdefs.h
>>conftest.
$ac_ext
3745 cat >>conftest.
$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3747 $ac_includes_default
3751 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3758 rm -f conftest.
$ac_objext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3760 (eval $ac_compile) 2>conftest.er1
3762 grep -v '^ *+' conftest.er1
>conftest.err
3764 cat conftest.err
>&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } &&
3767 { ac_try
='test -z "$ac_c_werror_flag"
3768 || test ! -s conftest.err'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; } &&
3774 { ac_try
='test -s conftest.$ac_objext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3782 cat >conftest.
$ac_ext <<_ACEOF
3785 cat confdefs.h
>>conftest.
$ac_ext
3786 cat >>conftest.
$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788 $ac_includes_default
3792 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3799 rm -f conftest.
$ac_objext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801 (eval $ac_compile) 2>conftest.er1
3803 grep -v '^ *+' conftest.er1
>conftest.err
3805 cat conftest.err
>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try
='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try
='test -s conftest.$ac_objext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 ac_lo
=$ac_mid; break
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.
$ac_ext >&5
3826 ac_hi
=`expr '(' $ac_mid ')' - 1`
3827 if test $ac_mid -le $ac_hi; then
3831 ac_mid
=`expr 2 '*' $ac_mid`
3833 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.
$ac_ext >&5
3841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3843 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3844 # Binary search between lo and hi bounds.
3845 while test "x$ac_lo" != "x$ac_hi"; do
3846 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3847 cat >conftest.
$ac_ext <<_ACEOF
3850 cat confdefs.h
>>conftest.
$ac_ext
3851 cat >>conftest.
$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 $ac_includes_default
3857 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3864 rm -f conftest.
$ac_objext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>conftest.er1
3868 grep -v '^ *+' conftest.er1
>conftest.err
3870 cat conftest.err
>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try
='test -z "$ac_c_werror_flag"
3874 || test ! -s conftest.err'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try
='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.
$ac_ext >&5
3891 ac_lo
=`expr '(' $ac_mid ')' + 1`
3893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3896 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3897 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3898 See \`config.log' for more details." >&5
3899 echo "$as_me: error: cannot compute sizeof (void *), 77
3900 See \`config.log' for more details." >&2;}
3901 { (exit 1); exit 1; }; } ;;
3904 if test "$cross_compiling" = yes; then
3905 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3906 See \`config.log' for more details." >&5
3907 echo "$as_me: error: cannot run test program while cross compiling
3908 See \`config.log' for more details." >&2;}
3909 { (exit 1); exit 1; }; }
3911 cat >conftest.
$ac_ext <<_ACEOF
3914 cat confdefs.h
>>conftest.
$ac_ext
3915 cat >>conftest.
$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 $ac_includes_default
3918 long longval () { return (long) (sizeof (void *)); }
3919 unsigned long ulongval () { return (long) (sizeof (void *)); }
3926 FILE *f = fopen ("conftest.val", "w");
3929 if (((long) (sizeof (void *))) < 0)
3931 long i = longval ();
3932 if (i != ((long) (sizeof (void *))))
3934 fprintf (f, "%ld\n", i);
3938 unsigned long i = ulongval ();
3939 if (i != ((long) (sizeof (void *))))
3941 fprintf (f, "%lu\n", i);
3943 exit (ferror (f) || fclose (f) != 0);
3949 rm -f conftest
$ac_exeext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951 (eval $ac_link) 2>&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 ac_cv_sizeof_void_p
=`cat conftest.val`
3962 echo "$as_me: program exited with status $ac_status" >&5
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.
$ac_ext >&5
3967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3968 See \`config.log' for more details." >&5
3969 echo "$as_me: error: cannot compute sizeof (void *), 77
3970 See \`config.log' for more details." >&2;}
3971 { (exit 1); exit 1; }; }
3973 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3978 ac_cv_sizeof_void_p
=0
3981 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3982 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3983 cat >>confdefs.h
<<_ACEOF
3984 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3988 echo "$as_me:$LINENO: checking for short" >&5
3989 echo $ECHO_N "checking for short... $ECHO_C" >&6
3990 if test "${ac_cv_type_short+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 $ac_includes_default
4011 rm -f conftest.
$ac_objext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
4015 grep -v '^ *+' conftest.er1
>conftest.err
4017 cat conftest.err
>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try
='test -z "$ac_c_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try
='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 ac_cv_type_short
=yes
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.
$ac_ext >&5
4040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4042 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4043 echo "${ECHO_T}$ac_cv_type_short" >&6
4045 echo "$as_me:$LINENO: checking size of short" >&5
4046 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4047 if test "${ac_cv_sizeof_short+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 if test "$ac_cv_type_short" = yes; then
4051 # The cast to unsigned long works around a bug in the HP C Compiler
4052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4054 # This bug is HP SR number 8606223364.
4055 if test "$cross_compiling" = yes; then
4056 # Depending upon the size, compute the lo and hi bounds.
4057 cat >conftest.
$ac_ext <<_ACEOF
4060 cat confdefs.h
>>conftest.
$ac_ext
4061 cat >>conftest.
$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4067 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4074 rm -f conftest.
$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4078 grep -v '^ *+' conftest.er1
>conftest.err
4080 cat conftest.err
>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try
='test -z "$ac_c_werror_flag"
4084 || 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
4098 cat >conftest.
$ac_ext <<_ACEOF
4101 cat confdefs.h
>>conftest.
$ac_ext
4102 cat >>conftest.
$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 $ac_includes_default
4108 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4115 rm -f conftest.
$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4119 grep -v '^ *+' conftest.er1
>conftest.err
4121 cat conftest.err
>&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try
='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try
='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_hi
=$ac_mid; break
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.
$ac_ext >&5
4142 ac_lo
=`expr $ac_mid + 1`
4143 if test $ac_lo -le $ac_mid; then
4147 ac_mid
=`expr 2 '*' $ac_mid + 1`
4149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.
$ac_ext >&5
4155 cat >conftest.
$ac_ext <<_ACEOF
4158 cat confdefs.h
>>conftest.
$ac_ext
4159 cat >>conftest.
$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 $ac_includes_default
4165 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4172 rm -f conftest.
$ac_objext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>conftest.er1
4176 grep -v '^ *+' conftest.er1
>conftest.err
4178 cat conftest.err
>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try
='test -z "$ac_c_werror_flag"
4182 || test ! -s conftest.err'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; } &&
4188 { ac_try
='test -s conftest.$ac_objext'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4196 cat >conftest.
$ac_ext <<_ACEOF
4199 cat confdefs.h
>>conftest.
$ac_ext
4200 cat >>conftest.
$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4206 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4213 rm -f conftest.
$ac_objext
4214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4215 (eval $ac_compile) 2>conftest.er1
4217 grep -v '^ *+' conftest.er1
>conftest.err
4219 cat conftest.err
>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try
='test -z "$ac_c_werror_flag"
4223 || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try
='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 ac_lo
=$ac_mid; break
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.
$ac_ext >&5
4240 ac_hi
=`expr '(' $ac_mid ')' - 1`
4241 if test $ac_mid -le $ac_hi; then
4245 ac_mid
=`expr 2 '*' $ac_mid`
4247 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.
$ac_ext >&5
4255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4258 # Binary search between lo and hi bounds.
4259 while test "x$ac_lo" != "x$ac_hi"; do
4260 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 $ac_includes_default
4271 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4278 rm -f conftest.
$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4282 grep -v '^ *+' conftest.er1
>conftest.err
4284 cat conftest.err
>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try
='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try
='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.
$ac_ext >&5
4305 ac_lo
=`expr '(' $ac_mid ')' + 1`
4307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4310 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4311 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4312 See \`config.log' for more details." >&5
4313 echo "$as_me: error: cannot compute sizeof (short), 77
4314 See \`config.log' for more details." >&2;}
4315 { (exit 1); exit 1; }; } ;;
4318 if test "$cross_compiling" = yes; then
4319 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4320 See \`config.log' for more details." >&5
4321 echo "$as_me: error: cannot run test program while cross compiling
4322 See \`config.log' for more details." >&2;}
4323 { (exit 1); exit 1; }; }
4325 cat >conftest.
$ac_ext <<_ACEOF
4328 cat confdefs.h
>>conftest.
$ac_ext
4329 cat >>conftest.
$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 $ac_includes_default
4332 long longval () { return (long) (sizeof (short)); }
4333 unsigned long ulongval () { return (long) (sizeof (short)); }
4340 FILE *f = fopen ("conftest.val", "w");
4343 if (((long) (sizeof (short))) < 0)
4345 long i = longval ();
4346 if (i != ((long) (sizeof (short))))
4348 fprintf (f, "%ld\n", i);
4352 unsigned long i = ulongval ();
4353 if (i != ((long) (sizeof (short))))
4355 fprintf (f, "%lu\n", i);
4357 exit (ferror (f) || fclose (f) != 0);
4363 rm -f conftest
$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 ac_cv_sizeof_short
=`cat conftest.val`
4376 echo "$as_me: program exited with status $ac_status" >&5
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.
$ac_ext >&5
4381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4382 See \`config.log' for more details." >&5
4383 echo "$as_me: error: cannot compute sizeof (short), 77
4384 See \`config.log' for more details." >&2;}
4385 { (exit 1); exit 1; }; }
4387 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4392 ac_cv_sizeof_short
=0
4395 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4396 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4397 cat >>confdefs.h
<<_ACEOF
4398 #define SIZEOF_SHORT $ac_cv_sizeof_short
4402 echo "$as_me:$LINENO: checking for int" >&5
4403 echo $ECHO_N "checking for int... $ECHO_C" >&6
4404 if test "${ac_cv_type_int+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 cat >conftest.
$ac_ext <<_ACEOF
4410 cat confdefs.h
>>conftest.
$ac_ext
4411 cat >>conftest.
$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 $ac_includes_default
4425 rm -f conftest.
$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4429 grep -v '^ *+' conftest.er1
>conftest.err
4431 cat conftest.err
>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try
='test -z "$ac_c_werror_flag"
4435 || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try
='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.
$ac_ext >&5
4454 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4456 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4457 echo "${ECHO_T}$ac_cv_type_int" >&6
4459 echo "$as_me:$LINENO: checking size of int" >&5
4460 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4461 if test "${ac_cv_sizeof_int+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 if test "$ac_cv_type_int" = yes; then
4465 # The cast to unsigned long works around a bug in the HP C Compiler
4466 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4467 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4468 # This bug is HP SR number 8606223364.
4469 if test "$cross_compiling" = yes; then
4470 # Depending upon the size, compute the lo and hi bounds.
4471 cat >conftest.
$ac_ext <<_ACEOF
4474 cat confdefs.h
>>conftest.
$ac_ext
4475 cat >>conftest.
$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 $ac_includes_default
4481 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4488 rm -f conftest.
$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1
>conftest.err
4494 cat conftest.err
>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try
='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try
='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4512 cat >conftest.
$ac_ext <<_ACEOF
4515 cat confdefs.h
>>conftest.
$ac_ext
4516 cat >>conftest.
$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 $ac_includes_default
4522 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4529 rm -f conftest.
$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4533 grep -v '^ *+' conftest.er1
>conftest.err
4535 cat conftest.err
>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try
='test -z "$ac_c_werror_flag"
4539 || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try
='test -s conftest.$ac_objext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_hi
=$ac_mid; break
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.
$ac_ext >&5
4556 ac_lo
=`expr $ac_mid + 1`
4557 if test $ac_lo -le $ac_mid; then
4561 ac_mid
=`expr 2 '*' $ac_mid + 1`
4563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.
$ac_ext >&5
4569 cat >conftest.
$ac_ext <<_ACEOF
4572 cat confdefs.h
>>conftest.
$ac_ext
4573 cat >>conftest.
$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4575 $ac_includes_default
4579 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4586 rm -f conftest.
$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4590 grep -v '^ *+' conftest.er1
>conftest.err
4592 cat conftest.err
>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try
='test -z "$ac_c_werror_flag"
4596 || test ! -s conftest.err'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; } &&
4602 { ac_try
='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4610 cat >conftest.
$ac_ext <<_ACEOF
4613 cat confdefs.h
>>conftest.
$ac_ext
4614 cat >>conftest.
$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 $ac_includes_default
4620 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4627 rm -f conftest.
$ac_objext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4629 (eval $ac_compile) 2>conftest.er1
4631 grep -v '^ *+' conftest.er1
>conftest.err
4633 cat conftest.err
>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try
='test -z "$ac_c_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try
='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 ac_lo
=$ac_mid; break
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.
$ac_ext >&5
4654 ac_hi
=`expr '(' $ac_mid ')' - 1`
4655 if test $ac_mid -le $ac_hi; then
4659 ac_mid
=`expr 2 '*' $ac_mid`
4661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.
$ac_ext >&5
4669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4672 # Binary search between lo and hi bounds.
4673 while test "x$ac_lo" != "x$ac_hi"; do
4674 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4675 cat >conftest.
$ac_ext <<_ACEOF
4678 cat confdefs.h
>>conftest.
$ac_ext
4679 cat >>conftest.
$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 $ac_includes_default
4685 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4692 rm -f conftest.
$ac_objext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>conftest.er1
4696 grep -v '^ *+' conftest.er1
>conftest.err
4698 cat conftest.err
>&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try
='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try
='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.
$ac_ext >&5
4719 ac_lo
=`expr '(' $ac_mid ')' + 1`
4721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4724 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4725 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4726 See \`config.log' for more details." >&5
4727 echo "$as_me: error: cannot compute sizeof (int), 77
4728 See \`config.log' for more details." >&2;}
4729 { (exit 1); exit 1; }; } ;;
4732 if test "$cross_compiling" = yes; then
4733 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4734 See \`config.log' for more details." >&5
4735 echo "$as_me: error: cannot run test program while cross compiling
4736 See \`config.log' for more details." >&2;}
4737 { (exit 1); exit 1; }; }
4739 cat >conftest.
$ac_ext <<_ACEOF
4742 cat confdefs.h
>>conftest.
$ac_ext
4743 cat >>conftest.
$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4746 long longval () { return (long) (sizeof (int)); }
4747 unsigned long ulongval () { return (long) (sizeof (int)); }
4754 FILE *f = fopen ("conftest.val", "w");
4757 if (((long) (sizeof (int))) < 0)
4759 long i = longval ();
4760 if (i != ((long) (sizeof (int))))
4762 fprintf (f, "%ld\n", i);
4766 unsigned long i = ulongval ();
4767 if (i != ((long) (sizeof (int))))
4769 fprintf (f, "%lu\n", i);
4771 exit (ferror (f) || fclose (f) != 0);
4777 rm -f conftest
$ac_exeext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4779 (eval $ac_link) 2>&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4788 ac_cv_sizeof_int
=`cat conftest.val`
4790 echo "$as_me: program exited with status $ac_status" >&5
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.
$ac_ext >&5
4795 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4796 See \`config.log' for more details." >&5
4797 echo "$as_me: error: cannot compute sizeof (int), 77
4798 See \`config.log' for more details." >&2;}
4799 { (exit 1); exit 1; }; }
4801 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4809 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4810 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4811 cat >>confdefs.h
<<_ACEOF
4812 #define SIZEOF_INT $ac_cv_sizeof_int
4816 echo "$as_me:$LINENO: checking for long" >&5
4817 echo $ECHO_N "checking for long... $ECHO_C" >&6
4818 if test "${ac_cv_type_long+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 cat >conftest.
$ac_ext <<_ACEOF
4824 cat confdefs.h
>>conftest.
$ac_ext
4825 cat >>conftest.
$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 $ac_includes_default
4839 rm -f conftest.
$ac_objext
4840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>conftest.er1
4843 grep -v '^ *+' conftest.er1
>conftest.err
4845 cat conftest.err
>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try
='test -z "$ac_c_werror_flag"
4849 || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try
='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.
$ac_ext >&5
4868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4871 echo "${ECHO_T}$ac_cv_type_long" >&6
4873 echo "$as_me:$LINENO: checking size of long" >&5
4874 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4875 if test "${ac_cv_sizeof_long+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 if test "$ac_cv_type_long" = yes; then
4879 # The cast to unsigned long works around a bug in the HP C Compiler
4880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4882 # This bug is HP SR number 8606223364.
4883 if test "$cross_compiling" = yes; then
4884 # Depending upon the size, compute the lo and hi bounds.
4885 cat >conftest.
$ac_ext <<_ACEOF
4888 cat confdefs.h
>>conftest.
$ac_ext
4889 cat >>conftest.
$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4895 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4902 rm -f conftest.
$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4906 grep -v '^ *+' conftest.er1
>conftest.err
4908 cat conftest.err
>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try
='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try
='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
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))) <= $ac_mid)];
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"
4953 || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try
='test -s conftest.$ac_objext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_hi
=$ac_mid; break
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.
$ac_ext >&5
4970 ac_lo
=`expr $ac_mid + 1`
4971 if test $ac_lo -le $ac_mid; then
4975 ac_mid
=`expr 2 '*' $ac_mid + 1`
4977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.
$ac_ext >&5
4983 cat >conftest.
$ac_ext <<_ACEOF
4986 cat confdefs.h
>>conftest.
$ac_ext
4987 cat >>conftest.
$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 $ac_includes_default
4993 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5000 rm -f conftest.
$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5004 grep -v '^ *+' conftest.er1
>conftest.err
5006 cat conftest.err
>&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try
='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try
='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5024 cat >conftest.
$ac_ext <<_ACEOF
5027 cat confdefs.h
>>conftest.
$ac_ext
5028 cat >>conftest.
$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 $ac_includes_default
5034 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5041 rm -f conftest.
$ac_objext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043 (eval $ac_compile) 2>conftest.er1
5045 grep -v '^ *+' conftest.er1
>conftest.err
5047 cat conftest.err
>&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
5050 { ac_try
='test -z "$ac_c_werror_flag"
5051 || test ! -s conftest.err'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; } &&
5057 { ac_try
='test -s conftest.$ac_objext'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_lo
=$ac_mid; break
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.
$ac_ext >&5
5068 ac_hi
=`expr '(' $ac_mid ')' - 1`
5069 if test $ac_mid -le $ac_hi; then
5073 ac_mid
=`expr 2 '*' $ac_mid`
5075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.
$ac_ext >&5
5083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5086 # Binary search between lo and hi bounds.
5087 while test "x$ac_lo" != "x$ac_hi"; do
5088 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5089 cat >conftest.
$ac_ext <<_ACEOF
5092 cat confdefs.h
>>conftest.
$ac_ext
5093 cat >>conftest.
$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 $ac_includes_default
5099 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5106 rm -f conftest.
$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>conftest.er1
5110 grep -v '^ *+' conftest.er1
>conftest.err
5112 cat conftest.err
>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try
='test -z "$ac_c_werror_flag"
5116 || test ! -s conftest.err'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; } &&
5122 { ac_try
='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.
$ac_ext >&5
5133 ac_lo
=`expr '(' $ac_mid ')' + 1`
5135 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5138 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5139 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5140 See \`config.log' for more details." >&5
5141 echo "$as_me: error: cannot compute sizeof (long), 77
5142 See \`config.log' for more details." >&2;}
5143 { (exit 1); exit 1; }; } ;;
5146 if test "$cross_compiling" = yes; then
5147 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: cannot run test program while cross compiling
5150 See \`config.log' for more details." >&2;}
5151 { (exit 1); exit 1; }; }
5153 cat >conftest.
$ac_ext <<_ACEOF
5156 cat confdefs.h
>>conftest.
$ac_ext
5157 cat >>conftest.
$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 $ac_includes_default
5160 long longval () { return (long) (sizeof (long)); }
5161 unsigned long ulongval () { return (long) (sizeof (long)); }
5168 FILE *f = fopen ("conftest.val", "w");
5171 if (((long) (sizeof (long))) < 0)
5173 long i = longval ();
5174 if (i != ((long) (sizeof (long))))
5176 fprintf (f, "%ld\n", i);
5180 unsigned long i = ulongval ();
5181 if (i != ((long) (sizeof (long))))
5183 fprintf (f, "%lu\n", i);
5185 exit (ferror (f) || fclose (f) != 0);
5191 rm -f conftest
$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 ac_cv_sizeof_long
=`cat conftest.val`
5204 echo "$as_me: program exited with status $ac_status" >&5
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.
$ac_ext >&5
5209 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5210 See \`config.log' for more details." >&5
5211 echo "$as_me: error: cannot compute sizeof (long), 77
5212 See \`config.log' for more details." >&2;}
5213 { (exit 1); exit 1; }; }
5215 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5223 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5224 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5225 cat >>confdefs.h
<<_ACEOF
5226 #define SIZEOF_LONG $ac_cv_sizeof_long
5230 if test $ac_cv_c_long_long = yes; then
5231 echo "$as_me:$LINENO: checking for long long" >&5
5232 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5233 if test "${ac_cv_type_long_long+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 cat >conftest.
$ac_ext <<_ACEOF
5239 cat confdefs.h
>>conftest.
$ac_ext
5240 cat >>conftest.
$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5246 if ((long long *) 0)
5248 if (sizeof (long long))
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"
5264 || test ! -s conftest.err'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; } &&
5270 { ac_try
='test -s conftest.$ac_objext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5276 ac_cv_type_long_long
=yes
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.
$ac_ext >&5
5281 ac_cv_type_long_long
=no
5283 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5285 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5286 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5288 echo "$as_me:$LINENO: checking size of long long" >&5
5289 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5290 if test "${ac_cv_sizeof_long_long+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 if test "$ac_cv_type_long_long" = yes; then
5294 # The cast to unsigned long works around a bug in the HP C Compiler
5295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5297 # This bug is HP SR number 8606223364.
5298 if test "$cross_compiling" = yes; then
5299 # Depending upon the size, compute the lo and hi bounds.
5300 cat >conftest.
$ac_ext <<_ACEOF
5303 cat confdefs.h
>>conftest.
$ac_ext
5304 cat >>conftest.
$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 $ac_includes_default
5310 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5317 rm -f conftest.
$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1
>conftest.err
5323 cat conftest.err
>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try
='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try
='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5341 cat >conftest.
$ac_ext <<_ACEOF
5344 cat confdefs.h
>>conftest.
$ac_ext
5345 cat >>conftest.
$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 $ac_includes_default
5351 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5358 rm -f conftest.
$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5362 grep -v '^ *+' conftest.er1
>conftest.err
5364 cat conftest.err
>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try
='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try
='test -s conftest.$ac_objext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_hi
=$ac_mid; break
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.
$ac_ext >&5
5385 ac_lo
=`expr $ac_mid + 1`
5386 if test $ac_lo -le $ac_mid; then
5390 ac_mid
=`expr 2 '*' $ac_mid + 1`
5392 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.
$ac_ext >&5
5398 cat >conftest.
$ac_ext <<_ACEOF
5401 cat confdefs.h
>>conftest.
$ac_ext
5402 cat >>conftest.
$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 $ac_includes_default
5408 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5415 rm -f conftest.
$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>conftest.er1
5419 grep -v '^ *+' conftest.er1
>conftest.err
5421 cat conftest.err
>&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try
='test -z "$ac_c_werror_flag"
5425 || test ! -s conftest.err'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; } &&
5431 { ac_try
='test -s conftest.$ac_objext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5439 cat >conftest.
$ac_ext <<_ACEOF
5442 cat confdefs.h
>>conftest.
$ac_ext
5443 cat >>conftest.
$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 $ac_includes_default
5449 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5456 rm -f conftest.
$ac_objext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458 (eval $ac_compile) 2>conftest.er1
5460 grep -v '^ *+' conftest.er1
>conftest.err
5462 cat conftest.err
>&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try
='test -z "$ac_c_werror_flag"
5466 || test ! -s conftest.err'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; } &&
5472 { ac_try
='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_lo
=$ac_mid; break
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.
$ac_ext >&5
5483 ac_hi
=`expr '(' $ac_mid ')' - 1`
5484 if test $ac_mid -le $ac_hi; then
5488 ac_mid
=`expr 2 '*' $ac_mid`
5490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.
$ac_ext >&5
5498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5501 # Binary search between lo and hi bounds.
5502 while test "x$ac_lo" != "x$ac_hi"; do
5503 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5504 cat >conftest.
$ac_ext <<_ACEOF
5507 cat confdefs.h
>>conftest.
$ac_ext
5508 cat >>conftest.
$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 $ac_includes_default
5514 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5521 rm -f conftest.
$ac_objext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523 (eval $ac_compile) 2>conftest.er1
5525 grep -v '^ *+' conftest.er1
>conftest.err
5527 cat conftest.err
>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try
='test -z "$ac_c_werror_flag"
5531 || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try
='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.
$ac_ext >&5
5548 ac_lo
=`expr '(' $ac_mid ')' + 1`
5550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5553 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
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; }; } ;;
5561 if test "$cross_compiling" = yes; then
5562 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5563 See \`config.log' for more details." >&5
5564 echo "$as_me: error: cannot run test program while cross compiling
5565 See \`config.log' for more details." >&2;}
5566 { (exit 1); exit 1; }; }
5568 cat >conftest.
$ac_ext <<_ACEOF
5571 cat confdefs.h
>>conftest.
$ac_ext
5572 cat >>conftest.
$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 $ac_includes_default
5575 long longval () { return (long) (sizeof (long long)); }
5576 unsigned long ulongval () { return (long) (sizeof (long long)); }
5583 FILE *f = fopen ("conftest.val", "w");
5586 if (((long) (sizeof (long long))) < 0)
5588 long i = longval ();
5589 if (i != ((long) (sizeof (long long))))
5591 fprintf (f, "%ld\n", i);
5595 unsigned long i = ulongval ();
5596 if (i != ((long) (sizeof (long long))))
5598 fprintf (f, "%lu\n", i);
5600 exit (ferror (f) || fclose (f) != 0);
5606 rm -f conftest
$ac_exeext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608 (eval $ac_link) 2>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_sizeof_long_long
=`cat conftest.val`
5619 echo "$as_me: program exited with status $ac_status" >&5
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.
$ac_ext >&5
5624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5625 See \`config.log' for more details." >&5
5626 echo "$as_me: error: cannot compute sizeof (long long), 77
5627 See \`config.log' for more details." >&2;}
5628 { (exit 1); exit 1; }; }
5630 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5635 ac_cv_sizeof_long_long
=0
5638 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5639 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5640 cat >>confdefs.h
<<_ACEOF
5641 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5646 if test $ac_cv_c___int64 = yes; then
5647 echo "$as_me:$LINENO: checking for __int64" >&5
5648 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5649 if test "${ac_cv_type___int64+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 cat >conftest.
$ac_ext <<_ACEOF
5655 cat confdefs.h
>>conftest.
$ac_ext
5656 cat >>conftest.
$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 $ac_includes_default
5664 if (sizeof (__int64))
5670 rm -f conftest.
$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>conftest.er1
5674 grep -v '^ *+' conftest.er1
>conftest.err
5676 cat conftest.err
>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try
='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try
='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_type___int64
=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.
$ac_ext >&5
5697 ac_cv_type___int64
=no
5699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5701 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5702 echo "${ECHO_T}$ac_cv_type___int64" >&6
5704 echo "$as_me:$LINENO: checking size of __int64" >&5
5705 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5706 if test "${ac_cv_sizeof___int64+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 if test "$ac_cv_type___int64" = yes; then
5710 # The cast to unsigned long works around a bug in the HP C Compiler
5711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5713 # This bug is HP SR number 8606223364.
5714 if test "$cross_compiling" = yes; then
5715 # Depending upon the size, compute the lo and hi bounds.
5716 cat >conftest.
$ac_ext <<_ACEOF
5719 cat confdefs.h
>>conftest.
$ac_ext
5720 cat >>conftest.
$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 $ac_includes_default
5726 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5733 rm -f conftest.
$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>conftest.er1
5737 grep -v '^ *+' conftest.er1
>conftest.err
5739 cat conftest.err
>&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try
='test -z "$ac_c_werror_flag"
5743 || test ! -s conftest.err'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; } &&
5749 { ac_try
='test -s conftest.$ac_objext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5757 cat >conftest.
$ac_ext <<_ACEOF
5760 cat confdefs.h
>>conftest.
$ac_ext
5761 cat >>conftest.
$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5767 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5774 rm -f conftest.
$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5778 grep -v '^ *+' conftest.er1
>conftest.err
5780 cat conftest.err
>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try
='test -z "$ac_c_werror_flag"
5784 || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try
='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_hi
=$ac_mid; break
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.
$ac_ext >&5
5801 ac_lo
=`expr $ac_mid + 1`
5802 if test $ac_lo -le $ac_mid; then
5806 ac_mid
=`expr 2 '*' $ac_mid + 1`
5808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.
$ac_ext >&5
5814 cat >conftest.
$ac_ext <<_ACEOF
5817 cat confdefs.h
>>conftest.
$ac_ext
5818 cat >>conftest.
$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 $ac_includes_default
5824 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5831 rm -f conftest.
$ac_objext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5833 (eval $ac_compile) 2>conftest.er1
5835 grep -v '^ *+' conftest.er1
>conftest.err
5837 cat conftest.err
>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try
='test -z "$ac_c_werror_flag"
5841 || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try
='test -s conftest.$ac_objext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5855 cat >conftest.
$ac_ext <<_ACEOF
5858 cat confdefs.h
>>conftest.
$ac_ext
5859 cat >>conftest.
$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 $ac_includes_default
5865 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5872 rm -f conftest.
$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
5876 grep -v '^ *+' conftest.er1
>conftest.err
5878 cat conftest.err
>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try
='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try
='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_lo
=$ac_mid; break
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.
$ac_ext >&5
5899 ac_hi
=`expr '(' $ac_mid ')' - 1`
5900 if test $ac_mid -le $ac_hi; then
5904 ac_mid
=`expr 2 '*' $ac_mid`
5906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.
$ac_ext >&5
5914 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5916 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5917 # Binary search between lo and hi bounds.
5918 while test "x$ac_lo" != "x$ac_hi"; do
5919 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5920 cat >conftest.
$ac_ext <<_ACEOF
5923 cat confdefs.h
>>conftest.
$ac_ext
5924 cat >>conftest.
$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 $ac_includes_default
5930 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5937 rm -f conftest.
$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>conftest.er1
5941 grep -v '^ *+' conftest.er1
>conftest.err
5943 cat conftest.err
>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try
='test -z "$ac_c_werror_flag"
5947 || test ! -s conftest.err'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try
='test -s conftest.$ac_objext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.
$ac_ext >&5
5964 ac_lo
=`expr '(' $ac_mid ')' + 1`
5966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5969 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5970 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5971 See \`config.log' for more details." >&5
5972 echo "$as_me: error: cannot compute sizeof (__int64), 77
5973 See \`config.log' for more details." >&2;}
5974 { (exit 1); exit 1; }; } ;;
5977 if test "$cross_compiling" = yes; then
5978 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5979 See \`config.log' for more details." >&5
5980 echo "$as_me: error: cannot run test program while cross compiling
5981 See \`config.log' for more details." >&2;}
5982 { (exit 1); exit 1; }; }
5984 cat >conftest.
$ac_ext <<_ACEOF
5987 cat confdefs.h
>>conftest.
$ac_ext
5988 cat >>conftest.
$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 $ac_includes_default
5991 long longval () { return (long) (sizeof (__int64)); }
5992 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5999 FILE *f = fopen ("conftest.val", "w");
6002 if (((long) (sizeof (__int64))) < 0)
6004 long i = longval ();
6005 if (i != ((long) (sizeof (__int64))))
6007 fprintf (f, "%ld\n", i);
6011 unsigned long i = ulongval ();
6012 if (i != ((long) (sizeof (__int64))))
6014 fprintf (f, "%lu\n", i);
6016 exit (ferror (f) || fclose (f) != 0);
6022 rm -f conftest
$ac_exeext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6024 (eval $ac_link) 2>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_sizeof___int64
=`cat conftest.val`
6035 echo "$as_me: program exited with status $ac_status" >&5
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.
$ac_ext >&5
6040 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6041 See \`config.log' for more details." >&5
6042 echo "$as_me: error: cannot compute sizeof (__int64), 77
6043 See \`config.log' for more details." >&2;}
6044 { (exit 1); exit 1; }; }
6046 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6051 ac_cv_sizeof___int64
=0
6054 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6055 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6056 cat >>confdefs.h
<<_ACEOF
6057 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6063 # ---------------------
6064 # Warnings and checking
6065 # ---------------------
6067 # Check $CC warning features (if it's GCC).
6068 # We want to use -pedantic, but we don't want warnings about
6071 # So, we only use -pedantic if we can disable those warnings.
6073 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6074 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6075 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 save_CFLAGS
="$CFLAGS"
6079 CFLAGS
="-Wno-long-long"
6080 cat >conftest.
$ac_ext <<_ACEOF
6083 cat confdefs.h
>>conftest.
$ac_ext
6084 cat >>conftest.
$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6088 rm -f conftest.
$ac_objext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090 (eval $ac_compile) 2>conftest.er1
6092 grep -v '^ *+' conftest.er1
>conftest.err
6094 cat conftest.err
>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try
='test -z "$ac_c_werror_flag"
6098 || test ! -s conftest.err'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; } &&
6104 { ac_try
='test -s conftest.$ac_objext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_cv_prog_cc_w_no_long_long
=yes
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.
$ac_ext >&5
6115 ac_cv_prog_cc_w_no_long_long
=no
6117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6118 CFLAGS
="$save_CFLAGS"
6121 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6122 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6124 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6125 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6126 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 save_CFLAGS
="$CFLAGS"
6130 CFLAGS
="-Wno-variadic-macros"
6131 cat >conftest.
$ac_ext <<_ACEOF
6134 cat confdefs.h
>>conftest.
$ac_ext
6135 cat >>conftest.
$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6139 rm -f conftest.
$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6143 grep -v '^ *+' conftest.er1
>conftest.err
6145 cat conftest.err
>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try
='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try
='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_prog_cc_w_no_variadic_macros
=yes
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.
$ac_ext >&5
6166 ac_cv_prog_cc_w_no_variadic_macros
=no
6168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6169 CFLAGS
="$save_CFLAGS"
6172 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6173 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6176 if test $ac_cv_prog_cc_w_no_long_long = yes \
6177 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6178 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6182 # Add -Wold-style-definition if it's accepted
6183 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6184 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6185 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 save_CFLAGS
="$CFLAGS"
6189 CFLAGS
="-Wold-style-definition"
6190 cat >conftest.
$ac_ext <<_ACEOF
6193 cat confdefs.h
>>conftest.
$ac_ext
6194 cat >>conftest.
$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6198 rm -f conftest.
$ac_objext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6200 (eval $ac_compile) 2>conftest.er1
6202 grep -v '^ *+' conftest.er1
>conftest.err
6204 cat conftest.err
>&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try
='test -z "$ac_c_werror_flag"
6208 || test ! -s conftest.err'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; } &&
6214 { ac_try
='test -s conftest.$ac_objext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 ac_cv_prog_cc_w_old_style_definition
=yes
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.
$ac_ext >&5
6225 ac_cv_prog_cc_w_old_style_definition
=no
6227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6228 CFLAGS
="$save_CFLAGS"
6231 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6232 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6233 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6234 strict1_warn
="${strict1_warn} -Wold-style-definition"
6237 # Enable -Werror, period.
6238 # Check whether --enable-werror_always or --disable-werror_always was given.
6239 if test "${enable_werror_always+set}" = set; then
6240 enableval
="$enable_werror_always"
6243 enable_werror_always
=no
6245 if test x
${enable_werror_always} = xyes
; then
6246 strict1_warn
="${strict1_warn} -Werror"
6250 # If the native compiler is GCC, we can enable warnings even in stage1.
6251 # That's useful for people building cross-compilers, or just running a
6254 if test "x$GCC" = "xyes"; then
6255 warn_cflags
='$(GCC_WARN_CFLAGS)'
6259 # Enable -Werror in bootstrap stage2 and later.
6260 # Check whether --enable-werror or --disable-werror was given.
6261 if test "${enable_werror+set}" = set; then
6262 enableval
="$enable_werror"
6265 if test x
$is_release = x
; then
6266 # Default to "yes" on development branches.
6269 # Default to "no" on release branches.
6273 if test x
$enable_werror = xyes
; then
6278 # Enable expensive internal checks
6279 # Check whether --enable-checking or --disable-checking was given.
6280 if test "${enable_checking+set}" = set; then
6281 enableval
="$enable_checking"
6282 ac_checking_flags
="${enableval}"
6285 # Determine the default checks.
6286 if test x
$is_release = x
; then
6287 ac_checking_flags
=yes
6289 ac_checking_flags
=release
6292 ac_assert_checking
=1
6296 ac_rtlflag_checking
=
6298 ac_gc_always_collect
=
6300 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6301 for check
in $ac_checking_flags
6304 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6305 ac_tree_checking
=1 ; ac_gc_checking
=1 ;
6306 ac_rtlflag_checking
=1 ;;
6307 no
) ac_assert_checking
= ; ac_checking
= ;
6308 ac_tree_checking
= ; ac_rtl_checking
= ;
6309 ac_rtlflag_checking
= ; ac_gc_checking
= ;
6310 ac_gc_always_collect
= ; ac_fold_checking
= ;;
6311 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6312 ac_tree_checking
=1 ; ac_rtl_checking
=1 ;
6313 ac_rtlflag_checking
=1 ; ac_gc_checking
=1 ;
6314 ac_gc_always_collect
=1 ; ac_fold_checking
=1 ;;
6315 release
) ac_assert_checking
=1 ;;
6316 assert
) ac_assert_checking
=1 ;;
6317 fold) ac_fold_checking
=1 ;;
6318 gc
) ac_gc_checking
=1 ;;
6319 gcac
) ac_gc_always_collect
=1 ;;
6320 misc
) ac_checking
=1 ;;
6321 rtlflag
) ac_rtlflag_checking
=1 ;;
6322 rtl
) ac_rtl_checking
=1 ;;
6323 tree
) ac_tree_checking
=1 ;;
6324 valgrind
) ac_checking_valgrind
=1 ;;
6325 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6326 echo "$as_me: error: unknown check category $check" >&2;}
6327 { (exit 1); exit 1; }; } ;;
6333 if test x
$ac_checking != x
; then
6335 cat >>confdefs.h
<<\_ACEOF
6336 #define ENABLE_CHECKING 1
6339 nocommon_flag
=-fno-common
6342 if test x
$ac_assert_checking != x
; then
6344 cat >>confdefs.h
<<\_ACEOF
6345 #define ENABLE_ASSERT_CHECKING 1
6349 if test x
$ac_tree_checking != x
; then
6351 cat >>confdefs.h
<<\_ACEOF
6352 #define ENABLE_TREE_CHECKING 1
6355 TREEBROWSER
=tree-browser.o
6358 if test x
$ac_rtl_checking != x
; then
6360 cat >>confdefs.h
<<\_ACEOF
6361 #define ENABLE_RTL_CHECKING 1
6365 if test x
$ac_rtlflag_checking != x
; then
6367 cat >>confdefs.h
<<\_ACEOF
6368 #define ENABLE_RTL_FLAG_CHECKING 1
6372 if test x
$ac_gc_checking != x
; then
6374 cat >>confdefs.h
<<\_ACEOF
6375 #define ENABLE_GC_CHECKING 1
6379 if test x
$ac_gc_always_collect != x
; then
6381 cat >>confdefs.h
<<\_ACEOF
6382 #define ENABLE_GC_ALWAYS_COLLECT 1
6386 if test x
$ac_fold_checking != x
; then
6388 cat >>confdefs.h
<<\_ACEOF
6389 #define ENABLE_FOLD_CHECKING 1
6393 valgrind_path_defines
=
6396 if test "${ac_cv_header_valgrind_h+set}" = set; then
6397 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6398 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6399 if test "${ac_cv_header_valgrind_h+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6403 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6405 # Is the header compilable?
6406 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6407 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6408 cat >conftest.
$ac_ext <<_ACEOF
6411 cat confdefs.h
>>conftest.
$ac_ext
6412 cat >>conftest.
$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 $ac_includes_default
6415 #include <valgrind.h>
6417 rm -f conftest.
$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try
='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try
='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_header_compiler
=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6444 ac_header_compiler
=no
6446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6448 echo "${ECHO_T}$ac_header_compiler" >&6
6450 # Is the header present?
6451 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6452 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6453 cat >conftest.
$ac_ext <<_ACEOF
6456 cat confdefs.h
>>conftest.
$ac_ext
6457 cat >>conftest.
$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 #include <valgrind.h>
6461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6464 grep -v '^ *+' conftest.er1
>conftest.err
6466 cat conftest.err
>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } >/dev
/null
; then
6469 if test -s conftest.err
; then
6470 ac_cpp_err
=$ac_c_preproc_warn_flag
6471 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6478 if test -z "$ac_cpp_err"; then
6479 ac_header_preproc
=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.
$ac_ext >&5
6484 ac_header_preproc
=no
6486 rm -f conftest.err conftest.
$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6488 echo "${ECHO_T}$ac_header_preproc" >&6
6490 # So? What about this header?
6491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6493 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6494 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6496 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6497 ac_header_preproc
=yes
6500 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6501 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6503 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6505 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6507 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6509 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6511 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6514 ## ------------------------------------------ ##
6515 ## Report this to the AC_PACKAGE_NAME lists. ##
6516 ## ------------------------------------------ ##
6519 sed "s/^/$as_me: WARNING: /" >&2
6522 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6523 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6524 if test "${ac_cv_header_valgrind_h+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 ac_cv_header_valgrind_h
=$ac_header_preproc
6529 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6530 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6533 if test $ac_cv_header_valgrind_h = yes; then
6541 if test x
$ac_checking_valgrind != x
; then
6542 # It is certainly possible that there's valgrind but no valgrind.h.
6543 # GCC relies on making annotations so we must have both.
6544 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6545 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6546 cat >conftest.
$ac_ext <<_ACEOF
6549 cat confdefs.h
>>conftest.
$ac_ext
6550 cat >>conftest.
$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 #include <valgrind/memcheck.h>
6553 #ifndef VALGRIND_DISCARD
6554 #error VALGRIND_DISCARD not defined
6557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6558 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6560 grep -v '^ *+' conftest.er1
>conftest.err
6562 cat conftest.err
>&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } >/dev
/null
; then
6565 if test -s conftest.err
; then
6566 ac_cpp_err
=$ac_c_preproc_warn_flag
6567 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6574 if test -z "$ac_cpp_err"; then
6575 gcc_cv_header_valgrind_memcheck_h
=yes
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.
$ac_ext >&5
6580 gcc_cv_header_valgrind_memcheck_h
=no
6582 rm -f conftest.err conftest.
$ac_ext
6583 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6584 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6585 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6586 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6587 cat >conftest.
$ac_ext <<_ACEOF
6590 cat confdefs.h
>>conftest.
$ac_ext
6591 cat >>conftest.
$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <memcheck.h>
6594 #ifndef VALGRIND_DISCARD
6595 #error VALGRIND_DISCARD not defined
6598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6599 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6601 grep -v '^ *+' conftest.er1
>conftest.err
6603 cat conftest.err
>&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } >/dev
/null
; then
6606 if test -s conftest.err
; then
6607 ac_cpp_err
=$ac_c_preproc_warn_flag
6608 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6615 if test -z "$ac_cpp_err"; then
6616 gcc_cv_header_memcheck_h
=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.
$ac_ext >&5
6621 gcc_cv_header_memcheck_h
=no
6623 rm -f conftest.err conftest.
$ac_ext
6624 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6625 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6627 # Prepare PATH_SEPARATOR.
6628 # The user is always right.
6629 if test "${PATH_SEPARATOR+set}" != set; then
6630 echo "#! /bin/sh" >conf$$.sh
6631 echo "exit 0" >>conf$$.sh
6633 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6641 # Find out how to test for executable files. Don't use a zero-byte file,
6642 # as systems may use methods other than mode bits to determine executability.
6643 cat >conf$$.
file <<_ASEOF
6647 chmod +x conf$$.
file
6648 if test -x conf$$.
file >/dev
/null
2>&1; then
6649 ac_executable_p
="test -x"
6651 ac_executable_p
="test -f"
6655 # Extract the first word of "valgrind", so it can be a program name with args.
6656 set dummy valgrind
; ac_word
=$2
6657 echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6659 if test "${ac_cv_path_valgrind_path+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 case "$valgrind_path" in
6664 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6667 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6668 for ac_dir
in $PATH; do
6670 test -z "$ac_dir" && ac_dir
=.
6671 for ac_exec_ext
in '' $ac_executable_extensions; do
6672 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6673 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6674 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6684 valgrind_path
="$ac_cv_path_valgrind_path"
6685 if test -n "$valgrind_path"; then
6686 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6687 echo "${ECHO_T}$valgrind_path" >&6
6689 echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6
6693 if test "x$valgrind_path" = "x" \
6694 ||
(test $have_valgrind_h = no \
6695 && test $gcc_cv_header_memcheck_h = no \
6696 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6697 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6698 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6699 { (exit 1); exit 1; }; }
6701 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6702 valgrind_command
="$valgrind_path -q"
6704 cat >>confdefs.h
<<\_ACEOF
6705 #define ENABLE_VALGRIND_CHECKING 1
6708 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6710 cat >>confdefs.h
<<\_ACEOF
6711 #define HAVE_VALGRIND_MEMCHECK_H 1
6715 if test $gcc_cv_header_memcheck_h = yes; then
6717 cat >>confdefs.h
<<\_ACEOF
6718 #define HAVE_MEMCHECK_H 1
6726 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6727 if test "${enable_mapped_location+set}" = set; then
6728 enableval
="$enable_mapped_location"
6731 enable_mapped_location
=no
6734 if test "$enable_mapped_location" = yes ; then
6736 cat >>confdefs.h
<<\_ACEOF
6737 #define USE_MAPPED_LOCATION 1
6742 # Enable code coverage collection
6743 # Check whether --enable-coverage or --disable-coverage was given.
6744 if test "${enable_coverage+set}" = set; then
6745 enableval
="$enable_coverage"
6746 case "${enableval}" in
6748 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6751 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6754 # a.k.a. --disable-coverage
6758 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6759 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6760 { (exit 1); exit 1; }; }
6768 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6769 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6770 enableval
="$enable_gather_detailed_mem_stats"
6773 enable_gather_detailed_mem_stats
=no
6775 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6777 cat >>confdefs.h
<<\_ACEOF
6778 #define GATHER_STATISTICS 1
6783 # -------------------------------
6784 # Miscenalleous configure options
6785 # -------------------------------
6789 # Check whether --with-stabs or --without-stabs was given.
6790 if test "${with_stabs+set}" = set; then
6791 withval
="$with_stabs"
6797 # Determine whether or not multilibs are enabled.
6798 # Check whether --enable-multilib or --disable-multilib was given.
6799 if test "${enable_multilib+set}" = set; then
6800 enableval
="$enable_multilib"
6807 # Enable __cxa_atexit for C++.
6808 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6809 if test "${enable___cxa_atexit+set}" = set; then
6810 enableval
="$enable___cxa_atexit"
6815 # Pass with no value to take the default
6816 # Pass with a value to specify a thread package
6817 # Check whether --enable-threads or --disable-threads was given.
6818 if test "${enable_threads+set}" = set; then
6819 enableval
="$enable_threads"
6825 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6826 if test "${enable_objc_gc+set}" = set; then
6827 enableval
="$enable_objc_gc"
6828 if test x
$enable_objc_gc = xno
; then
6838 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6839 if test "${with_dwarf2+set}" = set; then
6840 withval
="$with_dwarf2"
6841 dwarf2
="$with_dwarf2"
6846 # Check whether --enable-shared or --disable-shared was given.
6847 if test "${enable_shared+set}" = set; then
6848 enableval
="$enable_shared"
6850 case $enable_shared in
6854 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6855 for pkg
in $enableval; do
6856 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6870 # Check whether --with-sysroot or --without-sysroot was given.
6871 if test "${with_sysroot+set}" = set; then
6872 withval
="$with_sysroot"
6874 case ${with_sysroot} in
6875 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6876 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6879 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6880 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6882 if test "x$exec_prefix" = xNONE
; then
6883 if test "x$prefix" = xNONE
; then
6884 test_prefix
=/usr
/local
6889 test_prefix
=$exec_prefix
6891 case ${TARGET_SYSTEM_ROOT} in
6892 "${test_prefix}"|
"${test_prefix}/"*|\
6893 '${exec_prefix}'|
'${exec_prefix}/'*)
6894 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6895 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6902 TARGET_SYSTEM_ROOT_DEFINE
=
6903 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6910 # Build with intermodule optimisations
6911 # Check whether --enable-intermodule or --disable-intermodule was given.
6912 if test "${enable_intermodule+set}" = set; then
6913 enableval
="$enable_intermodule"
6914 case ${enable_intermodule} in
6915 yes) onestep
="-onestep";;
6923 # Sanity check enable_languages in case someone does not run the toplevel
6924 # configure # script.
6925 # Check whether --enable-languages or --disable-languages was given.
6926 if test "${enable_languages+set}" = set; then
6927 enableval
="$enable_languages"
6928 case ,${enable_languages}, in
6930 # go safe -- we cannot be much sure without the toplevel
6932 # analysis of which target libs are present and usable
6936 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6937 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6938 { (exit 1); exit 1; }; }
6943 enable_languages
=c
,${enable_languages}
6951 for lang
in ${srcdir}/*/config-lang.
in
6954 # The odd quoting in the next line works around
6955 # an apparent bug in bash 1.12 on linux.
6956 ${srcdir}/[*]/config-lang.
in) ;;
6958 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6959 if test "x$lang_alias" = x
6961 echo "$lang doesn't set \$language." 1>&2
6964 case ",$enable_languages," in
6966 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6973 # -------------------------
6974 # Checks for other programs
6975 # -------------------------
6977 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6978 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6979 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6980 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 cat >conftest.
make <<\_ACEOF
6985 @
echo 'ac_maketemp="$(MAKE)"'
6987 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6988 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6989 if test -n "$ac_maketemp"; then
6990 eval ac_cv_prog_make_
${ac_make}_set
=yes
6992 eval ac_cv_prog_make_
${ac_make}_set
=no
6996 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6997 echo "$as_me:$LINENO: result: yes" >&5
6998 echo "${ECHO_T}yes" >&6
7001 echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6
7003 SET_MAKE
="MAKE=${MAKE-make}"
7007 # Find some useful tools
7008 for ac_prog
in gawk mawk nawk
awk
7010 # Extract the first word of "$ac_prog", so it can be a program name with args.
7011 set dummy
$ac_prog; ac_word
=$2
7012 echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7014 if test "${ac_cv_prog_AWK+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 if test -n "$AWK"; then
7018 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir
=.
7025 for ac_exec_ext
in '' $ac_executable_extensions; do
7026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_AWK
="$ac_prog"
7028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 if test -n "$AWK"; then
7038 echo "$as_me:$LINENO: result: $AWK" >&5
7039 echo "${ECHO_T}$AWK" >&6
7041 echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6
7045 test -n "$AWK" && break
7048 # We need awk to create options.c and options.h.
7049 # Bail out if it's missing.
7051 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7052 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7053 { (exit 1); exit 1; }; } ;;
7056 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7058 if test "${gcc_cv_prog_LN_S+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 rm -f conftestdata_t
7062 echo >conftestdata_f
7063 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7065 gcc_cv_prog_LN_S
="ln -s"
7067 if ln conftestdata_f conftestdata_t
2>/dev
/null
7071 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7073 gcc_cv_prog_LN_S
="cp -p"
7079 rm -f conftestdata_f conftestdata_t
7082 LN_S
="$gcc_cv_prog_LN_S"
7083 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7084 echo "$as_me:$LINENO: result: yes" >&5
7085 echo "${ECHO_T}yes" >&6
7087 if test "$gcc_cv_prog_LN_S" = "ln"; then
7088 echo "$as_me:$LINENO: result: no, using ln" >&5
7089 echo "${ECHO_T}no, using ln" >&6
7091 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7092 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7096 echo "$as_me:$LINENO: checking whether ln works" >&5
7097 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7098 if test "${acx_cv_prog_LN+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 rm -f conftestdata_t
7102 echo >conftestdata_f
7103 if ln conftestdata_f conftestdata_t
2>/dev
/null
7109 rm -f conftestdata_f conftestdata_t
7112 if test $acx_cv_prog_LN = no
; then
7114 echo "$as_me:$LINENO: result: no, using $LN" >&5
7115 echo "${ECHO_T}no, using $LN" >&6
7117 LN
="$acx_cv_prog_LN"
7118 echo "$as_me:$LINENO: result: yes" >&5
7119 echo "${ECHO_T}yes" >&6
7122 if test -n "$ac_tool_prefix"; then
7123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7124 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7125 echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7127 if test "${ac_cv_prog_RANLIB+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 if test -n "$RANLIB"; then
7131 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir
=.
7138 for ac_exec_ext
in '' $ac_executable_extensions; do
7139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 RANLIB
=$ac_cv_prog_RANLIB
7150 if test -n "$RANLIB"; then
7151 echo "$as_me:$LINENO: result: $RANLIB" >&5
7152 echo "${ECHO_T}$RANLIB" >&6
7154 echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6
7159 if test -z "$ac_cv_prog_RANLIB"; then
7160 ac_ct_RANLIB
=$RANLIB
7161 # Extract the first word of "ranlib", so it can be a program name with args.
7162 set dummy ranlib
; ac_word
=$2
7163 echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 if test -n "$ac_ct_RANLIB"; then
7169 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir
=.
7176 for ac_exec_ext
in '' $ac_executable_extensions; do
7177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7188 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7189 if test -n "$ac_ct_RANLIB"; then
7190 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7193 echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6
7197 RANLIB
=$ac_ct_RANLIB
7199 RANLIB
="$ac_cv_prog_RANLIB"
7204 # By default, the Darwin ranlib will not treat common symbols as
7205 # definitions when building the archive table of contents. Other
7206 # ranlibs do that; pass an option to the Darwin ranlib that makes
7207 # it behave similarly.
7215 # Find a good install program. We prefer a C program (faster),
7216 # so one script is as good as another. But avoid the broken or
7217 # incompatible versions:
7218 # SysV /etc/install, /usr/sbin/install
7219 # SunOS /usr/etc/install
7220 # IRIX /sbin/install
7222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7224 # ./install, which can be erroneously created by make from ./install.sh.
7225 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7226 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7227 if test -z "$INSTALL"; then
7228 if test "${ac_cv_path_install+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7232 for ac_dir
in $PATH; do
7233 # Account for people who put trailing slashes in PATH elements.
7235 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7237 # OSF1 and SCO ODT 3.0 have their own names for install.
7238 for ac_prog
in ginstall scoinst
install; do
7239 if test -f $ac_dir/$ac_prog; then
7240 if test $ac_prog = install &&
7241 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7242 # AIX install. It has an incompatible calling convention.
7243 # OSF/1 installbsd also uses dspmsg, but is usable.
7246 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7257 if test "${ac_cv_path_install+set}" = set; then
7258 INSTALL
="$ac_cv_path_install"
7260 # As a last resort, use the slow shell script. We don't cache a
7261 # path for INSTALL within a source directory, because that will
7262 # break other packages using the cache if that directory is
7263 # removed, or if the path is relative.
7264 INSTALL
="$ac_install_sh"
7267 echo "$as_me:$LINENO: result: $INSTALL" >&5
7268 echo "${ECHO_T}$INSTALL" >&6
7270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7271 # It thinks the first close brace ends the variable substitution.
7272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7274 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7277 # See if cmp has --ignore-initial.
7278 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7279 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7280 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 gcc_cv_prog_cmp_skip
=slowcompare
7286 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7287 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7290 gcc_cv_prog_cmp_skip
=gnucompare
7293 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7294 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7295 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7298 gcc_cv_prog_cmp_skip
=fastcompare
7305 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7306 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7307 make_compare_target
=$gcc_cv_prog_cmp_skip
7311 # See if we have the mktemp command.
7312 # Extract the first word of "mktemp", so it can be a program name with args.
7313 set dummy mktemp
; ac_word
=$2
7314 echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7316 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 if test -n "$have_mktemp_command"; then
7320 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir
=.
7327 for ac_exec_ext
in '' $ac_executable_extensions; do
7328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_have_mktemp_command
="yes"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7339 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7340 if test -n "$have_mktemp_command"; then
7341 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7342 echo "${ECHO_T}$have_mktemp_command" >&6
7344 echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7349 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7351 # See if makeinfo has been installed and is modern enough
7352 # that we can use it.
7353 # Extract the first word of "makeinfo", so it can be a program name with args.
7354 set dummy makeinfo
; ac_word
=$2
7355 echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 if test -n "$MAKEINFO"; then
7361 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir
=.
7368 for ac_exec_ext
in '' $ac_executable_extensions; do
7369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_MAKEINFO
="makeinfo"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 MAKEINFO
=$ac_cv_prog_MAKEINFO
7380 if test -n "$MAKEINFO"; then
7381 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7382 echo "${ECHO_T}$MAKEINFO" >&6
7384 echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6
7388 if test -n "$MAKEINFO"; then
7389 # Found it, now check the version.
7390 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7391 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7392 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7396 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7397 echo "configure:7397: version of makeinfo is $ac_prog_version" >&5
7398 case $ac_prog_version in
7399 '') gcc_cv_prog_makeinfo_modern
=no
;;
7401 gcc_cv_prog_makeinfo_modern
=yes;;
7402 *) gcc_cv_prog_makeinfo_modern
=no
;;
7406 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7407 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7409 gcc_cv_prog_makeinfo_modern
=no
7412 if test $gcc_cv_prog_makeinfo_modern = no
; then
7413 MAKEINFO
="$MISSING makeinfo"
7414 { echo "$as_me:$LINENO: WARNING:
7415 *** Makeinfo is missing or too old.
7416 *** Info documentation will not be built." >&5
7417 echo "$as_me: WARNING:
7418 *** Makeinfo is missing or too old.
7419 *** Info documentation will not be built." >&2;}
7426 # Is pod2man recent enough to regenerate manpages?
7427 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7428 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7429 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7430 echo "$as_me:$LINENO: result: yes" >&5
7431 echo "${ECHO_T}yes" >&6
7432 GENERATED_MANPAGES
=generated-manpages
7434 echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6
7443 # Extract the first word of "$ac_prog", so it can be a program name with args.
7444 set dummy
$ac_prog; ac_word
=$2
7445 echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7447 if test "${ac_cv_prog_FLEX+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 if test -n "$FLEX"; then
7451 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir
=.
7458 for ac_exec_ext
in '' $ac_executable_extensions; do
7459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_FLEX
="$ac_prog"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 FLEX
=$ac_cv_prog_FLEX
7470 if test -n "$FLEX"; then
7471 echo "$as_me:$LINENO: result: $FLEX" >&5
7472 echo "${ECHO_T}$FLEX" >&6
7474 echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6
7478 test -n "$FLEX" && break
7480 test -n "$FLEX" || FLEX
="$MISSING flex"
7484 for ac_prog
in bison
7486 # Extract the first word of "$ac_prog", so it can be a program name with args.
7487 set dummy
$ac_prog; ac_word
=$2
7488 echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7490 if test "${ac_cv_prog_BISON+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 if test -n "$BISON"; then
7494 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7500 test -z "$as_dir" && as_dir
=.
7501 for ac_exec_ext
in '' $ac_executable_extensions; do
7502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503 ac_cv_prog_BISON
="$ac_prog"
7504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 BISON
=$ac_cv_prog_BISON
7513 if test -n "$BISON"; then
7514 echo "$as_me:$LINENO: result: $BISON" >&5
7515 echo "${ECHO_T}$BISON" >&6
7517 echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6
7521 test -n "$BISON" && break
7523 test -n "$BISON" || BISON
="$MISSING bison"
7526 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7527 # check for build == host before using them.
7530 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7531 && test -d ..
/binutils
; then
7532 NM
='$(objdir)/../binutils/nm-new'
7534 # Extract the first word of "nm", so it can be a program name with args.
7535 set dummy nm
; ac_word
=$2
7536 echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7538 if test "${ac_cv_prog_NM+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 if test -n "$NM"; then
7542 ac_cv_prog_NM
="$NM" # Let the user override the test.
7544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir
=.
7549 for ac_exec_ext
in '' $ac_executable_extensions; do
7550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7562 if test -n "$NM"; then
7563 echo "$as_me:$LINENO: result: $NM" >&5
7564 echo "${ECHO_T}$NM" >&6
7566 echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6
7573 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7574 && test -d ..
/binutils
; then
7575 AR
='$(objdir)/../binutils/ar'
7577 # Extract the first word of "ar", so it can be a program name with args.
7578 set dummy
ar; ac_word
=$2
7579 echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7581 if test "${ac_cv_prog_AR+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 if test -n "$AR"; then
7585 ac_cv_prog_AR
="$AR" # Let the user override the test.
7587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir
=.
7592 for ac_exec_ext
in '' $ac_executable_extensions; do
7593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7605 if test -n "$AR"; then
7606 echo "$as_me:$LINENO: result: $AR" >&5
7607 echo "${ECHO_T}$AR" >&6
7609 echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6
7616 # --------------------
7617 # Checks for C headers
7618 # --------------------
7620 echo "$as_me:$LINENO: checking for GNU C library" >&5
7621 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7622 if test "${gcc_cv_glibc+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 cat >conftest.
$ac_ext <<_ACEOF
7628 cat confdefs.h
>>conftest.
$ac_ext
7629 cat >>conftest.
$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 #include <features.h>
7636 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7637 #error Not a GNU C library system
7643 rm -f conftest.
$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>conftest.er1
7647 grep -v '^ *+' conftest.er1
>conftest.err
7649 cat conftest.err
>&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try
='test -z "$ac_c_werror_flag"
7653 || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try
='test -s conftest.$ac_objext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.
$ac_ext >&5
7672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7675 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7676 echo "${ECHO_T}$gcc_cv_glibc" >&6
7677 if test $gcc_cv_glibc = yes; then
7679 cat >>confdefs.h
<<\_ACEOF
7680 #define _GNU_SOURCE 1
7685 # Need to reject headers which give warnings, so that the -Werror bootstrap
7686 # works later. *sigh* This needs to come before all header checks.
7688 ac_c_preproc_warn_flag
=yes
7690 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7691 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7692 if test "${ac_cv_header_stdc+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 cat >conftest.
$ac_ext <<_ACEOF
7698 cat confdefs.h
>>conftest.
$ac_ext
7699 cat >>conftest.
$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7714 rm -f conftest.
$ac_objext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716 (eval $ac_compile) 2>conftest.er1
7718 grep -v '^ *+' conftest.er1
>conftest.err
7720 cat conftest.err
>&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } &&
7723 { ac_try
='test -z "$ac_c_werror_flag"
7724 || test ! -s conftest.err'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; } &&
7730 { ac_try
='test -s conftest.$ac_objext'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; }; then
7736 ac_cv_header_stdc
=yes
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.
$ac_ext >&5
7741 ac_cv_header_stdc
=no
7743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7745 if test $ac_cv_header_stdc = yes; then
7746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7747 cat >conftest.
$ac_ext <<_ACEOF
7750 cat confdefs.h
>>conftest.
$ac_ext
7751 cat >>conftest.
$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7757 $EGREP "memchr" >/dev
/null
2>&1; then
7760 ac_cv_header_stdc
=no
7766 if test $ac_cv_header_stdc = yes; then
7767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7768 cat >conftest.
$ac_ext <<_ACEOF
7771 cat confdefs.h
>>conftest.
$ac_ext
7772 cat >>conftest.
$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7778 $EGREP "free" >/dev
/null
2>&1; then
7781 ac_cv_header_stdc
=no
7787 if test $ac_cv_header_stdc = yes; then
7788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7789 if test "$cross_compiling" = yes; then
7792 cat >conftest.
$ac_ext <<_ACEOF
7795 cat confdefs.h
>>conftest.
$ac_ext
7796 cat >>conftest.
$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7799 #if ((' ' & 0x0FF) == 0x020)
7800 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7801 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7803 # define ISLOWER(c) \
7804 (('a' <= (c) && (c) <= 'i') \
7805 || ('j' <= (c) && (c) <= 'r') \
7806 || ('s' <= (c) && (c) <= 'z'))
7807 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7815 for (i = 0; i < 256; i++)
7816 if (XOR (islower (i), ISLOWER (i))
7817 || toupper (i) != TOUPPER (i))
7822 rm -f conftest
$ac_exeext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7824 (eval $ac_link) 2>&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7835 echo "$as_me: program exited with status $ac_status" >&5
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.
$ac_ext >&5
7840 ac_cv_header_stdc
=no
7842 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7847 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7848 if test $ac_cv_header_stdc = yes; then
7850 cat >>confdefs.h
<<\_ACEOF
7851 #define STDC_HEADERS 1
7856 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7857 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7858 if test "${ac_cv_header_time+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 cat >conftest.
$ac_ext <<_ACEOF
7864 cat confdefs.h
>>conftest.
$ac_ext
7865 cat >>conftest.
$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <sys/types.h>
7868 #include <sys/time.h>
7874 if ((struct tm *) 0)
7880 rm -f conftest.
$ac_objext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7882 (eval $ac_compile) 2>conftest.er1
7884 grep -v '^ *+' conftest.er1
>conftest.err
7886 cat conftest.err
>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try
='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try
='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_header_time
=yes
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.
$ac_ext >&5
7907 ac_cv_header_time
=no
7909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7911 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7912 echo "${ECHO_T}$ac_cv_header_time" >&6
7913 if test $ac_cv_header_time = yes; then
7915 cat >>confdefs.h
<<\_ACEOF
7916 #define TIME_WITH_SYS_TIME 1
7921 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7922 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7923 if test "${gcc_cv_header_string+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 cat >conftest.
$ac_ext <<_ACEOF
7929 cat confdefs.h
>>conftest.
$ac_ext
7930 cat >>conftest.
$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7933 #include <strings.h>
7942 rm -f conftest.
$ac_objext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944 (eval $ac_compile) 2>conftest.er1
7946 grep -v '^ *+' conftest.er1
>conftest.err
7948 cat conftest.err
>&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } &&
7951 { ac_try
='test -z "$ac_c_werror_flag"
7952 || test ! -s conftest.err'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; } &&
7958 { ac_try
='test -s conftest.$ac_objext'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 gcc_cv_header_string
=yes
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.
$ac_ext >&5
7969 gcc_cv_header_string
=no
7971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7973 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7974 echo "${ECHO_T}$gcc_cv_header_string" >&6
7975 if test $gcc_cv_header_string = yes; then
7977 cat >>confdefs.h
<<\_ACEOF
7978 #define STRING_WITH_STRINGS 1
7983 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7984 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7985 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 cat >conftest.
$ac_ext <<_ACEOF
7991 cat confdefs.h
>>conftest.
$ac_ext
7992 cat >>conftest.
$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 #include <sys/types.h>
7995 #include <sys/wait.h>
7997 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8000 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8008 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8013 rm -f conftest.
$ac_objext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>conftest.er1
8017 grep -v '^ *+' conftest.er1
>conftest.err
8019 cat conftest.err
>&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try
='test -z "$ac_c_werror_flag"
8023 || test ! -s conftest.err'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; } &&
8029 { ac_try
='test -s conftest.$ac_objext'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 ac_cv_header_sys_wait_h
=yes
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.
$ac_ext >&5
8040 ac_cv_header_sys_wait_h
=no
8042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8045 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8046 if test $ac_cv_header_sys_wait_h = yes; then
8048 cat >>confdefs.h
<<\_ACEOF
8049 #define HAVE_SYS_WAIT_H 1
8076 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8077 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8078 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8079 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8081 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8082 echo "$as_me:$LINENO: checking for $ac_header" >&5
8083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 cat >conftest.
$ac_ext <<_ACEOF
8090 cat confdefs.h
>>conftest.
$ac_ext
8091 cat >>conftest.
$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 #include <$ac_header>
8095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8096 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8098 grep -v '^ *+' conftest.er1
>conftest.err
8100 cat conftest.err
>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } >/dev
/null
; then
8103 if test -s conftest.err
; then
8104 ac_cpp_err
=$ac_c_preproc_warn_flag
8105 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8112 if test -z "$ac_cpp_err"; then
8113 eval "$as_ac_Header=yes"
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.
$ac_ext >&5
8118 eval "$as_ac_Header=no"
8120 rm -f conftest.err conftest.
$ac_ext
8122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8125 cat >>confdefs.h
<<_ACEOF
8126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8133 # Check for thread headers.
8134 echo "$as_me:$LINENO: checking for thread.h" >&5
8135 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8136 if test "${ac_cv_header_thread_h+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 cat >conftest.
$ac_ext <<_ACEOF
8142 cat confdefs.h
>>conftest.
$ac_ext
8143 cat >>conftest.
$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8148 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8150 grep -v '^ *+' conftest.er1
>conftest.err
8152 cat conftest.err
>&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } >/dev
/null
; then
8155 if test -s conftest.err
; then
8156 ac_cpp_err
=$ac_c_preproc_warn_flag
8157 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8164 if test -z "$ac_cpp_err"; then
8165 ac_cv_header_thread_h
=yes
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.
$ac_ext >&5
8170 ac_cv_header_thread_h
=no
8172 rm -f conftest.err conftest.
$ac_ext
8174 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8175 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8176 if test $ac_cv_header_thread_h = yes; then
8182 echo "$as_me:$LINENO: checking for pthread.h" >&5
8183 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8184 if test "${ac_cv_header_pthread_h+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 cat >conftest.
$ac_ext <<_ACEOF
8190 cat confdefs.h
>>conftest.
$ac_ext
8191 cat >>conftest.
$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 #include <pthread.h>
8195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8196 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8198 grep -v '^ *+' conftest.er1
>conftest.err
8200 cat conftest.err
>&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } >/dev
/null
; then
8203 if test -s conftest.err
; then
8204 ac_cpp_err
=$ac_c_preproc_warn_flag
8205 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8212 if test -z "$ac_cpp_err"; then
8213 ac_cv_header_pthread_h
=yes
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.
$ac_ext >&5
8218 ac_cv_header_pthread_h
=no
8220 rm -f conftest.err conftest.
$ac_ext
8222 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8223 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8224 if test $ac_cv_header_pthread_h = yes; then
8231 # These tests can't be done till we know if we have limits.h.
8232 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8233 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8234 if test "${gcc_cv_decl_char_bit+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 cat >conftest.
$ac_ext <<_ACEOF
8240 cat confdefs.h
>>conftest.
$ac_ext
8241 cat >>conftest.
$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 #ifdef HAVE_LIMITS_H
8250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8251 $EGREP "found" >/dev
/null
2>&1; then
8252 gcc_cv_decl_char_bit
=yes
8254 gcc_cv_decl_char_bit
=no
8260 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8261 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8262 if test $gcc_cv_decl_char_bit = no
; then
8263 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8264 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8265 if test "${gcc_cv_c_nbby+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 while test $i -lt 65; do
8271 cat >conftest.
$ac_ext <<_ACEOF
8274 cat confdefs.h
>>conftest.
$ac_ext
8275 cat >>conftest.
$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8282 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8283 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8289 rm -f conftest.
$ac_objext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8291 (eval $ac_compile) 2>conftest.er1
8293 grep -v '^ *+' conftest.er1
>conftest.err
8295 cat conftest.err
>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try
='test -z "$ac_c_werror_flag"
8299 || test ! -s conftest.err'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try
='test -s conftest.$ac_objext'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 gcc_cv_c_nbby
=$i; break
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.
$ac_ext >&5
8317 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8320 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8323 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8324 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8325 if test $gcc_cv_c_nbby = failed
; then
8326 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8327 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8328 { (exit 1); exit 1; }; }
8331 cat >>confdefs.h
<<_ACEOF
8332 #define CHAR_BIT $gcc_cv_c_nbby
8337 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8338 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8339 if test "${ac_cv_c_bigendian+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 ac_cv_c_bigendian
=unknown
8343 # See if sys/param.h defines the BYTE_ORDER macro.
8344 cat >conftest.
$ac_ext <<_ACEOF
8347 cat confdefs.h
>>conftest.
$ac_ext
8348 cat >>conftest.
$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 #include <sys/types.h>
8351 #include <sys/param.h>
8356 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8363 rm -f conftest.
$ac_objext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365 (eval $ac_compile) 2>conftest.er1
8367 grep -v '^ *+' conftest.er1
>conftest.err
8369 cat conftest.err
>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try
='test -z "$ac_c_werror_flag"
8373 || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try
='test -s conftest.$ac_objext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 # It does; now see whether it defined to BIG_ENDIAN or not.
8386 cat >conftest.
$ac_ext <<_ACEOF
8389 cat confdefs.h
>>conftest.
$ac_ext
8390 cat >>conftest.
$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 #include <sys/types.h>
8393 #include <sys/param.h>
8398 #if BYTE_ORDER != BIG_ENDIAN
8405 rm -f conftest.
$ac_objext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407 (eval $ac_compile) 2>conftest.er1
8409 grep -v '^ *+' conftest.er1
>conftest.err
8411 cat conftest.err
>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try
='test -z "$ac_c_werror_flag"
8415 || test ! -s conftest.err'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try
='test -s conftest.$ac_objext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_c_bigendian
=yes
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.
$ac_ext >&5
8432 ac_cv_c_bigendian
=no
8434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.
$ac_ext >&5
8440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8441 if test $ac_cv_c_bigendian = unknown
; then
8442 if test "$cross_compiling" = yes; then
8443 echo $ac_n "cross-compiling... " 2>&6
8445 cat >conftest.
$ac_ext <<_ACEOF
8448 cat confdefs.h
>>conftest.
$ac_ext
8449 cat >>conftest.
$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8452 /* Are we little or big endian? From Harbison&Steele. */
8456 char c[sizeof (long)];
8459 exit (u.c[sizeof (long) - 1] == 1);
8462 rm -f conftest
$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 ac_cv_c_bigendian
=no
8475 echo "$as_me: program exited with status $ac_status" >&5
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.
$ac_ext >&5
8480 ac_cv_c_bigendian
=yes
8482 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8486 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8487 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8488 if test $ac_cv_c_bigendian = unknown
; then
8489 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8490 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8492 cat >conftest.c
<<EOF
8493 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8494 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8495 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8496 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8497 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8498 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8499 int main() { _ascii (); _ebcdic (); return 0; }
8501 if test -f conftest.c
; then
8502 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
8503 if test `grep -l BIGenDianSyS conftest.o` ; then
8504 echo $ac_n ' big endian probe OK, ' 1>&6
8505 ac_cv_c_bigendian
=yes
8507 if test `grep -l LiTTleEnDian conftest.o` ; then
8508 echo $ac_n ' little endian probe OK, ' 1>&6
8509 if test $ac_cv_c_bigendian = yes ; then
8510 ac_cv_c_bigendian
=unknown
;
8512 ac_cv_c_bigendian
=no
8515 echo $ac_n 'guessing bigendian ... ' >&6
8518 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8519 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8521 if test $ac_cv_c_bigendian = yes; then
8523 cat >>confdefs.h
<<\_ACEOF
8524 #define WORDS_BIGENDIAN 1
8528 cat >>confdefs.h
<<\_ACEOF
8529 #define HOST_WORDS_BIG_ENDIAN 1
8537 cat >>confdefs.h
<<_ACEOF
8538 #define BYTEORDER $BYTEORDER
8541 if test $ac_cv_c_bigendian = unknown
; then
8542 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8543 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8544 { (exit 1); exit 1; }; }
8552 # Stage specific cflags for build.
8556 if test x
$GCC = xyes
8558 stage1_cflags
="-Wa,-J"
8564 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8565 # sources; use -no-cpp-precomp to get to GNU cpp.
8566 # Apple's GCC has bugs in designated initializer handling, so disable
8568 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8573 # These libraries may be used by collect2.
8574 # We may need a special search path to get them linked.
8575 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8576 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8577 if test "${gcc_cv_collect2_libs+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 for libs
in '' -lld -lmld \
8582 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8583 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8586 cat >conftest.
$ac_ext <<_ACEOF
8589 cat confdefs.h
>>conftest.
$ac_ext
8590 cat >>conftest.
$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8593 /* Override any gcc2 internal prototype to avoid an error. */
8597 /* We use char because int might match the return type of a gcc2
8598 builtin and then its argument prototype would still apply. */
8608 rm -f conftest.
$ac_objext conftest
$ac_exeext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8610 (eval $ac_link) 2>conftest.er1
8612 grep -v '^ *+' conftest.er1
>conftest.err
8614 cat conftest.err
>&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try
='test -z "$ac_c_werror_flag"
8618 || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try
='test -s conftest$ac_exeext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 gcc_cv_collect2_libs
="$libs"; break
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.
$ac_ext >&5
8636 rm -f conftest.err conftest.
$ac_objext \
8637 conftest
$ac_exeext conftest.
$ac_ext
8640 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8642 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8643 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8644 case $gcc_cv_collect2_libs in
8646 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8650 # When building Ada code on Alpha, we need exc_resume which is usually in
8651 # -lexc. So test for it.
8654 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8655 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8656 if test "${ac_cv_search_exc_resume+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 ac_func_search_save_LIBS
=$LIBS
8660 ac_cv_search_exc_resume
=no
8661 cat >conftest.
$ac_ext <<_ACEOF
8664 cat confdefs.h
>>conftest.
$ac_ext
8665 cat >>conftest.
$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8668 /* Override any gcc2 internal prototype to avoid an error. */
8672 /* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8683 rm -f conftest.
$ac_objext conftest
$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>conftest.er1
8687 grep -v '^ *+' conftest.er1
>conftest.err
8689 cat conftest.err
>&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try
='test -z "$ac_c_werror_flag"
8693 || test ! -s conftest.err'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try
='test -s conftest$ac_exeext'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_cv_search_exc_resume
="none required"
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.
$ac_ext >&5
8711 rm -f conftest.err conftest.
$ac_objext \
8712 conftest
$ac_exeext conftest.
$ac_ext
8713 if test "$ac_cv_search_exc_resume" = no
; then
8714 for ac_lib
in exc
; do
8715 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8716 cat >conftest.
$ac_ext <<_ACEOF
8719 cat confdefs.h
>>conftest.
$ac_ext
8720 cat >>conftest.
$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8723 /* Override any gcc2 internal prototype to avoid an error. */
8727 /* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8738 rm -f conftest.
$ac_objext conftest
$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740 (eval $ac_link) 2>conftest.er1
8742 grep -v '^ *+' conftest.er1
>conftest.err
8744 cat conftest.err
>&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try
='test -z "$ac_c_werror_flag"
8748 || test ! -s conftest.err'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; } &&
8754 { ac_try
='test -s conftest$ac_exeext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_cv_search_exc_resume
="-l$ac_lib"
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.
$ac_ext >&5
8767 rm -f conftest.err conftest.
$ac_objext \
8768 conftest
$ac_exeext conftest.
$ac_ext
8771 LIBS
=$ac_func_search_save_LIBS
8773 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8774 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8775 if test "$ac_cv_search_exc_resume" != no
; then
8776 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8784 # Some systems put ldexp and frexp in libm instead of libc; assume
8785 # they're both in the same place. jcf-dump needs them.
8788 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8789 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8790 if test "${ac_cv_search_ldexp+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 ac_func_search_save_LIBS
=$LIBS
8794 ac_cv_search_ldexp
=no
8795 cat >conftest.
$ac_ext <<_ACEOF
8798 cat confdefs.h
>>conftest.
$ac_ext
8799 cat >>conftest.
$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8802 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8817 rm -f conftest.
$ac_objext conftest
$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8821 grep -v '^ *+' conftest.er1
>conftest.err
8823 cat conftest.err
>&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try
='test -z "$ac_c_werror_flag"
8827 || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try
='test -s conftest$ac_exeext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 ac_cv_search_ldexp
="none required"
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.
$ac_ext >&5
8845 rm -f conftest.err conftest.
$ac_objext \
8846 conftest
$ac_exeext conftest.
$ac_ext
8847 if test "$ac_cv_search_ldexp" = no
; then
8849 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8850 cat >conftest.
$ac_ext <<_ACEOF
8853 cat confdefs.h
>>conftest.
$ac_ext
8854 cat >>conftest.
$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8857 /* Override any gcc2 internal prototype to avoid an error. */
8861 /* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8872 rm -f conftest.
$ac_objext conftest
$ac_exeext
8873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 (eval $ac_link) 2>conftest.er1
8876 grep -v '^ *+' conftest.er1
>conftest.err
8878 cat conftest.err
>&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try
='test -z "$ac_c_werror_flag"
8882 || test ! -s conftest.err'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; } &&
8888 { ac_try
='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 ac_cv_search_ldexp
="-l$ac_lib"
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8901 rm -f conftest.err conftest.
$ac_objext \
8902 conftest
$ac_exeext conftest.
$ac_ext
8905 LIBS
=$ac_func_search_save_LIBS
8907 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8908 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8909 if test "$ac_cv_search_ldexp" != no
; then
8910 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8918 # Use <inttypes.h> only if it exists,
8919 # doesn't clash with <sys/types.h>, and declares intmax_t.
8920 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8921 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8922 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 cat >conftest.
$ac_ext <<_ACEOF
8928 cat confdefs.h
>>conftest.
$ac_ext
8929 cat >>conftest.
$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8931 #include <sys/types.h>
8932 #include <inttypes.h>
8941 rm -f conftest.
$ac_objext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8943 (eval $ac_compile) 2>conftest.er1
8945 grep -v '^ *+' conftest.er1
>conftest.err
8947 cat conftest.err
>&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try
='test -z "$ac_c_werror_flag"
8951 || test ! -s conftest.err'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try
='test -s conftest.$ac_objext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 gcc_cv_header_inttypes_h
=yes
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.
$ac_ext >&5
8968 gcc_cv_header_inttypes_h
=no
8970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8973 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8974 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8975 if test $gcc_cv_header_inttypes_h = yes; then
8977 cat >>confdefs.h
<<\_ACEOF
8978 #define HAVE_INTTYPES_H 1
9009 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
9010 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
9011 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
9012 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
9015 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9016 echo "$as_me:$LINENO: checking for $ac_func" >&5
9017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9018 if eval "test \"\${$as_ac_var+set}\" = set"; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 cat >conftest.
$ac_ext <<_ACEOF
9024 cat confdefs.h
>>conftest.
$ac_ext
9025 cat >>conftest.
$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9029 #define $ac_func innocuous_$ac_func
9031 /* System header to define __stub macros and hopefully few prototypes,
9032 which can conflict with char $ac_func (); below.
9033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9034 <limits.h> exists even on freestanding compilers. */
9037 # include <limits.h>
9039 # include <assert.h>
9044 /* Override any gcc2 internal prototype to avoid an error. */
9049 /* We use char because int might match the return type of a gcc2
9050 builtin and then its argument prototype would still apply. */
9052 /* The GNU C library defines this for functions which it implements
9053 to always fail with ENOSYS. Some functions are actually named
9054 something starting with __ and the normal name is an alias. */
9055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9058 char (*f) () = $ac_func;
9067 return f != $ac_func;
9072 rm -f conftest.
$ac_objext conftest
$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>conftest.er1
9076 grep -v '^ *+' conftest.er1
>conftest.err
9078 cat conftest.err
>&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try
='test -z "$ac_c_werror_flag"
9082 || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try
='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 eval "$as_ac_var=yes"
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.
$ac_ext >&5
9099 eval "$as_ac_var=no"
9101 rm -f conftest.err conftest.
$ac_objext \
9102 conftest
$ac_exeext conftest.
$ac_ext
9104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9106 if test `eval echo '${'$as_ac_var'}'` = yes; then
9107 cat >>confdefs.h
<<_ACEOF
9108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9115 if test x
$ac_cv_func_mbstowcs = xyes
; then
9116 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9117 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9118 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 if test "$cross_compiling" = yes; then
9122 gcc_cv_func_mbstowcs_works
=yes
9124 cat >conftest.
$ac_ext <<_ACEOF
9127 cat confdefs.h
>>conftest.
$ac_ext
9128 cat >>conftest.
$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9137 rm -f conftest
$ac_exeext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139 (eval $ac_link) 2>&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 gcc_cv_func_mbstowcs_works
=yes
9150 echo "$as_me: program exited with status $ac_status" >&5
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.
$ac_ext >&5
9155 gcc_cv_func_mbstowcs_works
=no
9157 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9160 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9161 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9162 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9164 cat >>confdefs.h
<<\_ACEOF
9165 #define HAVE_WORKING_MBSTOWCS 1
9171 echo "$as_me:$LINENO: checking for ssize_t" >&5
9172 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9173 if test "${ac_cv_type_ssize_t+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 cat >conftest.
$ac_ext <<_ACEOF
9179 cat confdefs.h
>>conftest.
$ac_ext
9180 cat >>conftest.
$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9188 if (sizeof (ssize_t))
9194 rm -f conftest.
$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>conftest.er1
9198 grep -v '^ *+' conftest.er1
>conftest.err
9200 cat conftest.err
>&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try
='test -z "$ac_c_werror_flag"
9204 || test ! -s conftest.err'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; } &&
9210 { ac_try
='test -s conftest.$ac_objext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_type_ssize_t
=yes
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.
$ac_ext >&5
9221 ac_cv_type_ssize_t
=no
9223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9226 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9227 if test $ac_cv_type_ssize_t = yes; then
9231 cat >>confdefs.h
<<_ACEOF
9238 # Try to determine the array type of the second argument of getgroups
9239 # for the target system (int or gid_t).
9240 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9241 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9242 if test "${ac_cv_type_uid_t+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 cat >conftest.
$ac_ext <<_ACEOF
9248 cat confdefs.h
>>conftest.
$ac_ext
9249 cat >>conftest.
$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 #include <sys/types.h>
9254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9255 $EGREP "uid_t" >/dev
/null
2>&1; then
9256 ac_cv_type_uid_t
=yes
9263 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9264 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9265 if test $ac_cv_type_uid_t = no
; then
9267 cat >>confdefs.h
<<\_ACEOF
9272 cat >>confdefs.h
<<\_ACEOF
9278 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9279 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9280 if test "${ac_cv_type_getgroups+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 if test "$cross_compiling" = yes; then
9284 ac_cv_type_getgroups
=cross
9286 cat >conftest.
$ac_ext <<_ACEOF
9289 cat confdefs.h
>>conftest.
$ac_ext
9290 cat >>conftest.
$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9292 /* Thanks to Mike Rendell for this test. */
9293 #include <sys/types.h>
9296 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9303 union { gid_t gval; long lval; } val;
9306 for (i = 0; i < NGID; i++)
9307 gidset[i] = val.gval;
9308 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9310 /* Exit non-zero if getgroups seems to require an array of ints. This
9311 happens when gid_t is short but getgroups modifies an array of ints. */
9312 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9315 rm -f conftest
$ac_exeext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317 (eval $ac_link) 2>&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_type_getgroups
=gid_t
9328 echo "$as_me: program exited with status $ac_status" >&5
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.
$ac_ext >&5
9333 ac_cv_type_getgroups
=int
9335 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9337 if test $ac_cv_type_getgroups = cross
; then
9338 cat >conftest.
$ac_ext <<_ACEOF
9341 cat confdefs.h
>>conftest.
$ac_ext
9342 cat >>conftest.
$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9348 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9349 ac_cv_type_getgroups
=gid_t
9351 ac_cv_type_getgroups
=int
9357 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9358 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9360 cat >>confdefs.h
<<_ACEOF
9361 #define GETGROUPS_T $ac_cv_type_getgroups
9365 if test "${target}" = "${build}"; then
9366 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9369 # This condition may need some tweaking. It should include all
9370 # targets where the array type of the second argument of getgroups
9371 # is int and the type of gid_t is not equivalent to int.
9372 *-*-sunos* |
*-*-ultrix*)
9373 TARGET_GETGROUPS_T
=int
9376 TARGET_GETGROUPS_T
=gid_t
9382 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9383 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9384 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 if test "$cross_compiling" = yes; then
9388 gcc_cv_func_printf_ptr
=no
9390 cat >conftest.
$ac_ext <<_ACEOF
9393 cat confdefs.h
>>conftest.
$ac_ext
9394 cat >>conftest.
$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9401 char *p = buf, *q = NULL;
9402 sprintf(buf, "%p", p);
9403 sscanf(buf, "%p", &q);
9407 rm -f conftest
$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 gcc_cv_func_printf_ptr
=yes
9420 echo "$as_me: program exited with status $ac_status" >&5
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.
$ac_ext >&5
9425 gcc_cv_func_printf_ptr
=no
9427 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9429 rm -f core core.
* *.core
9431 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9432 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9433 if test $gcc_cv_func_printf_ptr = yes ; then
9435 cat >>confdefs.h
<<\_ACEOF
9436 #define HAVE_PRINTF_PTR 1
9442 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9443 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9444 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 cat >conftest.
$ac_ext <<_ACEOF
9450 cat confdefs.h
>>conftest.
$ac_ext
9451 cat >>conftest.
$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 #include <sys/mman.h>
9455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9456 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9458 grep -v '^ *+' conftest.er1
>conftest.err
9460 cat conftest.err
>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } >/dev
/null
; then
9463 if test -s conftest.err
; then
9464 ac_cpp_err
=$ac_c_preproc_warn_flag
9465 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9472 if test -z "$ac_cpp_err"; then
9473 ac_cv_header_sys_mman_h
=yes
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.
$ac_ext >&5
9478 ac_cv_header_sys_mman_h
=no
9480 rm -f conftest.err conftest.
$ac_ext
9482 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9483 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9484 if test $ac_cv_header_sys_mman_h = yes; then
9485 gcc_header_sys_mman_h
=yes
9487 gcc_header_sys_mman_h
=no
9490 echo "$as_me:$LINENO: checking for mmap" >&5
9491 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9492 if test "${ac_cv_func_mmap+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 cat >conftest.
$ac_ext <<_ACEOF
9498 cat confdefs.h
>>conftest.
$ac_ext
9499 cat >>conftest.
$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9501 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9503 #define mmap innocuous_mmap
9505 /* System header to define __stub macros and hopefully few prototypes,
9506 which can conflict with char mmap (); below.
9507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9508 <limits.h> exists even on freestanding compilers. */
9511 # include <limits.h>
9513 # include <assert.h>
9518 /* Override any gcc2 internal prototype to avoid an error. */
9523 /* We use char because int might match the return type of a gcc2
9524 builtin and then its argument prototype would still apply. */
9526 /* The GNU C library defines this for functions which it implements
9527 to always fail with ENOSYS. Some functions are actually named
9528 something starting with __ and the normal name is an alias. */
9529 #if defined (__stub_mmap) || defined (__stub___mmap)
9532 char (*f) () = mmap;
9546 rm -f conftest.
$ac_objext conftest
$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>conftest.er1
9550 grep -v '^ *+' conftest.er1
>conftest.err
9552 cat conftest.err
>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try
='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try
='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.
$ac_ext >&5
9575 rm -f conftest.err conftest.
$ac_objext \
9576 conftest
$ac_exeext conftest.
$ac_ext
9578 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9579 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9580 if test $ac_cv_func_mmap = yes; then
9586 if test "$gcc_header_sys_mman_h" != yes \
9587 ||
test "$gcc_func_mmap" != yes; then
9588 gcc_cv_func_mmap_file
=no
9589 gcc_cv_func_mmap_dev_zero
=no
9590 gcc_cv_func_mmap_anon
=no
9592 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9593 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9594 if test "${gcc_cv_func_mmap_file+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 # Add a system to this blacklist if
9598 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9599 # memory area containing the same data that you'd get if you applied
9600 # read() to the same fd. The only system known to have a problem here
9601 # is VMS, where text files have record structure.
9604 gcc_cv_func_mmap_file
=no
;;
9606 gcc_cv_func_mmap_file
=yes;;
9609 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9610 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9611 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9612 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9613 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 # Add a system to this blacklist if it has mmap() but /dev/zero
9617 # does not exist, or if mmapping /dev/zero does not give anonymous
9618 # zeroed pages with both the following properties:
9619 # 1. If you map N consecutive pages in with one call, and then
9620 # unmap any subset of those pages, the pages that were not
9621 # explicitly unmapped remain accessible.
9622 # 2. If you map two adjacent blocks of memory and then unmap them
9623 # both at once, they must both go away.
9624 # Systems known to be in this category are Windows (all variants),
9627 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9628 gcc_cv_func_mmap_dev_zero
=no
;;
9630 gcc_cv_func_mmap_dev_zero
=yes;;
9633 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9634 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9636 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9637 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9638 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9639 if test "${gcc_cv_decl_map_anon+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 cat >conftest.
$ac_ext <<_ACEOF
9645 cat confdefs.h
>>conftest.
$ac_ext
9646 cat >>conftest.
$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 #include <sys/types.h>
9649 #include <sys/mman.h>
9652 #ifndef MAP_ANONYMOUS
9653 #define MAP_ANONYMOUS MAP_ANON
9659 int n = MAP_ANONYMOUS;
9664 rm -f conftest.
$ac_objext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666 (eval $ac_compile) 2>conftest.er1
9668 grep -v '^ *+' conftest.er1
>conftest.err
9670 cat conftest.err
>&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try
='test -z "$ac_c_werror_flag"
9674 || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try
='test -s conftest.$ac_objext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 gcc_cv_decl_map_anon
=yes
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.
$ac_ext >&5
9691 gcc_cv_decl_map_anon
=no
9693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9695 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9696 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9698 if test $gcc_cv_decl_map_anon = no
; then
9699 gcc_cv_func_mmap_anon
=no
9701 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9702 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9703 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9707 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9708 # doesn't give anonymous zeroed pages with the same properties listed
9709 # above for use of /dev/zero.
9710 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9712 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9713 gcc_cv_func_mmap_anon
=no
;;
9715 gcc_cv_func_mmap_anon
=yes;;
9718 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9719 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9723 if test $gcc_cv_func_mmap_file = yes; then
9725 cat >>confdefs.h
<<\_ACEOF
9726 #define HAVE_MMAP_FILE 1
9730 if test $gcc_cv_func_mmap_dev_zero = yes; then
9732 cat >>confdefs.h
<<\_ACEOF
9733 #define HAVE_MMAP_DEV_ZERO 1
9737 if test $gcc_cv_func_mmap_anon = yes; then
9739 cat >>confdefs.h
<<\_ACEOF
9740 #define HAVE_MMAP_ANON 1
9748 # Under VMS, vfork works very differently than on Unix. The standard test
9749 # won't work, and it isn't easily adaptable. It makes more sense to
9751 ac_cv_func_vfork_works
=yes
9754 echo "$as_me:$LINENO: checking for pid_t" >&5
9755 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9756 if test "${ac_cv_type_pid_t+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 cat >conftest.
$ac_ext <<_ACEOF
9762 cat confdefs.h
>>conftest.
$ac_ext
9763 cat >>conftest.
$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 $ac_includes_default
9777 rm -f conftest.
$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>conftest.er1
9781 grep -v '^ *+' conftest.er1
>conftest.err
9783 cat conftest.err
>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try
='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try
='test -s conftest.$ac_objext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_type_pid_t
=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.
$ac_ext >&5
9806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9808 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9809 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9810 if test $ac_cv_type_pid_t = yes; then
9814 cat >>confdefs.h
<<_ACEOF
9822 for ac_header
in unistd.h vfork.h
9824 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9825 echo "$as_me:$LINENO: checking for $ac_header" >&5
9826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 cat >conftest.
$ac_ext <<_ACEOF
9833 cat confdefs.h
>>conftest.
$ac_ext
9834 cat >>conftest.
$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 #include <$ac_header>
9838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9839 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9841 grep -v '^ *+' conftest.er1
>conftest.err
9843 cat conftest.err
>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } >/dev
/null
; then
9846 if test -s conftest.err
; then
9847 ac_cpp_err
=$ac_c_preproc_warn_flag
9848 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9855 if test -z "$ac_cpp_err"; then
9856 eval "$as_ac_Header=yes"
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.
$ac_ext >&5
9861 eval "$as_ac_Header=no"
9863 rm -f conftest.err conftest.
$ac_ext
9865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9868 cat >>confdefs.h
<<_ACEOF
9869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9877 for ac_func
in fork vfork
9879 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9880 echo "$as_me:$LINENO: checking for $ac_func" >&5
9881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9882 if eval "test \"\${$as_ac_var+set}\" = set"; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 cat >conftest.
$ac_ext <<_ACEOF
9888 cat confdefs.h
>>conftest.
$ac_ext
9889 cat >>conftest.
$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define $ac_func innocuous_$ac_func
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char $ac_func (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9901 # include <limits.h>
9903 # include <assert.h>
9908 /* Override any gcc2 internal prototype to avoid an error. */
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9916 /* The GNU C library defines this for functions which it implements
9917 to always fail with ENOSYS. Some functions are actually named
9918 something starting with __ and the normal name is an alias. */
9919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9922 char (*f) () = $ac_func;
9931 return f != $ac_func;
9936 rm -f conftest.
$ac_objext conftest
$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>conftest.er1
9940 grep -v '^ *+' conftest.er1
>conftest.err
9942 cat conftest.err
>&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try
='test -z "$ac_c_werror_flag"
9946 || test ! -s conftest.err'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try
='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 eval "$as_ac_var=yes"
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.
$ac_ext >&5
9963 eval "$as_ac_var=no"
9965 rm -f conftest.err conftest.
$ac_objext \
9966 conftest
$ac_exeext conftest.
$ac_ext
9968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9970 if test `eval echo '${'$as_ac_var'}'` = yes; then
9971 cat >>confdefs.h
<<_ACEOF
9972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9978 if test "x$ac_cv_func_fork" = xyes
; then
9979 echo "$as_me:$LINENO: checking for working fork" >&5
9980 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9981 if test "${ac_cv_func_fork_works+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 if test "$cross_compiling" = yes; then
9985 ac_cv_func_fork_works
=cross
9987 cat >conftest.
$ac_ext <<_ACEOF
9988 /* By Ruediger Kuhlmann. */
9989 #include <sys/types.h>
9991 # include <unistd.h>
9993 /* Some systems only have a dummy stub for fork() */
10001 rm -f conftest
$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_func_fork_works
=yes
10014 echo "$as_me: program exited with status $ac_status" >&5
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.
$ac_ext >&5
10018 ( exit $ac_status )
10019 ac_cv_func_fork_works
=no
10021 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10024 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10025 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10028 ac_cv_func_fork_works
=$ac_cv_func_fork
10030 if test "x$ac_cv_func_fork_works" = xcross
; then
10032 *-*-amigaos* |
*-*-msdosdjgpp*)
10033 # Override, as these systems have only a dummy fork() stub
10034 ac_cv_func_fork_works
=no
10037 ac_cv_func_fork_works
=yes
10040 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10041 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10043 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10044 if test "x$ac_cv_func_vfork" = xyes
; then
10045 echo "$as_me:$LINENO: checking for working vfork" >&5
10046 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10047 if test "${ac_cv_func_vfork_works+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 if test "$cross_compiling" = yes; then
10051 ac_cv_func_vfork_works
=cross
10053 cat >conftest.
$ac_ext <<_ACEOF
10056 cat confdefs.h
>>conftest.
$ac_ext
10057 cat >>conftest.
$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 /* Thanks to Paul Eggert for this test. */
10061 #include <stdlib.h>
10062 #include <sys/types.h>
10063 #include <sys/stat.h>
10064 #include <sys/wait.h>
10066 # include <unistd.h>
10069 # include <vfork.h>
10071 /* On some sparc systems, changes by the child to local and incoming
10072 argument registers are propagated back to the parent. The compiler
10073 is told about this with #include <vfork.h>, but some compilers
10074 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10075 static variable whose address is put into a register that is
10076 clobbered by the vfork. */
10079 sparc_address_test (int arg)
10081 sparc_address_test (arg) int arg;
10084 static pid_t child;
10102 pid_t parent = getpid ();
10105 sparc_address_test (0);
10110 /* Here is another test for sparc vfork register problems. This
10111 test uses lots of local variables, at least as many local
10112 variables as main has allocated so far including compiler
10113 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10114 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10115 reuse the register of parent for one of the local variables,
10116 since it will think that parent can't possibly be used any more
10117 in this routine. Assigning to the local variable will thus
10118 munge parent in the parent process. */
10120 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10121 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10122 /* Convince the compiler that p..p7 are live; otherwise, it might
10123 use the same hardware register for all 8 local variables. */
10124 if (p != p1 || p != p2 || p != p3 || p != p4
10125 || p != p5 || p != p6 || p != p7)
10128 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10129 from child file descriptors. If the child closes a descriptor
10130 before it execs or exits, this munges the parent's descriptor
10131 as well. Test for this by closing stdout in the child. */
10132 _exit(close(fileno(stdout)) != 0);
10137 while (wait(&status) != child)
10140 /* Was there some problem with vforking? */
10143 /* Did the child fail? (This shouldn't happen.) */
10146 /* Did the vfork/compiler bug occur? */
10147 || parent != getpid()
10149 /* Did the file descriptor bug occur? */
10150 || fstat(fileno(stdout), &st) != 0
10155 rm -f conftest
$ac_exeext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157 (eval $ac_link) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 ac_cv_func_vfork_works
=yes
10168 echo "$as_me: program exited with status $ac_status" >&5
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.
$ac_ext >&5
10172 ( exit $ac_status )
10173 ac_cv_func_vfork_works
=no
10175 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10178 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10179 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10182 if test "x$ac_cv_func_fork_works" = xcross
; then
10183 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10184 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10185 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10188 if test "x$ac_cv_func_vfork_works" = xyes
; then
10190 cat >>confdefs.h
<<\_ACEOF
10191 #define HAVE_WORKING_VFORK 1
10196 cat >>confdefs.h
<<\_ACEOF
10201 if test "x$ac_cv_func_fork_works" = xyes
; then
10203 cat >>confdefs.h
<<\_ACEOF
10204 #define HAVE_WORKING_FORK 1
10211 if test "X$prefix" = "XNONE"; then
10212 acl_final_prefix
="$ac_default_prefix"
10214 acl_final_prefix
="$prefix"
10216 if test "X$exec_prefix" = "XNONE"; then
10217 acl_final_exec_prefix
='${prefix}'
10219 acl_final_exec_prefix
="$exec_prefix"
10221 acl_save_prefix
="$prefix"
10222 prefix
="$acl_final_prefix"
10223 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10224 prefix
="$acl_save_prefix"
10227 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10228 if test "${with_gnu_ld+set}" = set; then
10229 withval
="$with_gnu_ld"
10230 test "$withval" = no || with_gnu_ld
=yes
10234 # Prepare PATH_SEPARATOR.
10235 # The user is always right.
10236 if test "${PATH_SEPARATOR+set}" != set; then
10237 echo "#! /bin/sh" >conf$$.sh
10238 echo "exit 0" >>conf$$.sh
10240 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10248 if test "$GCC" = yes; then
10249 # Check if gcc -print-prog-name=ld gives a path.
10250 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10251 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10254 # gcc leaves a trailing carriage return which upsets mingw
10255 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10257 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10260 # Accept absolute paths.
10261 [\\/]* |
[A-Za-z
]:[\\/]*)
10262 re_direlt
='/[^/][^/]*/\.\./'
10263 # Canonicalize the path of ld
10264 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10265 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10266 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10268 test -z "$LD" && LD
="$ac_prog"
10271 # If it fails, then pretend we aren't using GCC.
10275 # If it is relative, then search for the first ld in PATH.
10276 with_gnu_ld
=unknown
10279 elif test "$with_gnu_ld" = yes; then
10280 echo "$as_me:$LINENO: checking for GNU ld" >&5
10281 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10283 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10284 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10286 if test "${acl_cv_path_LD+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 if test -z "$LD"; then
10290 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10291 for ac_dir
in $PATH; do
10292 test -z "$ac_dir" && ac_dir
=.
10293 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10294 acl_cv_path_LD
="$ac_dir/$ac_prog"
10295 # Check to see if the program is GNU ld. I'd rather use --version,
10296 # but apparently some GNU ld's only accept -v.
10297 # Break only if it was the GNU/non-GNU ld that we prefer.
10298 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10299 test "$with_gnu_ld" != no
&& break
10301 test "$with_gnu_ld" != yes && break
10307 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10311 LD
="$acl_cv_path_LD"
10312 if test -n "$LD"; then
10313 echo "$as_me:$LINENO: result: $LD" >&5
10314 echo "${ECHO_T}$LD" >&6
10316 echo "$as_me:$LINENO: result: no" >&5
10317 echo "${ECHO_T}no" >&6
10319 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10320 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10321 { (exit 1); exit 1; }; }
10322 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10323 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10324 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10328 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10329 acl_cv_prog_gnu_ld
=yes
10331 acl_cv_prog_gnu_ld
=no
10334 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10335 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10336 with_gnu_ld
=$acl_cv_prog_gnu_ld
10340 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10341 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10342 if test "${acl_cv_rpath+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10347 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10349 rm -f .
/conftest.sh
10353 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10354 echo "${ECHO_T}$acl_cv_rpath" >&6
10356 libext
="$acl_cv_libext"
10357 shlibext
="$acl_cv_shlibext"
10358 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10359 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10360 hardcode_direct
="$acl_cv_hardcode_direct"
10361 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10362 # Check whether --enable-rpath or --disable-rpath was given.
10363 if test "${enable_rpath+set}" = set; then
10364 enableval
="$enable_rpath"
10378 acl_save_prefix
="$prefix"
10379 prefix
="$acl_final_prefix"
10380 acl_save_exec_prefix
="$exec_prefix"
10381 exec_prefix
="$acl_final_exec_prefix"
10383 eval additional_includedir
=\"$includedir\"
10384 eval additional_libdir
=\"$libdir\"
10386 exec_prefix
="$acl_save_exec_prefix"
10387 prefix
="$acl_save_prefix"
10390 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10391 if test "${with_libiconv_prefix+set}" = set; then
10392 withval
="$with_libiconv_prefix"
10394 if test "X$withval" = "Xno"; then
10397 if test "X$withval" = "X"; then
10399 acl_save_prefix
="$prefix"
10400 prefix
="$acl_final_prefix"
10401 acl_save_exec_prefix
="$exec_prefix"
10402 exec_prefix
="$acl_final_exec_prefix"
10404 eval additional_includedir
=\"$includedir\"
10405 eval additional_libdir
=\"$libdir\"
10407 exec_prefix
="$acl_save_exec_prefix"
10408 prefix
="$acl_save_prefix"
10411 additional_includedir
="$withval/include"
10412 additional_libdir
="$withval/lib"
10422 names_already_handled
=
10423 names_next_round
='iconv '
10424 while test -n "$names_next_round"; do
10425 names_this_round
="$names_next_round"
10427 for name
in $names_this_round; do
10429 for n
in $names_already_handled; do
10430 if test "$n" = "$name"; then
10431 already_handled
=yes
10435 if test -z "$already_handled"; then
10436 names_already_handled
="$names_already_handled $name"
10437 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10438 eval value
=\"\
$HAVE_LIB$uppername\"
10439 if test -n "$value"; then
10440 if test "$value" = yes; then
10441 eval value
=\"\
$LIB$uppername\"
10442 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10443 eval value
=\"\
$LTLIB$uppername\"
10444 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10453 if test $use_additional = yes; then
10454 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10455 found_dir
="$additional_libdir"
10456 found_so
="$additional_libdir/lib$name.$shlibext"
10457 if test -f "$additional_libdir/lib$name.la"; then
10458 found_la
="$additional_libdir/lib$name.la"
10461 if test -f "$additional_libdir/lib$name.$libext"; then
10462 found_dir
="$additional_libdir"
10463 found_a
="$additional_libdir/lib$name.$libext"
10464 if test -f "$additional_libdir/lib$name.la"; then
10465 found_la
="$additional_libdir/lib$name.la"
10470 if test "X$found_dir" = "X"; then
10471 for x
in $LDFLAGS $LTLIBICONV; do
10473 acl_save_prefix
="$prefix"
10474 prefix
="$acl_final_prefix"
10475 acl_save_exec_prefix
="$exec_prefix"
10476 exec_prefix
="$acl_final_exec_prefix"
10478 exec_prefix
="$acl_save_exec_prefix"
10479 prefix
="$acl_save_prefix"
10483 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10484 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10486 found_so
="$dir/lib$name.$shlibext"
10487 if test -f "$dir/lib$name.la"; then
10488 found_la
="$dir/lib$name.la"
10491 if test -f "$dir/lib$name.$libext"; then
10493 found_a
="$dir/lib$name.$libext"
10494 if test -f "$dir/lib$name.la"; then
10495 found_la
="$dir/lib$name.la"
10501 if test "X$found_dir" != "X"; then
10506 if test "X$found_dir" != "X"; then
10507 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10508 if test "X$found_so" != "X"; then
10509 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10510 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10513 for x
in $ltrpathdirs; do
10514 if test "X$x" = "X$found_dir"; then
10519 if test -z "$haveit"; then
10520 ltrpathdirs
="$ltrpathdirs $found_dir"
10522 if test "$hardcode_direct" = yes; then
10523 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10525 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10526 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10528 for x
in $rpathdirs; do
10529 if test "X$x" = "X$found_dir"; then
10534 if test -z "$haveit"; then
10535 rpathdirs
="$rpathdirs $found_dir"
10539 for x
in $LDFLAGS $LIBICONV; do
10541 acl_save_prefix
="$prefix"
10542 prefix
="$acl_final_prefix"
10543 acl_save_exec_prefix
="$exec_prefix"
10544 exec_prefix
="$acl_final_exec_prefix"
10546 exec_prefix
="$acl_save_exec_prefix"
10547 prefix
="$acl_save_prefix"
10549 if test "X$x" = "X-L$found_dir"; then
10554 if test -z "$haveit"; then
10555 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10557 if test "$hardcode_minus_L" != no
; then
10558 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10560 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10566 if test "X$found_a" != "X"; then
10567 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10569 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10572 additional_includedir
=
10573 case "$found_dir" in
10575 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10576 additional_includedir
="$basedir/include"
10579 if test "X$additional_includedir" != "X"; then
10580 if test "X$additional_includedir" != "X/usr/include"; then
10582 if test "X$additional_includedir" = "X/usr/local/include"; then
10583 if test -n "$GCC"; then
10585 linux
*) haveit
=yes;;
10589 if test -z "$haveit"; then
10590 for x
in $CPPFLAGS $INCICONV; do
10592 acl_save_prefix
="$prefix"
10593 prefix
="$acl_final_prefix"
10594 acl_save_exec_prefix
="$exec_prefix"
10595 exec_prefix
="$acl_final_exec_prefix"
10597 exec_prefix
="$acl_save_exec_prefix"
10598 prefix
="$acl_save_prefix"
10600 if test "X$x" = "X-I$additional_includedir"; then
10605 if test -z "$haveit"; then
10606 if test -d "$additional_includedir"; then
10607 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10613 if test -n "$found_la"; then
10614 save_libdir
="$libdir"
10615 case "$found_la" in
10616 */* |
*\\*) .
"$found_la" ;;
10617 *) .
"./$found_la" ;;
10619 libdir
="$save_libdir"
10620 for dep
in $dependency_libs; do
10623 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10624 if test "X$additional_libdir" != "X/usr/lib"; then
10626 if test "X$additional_libdir" = "X/usr/local/lib"; then
10627 if test -n "$GCC"; then
10629 linux
*) haveit
=yes;;
10633 if test -z "$haveit"; then
10635 for x
in $LDFLAGS $LIBICONV; do
10637 acl_save_prefix
="$prefix"
10638 prefix
="$acl_final_prefix"
10639 acl_save_exec_prefix
="$exec_prefix"
10640 exec_prefix
="$acl_final_exec_prefix"
10642 exec_prefix
="$acl_save_exec_prefix"
10643 prefix
="$acl_save_prefix"
10645 if test "X$x" = "X-L$additional_libdir"; then
10650 if test -z "$haveit"; then
10651 if test -d "$additional_libdir"; then
10652 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10656 for x
in $LDFLAGS $LTLIBICONV; do
10658 acl_save_prefix
="$prefix"
10659 prefix
="$acl_final_prefix"
10660 acl_save_exec_prefix
="$exec_prefix"
10661 exec_prefix
="$acl_final_exec_prefix"
10663 exec_prefix
="$acl_save_exec_prefix"
10664 prefix
="$acl_save_prefix"
10666 if test "X$x" = "X-L$additional_libdir"; then
10671 if test -z "$haveit"; then
10672 if test -d "$additional_libdir"; then
10673 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10680 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10681 if test "$enable_rpath" != no
; then
10683 for x
in $rpathdirs; do
10684 if test "X$x" = "X$dir"; then
10689 if test -z "$haveit"; then
10690 rpathdirs
="$rpathdirs $dir"
10693 for x
in $ltrpathdirs; do
10694 if test "X$x" = "X$dir"; then
10699 if test -z "$haveit"; then
10700 ltrpathdirs
="$ltrpathdirs $dir"
10705 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10708 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10711 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10712 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10718 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10719 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10725 if test "X$rpathdirs" != "X"; then
10726 if test -n "$hardcode_libdir_separator"; then
10728 for found_dir
in $rpathdirs; do
10729 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10731 acl_save_libdir
="$libdir"
10733 eval flag
=\"$hardcode_libdir_flag_spec\"
10734 libdir
="$acl_save_libdir"
10735 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10737 for found_dir
in $rpathdirs; do
10738 acl_save_libdir
="$libdir"
10739 libdir
="$found_dir"
10740 eval flag
=\"$hardcode_libdir_flag_spec\"
10741 libdir
="$acl_save_libdir"
10742 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10746 if test "X$ltrpathdirs" != "X"; then
10747 for found_dir
in $ltrpathdirs; do
10748 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10758 am_save_CPPFLAGS
="$CPPFLAGS"
10760 for element
in $INCICONV; do
10762 for x
in $CPPFLAGS; do
10764 acl_save_prefix
="$prefix"
10765 prefix
="$acl_final_prefix"
10766 acl_save_exec_prefix
="$exec_prefix"
10767 exec_prefix
="$acl_final_exec_prefix"
10769 exec_prefix
="$acl_save_exec_prefix"
10770 prefix
="$acl_save_prefix"
10772 if test "X$x" = "X$element"; then
10777 if test -z "$haveit"; then
10778 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10783 echo "$as_me:$LINENO: checking for iconv" >&5
10784 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10785 if test "${am_cv_func_iconv+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 am_cv_func_iconv
="no, consider installing GNU libiconv"
10791 cat >conftest.
$ac_ext <<_ACEOF
10794 cat confdefs.h
>>conftest.
$ac_ext
10795 cat >>conftest.
$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 #include <stdlib.h>
10802 iconv_t cd = iconv_open("","");
10803 iconv(cd,NULL,NULL,NULL,NULL);
10809 rm -f conftest.
$ac_objext conftest
$ac_exeext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811 (eval $ac_link) 2>conftest.er1
10813 grep -v '^ *+' conftest.er1
>conftest.err
10815 cat conftest.err
>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try
='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try
='test -s conftest$ac_exeext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 am_cv_func_iconv
=yes
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.
$ac_ext >&5
10837 rm -f conftest.err conftest.
$ac_objext \
10838 conftest
$ac_exeext conftest.
$ac_ext
10839 if test "$am_cv_func_iconv" != yes; then
10840 am_save_LIBS
="$LIBS"
10841 LIBS
="$LIBS $LIBICONV"
10842 cat >conftest.
$ac_ext <<_ACEOF
10845 cat confdefs.h
>>conftest.
$ac_ext
10846 cat >>conftest.
$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 #include <stdlib.h>
10853 iconv_t cd = iconv_open("","");
10854 iconv(cd,NULL,NULL,NULL,NULL);
10860 rm -f conftest.
$ac_objext conftest
$ac_exeext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10862 (eval $ac_link) 2>conftest.er1
10864 grep -v '^ *+' conftest.er1
>conftest.err
10866 cat conftest.err
>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try
='test -z "$ac_c_werror_flag"
10870 || test ! -s conftest.err'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try
='test -s conftest$ac_exeext'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 am_cv_lib_iconv
=yes
10883 am_cv_func_iconv
=yes
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.
$ac_ext >&5
10889 rm -f conftest.err conftest.
$ac_objext \
10890 conftest
$ac_exeext conftest.
$ac_ext
10891 LIBS
="$am_save_LIBS"
10895 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10896 echo "${ECHO_T}$am_cv_func_iconv" >&6
10897 if test "$am_cv_func_iconv" = yes; then
10899 cat >>confdefs.h
<<\_ACEOF
10900 #define HAVE_ICONV 1
10904 if test "$am_cv_lib_iconv" = yes; then
10905 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10906 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10907 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10908 echo "${ECHO_T}$LIBICONV" >&6
10910 CPPFLAGS
="$am_save_CPPFLAGS"
10917 if test "$am_cv_func_iconv" = yes; then
10918 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10919 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10920 if test "${am_cv_proto_iconv+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 cat >conftest.
$ac_ext <<_ACEOF
10927 cat confdefs.h
>>conftest.
$ac_ext
10928 cat >>conftest.
$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10931 #include <stdlib.h>
10937 #if defined(__STDC__) || defined(__cplusplus)
10938 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10951 rm -f conftest.
$ac_objext
10952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10953 (eval $ac_compile) 2>conftest.er1
10955 grep -v '^ *+' conftest.er1
>conftest.err
10957 cat conftest.err
>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try
='test -z "$ac_c_werror_flag"
10961 || test ! -s conftest.err'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try
='test -s conftest.$ac_objext'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then
10973 am_cv_proto_iconv_arg1
=""
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.
$ac_ext >&5
10978 am_cv_proto_iconv_arg1
="const"
10980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10981 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);"
10984 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10985 echo "$as_me:$LINENO: result: ${ac_t:-
10986 }$am_cv_proto_iconv" >&5
10987 echo "${ECHO_T}${ac_t:-
10988 }$am_cv_proto_iconv" >&6
10990 cat >>confdefs.h
<<_ACEOF
10991 #define ICONV_CONST $am_cv_proto_iconv_arg1
10996 # Until we have in-tree GNU iconv:
11001 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11002 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11003 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 cat >conftest.
$ac_ext <<_ACEOF
11009 cat confdefs.h
>>conftest.
$ac_ext
11010 cat >>conftest.
$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 #include <locale.h>
11021 rm -f conftest.
$ac_objext conftest
$ac_exeext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11023 (eval $ac_link) 2>conftest.er1
11025 grep -v '^ *+' conftest.er1
>conftest.err
11027 cat conftest.err
>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try
='test -z "$ac_c_werror_flag"
11031 || test ! -s conftest.err'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; } &&
11037 { ac_try
='test -s conftest$ac_exeext'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 am_cv_val_LC_MESSAGES
=yes
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.
$ac_ext >&5
11048 am_cv_val_LC_MESSAGES
=no
11050 rm -f conftest.err conftest.
$ac_objext \
11051 conftest
$ac_exeext conftest.
$ac_ext
11053 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11054 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11055 if test $am_cv_val_LC_MESSAGES = yes; then
11057 cat >>confdefs.h
<<\_ACEOF
11058 #define HAVE_LC_MESSAGES 1
11065 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11066 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11067 if test "${am_cv_langinfo_codeset+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 cat >conftest.
$ac_ext <<_ACEOF
11073 cat confdefs.h
>>conftest.
$ac_ext
11074 cat >>conftest.
$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 #include <langinfo.h>
11080 char* cs = nl_langinfo(CODESET);
11085 rm -f conftest.
$ac_objext conftest
$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087 (eval $ac_link) 2>conftest.er1
11089 grep -v '^ *+' conftest.er1
>conftest.err
11091 cat conftest.err
>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try
='test -z "$ac_c_werror_flag"
11095 || test ! -s conftest.err'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try
='test -s conftest$ac_exeext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 am_cv_langinfo_codeset
=yes
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.
$ac_ext >&5
11112 am_cv_langinfo_codeset
=no
11114 rm -f conftest.err conftest.
$ac_objext \
11115 conftest
$ac_exeext conftest.
$ac_ext
11118 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11119 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11120 if test $am_cv_langinfo_codeset = yes; then
11122 cat >>confdefs.h
<<\_ACEOF
11123 #define HAVE_LANGINFO_CODESET 1
11129 # We will need to find libiberty.h and ansidecl.h
11130 saved_CFLAGS
="$CFLAGS"
11131 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11156 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
11157 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11158 fprintf_unlocked strstr errno snprintf vasprintf \
11159 malloc realloc calloc free
basename getopt
clock getpagesize
11161 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11162 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11163 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11164 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 cat >conftest.
$ac_ext <<_ACEOF
11170 cat confdefs.h
>>conftest.
$ac_ext
11171 cat >>conftest.
$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11174 #define $ac_tr_decl 1
11176 #include "ansidecl.h"
11177 #include "system.h"
11183 char *(*pfn) = (char *(*)) $ac_func ;
11189 rm -f conftest.
$ac_objext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11191 (eval $ac_compile) 2>conftest.er1
11193 grep -v '^ *+' conftest.er1
>conftest.err
11195 cat conftest.err
>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try
='test -z "$ac_c_werror_flag"
11199 || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try
='test -s conftest.$ac_objext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 eval "gcc_cv_have_decl_$ac_func=yes"
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.
$ac_ext >&5
11216 eval "gcc_cv_have_decl_$ac_func=no"
11218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11221 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11222 echo "$as_me:$LINENO: result: yes" >&5
11223 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11224 #define $ac_tr_decl 1
11228 echo "$as_me:$LINENO: result: no" >&5
11229 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11230 #define $ac_tr_decl 0
11241 for ac_func
in getrlimit setrlimit getrusage
11243 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11244 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11245 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11246 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 cat >conftest.
$ac_ext <<_ACEOF
11252 cat confdefs.h
>>conftest.
$ac_ext
11253 cat >>conftest.
$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11256 #define $ac_tr_decl 1
11258 #include "ansidecl.h"
11259 #include "system.h"
11260 #ifdef HAVE_SYS_RESOURCE_H
11261 #include <sys/resource.h>
11269 char *(*pfn) = (char *(*)) $ac_func ;
11275 rm -f conftest.
$ac_objext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11277 (eval $ac_compile) 2>conftest.er1
11279 grep -v '^ *+' conftest.er1
>conftest.err
11281 cat conftest.err
>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } &&
11284 { ac_try
='test -z "$ac_c_werror_flag"
11285 || test ! -s conftest.err'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; } &&
11291 { ac_try
='test -s conftest.$ac_objext'
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297 eval "gcc_cv_have_decl_$ac_func=yes"
11299 echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.
$ac_ext >&5
11302 eval "gcc_cv_have_decl_$ac_func=no"
11304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11307 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11308 echo "$as_me:$LINENO: result: yes" >&5
11309 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11310 #define $ac_tr_decl 1
11314 echo "$as_me:$LINENO: result: no" >&5
11315 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11316 #define $ac_tr_decl 0
11324 cat >conftest.
$ac_ext <<_ACEOF
11327 cat confdefs.h
>>conftest.
$ac_ext
11328 cat >>conftest.
$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11331 #include "ansidecl.h"
11332 #include "system.h"
11333 #ifdef HAVE_SYS_RESOURCE_H
11334 #include <sys/resource.h>
11345 rm -f conftest.
$ac_objext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11347 (eval $ac_compile) 2>conftest.er1
11349 grep -v '^ *+' conftest.er1
>conftest.err
11351 cat conftest.err
>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try
='test -z "$ac_c_werror_flag"
11355 || test ! -s conftest.err'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try
='test -s conftest.$ac_objext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.
$ac_ext >&5
11373 cat >>confdefs.h
<<\_ACEOF
11374 #define rlim_t long
11378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11380 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11381 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11382 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11383 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11385 for ac_func
in ldgetname
11387 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11388 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11389 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11390 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 cat >conftest.
$ac_ext <<_ACEOF
11396 cat confdefs.h
>>conftest.
$ac_ext
11397 cat >>conftest.
$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11400 #define $ac_tr_decl 1
11402 #include "ansidecl.h"
11403 #include "system.h"
11404 #ifdef HAVE_LDFCN_H
11415 char *(*pfn) = (char *(*)) $ac_func ;
11421 rm -f conftest.
$ac_objext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11423 (eval $ac_compile) 2>conftest.er1
11425 grep -v '^ *+' conftest.er1
>conftest.err
11427 cat conftest.err
>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try
='test -z "$ac_c_werror_flag"
11431 || test ! -s conftest.err'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; } &&
11437 { ac_try
='test -s conftest.$ac_objext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 eval "gcc_cv_have_decl_$ac_func=yes"
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.
$ac_ext >&5
11448 eval "gcc_cv_have_decl_$ac_func=no"
11450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11453 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11454 echo "$as_me:$LINENO: result: yes" >&5
11455 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11456 #define $ac_tr_decl 1
11460 echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11462 #define $ac_tr_decl 0
11471 for ac_func
in times
11473 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11474 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11475 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11476 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 cat >conftest.
$ac_ext <<_ACEOF
11482 cat confdefs.h
>>conftest.
$ac_ext
11483 cat >>conftest.
$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11486 #define $ac_tr_decl 1
11488 #include "ansidecl.h"
11489 #include "system.h"
11490 #ifdef HAVE_SYS_TIMES_H
11491 #include <sys/times.h>
11499 char *(*pfn) = (char *(*)) $ac_func ;
11505 rm -f conftest.
$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507 (eval $ac_compile) 2>conftest.er1
11509 grep -v '^ *+' conftest.er1
>conftest.err
11511 cat conftest.err
>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try
='test -z "$ac_c_werror_flag"
11515 || test ! -s conftest.err'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; } &&
11521 { ac_try
='test -s conftest.$ac_objext'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 eval "gcc_cv_have_decl_$ac_func=yes"
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.
$ac_ext >&5
11532 eval "gcc_cv_have_decl_$ac_func=no"
11534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11537 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11538 echo "$as_me:$LINENO: result: yes" >&5
11539 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11540 #define $ac_tr_decl 1
11544 echo "$as_me:$LINENO: result: no" >&5
11545 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11546 #define $ac_tr_decl 0
11554 # More time-related stuff.
11555 echo "$as_me:$LINENO: checking for struct tms" >&5
11556 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11557 if test "${ac_cv_struct_tms+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 cat >conftest.
$ac_ext <<_ACEOF
11564 cat confdefs.h
>>conftest.
$ac_ext
11565 cat >>conftest.
$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11568 #include "ansidecl.h"
11569 #include "system.h"
11570 #ifdef HAVE_SYS_TIMES_H
11571 #include <sys/times.h>
11582 rm -f conftest.
$ac_objext
11583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11584 (eval $ac_compile) 2>conftest.er1
11586 grep -v '^ *+' conftest.er1
>conftest.err
11588 cat conftest.err
>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } &&
11591 { ac_try
='test -z "$ac_c_werror_flag"
11592 || test ! -s conftest.err'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; } &&
11598 { ac_try
='test -s conftest.$ac_objext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 ac_cv_struct_tms
=yes
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.
$ac_ext >&5
11609 ac_cv_struct_tms
=no
11611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11613 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11614 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11615 if test $ac_cv_struct_tms = yes; then
11617 cat >>confdefs.h
<<\_ACEOF
11618 #define HAVE_STRUCT_TMS 1
11623 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11624 # revisit after autoconf 2.50.
11625 echo "$as_me:$LINENO: checking for clock_t" >&5
11626 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11627 if test "${gcc_cv_type_clock_t+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 cat >conftest.
$ac_ext <<_ACEOF
11634 cat confdefs.h
>>conftest.
$ac_ext
11635 cat >>conftest.
$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11638 #include "ansidecl.h"
11639 #include "system.h"
11649 rm -f conftest.
$ac_objext
11650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11651 (eval $ac_compile) 2>conftest.er1
11653 grep -v '^ *+' conftest.er1
>conftest.err
11655 cat conftest.err
>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try
='test -z "$ac_c_werror_flag"
11659 || test ! -s conftest.err'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; } &&
11665 { ac_try
='test -s conftest.$ac_objext'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 gcc_cv_type_clock_t
=yes
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.
$ac_ext >&5
11676 gcc_cv_type_clock_t
=no
11678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11680 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11681 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11682 if test $gcc_cv_type_clock_t = yes; then
11684 cat >>confdefs.h
<<\_ACEOF
11685 #define HAVE_CLOCK_T 1
11690 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11691 CFLAGS
="$saved_CFLAGS"
11693 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11694 if test "${enable_initfini_array+set}" = set; then
11695 enableval
="$enable_initfini_array"
11699 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11700 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11701 if test "${gcc_cv_initfini_array+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 if test "$cross_compiling" = yes; then
11705 gcc_cv_initfini_array
=no
11707 cat >conftest.
$ac_ext <<_ACEOF
11710 cat confdefs.h
>>conftest.
$ac_ext
11711 cat >>conftest.
$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11715 int main (void) { return x; }
11716 int foo (void) { x = 0; }
11717 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11719 rm -f conftest
$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 gcc_cv_initfini_array
=yes
11732 echo "$as_me: program exited with status $ac_status" >&5
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.
$ac_ext >&5
11736 ( exit $ac_status )
11737 gcc_cv_initfini_array
=no
11739 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11742 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11743 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11744 enable_initfini_array
=$gcc_cv_initfini_array
11747 if test $enable_initfini_array = yes; then
11749 cat >>confdefs.h
<<\_ACEOF
11750 #define HAVE_INITFINI_ARRAY 1
11755 # mkdir takes a single argument on some systems.
11756 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11757 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11758 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 cat >conftest.
$ac_ext <<_ACEOF
11764 cat confdefs.h
>>conftest.
$ac_ext
11765 cat >>conftest.
$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11768 #include <sys/types.h>
11769 #ifdef HAVE_SYS_STAT_H
11770 # include <sys/stat.h>
11772 #ifdef HAVE_UNISTD_H
11773 # include <unistd.h>
11775 #ifdef HAVE_DIRECT_H
11776 # include <direct.h>
11786 rm -f conftest.
$ac_objext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>conftest.er1
11790 grep -v '^ *+' conftest.er1
>conftest.err
11792 cat conftest.err
>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try
='test -z "$ac_c_werror_flag"
11796 || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try
='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 gcc_cv_mkdir_takes_one_arg
=no
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.
$ac_ext >&5
11813 gcc_cv_mkdir_takes_one_arg
=yes
11815 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11817 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11818 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11819 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11821 cat >>confdefs.h
<<\_ACEOF
11822 #define MKDIR_TAKES_ONE_ARG 1
11834 # With Setjmp/Longjmp based exception handling.
11835 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11836 if test "${enable_sjlj_exceptions+set}" = set; then
11837 enableval
="$enable_sjlj_exceptions"
11838 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11840 cat >>confdefs.h
<<_ACEOF
11841 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11846 # For platforms with the unwind ABI which includes an unwind library,
11847 # libunwind, we can choose to use the system libunwind.
11849 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11850 if test "${with_system_libunwind+set}" = set; then
11851 withval
="$with_system_libunwind"
11855 # --------------------------------------------------------
11856 # Build, host, and target specific configuration fragments
11857 # --------------------------------------------------------
11859 # Collect build-machine-specific information.
11860 .
${srcdir}/config.build
11862 # Collect host-machine-specific information.
11863 .
${srcdir}/config.
host
11867 # Collect target-machine-specific information.
11868 .
${srcdir}/config.gcc
11870 extra_objs
="${host_extra_objs} ${extra_objs}"
11871 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11873 # Default the target-machine variables that were not explicitly set.
11874 if test x
"$tm_file" = x
11875 then tm_file
=$cpu_type/$cpu_type.h
; fi
11877 if test x
"$extra_headers" = x
11878 then extra_headers
=; fi
11880 if test x
$md_file = x
11881 then md_file
=$cpu_type/$cpu_type.md
; fi
11883 if test x
$out_file = x
11884 then out_file
=$cpu_type/$cpu_type.c
; fi
11886 if test x
"$tmake_file" = x
11887 then tmake_file
=$cpu_type/t-
$cpu_type
11890 if test x
"$dwarf2" = xyes
11891 then tm_file
="$tm_file tm-dwarf2.h"
11894 # Say what files are being used for the output code and MD file.
11895 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11896 echo "Using \`$srcdir/config/$md_file' as machine description file."
11898 # If any of the xm_file variables contain nonexistent files, warn
11899 # about them and drop them.
11902 for x
in $build_xm_file; do
11903 if test -f $srcdir/config
/$x
11905 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11906 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11909 build_xm_file
="$bx"
11912 for x
in $host_xm_file; do
11913 if test -f $srcdir/config
/$x
11915 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11916 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11922 for x
in $xm_file; do
11923 if test -f $srcdir/config
/$x
11925 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11926 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11932 for f
in $tm_file; do
11935 if test $count = ax
; then
11936 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11938 echo "Using the following target machine macro files:"
11939 for f
in $tm_file; do
11940 echo " $srcdir/config/$f"
11944 if test x
$need_64bit_hwint = xyes
; then
11946 cat >>confdefs.h
<<\_ACEOF
11947 #define NEED_64BIT_HOST_WIDE_INT 1
11952 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11954 cat >>confdefs.h
<<\_ACEOF
11955 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11961 for f
in $host_xm_file; do
11964 if test $count = a
; then
11966 elif test $count = ax
; then
11967 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11969 echo "Using the following host machine macro files:"
11970 for f
in $host_xm_file; do
11971 echo " $srcdir/config/$f"
11974 echo "Using ${out_host_hook_obj} for host machine hooks."
11976 if test "$host_xm_file" != "$build_xm_file"; then
11978 for f
in $build_xm_file; do
11981 if test $count = a
; then
11983 elif test $count = ax
; then
11984 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11986 echo "Using the following build machine macro files:"
11987 for f
in $build_xm_file; do
11988 echo " $srcdir/config/$f"
11997 # Check if a valid thread package
11998 case ${enable_threads} in
12001 target_thread_file
='single'
12005 target_thread_file
='single'
12007 aix | dce | gnat | irix | posix | posix95 | rtems | \
12008 single | solaris | vxworks | win32
)
12009 target_thread_file
=${enable_threads}
12012 echo "${enable_threads} is an unknown thread package" 1>&2
12017 if test x
${thread_file} = x
; then
12018 # No thread file set by target-specific clauses in config.gcc,
12019 # so use file chosen by default logic above
12020 thread_file
=${target_thread_file}
12023 # Make gthr-default.h if we have a thread file.
12025 if test $thread_file != single
; then
12026 rm -f gthr-default.h
12027 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12028 gthread_flags
=-DHAVE_GTHR_DEFAULT
12037 if test x
$enable___cxa_atexit = xyes || \
12038 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12039 if test x
$host = x
$target; then
12040 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12041 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12042 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 cat >conftest.
$ac_ext <<_ACEOF
12048 cat confdefs.h
>>conftest.
$ac_ext
12049 cat >>conftest.
$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12053 #define __cxa_atexit innocuous___cxa_atexit
12055 /* System header to define __stub macros and hopefully few prototypes,
12056 which can conflict with char __cxa_atexit (); below.
12057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12058 <limits.h> exists even on freestanding compilers. */
12061 # include <limits.h>
12063 # include <assert.h>
12066 #undef __cxa_atexit
12068 /* Override any gcc2 internal prototype to avoid an error. */
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075 char __cxa_atexit ();
12076 /* The GNU C library defines this for functions which it implements
12077 to always fail with ENOSYS. Some functions are actually named
12078 something starting with __ and the normal name is an alias. */
12079 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12082 char (*f) () = __cxa_atexit;
12091 return f != __cxa_atexit;
12096 rm -f conftest.
$ac_objext conftest
$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>conftest.er1
12100 grep -v '^ *+' conftest.er1
>conftest.err
12102 cat conftest.err
>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try
='test -z "$ac_c_werror_flag"
12106 || test ! -s conftest.err'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try
='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_func___cxa_atexit
=yes
12120 echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.
$ac_ext >&5
12123 ac_cv_func___cxa_atexit
=no
12125 rm -f conftest.err conftest.
$ac_objext \
12126 conftest
$ac_exeext conftest.
$ac_ext
12128 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12129 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12130 if test $ac_cv_func___cxa_atexit = yes; then
12133 echo "__cxa_atexit can't be enabled on this target"
12137 # We can't check for __cxa_atexit when building a cross, so assume
12141 if test x
$use_cxa_atexit = xyes
; then
12143 cat >>confdefs.h
<<\_ACEOF
12144 #define DEFAULT_USE_CXA_ATEXIT 1
12150 # Look for a file containing extra machine modes.
12151 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12152 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12155 cat >>confdefs.h
<<_ACEOF
12156 #define EXTRA_MODES_FILE "config/$extra_modes"
12161 # auto-host.h is the file containing items generated by autoconf and is
12162 # the first file included by config.h.
12163 # If host=build, it is correct to have bconfig include auto-host.h
12164 # as well. If host!=build, we are in error and need to do more
12165 # work to find out the build config parameters.
12166 if test x
$host = x
$build
12168 build_auto
=auto-host.h
12170 # We create a subdir, then run autoconf in the subdir.
12171 # To prevent recursion we set host and build for the new
12172 # invocation of configure to the build for this invocation
12179 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12180 *) realsrcdir
=..
/${srcdir};;
12182 saved_CFLAGS
="${CFLAGS}"
12183 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12184 ${realsrcdir}/configure \
12185 --enable-languages=${enable_languages-all} \
12186 --target=$target_alias --host=$build_alias --build=$build_alias
12187 CFLAGS
="${saved_CFLAGS}"
12189 # We just finished tests for the build machine, so rename
12190 # the file auto-build.h in the gcc directory.
12191 mv auto-host.h ..
/auto-build.h
12194 build_auto
=auto-build.h
12198 tm_file
="${tm_file} defaults.h"
12199 tm_p_file
="${tm_p_file} tm-preds.h"
12200 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12201 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12202 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12203 # put this back in temporarily.
12204 xm_file
="ansidecl.h ${xm_file}"
12210 # Compile in configure arguments.
12211 if test -f configargs.h
; then
12212 # Being re-configured.
12213 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12214 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12216 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12219 # Double all backslashes and backslash all quotes to turn
12220 # gcc_config_arguments into a C string.
12221 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12222 $gcc_config_arguments
12224 gcc_config_arguments_str
=`cat conftest.out`
12227 cat > configargs.h
<<EOF
12228 /* Generated automatically. */
12229 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12230 static const char thread_model[] = "$thread_file";
12232 static const struct {
12233 const char *name, *value;
12234 } configure_default_options[] = $configure_default_options;
12237 # Internationalization
12239 VERSION
="$gcc_version"
12241 cat >>confdefs.h
<<_ACEOF
12242 #define PACKAGE "$PACKAGE"
12248 # If we haven't got the data from the intl directory,
12249 # assume NLS is disabled.
12257 if test -f ..
/intl
/config.intl
; then
12258 . ..
/intl
/config.intl
12260 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12261 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12262 if test x
"$USE_NLS" != xyes
; then
12263 echo "$as_me:$LINENO: result: no" >&5
12264 echo "${ECHO_T}no" >&6
12266 echo "$as_me:$LINENO: result: yes" >&5
12267 echo "${ECHO_T}yes" >&6
12269 cat >>confdefs.h
<<\_ACEOF
12270 #define ENABLE_NLS 1
12274 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12275 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12276 # Look for .po and .gmo files in the source directory.
12279 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12280 # If there aren't any .gmo files the shell will give us the
12281 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12283 case "$cat" in *\
**)
12286 # The quadruple backslash is collapsed to a double backslash
12287 # by the backticks, then collapsed again by the double quotes,
12288 # leaving us with one backslash in the sed expression (right
12289 # before the dot that mustn't act as a wildcard).
12290 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12291 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12292 # The user is allowed to set LINGUAS to a list of languages to
12293 # install catalogs for. If it's empty that means "all of them."
12294 if test "x$LINGUAS" = x
; then
12295 CATALOGS
="$CATALOGS $cat"
12296 XLINGUAS
="$XLINGUAS $lang"
12298 case "$LINGUAS" in *$lang*)
12299 CATALOGS
="$CATALOGS $cat"
12300 XLINGUAS
="$XLINGUAS $lang"
12305 LINGUAS
="$XLINGUAS"
12306 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12307 echo "${ECHO_T}$LINGUAS" >&6
12310 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12311 # -liconv on the link line twice.
12312 case "$LIBINTL" in *$LIBICONV*)
12316 # Windows32 Registry support for specifying GCC installation paths.
12317 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12318 if test "${enable_win32_registry+set}" = set; then
12319 enableval
="$enable_win32_registry"
12323 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12324 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12325 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12326 if test "x$enable_win32_registry" != xno
; then
12328 cat >>confdefs.h
<<\_ACEOF
12329 #define ENABLE_WIN32_REGISTRY 1
12332 echo "$as_me:$LINENO: result: yes" >&5
12333 echo "${ECHO_T}yes" >&6
12334 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12335 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12336 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 ac_func_search_save_LIBS
=$LIBS
12340 ac_cv_search_RegOpenKeyExA
=no
12341 cat >conftest.
$ac_ext <<_ACEOF
12344 cat confdefs.h
>>conftest.
$ac_ext
12345 cat >>conftest.
$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12348 /* Override any gcc2 internal prototype to avoid an error. */
12352 /* We use char because int might match the return type of a gcc2
12353 builtin and then its argument prototype would still apply. */
12354 char RegOpenKeyExA ();
12363 rm -f conftest.
$ac_objext conftest
$ac_exeext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12365 (eval $ac_link) 2>conftest.er1
12367 grep -v '^ *+' conftest.er1
>conftest.err
12369 cat conftest.err
>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try
='test -z "$ac_c_werror_flag"
12373 || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try
='test -s conftest$ac_exeext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_search_RegOpenKeyExA
="none required"
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.
$ac_ext >&5
12391 rm -f conftest.err conftest.
$ac_objext \
12392 conftest
$ac_exeext conftest.
$ac_ext
12393 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12394 for ac_lib
in advapi32
; do
12395 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12396 cat >conftest.
$ac_ext <<_ACEOF
12399 cat confdefs.h
>>conftest.
$ac_ext
12400 cat >>conftest.
$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12403 /* Override any gcc2 internal prototype to avoid an error. */
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char RegOpenKeyExA ();
12418 rm -f conftest.
$ac_objext conftest
$ac_exeext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>conftest.er1
12422 grep -v '^ *+' conftest.er1
>conftest.err
12424 cat conftest.err
>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try
='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try
='test -s conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.
$ac_ext >&5
12447 rm -f conftest.err conftest.
$ac_objext \
12448 conftest
$ac_exeext conftest.
$ac_ext
12451 LIBS
=$ac_func_search_save_LIBS
12453 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12454 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12455 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12456 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12461 echo "$as_me:$LINENO: result: no" >&5
12462 echo "${ECHO_T}no" >&6
12465 # Check if user specified a different registry key.
12466 case "x${enable_win32_registry}" in
12469 gcc_cv_win32_registry_key
="$VERSION"
12472 # no registry lookup.
12473 gcc_cv_win32_registry_key
=''
12476 # user-specified key.
12477 gcc_cv_win32_registry_key
="$enable_win32_registry"
12481 if test "x$enable_win32_registry" != xno
; then
12482 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12483 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12485 cat >>confdefs.h
<<_ACEOF
12486 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12489 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12490 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12495 # Get an absolute path to the GCC top-level source directory
12496 holddir
=`${PWDCMD-pwd}`
12498 topdir
=`${PWDCMD-pwd}`
12501 # Conditionalize the makefile for this host machine.
12503 for f
in ${host_xmake_file}
12505 if test -f ${srcdir}/config
/$f
12507 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12511 # Conditionalize the makefile for this target machine.
12513 for f
in ${tmake_file}
12515 if test -f ${srcdir}/config
/$f
12517 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12520 tmake_file
="${tmake_file_}"
12522 # If the host doesn't support symlinks, modify CC in
12523 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12524 # Otherwise, we can use "CC=$(CC)".
12528 cc_set_by_configure
="\$(CC)"
12529 quoted_cc_set_by_configure
="\$(CC)"
12530 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12531 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12534 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12535 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12536 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12537 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12541 # This is a terrible hack which will go away some day.
12542 host_cc_for_libada
=${CC}
12545 out_object_file
=`basename $out_file .c`.o
12549 for f
in $tm_file; do
12552 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12553 tm_include_list
="${tm_include_list} $f"
12556 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12557 tm_include_list
="${tm_include_list} config/$f"
12564 for f
in $tm_p_file; do
12567 tm_p_file_list
="${tm_p_file_list} $f"
12568 tm_p_include_list
="${tm_p_include_list} $f"
12571 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12572 tm_p_include_list
="${tm_p_include_list} config/$f"
12578 for f
in $xm_file; do
12581 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12582 xm_include_list
="${xm_include_list} $f"
12585 xm_file_list
="${xm_file_list} $f"
12586 xm_include_list
="${xm_include_list} $f"
12589 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12590 xm_include_list
="${xm_include_list} config/$f"
12596 host_xm_include_list
=
12597 for f
in $host_xm_file; do
12600 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12601 host_xm_include_list
="${host_xm_include_list} $f"
12604 host_xm_file_list
="${host_xm_file_list} $f"
12605 host_xm_include_list
="${host_xm_include_list} $f"
12608 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12609 host_xm_include_list
="${host_xm_include_list} config/$f"
12614 build_xm_file_list
=
12615 for f
in $build_xm_file; do
12618 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12619 build_xm_include_list
="${build_xm_include_list} $f"
12621 auto-build.h | auto-host.h
)
12622 build_xm_file_list
="${build_xm_file_list} $f"
12623 build_xm_include_list
="${build_xm_include_list} $f"
12626 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12627 build_xm_include_list
="${build_xm_include_list} config/$f"
12632 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12633 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12636 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12637 if test x
$host != x
$target
12639 CROSS
="-DCROSS_COMPILE"
12641 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12642 case "$host","$target" in
12643 # Darwin crosses can use the host system's libraries and headers,
12644 # because of the fat library support. Of course, it must be the
12645 # same version of Darwin on both sides. Allow the user to
12646 # just say --target=foo-darwin without a version number to mean
12647 # "the version on this system".
12648 *-*-darwin*,*-*-darwin*)
12649 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12650 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12651 if test $hostos = $targetos -o $targetos = darwin
; then
12653 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12658 i?
86-*-*,x86_64-
*-* \
12659 | powerpc
*-*-*,powerpc64
*-*-*)
12660 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12662 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12663 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12664 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12667 # If this is a cross-compiler that does not
12668 # have its own set of headers then define
12671 # If this is using newlib, without having the headers available now,
12672 # then define inhibit_libc in LIBGCC2_CFLAGS.
12673 # This prevents libgcc2 from containing any code which requires libc
12676 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12677 test x
$with_newlib = xyes
; } &&
12678 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12679 inhibit_libc
=-Dinhibit_libc
12683 # When building gcc with a cross-compiler, we need to adjust things so
12684 # that the generator programs are still built with the native compiler.
12685 # Also, we cannot run fixincludes or fix-header.
12687 # These are the normal (build=host) settings:
12688 CC_FOR_BUILD
='$(CC)'
12689 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12690 STMP_FIXINC
=stmp-fixinc
12692 # Possibly disable fixproto, on a per-target basis.
12693 case ${use_fixproto} in
12698 STMP_FIXPROTO
=stmp-fixproto
12703 # And these apply if build != host, or we are generating coverage data
12704 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12706 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12708 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12709 if "x$STMP_FIXPROTO" != x
; then
12710 STMP_FIXPROTO
=stmp-install-fixproto
12715 # Expand extra_headers to include complete path.
12716 # This substitutes for lots of t-* files.
12717 extra_headers_list
=
12718 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12719 for file in ${extra_headers} ; do
12720 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12723 # Define collect2 in Makefile.
12724 case $host_can_use_collect2 in
12726 *) collect2
='collect2$(exeext)' ;;
12730 # Add a definition of USE_COLLECT2 if system wants one.
12731 case $use_collect2 in
12732 no
) use_collect2
= ;;
12735 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12736 xm_defines
="${xm_defines} USE_COLLECT2"
12737 case $host_can_use_collect2 in
12739 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12740 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12741 { (exit 1); exit 1; }; }
12747 # ---------------------------
12748 # Assembler & linker features
12749 # ---------------------------
12751 # Identify the assembler which will work hand-in-glove with the newly
12752 # built GCC, so that we can examine its features. This is the assembler
12753 # which will be driven by the driver program.
12755 # If build != host, and we aren't building gas in-tree, we identify a
12756 # build->target assembler and hope that it will have the same features
12757 # as the host->target assembler we'll be using.
12758 echo "$as_me:$LINENO: checking what assembler to use" >&5
12759 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12762 gcc_cv_gas_major_version
=
12763 gcc_cv_gas_minor_version
=
12764 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12765 if test -x "$DEFAULT_ASSEMBLER"; then
12766 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12767 elif test -x as
$build_exeext; then
12768 # Build using assembler in the current directory.
12769 gcc_cv_as
=.
/as
$build_exeext
12770 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12771 && test -f ..
/gas
/Makefile \
12772 && test x
$build = x
$host; then
12773 # Single tree build which includes gas. We want to prefer it
12774 # over whatever linker top-level may have detected, since
12775 # we'll use what we're building after installation anyway.
12777 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12778 for f
in $gcc_cv_as_bfd_srcdir/configure \
12779 $gcc_cv_as_gas_srcdir/configure \
12780 $gcc_cv_as_gas_srcdir/configure.
in \
12781 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12782 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12783 if test x
$gcc_cv_gas_version != x
; then
12787 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12788 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12789 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12790 case $gcc_cv_gas_patch_version in
12791 "") gcc_cv_gas_patch_version
="0" ;;
12793 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12794 + $gcc_cv_gas_minor_version \) \* 1000 \
12795 + $gcc_cv_gas_patch_version`
12797 rm -f as
$build_exeext
12798 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12799 in_tree_gas_is_elf
=no
12800 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12801 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12802 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12804 in_tree_gas_is_elf
=yes
12806 elif test -x "$AS_FOR_TARGET"; then
12807 gcc_cv_as
="$AS_FOR_TARGET"
12808 elif test -x "$AS" && test x
$host = x
$target; then
12812 if test "x$gcc_cv_as" = x
; then
12813 # Search the same directories that the installed compiler will
12814 # search. Else we may find the wrong assembler and lose. If we
12815 # do not find a suitable assembler binary, then try the user's
12818 # Also note we have to check MD_EXEC_PREFIX before checking the
12819 # user's path. Unfortunately, there is no good way to get at the
12820 # value of MD_EXEC_PREFIX here. So we do a brute force search
12821 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12822 # to be fixed as part of the make/configure rewrite too.
12824 if test "x$exec_prefix" = xNONE
; then
12825 if test "x$prefix" = xNONE
; then
12826 test_prefix
=/usr
/local
12828 test_prefix
=$prefix
12831 test_prefix
=$exec_prefix
12834 # If the loop below does not find an assembler, then use whatever
12835 # one we can find in the users's path.
12837 if test "x$program_prefix" != xNONE
; then
12838 gcc_cv_as
=${program_prefix}as
$build_exeext
12840 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12843 if test x
$host = x
$build; then
12844 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12845 $test_prefix/libexec/gcc/$target_noncanonical \
12846 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12847 /usr/lib/gcc/$target_noncanonical \
12848 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12849 $test_prefix/$target_noncanonical/bin"
12854 if test x
$host = x
$target; then
12855 test_dirs
="$test_dirs \
12860 /bsd43/usr/lib/cmplrs/cc \
12861 /usr/cross64/usr/bin \
12862 /usr/lib/cmplrs/cc \
12863 /sysv/usr/lib/cmplrs/cc \
12864 /svr4/usr/lib/cmplrs/cc \
12868 for dir
in $test_dirs; do
12869 if test -x $dir/as
$build_exeext; then
12870 gcc_cv_as
=$dir/as
$build_exeext
12875 case $in_tree_gas in
12877 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12878 echo "${ECHO_T}\"newly built gas\"" >&6
12881 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12882 echo "${ECHO_T}$gcc_cv_as" >&6
12886 # Identify the linker which will work hand-in-glove with the newly
12887 # built GCC, so that we can examine its features. This is the linker
12888 # which will be driven by the driver program.
12890 # If build != host, and we aren't building gas in-tree, we identify a
12891 # build->target linker and hope that it will have the same features
12892 # as the host->target linker we'll be using.
12893 echo "$as_me:$LINENO: checking what linker to use" >&5
12894 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12897 gcc_cv_gld_major_version
=
12898 gcc_cv_gld_minor_version
=
12899 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12900 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12901 if test -x "$DEFAULT_LINKER"; then
12902 gcc_cv_ld
="$DEFAULT_LINKER"
12903 elif test -x collect-ld
$build_exeext; then
12904 # Build using linker in the current directory.
12905 gcc_cv_ld
=.
/collect-ld
$build_exeext
12906 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12907 && test -f ..
/ld
/Makefile \
12908 && test x
$build = x
$host; then
12909 # Single tree build which includes ld. We want to prefer it
12910 # over whatever linker top-level may have detected, since
12911 # we'll use what we're building after installation anyway.
12913 in_tree_ld_is_elf
=no
12914 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12915 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12916 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12917 in_tree_ld_is_elf
=yes
12919 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
12921 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12922 if test x
$gcc_cv_gld_version != x
; then
12926 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12927 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12928 rm -f collect-ld
$build_exeext
12929 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12930 elif test -x "$LD_FOR_TARGET"; then
12931 gcc_cv_ld
="$LD_FOR_TARGET"
12932 elif test -x "$LD" && test x
$host = x
$target; then
12936 if test "x$gcc_cv_ld" = x
; then
12937 # Search the same directories that the installed compiler will
12938 # search. Else we may find the wrong linker and lose. If we
12939 # do not find a suitable linker binary, then try the user's
12942 # Also note we have to check MD_EXEC_PREFIX before checking the
12943 # user's path. Unfortunately, there is no good way to get at the
12944 # value of MD_EXEC_PREFIX here. So we do a brute force search
12945 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12946 # to be fixed as part of the make/configure rewrite too.
12948 if test "x$exec_prefix" = xNONE
; then
12949 if test "x$prefix" = xNONE
; then
12950 test_prefix
=/usr
/local
12952 test_prefix
=$prefix
12955 test_prefix
=$exec_prefix
12958 # If the loop below does not find an linker, then use whatever
12959 # one we can find in the users's path.
12961 if test "x$program_prefix" != xNONE
; then
12962 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12964 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
12967 if test x
$host = x
$build; then
12968 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12969 $test_prefix/libexec/gcc/$target_noncanonical \
12970 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12971 /usr/lib/gcc/$target_noncanonical \
12972 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12973 $test_prefix/$target_noncanonical/bin"
12978 if test x
$host = x
$target; then
12979 test_dirs
="$test_dirs \
12984 /bsd43/usr/lib/cmplrs/cc \
12985 /usr/cross64/usr/bin \
12986 /usr/lib/cmplrs/cc \
12987 /sysv/usr/lib/cmplrs/cc \
12988 /svr4/usr/lib/cmplrs/cc \
12992 for dir
in $test_dirs; do
12993 if test -x $dir/ld
$build_exeext; then
12994 gcc_cv_ld
=$dir/ld
$build_exeext
12999 case $in_tree_ld in
13001 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13002 echo "${ECHO_T}\"newly built ld\"" >&6
13005 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13006 echo "${ECHO_T}$gcc_cv_ld" >&6
13010 # Figure out what nm we will be using.
13011 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13012 echo "$as_me:$LINENO: checking what nm to use" >&5
13013 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13015 if test -x nm
$build_exeext; then
13016 gcc_cv_nm
=.
/nm
$build_exeext
13017 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13018 && test -f ..
/binutils
/Makefile
; then
13019 # Single tree build which includes binutils.
13021 gcc_cv_nm
=.
/nm
$build_exeext
13022 rm -f nm
$build_exeext
13023 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
13024 elif test "x$program_prefix" != xNONE
; then
13025 gcc_cv_nm
=${program_prefix}nm
$build_exeext
13027 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
13029 case $in_tree_nm in
13030 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13031 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13032 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13033 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13036 # Figure out what objdump we will be using.
13037 echo "$as_me:$LINENO: checking what objdump to use" >&5
13038 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13040 if test -x objdump
$build_exeext; then
13041 gcc_cv_objdump
=.
/objdump
$build_exeext
13042 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13043 && test -f ..
/binutils
/Makefile
; then
13044 # Single tree build which includes binutils.
13045 in_tree_objdump
=yes
13046 gcc_cv_objdump
=.
/objdump
$build_exeext
13047 rm -f objdump
$build_exeext
13048 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
13049 elif test "x$program_prefix" != xNONE
; then
13050 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
13052 gcc_cv_objdump
=`echo objdump | \
13053 sed "${program_transform_name}"`$build_exeext
13055 case $in_tree_objdump in
13056 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13057 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13058 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13059 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13062 # Figure out what assembler alignment features are present.
13063 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13064 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13065 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 gcc_cv_as_balign_and_p2align
=no
13069 if test $in_tree_gas = yes; then
13070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13071 then gcc_cv_as_balign_and_p2align
=yes
13073 elif test x
$gcc_cv_as != x
; then
13075 .p2align 2' > conftest.s
13076 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }
13083 gcc_cv_as_balign_and_p2align
=yes
13085 echo "configure: failed program was" >&5
13088 rm -f conftest.o conftest.s
13091 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13092 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13093 if test $gcc_cv_as_balign_and_p2align = yes; then
13095 cat >>confdefs.h
<<\_ACEOF
13096 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13101 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13102 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13103 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 gcc_cv_as_max_skip_p2align
=no
13107 if test $in_tree_gas = yes; then
13108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13109 then gcc_cv_as_max_skip_p2align
=yes
13111 elif test x
$gcc_cv_as != x
; then
13112 echo '.p2align 4,,7' > conftest.s
13113 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }
13120 gcc_cv_as_max_skip_p2align
=yes
13122 echo "configure: failed program was" >&5
13125 rm -f conftest.o conftest.s
13128 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13129 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13130 if test $gcc_cv_as_max_skip_p2align = yes; then
13132 cat >>confdefs.h
<<\_ACEOF
13133 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13138 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13139 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13140 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 gcc_cv_as_subsection_m1
=no
13144 if test $in_tree_gas = yes; then
13145 if test $in_tree_gas_is_elf = yes \
13146 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13147 then gcc_cv_as_subsection_m1
=yes
13149 elif test x
$gcc_cv_as != x
; then
13150 echo 'conftest_label1: .word 0
13152 conftest_label2: .word 0
13153 .previous' > conftest.s
13154 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }
13161 if test x
$gcc_cv_nm != x
; then
13162 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13163 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13164 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13166 else gcc_cv_as_subsection_m1
=yes
13168 rm -f conftest.nm1 conftest.nm2
13171 echo "configure: failed program was" >&5
13174 rm -f conftest.o conftest.s
13177 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13178 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13179 if test $gcc_cv_as_subsection_m1 = yes; then
13181 cat >>confdefs.h
<<\_ACEOF
13182 #define HAVE_GAS_SUBSECTION_ORDERING 1
13187 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13188 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13189 if test "${gcc_cv_as_weak+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 if test $in_tree_gas = yes; then
13194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13195 then gcc_cv_as_weak
=yes
13197 elif test x
$gcc_cv_as != x
; then
13198 echo ' .weak foobar' > conftest.s
13199 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }
13208 echo "configure: failed program was" >&5
13211 rm -f conftest.o conftest.s
13214 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13215 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13216 if test $gcc_cv_as_weak = yes; then
13218 cat >>confdefs.h
<<\_ACEOF
13219 #define HAVE_GAS_WEAK 1
13224 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13225 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13226 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 gcc_cv_as_nsubspa_comdat
=no
13230 if test $in_tree_gas = yes; then
13231 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13232 then gcc_cv_as_nsubspa_comdat
=yes
13234 elif test x
$gcc_cv_as != x
; then
13235 echo ' .SPACE $TEXT$
13236 .NSUBSPA $CODE$,COMDAT' > conftest.s
13237 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }
13244 gcc_cv_as_nsubspa_comdat
=yes
13246 echo "configure: failed program was" >&5
13249 rm -f conftest.o conftest.s
13252 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13253 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13254 if test $gcc_cv_as_nsubspa_comdat = yes; then
13256 cat >>confdefs.h
<<\_ACEOF
13257 #define HAVE_GAS_NSUBSPA_COMDAT 1
13262 # .hidden needs to be supported in both the assembler and the linker,
13263 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13264 # This is irritatingly difficult to feature test for; we have to check the
13265 # date string after the version number. If we've got an in-tree
13266 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13268 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13269 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13270 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13271 if test "${gcc_cv_as_hidden+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 gcc_cv_as_hidden
=no
13275 if test $in_tree_gas = yes; then
13276 if test $in_tree_gas_is_elf = yes \
13277 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13278 then gcc_cv_as_hidden
=yes
13280 elif test x
$gcc_cv_as != x
; then
13281 echo ' .hidden foobar
13282 foobar:' > conftest.s
13283 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }
13290 gcc_cv_as_hidden
=yes
13292 echo "configure: failed program was" >&5
13295 rm -f conftest.o conftest.s
13298 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13299 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13302 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13303 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13304 if test "${gcc_cv_ld_hidden+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 if test $in_tree_ld = yes ; then
13308 gcc_cv_ld_hidden
=no
13309 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 \
13310 && test $in_tree_ld_is_elf = yes; then
13311 gcc_cv_ld_hidden
=yes
13314 gcc_cv_ld_hidden
=yes
13315 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13316 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13317 ld_vers
=`echo $ld_ver | sed -n \
13318 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13319 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13320 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13321 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13322 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13323 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13324 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'`
13325 if test 0"$ld_date" -lt 20020404; then
13326 if test -n "$ld_date"; then
13327 # If there was date string, but was earlier than 2002-04-04, fail
13328 gcc_cv_ld_hidden
=no
13329 elif test -z "$ld_vers"; then
13330 # If there was no date string nor ld version number, something is wrong
13331 gcc_cv_ld_hidden
=no
13333 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13334 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13335 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13336 test -z "$ld_vers_patch" && ld_vers_patch
=0
13337 if test "$ld_vers_major" -lt 2; then
13338 gcc_cv_ld_hidden
=no
13339 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13340 gcc_cv_ld_hidden
="no"
13341 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13342 gcc_cv_ld_hidden
=no
13347 case "${target}" in
13348 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13349 gcc_cv_ld_hidden
=yes
13352 gcc_cv_ld_hidden
=no
13358 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13359 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13360 libgcc_visibility
=no
13362 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13363 libgcc_visibility
=yes
13365 cat >>confdefs.h
<<\_ACEOF
13366 #define HAVE_GAS_HIDDEN 1
13371 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13372 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13373 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13374 if test "${gcc_cv_as_leb128+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 gcc_cv_as_leb128
=no
13378 if test $in_tree_gas = yes; then
13379 if test $in_tree_gas_is_elf = yes \
13380 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13381 then gcc_cv_as_leb128
=yes
13383 elif test x
$gcc_cv_as != x
; then
13390 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }
13397 # GAS versions before 2.11 do not support uleb128,
13398 # despite appearing to.
13399 # ??? There exists an elf-specific test that will crash
13400 # the assembler. Perhaps it's better to figure out whether
13401 # arbitrary sections are supported and try the test.
13402 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13403 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13404 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13405 as_major
=`echo $as_ver | sed 's/\..*//'`
13406 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13407 if test $as_major -eq 2 && test $as_minor -lt 11
13409 else gcc_cv_as_leb128
=yes
13413 echo "configure: failed program was" >&5
13416 rm -f conftest.o conftest.s
13419 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13420 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13421 if test $gcc_cv_as_leb128 = yes; then
13423 cat >>confdefs.h
<<\_ACEOF
13424 #define HAVE_AS_LEB128 1
13429 # GAS versions up to and including 2.11.0 may mis-optimize
13431 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13432 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13433 if test "${gcc_cv_as_eh_frame+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 gcc_cv_as_eh_frame
=no
13437 if test $in_tree_gas = yes; then
13438 if test $in_tree_gas_is_elf = yes \
13439 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13440 then gcc_cv_as_eh_frame
=yes
13442 elif test x
$gcc_cv_as != x
; then
13449 .section .eh_frame,"aw",@progbits
13451 .4byte .LECIE1-.LSCIE1
13465 .4byte .LEFDE1-.LASFDE1
13467 .4byte .LASFDE1-__FRAME_BEGIN__
13474 .LEFDE1:' > conftest.s
13475 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }
13482 cat > conftest.lit
<<EOF
13483 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13484 0010 01000000 12000000 18000000 00000000 ................
13485 0020 08000000 04080000 0044 .........D
13487 cat > conftest.big
<<EOF
13488 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13489 0010 00000001 00000012 00000018 00000000 ................
13490 0020 00000008 04000000 0844 .........D
13492 # If the assembler didn't choke, and we can objdump,
13493 # and we got the correct data, then succeed.
13494 if test x
$gcc_cv_objdump != x \
13495 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13496 |
tail -3 > conftest.got \
13497 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13498 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13500 gcc_cv_as_eh_frame
=yes
13501 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
13507 gcc_cv_as_eh_frame
=buggy
13509 # Uh oh, what do we do now?
13510 gcc_cv_as_eh_frame
=no
13513 echo "configure: failed program was" >&5
13516 rm -f conftest.o conftest.s
13519 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13520 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13523 if test $gcc_cv_as_eh_frame = buggy
; then
13525 cat >>confdefs.h
<<\_ACEOF
13526 #define USE_AS_TRADITIONAL_FORMAT 1
13531 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13532 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13533 if test "${gcc_cv_as_shf_merge+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 gcc_cv_as_shf_merge
=no
13537 if test $in_tree_gas = yes; then
13538 if test $in_tree_gas_is_elf = yes \
13539 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13540 then gcc_cv_as_shf_merge
=yes
13542 elif test x
$gcc_cv_as != x
; then
13543 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13544 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }
13551 gcc_cv_as_shf_merge
=yes
13553 echo "configure: failed program was" >&5
13556 rm -f conftest.o conftest.s
13559 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13560 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13562 if test $gcc_cv_as_shf_merge = no
; then
13563 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13564 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13565 if test "${gcc_cv_as_shf_merge+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 gcc_cv_as_shf_merge
=no
13569 if test $in_tree_gas = yes; then
13570 if test $in_tree_gas_is_elf = yes \
13571 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13572 then gcc_cv_as_shf_merge
=yes
13574 elif test x
$gcc_cv_as != x
; then
13575 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13576 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }
13583 gcc_cv_as_shf_merge
=yes
13585 echo "configure: failed program was" >&5
13588 rm -f conftest.o conftest.s
13591 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13592 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13596 cat >>confdefs.h
<<_ACEOF
13597 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13601 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13602 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13603 if test "${gcc_cv_as_comdat_group+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13606 gcc_cv_as_comdat_group
=no
13607 if test $in_tree_gas = yes; then
13608 if test $in_tree_gas_is_elf = yes \
13609 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13610 then gcc_cv_as_comdat_group
=yes
13612 elif test x
$gcc_cv_as != x
; then
13613 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13614 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }
13621 gcc_cv_as_comdat_group
=yes
13623 echo "configure: failed program was" >&5
13626 rm -f conftest.o conftest.s
13629 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13630 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13632 if test $gcc_cv_as_comdat_group = yes; then
13633 gcc_cv_as_comdat_group_percent
=no
13635 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13636 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13637 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 gcc_cv_as_comdat_group_percent
=no
13641 if test $in_tree_gas = yes; then
13642 if test $in_tree_gas_is_elf = yes \
13643 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13644 then gcc_cv_as_comdat_group_percent
=yes
13646 elif test x
$gcc_cv_as != x
; then
13647 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13648 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }
13655 gcc_cv_as_comdat_group_percent
=yes
13657 echo "configure: failed program was" >&5
13660 rm -f conftest.o conftest.s
13663 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13664 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13668 cat >>confdefs.h
<<_ACEOF
13669 #define HAVE_GAS_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
13673 # Thread-local storage - the check is heavily parametrized.
13681 .section ".tdata","awT",@progbits
13684 ldq $27,__tls_get_addr($29) !literal!1
13685 lda $16,foo($29) !tlsgd!1
13686 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13687 ldq $27,__tls_get_addr($29) !literal!2
13688 lda $16,foo($29) !tlsldm!2
13689 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13690 ldq $1,foo($29) !gotdtprel
13691 ldah $2,foo($29) !dtprelhi
13692 lda $3,foo($2) !dtprello
13693 lda $4,foo($29) !dtprel
13694 ldq $1,foo($29) !gottprel
13695 ldah $2,foo($29) !tprelhi
13696 lda $3,foo($2) !tprello
13697 lda $4,foo($29) !tprel'
13700 tls_as_opt
=--fatal-warnings
13704 .section ".tdata","awT",@progbits
13707 call #gettlsoff(x)'
13713 .section ".tdata","awT",@progbits
13717 leal foo@TLSGD(,%ebx,1), %eax
13718 leal foo@TLSLDM(%ebx), %eax
13719 leal foo@DTPOFF(%eax), %edx
13720 movl foo@GOTTPOFF(%ebx), %eax
13721 subl foo@GOTTPOFF(%ebx), %eax
13722 addl foo@GOTNTPOFF(%ebx), %eax
13723 movl foo@INDNTPOFF, %eax
13724 movl $foo@TPOFF, %eax
13725 subl $foo@TPOFF, %eax
13726 leal foo@NTPOFF(%ecx), %eax'
13729 tls_as_opt
=--fatal-warnings
13733 .section ".tdata","awT",@progbits
13737 leaq foo@TLSGD(%rip), %rdi
13738 leaq foo@TLSLD(%rip), %rdi
13739 leaq foo@DTPOFF(%rax), %rdx
13740 movq foo@GOTTPOFF(%rip), %rax
13741 movq $foo@TPOFF, %rax'
13744 tls_as_opt
=--fatal-warnings
13748 .section ".tdata","awT",@progbits
13751 addl r16 = @ltoff(@dtpmod(foo#)), gp
13752 addl r17 = @ltoff(@dtprel(foo#)), gp
13753 addl r18 = @ltoff(@tprel(foo#)), gp
13754 addl r19 = @dtprel(foo#), gp
13755 adds r21 = @dtprel(foo#), r13
13756 movl r23 = @dtprel(foo#)
13757 addl r20 = @tprel(foo#), gp
13758 adds r22 = @tprel(foo#), r13
13759 movl r24 = @tprel(foo#)'
13762 tls_as_opt
=--fatal-warnings
13766 .section ".tdata","awT",@progbits
13774 addi 3,31,ld0@got@tlsgd
13776 addi 3,31,x1@got@tlsld
13779 addis 9,3,x2@dtprel@ha
13780 addi 9,9,x2@dtprel@l
13781 lwz 9,x3@got@tprel(31)
13784 addis 9,2,x2@tprel@ha
13785 addi 9,9,x2@tprel@l'
13788 tls_as_opt
="-a32 --fatal-warnings"
13792 .section ".tdata","awT",@progbits
13800 addi 3,2,ld0@got@tlsgd
13806 addi 3,2,x1@got@tlsld
13812 addis 9,3,x2@dtprel@ha
13813 addi 9,9,x2@dtprel@l
13816 ld 9,x3@got@dtprel(2)
13822 tls_as_opt
="-a64 --fatal-warnings"
13826 .section ".tdata","awT",@progbits
13833 .long foo@GOTNTPOFF
13834 .long foo@INDNTPOFF
13835 l %r1,foo@GOTNTPOFF(%r12)
13836 l %r1,0(%r1):tls_load:foo
13837 bas %r14,0(%r1,%r13):tls_gdcall:foo
13838 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13841 tls_as_opt
="-m31 --fatal-warnings"
13845 .section ".tdata","awT",@progbits
13852 .quad foo@GOTNTPOFF
13853 lg %r1,foo@GOTNTPOFF(%r12)
13854 larl %r1,foo@INDNTPOFF
13855 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13856 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13859 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13861 sh-
*-* | sh
[34]-*-*)
13863 .section ".tdata","awT",@progbits
13873 tls_as_opt
=--fatal-warnings
13877 sparc
*-sun-solaris2.
*)
13884 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13886 .section ".tdata",#alloc,#write,#tls
13889 sethi %tgd_hi22(foo), %o0
13890 add %o0, %tgd_lo10(foo), %o1
13891 add %l7, %o1, %o0, %tgd_add(foo)
13892 call __tls_get_addr, %tgd_call(foo)
13893 sethi %tldm_hi22(foo), %l1
13894 add %l1, %tldm_lo10(foo), %l2
13895 add %l7, %l2, %o0, %tldm_add(foo)
13896 call __tls_get_addr, %tldm_call(foo)
13897 sethi %tldo_hix22(foo), %l3
13898 xor %l3, %tldo_lox10(foo), %l4
13899 add %o0, %l4, %l5, %tldo_add(foo)
13900 sethi %tie_hi22(foo), %o3
13901 add %o3, %tie_lo10(foo), %o3
13902 ld [%l7 + %o3], %o2, %tie_ld(foo)
13903 add %g7, %o2, %o4, %tie_add(foo)
13904 sethi %tle_hix22(foo), %l1
13905 xor %l1, %tle_lox10(foo), %o5
13906 ld [%g7 + %o5], %o1'
13911 .section ".tdata","awT",@progbits
13914 sethi %tgd_hi22(foo), %o0
13915 add %o0, %tgd_lo10(foo), %o1
13916 add %l7, %o1, %o0, %tgd_add(foo)
13917 call __tls_get_addr, %tgd_call(foo)
13918 sethi %tldm_hi22(foo), %l1
13919 add %l1, %tldm_lo10(foo), %l2
13920 add %l7, %l2, %o0, %tldm_add(foo)
13921 call __tls_get_addr, %tldm_call(foo)
13922 sethi %tldo_hix22(foo), %l3
13923 xor %l3, %tldo_lox10(foo), %l4
13924 add %o0, %l4, %l5, %tldo_add(foo)
13925 sethi %tie_hi22(foo), %o3
13926 add %o3, %tie_lo10(foo), %o3
13927 ld [%l7 + %o3], %o2, %tie_ld(foo)
13928 add %g7, %o2, %o4, %tie_add(foo)
13929 sethi %tle_hix22(foo), %l1
13930 xor %l1, %tle_lox10(foo), %o5
13931 ld [%g7 + %o5], %o1'
13934 tls_as_opt
="-32 --fatal-warnings"
13938 if test -z "$tls_first_major"; then
13939 : # If we don't have a check, assume no support.
13941 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13942 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13943 if test "${gcc_cv_as_tls+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 if test $in_tree_gas = yes; then
13948 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13949 then gcc_cv_as_tls
=yes
13951 elif test x
$gcc_cv_as != x
; then
13952 echo "$conftest_s" > conftest.s
13953 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }
13962 echo "configure: failed program was" >&5
13965 rm -f conftest.o conftest.s
13968 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13969 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13970 if test $gcc_cv_as_tls = yes; then
13972 cat >>confdefs.h
<<\_ACEOF
13973 #define HAVE_AS_TLS 1
13979 # Target-specific assembler checks.
13981 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13982 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13983 gcc_cv_ld_static_dynamic
=no
13984 if test $in_tree_ld = yes ; then
13985 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13986 gcc_cv_ld_static_dynamic
=yes
13988 elif test x
$gcc_cv_ld != x
; then
13989 # Check if linker supports -Bstatic/-Bdynamic option
13990 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
13991 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
13992 gcc_cv_ld_static_dynamic
=yes
13995 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
13997 cat >>confdefs.h
<<\_ACEOF
13998 #define HAVE_LD_STATIC_DYNAMIC 1
14002 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14003 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14005 if test x
"$demangler_in_ld" = xyes
; then
14006 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14007 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14008 gcc_cv_ld_demangle
=no
14009 if test $in_tree_ld = yes; then
14010 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 \
14011 gcc_cv_ld_demangle
=yes
14013 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14014 # Check if the GNU linker supports --demangle option
14015 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14016 gcc_cv_ld_demangle
=yes
14019 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14021 cat >>confdefs.h
<<\_ACEOF
14022 #define HAVE_LD_DEMANGLE 1
14026 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14027 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14031 # All TARGET_ABI_OSF targets.
14032 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14033 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14034 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14035 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 gcc_cv_as_alpha_explicit_relocs
=no
14039 if test $in_tree_gas = yes; then
14040 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14041 then gcc_cv_as_alpha_explicit_relocs
=yes
14043 elif test x
$gcc_cv_as != x
; then
14044 echo ' .set nomacro
14046 extbl $3, $2, $3 !lituse_bytoff!1
14047 ldq $2, a($29) !literal!1
14048 ldq $4, b($29) !literal!2
14049 ldq_u $3, 0($2) !lituse_base!1
14050 ldq $27, f($29) !literal!5
14051 jsr $26, ($27), f !lituse_jsr!5
14052 ldah $29, 0($26) !gpdisp!3
14053 lda $0, c($29) !gprel
14054 ldah $1, d($29) !gprelhigh
14055 lda $1, d($1) !gprellow
14056 lda $29, 0($29) !gpdisp!3' > conftest.s
14057 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }
14064 gcc_cv_as_alpha_explicit_relocs
=yes
14066 echo "configure: failed program was" >&5
14069 rm -f conftest.o conftest.s
14072 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14073 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14074 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14076 cat >>confdefs.h
<<\_ACEOF
14077 #define HAVE_AS_EXPLICIT_RELOCS 1
14084 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14085 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14086 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 gcc_cv_as_cris_no_mul_bug
=no
14090 if test $in_tree_gas = yes; then
14091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14092 then gcc_cv_as_cris_no_mul_bug
=yes
14094 elif test x
$gcc_cv_as != x
; then
14095 echo '.text' > conftest.s
14096 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }
14103 gcc_cv_as_cris_no_mul_bug
=yes
14105 echo "configure: failed program was" >&5
14108 rm -f conftest.o conftest.s
14111 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14112 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14113 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14115 cat >>confdefs.h
<<\_ACEOF
14116 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14123 echo "$as_me:$LINENO: checking assembler for .register" >&5
14124 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14125 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 gcc_cv_as_sparc_register_op
=no
14129 if test x
$gcc_cv_as != x
; then
14130 echo '.register %g2, #scratch' > conftest.s
14131 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }
14138 gcc_cv_as_sparc_register_op
=yes
14140 echo "configure: failed program was" >&5
14143 rm -f conftest.o conftest.s
14146 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14147 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14148 if test $gcc_cv_as_sparc_register_op = yes; then
14150 cat >>confdefs.h
<<\_ACEOF
14151 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14156 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14157 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14158 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 gcc_cv_as_sparc_relax
=no
14162 if test x
$gcc_cv_as != x
; then
14163 echo '.text' > conftest.s
14164 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }
14171 gcc_cv_as_sparc_relax
=yes
14173 echo "configure: failed program was" >&5
14176 rm -f conftest.o conftest.s
14179 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14180 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14181 if test $gcc_cv_as_sparc_relax = yes; then
14183 cat >>confdefs.h
<<\_ACEOF
14184 #define HAVE_AS_RELAX_OPTION 1
14189 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14190 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14191 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 gcc_cv_as_sparc_ua_pcrel
=no
14195 if test x
$gcc_cv_as != x
; then
14202 .uaword %r_disp32(foo)' > conftest.s
14203 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }
14210 if test x
$gcc_cv_ld != x \
14211 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14212 gcc_cv_as_sparc_ua_pcrel
=yes
14216 echo "configure: failed program was" >&5
14219 rm -f conftest.o conftest.s
14222 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14223 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14224 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14226 cat >>confdefs.h
<<\_ACEOF
14227 #define HAVE_AS_SPARC_UA_PCREL 1
14231 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14232 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14233 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14237 if test x
$gcc_cv_as != x
; then
14241 .uaword %r_disp32(foo)
14242 .byte 0x32, 0x33, 0x34
14246 .skip 4' > conftest.s
14247 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }
14254 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14255 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14256 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14257 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14258 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14259 |
grep 'DISP32' > /dev
/null
2>&1; then
14262 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14267 echo "configure: failed program was" >&5
14270 rm -f conftest.o conftest.s
14273 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14274 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14275 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14277 cat >>confdefs.h
<<\_ACEOF
14278 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14283 fi # unaligned pcrel relocs
14285 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14286 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14287 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 gcc_cv_as_sparc_offsetable_lo10
=no
14291 if test x
$gcc_cv_as != x
; then
14293 or %g1, %lo(ab) + 12, %g1
14294 or %g1, %lo(ab + 12), %g1' > conftest.s
14295 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }
14302 if test x
$gcc_cv_objdump != x \
14303 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14304 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14305 gcc_cv_as_sparc_offsetable_lo10
=yes
14308 echo "configure: failed program was" >&5
14311 rm -f conftest.o conftest.s
14314 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14315 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14316 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14318 cat >>confdefs.h
<<\_ACEOF
14319 #define HAVE_AS_OFFSETABLE_LO10 1
14325 i
[34567]86-*-* | x86_64-
*-*)
14327 cygwin
* | pe | mingw32
*)
14328 # Used for DWARF 2 in PE
14329 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14330 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14331 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 gcc_cv_as_ix86_pe_secrel32
=no
14335 if test $in_tree_gas = yes; then
14336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14337 then gcc_cv_as_ix86_pe_secrel32
=yes
14339 elif test x
$gcc_cv_as != x
; then
14343 .secrel32 foo' > conftest.s
14344 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }
14351 if test x
$gcc_cv_ld != x \
14352 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14353 gcc_cv_as_ix86_pe_secrel32
=yes
14357 echo "configure: failed program was" >&5
14360 rm -f conftest.o conftest.s
14363 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14364 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14365 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14367 cat >>confdefs.h
<<\_ACEOF
14368 #define HAVE_GAS_PE_SECREL32_RELOC 1
14375 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14376 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14377 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 gcc_cv_as_ix86_filds_fists
=no
14381 if test $in_tree_gas = yes; then
14382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14383 then gcc_cv_as_ix86_filds_fists
=yes
14385 elif test x
$gcc_cv_as != x
; then
14386 echo 'filds mem; fists mem' > conftest.s
14387 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }
14394 gcc_cv_as_ix86_filds_fists
=yes
14396 echo "configure: failed program was" >&5
14399 rm -f conftest.o conftest.s
14402 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14403 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14404 if test $gcc_cv_as_ix86_filds_fists = yes; then
14406 cat >>confdefs.h
<<\_ACEOF
14407 #define HAVE_GAS_FILDS_FISTS 1
14412 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14413 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14414 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 gcc_cv_as_ix86_cmov_sun_syntax
=no
14418 if test x
$gcc_cv_as != x
; then
14419 echo 'cmovl.l %edx, %eax' > conftest.s
14420 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }
14427 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14429 echo "configure: failed program was" >&5
14432 rm -f conftest.o conftest.s
14435 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14436 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14437 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14439 cat >>confdefs.h
<<\_ACEOF
14440 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14445 # This one is used unconditionally by i386.[ch]; it is to be defined
14446 # to 1 if the feature is present, 0 otherwise.
14447 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14448 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14449 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 gcc_cv_as_ix86_gotoff_in_data
=no
14453 if test $in_tree_gas = yes; then
14454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14455 then gcc_cv_as_ix86_gotoff_in_data
=yes
14457 elif test x
$gcc_cv_as != x
; then
14462 .long .L0@GOTOFF' > conftest.s
14463 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }
14470 gcc_cv_as_ix86_gotoff_in_data
=yes
14472 echo "configure: failed program was" >&5
14475 rm -f conftest.o conftest.s
14478 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14479 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14482 cat >>confdefs.h
<<_ACEOF
14483 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14489 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14490 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14491 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14495 if test $in_tree_gas = yes; then
14496 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14497 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14499 elif test x
$gcc_cv_as != x
; then
14501 addl r15 = @ltoffx(x#), gp
14503 ld8.mov r16 = [r15], x#' > conftest.s
14504 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }
14511 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14513 echo "configure: failed program was" >&5
14516 rm -f conftest.o conftest.s
14519 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14520 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14521 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14523 cat >>confdefs.h
<<\_ACEOF
14524 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14533 *-*-aix*) conftest_s
=' .csect .text[PR]
14536 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14537 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14538 if test "${gcc_cv_as_machine_directive+set}" = set; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 gcc_cv_as_machine_directive
=no
14542 if test x
$gcc_cv_as != x
; then
14543 echo ' .machine ppc7400' > conftest.s
14544 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }
14551 gcc_cv_as_machine_directive
=yes
14553 echo "configure: failed program was" >&5
14556 rm -f conftest.o conftest.s
14559 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14560 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14562 if test x
$gcc_cv_as_machine_directive != xyes
; then
14563 echo "*** This target requires an assembler supporting \".machine\"" >&2
14564 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14565 test x
$build = x
$target && exit 1
14569 *) conftest_s
=' .machine power4
14574 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14575 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14576 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 gcc_cv_as_powerpc_mfcrf
=no
14580 if test $in_tree_gas = yes; then
14581 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14582 then gcc_cv_as_powerpc_mfcrf
=yes
14584 elif test x
$gcc_cv_as != x
; then
14585 echo "$conftest_s" > conftest.s
14586 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }
14593 gcc_cv_as_powerpc_mfcrf
=yes
14595 echo "configure: failed program was" >&5
14598 rm -f conftest.o conftest.s
14601 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14602 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14603 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14605 cat >>confdefs.h
<<\_ACEOF
14606 #define HAVE_AS_MFCRF 1
14613 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14614 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14615 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 gcc_cv_as_mips_explicit_relocs
=no
14619 if test $in_tree_gas = yes; then
14620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14621 then gcc_cv_as_mips_explicit_relocs
=yes
14623 elif test x
$gcc_cv_as != x
; then
14624 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14625 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }
14632 gcc_cv_as_mips_explicit_relocs
=yes
14634 echo "configure: failed program was" >&5
14637 rm -f conftest.o conftest.s
14640 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14641 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14642 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14643 if test x
$target_cpu_default = x
14644 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14645 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14649 if test x
$gas_flag = xyes \
14650 ||
test x
"$host" != x
"$build" \
14651 ||
test ! -x "$gcc_cv_as" \
14652 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14655 echo "*** This configuration requires the GNU assembler" >&2
14660 # ??? Not all targets support dwarf2 debug_line, even within a version
14661 # of gas. Moreover, we need to emit a valid instruction to trigger any
14662 # info to the output file. So, as supported targets are added to gas 2.11,
14663 # add some instruction here to (also) show we expect this might work.
14664 # ??? Once 2.11 is released, probably need to add first known working
14665 # version to the per-target configury.
14667 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14668 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14669 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14672 ia64
*-*-* | s390
*-*-*)
14679 if test x
"$insn" != x
; then
14681 .file 1 \"conftest.s\"
14684 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14685 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14686 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 gcc_cv_as_dwarf2_debug_line
=no
14690 if test $in_tree_gas = yes; then
14691 if test $in_tree_gas_is_elf = yes \
14692 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14693 then gcc_cv_as_dwarf2_debug_line
=yes
14695 elif test x
$gcc_cv_as != x
; then
14696 echo "$conftest_s" > conftest.s
14697 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }
14704 if test x
$gcc_cv_objdump != x \
14705 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14706 |
grep debug_line
> /dev
/null
2>&1; then
14707 gcc_cv_as_dwarf2_debug_line
=yes
14710 echo "configure: failed program was" >&5
14713 rm -f conftest.o conftest.s
14716 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14717 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14720 # The .debug_line file table must be in the exact order that
14721 # we specified the files, since these indices are also used
14722 # by DW_AT_decl_file. Approximate this test by testing if
14723 # the assembler bitches if the same index is assigned twice.
14724 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14725 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14726 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 gcc_cv_as_dwarf2_file_buggy
=no
14730 if test x
$gcc_cv_as != x
; then
14731 echo ' .file 1 "foo.s"
14732 .file 1 "bar.s"' > conftest.s
14733 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }
14740 gcc_cv_as_dwarf2_file_buggy
=yes
14742 echo "configure: failed program was" >&5
14745 rm -f conftest.o conftest.s
14748 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14749 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14752 if test $gcc_cv_as_dwarf2_debug_line = yes \
14753 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14755 cat >>confdefs.h
<<\_ACEOF
14756 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14761 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14762 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14763 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 gcc_cv_as_gdwarf2_flag
=no
14767 if test $in_tree_gas = yes; then
14768 if test $in_tree_gas_is_elf = yes \
14769 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14770 then gcc_cv_as_gdwarf2_flag
=yes
14772 elif test x
$gcc_cv_as != x
; then
14773 echo "$insn" > conftest.s
14774 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }
14781 gcc_cv_as_gdwarf2_flag
=yes
14783 echo "configure: failed program was" >&5
14786 rm -f conftest.o conftest.s
14789 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14790 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14791 if test $gcc_cv_as_gdwarf2_flag = yes; then
14793 cat >>confdefs.h
<<\_ACEOF
14794 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14799 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14800 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14801 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 gcc_cv_as_gstabs_flag
=no
14805 if test $in_tree_gas = yes; then
14806 if test $in_tree_gas_is_elf = yes \
14807 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14808 then gcc_cv_as_gstabs_flag
=yes
14810 elif test x
$gcc_cv_as != x
; then
14811 echo "$insn" > conftest.s
14812 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; }
14819 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14820 # and warns about it, but still exits successfully. So check for
14822 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }
14829 else gcc_cv_as_gstabs_flag
=yes
14832 echo "configure: failed program was" >&5
14835 rm -f conftest.o conftest.s
14838 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14839 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14840 if test $gcc_cv_as_gstabs_flag = yes; then
14842 cat >>confdefs.h
<<\_ACEOF
14843 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14849 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14850 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14851 gcc_cv_ld_ro_rw_mix
=unknown
14852 if test $in_tree_ld = yes ; then
14853 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 \
14854 && test $in_tree_ld_is_elf = yes; then
14855 gcc_cv_ld_ro_rw_mix
=read-write
14857 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14858 echo '.section myfoosect, "a"' > conftest1.s
14859 echo '.section myfoosect, "aw"' > conftest2.s
14860 echo '.byte 1' >> conftest2.s
14861 echo '.section myfoosect, "a"' > conftest3.s
14862 echo '.byte 0' >> conftest3.s
14863 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14864 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14865 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14866 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14867 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14868 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14869 | sed -e '/myfoosect/!d' -e N`
14870 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14871 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14872 gcc_cv_ld_ro_rw_mix
=read-only
14874 gcc_cv_ld_ro_rw_mix
=read-write
14878 rm -f conftest.
* conftest
[123].
*
14880 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
14882 cat >>confdefs.h
<<\_ACEOF
14883 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14887 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14888 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14890 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14891 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14892 gcc_cv_ld_eh_frame_hdr
=no
14893 if test $in_tree_ld = yes ; then
14894 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 \
14895 && test $in_tree_ld_is_elf = yes; then
14896 gcc_cv_ld_eh_frame_hdr
=yes
14898 elif test x
$gcc_cv_ld != x
; then
14899 # Check if linker supports --eh-frame-hdr option
14900 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
14901 gcc_cv_ld_eh_frame_hdr
=yes
14904 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
14906 cat >>confdefs.h
<<\_ACEOF
14907 #define HAVE_LD_EH_FRAME_HDR 1
14911 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14912 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14914 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14915 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14917 if test $in_tree_ld = yes ; then
14918 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 \
14919 && test $in_tree_ld_is_elf = yes; then
14922 elif test x
$gcc_cv_ld != x
; then
14923 # Check if linker supports -pie option
14924 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
14928 if test x
"$gcc_cv_ld_pie" = xyes
; then
14930 cat >>confdefs.h
<<\_ACEOF
14931 #define HAVE_LD_PIE 1
14935 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14936 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14942 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14943 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14944 if test "${gcc_cv_ld_as_needed+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 gcc_cv_ld_as_needed
=no
14948 if test $in_tree_ld = yes ; then
14949 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 \
14950 && test $in_tree_ld_is_elf = yes; then
14951 gcc_cv_ld_as_needed
=yes
14953 elif test x
$gcc_cv_ld != x
; then
14954 # Check if linker supports --as-needed and --no-as-needed options
14955 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
14956 gcc_cv_ld_as_needed
=yes
14961 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14962 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14963 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
14965 cat >>confdefs.h
<<\_ACEOF
14966 #define HAVE_LD_AS_NEEDED 1
14972 powerpc64
*-*-linux*)
14973 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14974 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14975 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 gcc_cv_ld_no_dot_syms
=no
14979 if test $in_tree_ld = yes ; then
14980 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
14981 gcc_cv_ld_no_dot_syms
=yes
14983 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
14984 cat > conftest1.s
<<EOF
14988 cat > conftest2.s
<<EOF
14989 .section ".opd","aw"
14992 .type foo,@function
14994 .quad .LEfoo,.TOC.@tocbase,0
15000 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15001 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15002 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15003 gcc_cv_ld_no_dot_syms
=yes
15005 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15009 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15010 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15011 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15013 cat >>confdefs.h
<<\_ACEOF
15014 #define HAVE_LD_NO_DOT_SYMS 1
15021 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15022 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15024 cat >>confdefs.h
<<_ACEOF
15025 #define PREFIX_INCLUDE_DIR "$prefix/include"
15030 # Find out what GC implementation we want, or may, use.
15032 # Check whether --with-gc or --without-gc was given.
15033 if test "${with_gc+set}" = set; then
15040 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15041 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15042 { (exit 1); exit 1; }; }
15049 echo "Using $GGC for garbage collection."
15051 # Use the system's zlib library.
15053 zlibinc
="-I\$(srcdir)/../zlib"
15055 # Check whether --with-system-zlib or --without-system-zlib was given.
15056 if test "${with_system_zlib+set}" = set; then
15057 withval
="$with_system_zlib"
15066 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15067 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15068 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15069 if test "${enable_maintainer_mode+set}" = set; then
15070 enableval
="$enable_maintainer_mode"
15071 maintainer_mode
=$enableval
15076 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15077 echo "${ECHO_T}$maintainer_mode" >&6
15079 if test "$maintainer_mode" = "yes"; then
15089 # Make empty files to contain the specs and options for each language.
15090 # Then add #include lines to for a compiler that has specs and/or options.
15095 for subdir
in .
$subdirs
15097 if test -f $srcdir/$subdir/lang.opt
; then
15098 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15100 if test -f $srcdir/$subdir/lang-specs.h
; then
15101 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15103 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15104 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15108 # These (without "all_") are set in each config-lang.in.
15109 # `language' must be a single word so is spelled singularly.
15111 all_boot_languages
=
15114 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15115 # List of language makefile fragments.
15116 all_lang_makefrags
=
15117 # List of language subdirectory makefiles. Deprecated.
15118 all_lang_makefiles
=
15119 # Files for gengtype
15120 all_gtfiles
="$target_gtfiles"
15121 # Files for gengtype with language
15122 all_gtfiles_files_langs
=
15123 all_gtfiles_files_files
=
15125 # Add the language fragments.
15126 # Languages are added via two mechanisms. Some information must be
15127 # recorded in makefile variables, these are defined in config-lang.in.
15128 # We accumulate them and plug them into the main Makefile.
15129 # The other mechanism is a set of hooks for each of the main targets
15130 # like `clean', `install', etc.
15132 language_hooks
="Make-hooks"
15142 .
${srcdir}/$s/config-lang.
in
15143 if test "x$language" = x
15145 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15148 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15149 if test -f ${srcdir}/$s/Makefile.
in
15150 then all_lang_makefiles
="$s/Makefile"
15152 all_languages
="$all_languages $language"
15153 if test "x$boot_language" = xyes
15155 all_boot_languages
="$all_boot_languages $language"
15157 all_compilers
="$all_compilers $compilers"
15158 all_stagestuff
="$all_stagestuff $stagestuff"
15159 all_outputs
="$all_outputs $outputs"
15160 all_gtfiles
="$all_gtfiles $gtfiles"
15163 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15164 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15168 # Pick up gtfiles for c
15171 .
${srcdir}/c-config-lang.
in
15172 all_gtfiles
="$all_gtfiles $gtfiles"
15175 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15176 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15180 for language
in $all_languages
15182 check_languages
="$check_languages check-$language"
15185 # We link each language in with a set of hooks, reached indirectly via
15190 target_list
="all.build all.cross start.encap rest.encap tags \
15191 install-normal install-common install-man \
15192 uninstall info man srcextra srcman srcinfo \
15193 mostlyclean clean distclean maintainer-clean \
15194 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15195 for t
in $target_list
15198 for lang
in $all_languages
15202 echo "lang.$t: $x" >> Make-hooks
15211 echo "dir ." > .gdbinit
15212 echo "dir ${srcdir}" >> .gdbinit
15213 if test x
$gdb_needs_out_file_path = xyes
15215 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15217 if test "x$subdirs" != x
; then
15220 echo "dir ${srcdir}/$s" >> .gdbinit
15223 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15225 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15226 # absolute path for gcc_tooldir based on inserting the number of up-directory
15227 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15228 # $(libsubdir)/@(unlibsubdir) based path.
15229 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15230 # make and thus we'd get different behavior depending on where we built the
15232 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15233 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15235 # An explanation of the sed strings:
15236 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15237 # -e 's|/$||' match a trailing forward slash and eliminates it
15238 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15239 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15241 # (*) Note this pattern overwrites the first character of the string
15242 # with a forward slash if one is not already present. This is not a
15243 # problem because the exact names of the sub-directories concerned is
15244 # unimportant, just the number of them matters.
15246 # The practical upshot of these patterns is like this:
15248 # prefix exec_prefix result
15249 # ------ ----------- ------
15250 # /foo /foo/bar ../
15251 # /foo/ /foo/bar ../
15252 # /foo /foo/bar/ ../
15253 # /foo/ /foo/bar/ ../
15254 # /foo /foo/bar/ugg ../../
15257 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15262 # Find a directory in which to install a shared libgcc.
15264 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15265 if test "${enable_version_specific_runtime_libs+set}" = set; then
15266 enableval
="$enable_version_specific_runtime_libs"
15271 # Check whether --with-slibdir or --without-slibdir was given.
15272 if test "${with_slibdir+set}" = set; then
15273 withval
="$with_slibdir"
15274 slibdir
="$with_slibdir"
15276 if test "${enable_version_specific_runtime_libs+set}" = set; then
15277 slibdir
='$(libsubdir)'
15278 elif test "$host" != "$target"; then
15279 slibdir
='$(build_tooldir)/lib'
15281 slibdir
='$(libdir)'
15286 objdir
=`${PWDCMD-pwd}`
15289 # Substitute configuration variables
15354 if test x
"$SET_GCC_LIB_PATH_CMD" != x
; then
15355 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15357 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15359 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15360 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15361 set_gcc_lib_path
="export $set_gcc_lib_path"
15369 if test x
${build} = x
${host} ; then
15370 if test x
${host} = x
${target} ; then
15371 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15373 echo "Links are now set up to build a cross-compiler" 1>&2
15374 echo " from ${host} to ${target}." 1>&2
15377 if test x
${host} = x
${target} ; then
15378 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15379 echo " for ${target}." 1>&2
15381 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15382 echo " from ${host} to ${target}." 1>&2
15389 # Configure the subdirectories
15390 # AC_CONFIG_SUBDIRS($subdirs)
15392 # Create the Makefile
15393 # and configure language subdirectories
15394 ac_config_files
="$ac_config_files $all_outputs"
15397 ac_config_commands
="$ac_config_commands default"
15399 cat >confcache
<<\_ACEOF
15400 # This file is a shell script that caches the results of configure
15401 # tests run on this system so they can be shared between configure
15402 # scripts and configure runs, see configure's option --config-cache.
15403 # It is not useful on other systems. If it contains results you don't
15404 # want to keep, you may remove or edit it.
15406 # config.status only pays attention to the cache file if you give it
15407 # the --recheck option to rerun configure.
15409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15411 # following values.
15415 # The following way of writing the cache mishandles newlines in values,
15416 # but we know of no workaround that is simple, portable, and efficient.
15417 # So, don't put newlines in cache variables' values.
15418 # Ultrix sh set writes to stderr and can't be redirected directly,
15419 # and sets the high bit in the cache file unless we assign to the vars.
15422 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15424 # `set' does not quote correctly, so add quotes (double-quote
15425 # substitution turns \\\\ into \\, and sed turns \\ into \).
15428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15431 # `set' quotes correctly as required by POSIX, so do not add quotes.
15433 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15440 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15442 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15444 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15445 if test -w $cache_file; then
15446 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15447 cat confcache
>$cache_file
15449 echo "not updating unwritable cache $cache_file"
15454 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15455 # Let make expand exec_prefix.
15456 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15458 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15459 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15460 # trailing colons and then remove the whole line if VPATH becomes empty
15461 # (actually we leave an empty line to preserve line numbers).
15462 if test "x$srcdir" = x.
; then
15463 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15464 s/:*\$(srcdir):*/:/;
15465 s/:*\${srcdir}:*/:/;
15467 s/^\([^=]*=[ ]*\):*/\1/;
15473 DEFS
=-DHAVE_CONFIG_H
15477 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15478 # 1. Remove the extension, and $U if already installed.
15479 ac_i
=`echo "$ac_i" |
15480 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15482 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15483 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15485 LIBOBJS
=$ac_libobjs
15487 LTLIBOBJS
=$ac_ltlibobjs
15491 : ${CONFIG_STATUS=./config.status}
15492 ac_clean_files_save
=$ac_clean_files
15493 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15494 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15495 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15496 cat >$CONFIG_STATUS <<_ACEOF
15498 # Generated by $as_me.
15499 # Run this file to recreate the current configuration.
15500 # Compiler output produced by configure, useful for debugging
15501 # configure, is in config.log if it exists.
15504 ac_cs_recheck=false
15506 SHELL=\${CONFIG_SHELL-$SHELL}
15509 cat >>$CONFIG_STATUS <<\_ACEOF
15510 ## --------------------- ##
15511 ## M4sh Initialization. ##
15512 ## --------------------- ##
15514 # Be Bourne compatible
15515 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15518 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15519 # is contrary to our usage. Disable this feature.
15520 alias -g '${1+"$@"}'='"$@"'
15521 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15524 DUALCASE
=1; export DUALCASE
# for MKS sh
15526 # Support unset when possible.
15527 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15534 # Work around bugs in pre-3.0 UWIN ksh.
15535 $as_unset ENV MAIL MAILPATH
15542 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15543 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15544 LC_TELEPHONE LC_TIME
15546 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15547 eval $as_var=C
; export $as_var
15553 # Required to use basename.
15554 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15560 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15561 as_basename
=basename
15567 # Name of the executable.
15568 as_me
=`$as_basename "$0" ||
15569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15570 X"$0" : 'X\(//\)$' \| \
15571 X"$0" : 'X\(/\)$' \| \
15572 . : '\(.\)' 2>/dev/null ||
15574 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15575 /^X\/\(\/\/\)$/{ s//\1/; q; }
15576 /^X\/\(\/\).*/{ s//\1/; q; }
15580 # PATH needs CR, and LINENO needs CR and PATH.
15581 # Avoid depending upon Character Ranges.
15582 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15583 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15584 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15585 as_cr_digits
='0123456789'
15586 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15588 # The user is always right.
15589 if test "${PATH_SEPARATOR+set}" != set; then
15590 echo "#! /bin/sh" >conf$$.sh
15591 echo "exit 0" >>conf$$.sh
15593 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15602 as_lineno_1
=$LINENO
15603 as_lineno_2
=$LINENO
15604 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15605 test "x$as_lineno_1" != "x$as_lineno_2" &&
15606 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15607 # Find who we are. Look in the path if we contain no path at all
15610 *[\\/]* ) as_myself
=$0 ;;
15611 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15612 for as_dir
in $PATH
15615 test -z "$as_dir" && as_dir
=.
15616 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15621 # We did not find ourselves, most probably we were run as `sh COMMAND'
15622 # in which case we are not to be found in the path.
15623 if test "x$as_myself" = x
; then
15626 if test ! -f "$as_myself"; then
15627 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15628 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15629 { (exit 1); exit 1; }; }
15631 case $CONFIG_SHELL in
15633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15634 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15637 test -z "$as_dir" && as_dir
=.
15638 for as_base
in sh bash ksh sh5
; do
15641 if ("$as_dir/$as_base" -c '
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" ') 2>/dev
/null
; then
15647 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15648 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15649 CONFIG_SHELL
=$as_dir/$as_base
15650 export CONFIG_SHELL
15651 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15659 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15660 # uniformly replaced by the line number. The first 'sed' inserts a
15661 # line-number line before each line; the second 'sed' does the real
15662 # work. The second script uses 'N' to pair each line-number line
15663 # with the numbered line, and appends trailing '-' during
15664 # substitution so that $LINENO is not a special case at line end.
15665 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15666 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15667 sed '=' <$as_myself |
15672 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15675 s,^['$as_cr_digits']*\n,,
15676 ' >$as_me.lineno
&&
15677 chmod +x
$as_me.lineno ||
15678 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15679 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15680 { (exit 1); exit 1; }; }
15682 # Don't try to exec as it changes $[0], causing all sort of problems
15683 # (the dirname of $[0] is not the place where we might find the
15684 # original and so on. Autoconf is especially sensible to this).
15686 # Exit status is that of the last command.
15691 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15692 *c
*,-n*) ECHO_N
= ECHO_C
='
15694 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15695 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15698 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15704 rm -f conf$$ conf$$.exe conf$$.
file
15706 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15707 # We could just check for DJGPP; but this test a) works b) is more generic
15708 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15709 if test -f conf$$.exe
; then
15710 # Don't use ln at all; we don't have any links
15715 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15720 rm -f conf$$ conf$$.exe conf$$.
file
15722 if mkdir
-p .
2>/dev
/null
; then
15725 test -d .
/-p && rmdir .
/-p
15729 as_executable_p
="test -f"
15731 # Sed expression to map a string onto a valid CPP name.
15732 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15734 # Sed expression to map a string onto a valid variable name.
15735 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15739 # We need space, tab and new line, in precisely that order.
15749 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15750 # report actual input values of CONFIG_FILES etc. instead of their
15751 # values after options handling. Logging --version etc. is OK.
15755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15756 ## Running $as_me. ##
15761 This file was extended by $as_me, which was
15762 generated by GNU Autoconf 2.59. Invocation command line was
15764 CONFIG_FILES = $CONFIG_FILES
15765 CONFIG_HEADERS = $CONFIG_HEADERS
15766 CONFIG_LINKS = $CONFIG_LINKS
15767 CONFIG_COMMANDS = $CONFIG_COMMANDS
15771 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15775 # Files that config.status was made for.
15776 if test -n "$ac_config_files"; then
15777 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15780 if test -n "$ac_config_headers"; then
15781 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15784 if test -n "$ac_config_links"; then
15785 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15788 if test -n "$ac_config_commands"; then
15789 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15792 cat >>$CONFIG_STATUS <<\_ACEOF
15795 \`$as_me' instantiates files from templates according to the
15796 current configuration.
15798 Usage: $0 [OPTIONS] [FILE]...
15800 -h, --help print this help, then exit
15801 -V, --version print version number, then exit
15802 -q, --quiet do not print progress messages
15803 -d, --debug don't remove temporary files
15804 --recheck update $as_me by reconfiguring in the same conditions
15805 --file=FILE[:TEMPLATE]
15806 instantiate the configuration file FILE
15807 --header=FILE[:TEMPLATE]
15808 instantiate the configuration header FILE
15810 Configuration files:
15813 Configuration headers:
15816 Configuration commands:
15819 Report bugs to <bug-autoconf@gnu.org>."
15822 cat >>$CONFIG_STATUS <<_ACEOF
15825 configured by $0, generated by GNU Autoconf 2.59,
15826 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15828 Copyright (C) 2003 Free Software Foundation, Inc.
15829 This config.status script is free software; the Free Software Foundation
15830 gives unlimited permission to copy, distribute and modify it."
15834 cat >>$CONFIG_STATUS <<\_ACEOF
15835 # If no file are specified by the user, then we need to provide default
15836 # value. By we need to know if files were specified by the user.
15842 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15843 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15851 *) # This is not an option, so the user has probably given explicit
15854 ac_need_defaults
=false
;;
15858 # Handling of the options.
15860 cat >>$CONFIG_STATUS <<\_ACEOF
15861 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15863 --version |
--vers* |
-V )
15864 echo "$ac_cs_version"; exit 0 ;;
15866 # Conflict between --help and --header
15867 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15868 Try \`$0 --help' for more information." >&5
15869 echo "$as_me: error: ambiguous option: $1
15870 Try \`$0 --help' for more information." >&2;}
15871 { (exit 1); exit 1; }; };;
15872 --help |
--hel |
-h )
15873 echo "$ac_cs_usage"; exit 0 ;;
15874 --debug |
--d* |
-d )
15876 --file |
--fil |
--fi |
--f )
15878 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15879 ac_need_defaults
=false
;;
15880 --header |
--heade |
--head |
--hea )
15882 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15883 ac_need_defaults
=false
;;
15884 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15885 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15888 # This is an error.
15889 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15890 Try \`$0 --help' for more information." >&5
15891 echo "$as_me: error: unrecognized option: $1
15892 Try \`$0 --help' for more information." >&2;}
15893 { (exit 1); exit 1; }; } ;;
15895 *) ac_config_targets
="$ac_config_targets $1" ;;
15901 ac_configure_extra_args
=
15903 if $ac_cs_silent; then
15905 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15909 cat >>$CONFIG_STATUS <<_ACEOF
15910 if \$ac_cs_recheck; then
15911 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15912 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15917 cat >>$CONFIG_STATUS <<_ACEOF
15919 # INIT-COMMANDS section.
15928 cat >>$CONFIG_STATUS <<\_ACEOF
15929 for ac_config_target
in $ac_config_targets
15931 case "$ac_config_target" in
15932 # Handling of arguments.
15933 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
15934 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15935 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
15936 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15937 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15938 { (exit 1); exit 1; }; };;
15942 # If the user did not use the arguments to specify the items to instantiate,
15943 # then the envvar interface is used. Set only those that are not.
15944 # We use the long form for the default assignment because of an extremely
15945 # bizarre bug on SunOS 4.1.3.
15946 if $ac_need_defaults; then
15947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15952 # Have a temporary directory for convenience. Make it in the build tree
15953 # simply because there is no reason to put it here, and in addition,
15954 # creating and moving files from /tmp can sometimes cause problems.
15955 # Create a temporary directory, and hook for its removal unless debugging.
15958 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15959 trap '{ (exit 1); exit 1; }' 1 2 13 15
15962 # Create a (secure) tmp directory for tmp files.
15965 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15966 test -n "$tmp" && test -d "$tmp"
15969 tmp
=.
/confstat$$
-$RANDOM
15970 (umask 077 && mkdir
$tmp)
15973 echo "$me: cannot create a temporary directory in ." >&2
15974 { (exit 1); exit 1; }
15979 cat >>$CONFIG_STATUS <<_ACEOF
15982 # CONFIG_FILES section.
15985 # No need to generate the scripts if there are no CONFIG_FILES.
15986 # This happens for instance when ./config.status config.h
15987 if test -n "\$CONFIG_FILES"; then
15988 # Protect against being on the right side of a sed subst in config.status.
15989 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15990 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15991 s,@SHELL@,$SHELL,;t t
15992 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15993 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15994 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15995 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15996 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15997 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15998 s,@exec_prefix@,$exec_prefix,;t t
15999 s,@prefix@,$prefix,;t t
16000 s,@program_transform_name@,$program_transform_name,;t t
16001 s,@bindir@,$bindir,;t t
16002 s,@sbindir@,$sbindir,;t t
16003 s,@libexecdir@,$libexecdir,;t t
16004 s,@datadir@,$datadir,;t t
16005 s,@sysconfdir@,$sysconfdir,;t t
16006 s,@sharedstatedir@,$sharedstatedir,;t t
16007 s,@localstatedir@,$localstatedir,;t t
16008 s,@libdir@,$libdir,;t t
16009 s,@includedir@,$includedir,;t t
16010 s,@oldincludedir@,$oldincludedir,;t t
16011 s,@infodir@,$infodir,;t t
16012 s,@mandir@,$mandir,;t t
16013 s,@build_alias@,$build_alias,;t t
16014 s,@host_alias@,$host_alias,;t t
16015 s,@target_alias@,$target_alias,;t t
16016 s,@DEFS@,$DEFS,;t t
16017 s,@ECHO_C@,$ECHO_C,;t t
16018 s,@ECHO_N@,$ECHO_N,;t t
16019 s,@ECHO_T@,$ECHO_T,;t t
16020 s,@LIBS@,$LIBS,;t t
16021 s,@build@,$build,;t t
16022 s,@build_cpu@,$build_cpu,;t t
16023 s,@build_vendor@,$build_vendor,;t t
16024 s,@build_os@,$build_os,;t t
16025 s,@host@,$host,;t t
16026 s,@host_cpu@,$host_cpu,;t t
16027 s,@host_vendor@,$host_vendor,;t t
16028 s,@host_os@,$host_os,;t t
16029 s,@target@,$target,;t t
16030 s,@target_cpu@,$target_cpu,;t t
16031 s,@target_vendor@,$target_vendor,;t t
16032 s,@target_os@,$target_os,;t t
16033 s,@target_noncanonical@,$target_noncanonical,;t t
16034 s,@build_subdir@,$build_subdir,;t t
16035 s,@host_subdir@,$host_subdir,;t t
16036 s,@target_subdir@,$target_subdir,;t t
16037 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16038 s,@gcc_version_full@,$gcc_version_full,;t t
16039 s,@gcc_version@,$gcc_version,;t t
16040 s,@GENINSRC@,$GENINSRC,;t t
16042 s,@CFLAGS@,$CFLAGS,;t t
16043 s,@LDFLAGS@,$LDFLAGS,;t t
16044 s,@CPPFLAGS@,$CPPFLAGS,;t t
16045 s,@ac_ct_CC@,$ac_ct_CC,;t t
16046 s,@EXEEXT@,$EXEEXT,;t t
16047 s,@OBJEXT@,$OBJEXT,;t t
16048 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16049 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16051 s,@EGREP@,$EGREP,;t t
16052 s,@strict1_warn@,$strict1_warn,;t t
16053 s,@warn_cflags@,$warn_cflags,;t t
16054 s,@WERROR@,$WERROR,;t t
16055 s,@nocommon_flag@,$nocommon_flag,;t t
16056 s,@TREEBROWSER@,$TREEBROWSER,;t t
16057 s,@valgrind_path@,$valgrind_path,;t t
16058 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16059 s,@valgrind_command@,$valgrind_command,;t t
16060 s,@coverage_flags@,$coverage_flags,;t t
16061 s,@enable_multilib@,$enable_multilib,;t t
16062 s,@enable_shared@,$enable_shared,;t t
16063 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16064 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16065 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16066 s,@onestep@,$onestep,;t t
16067 s,@SET_MAKE@,$SET_MAKE,;t t
16069 s,@LN_S@,$LN_S,;t t
16071 s,@RANLIB@,$RANLIB,;t t
16072 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16073 s,@ranlib_flags@,$ranlib_flags,;t t
16074 s,@INSTALL@,$INSTALL,;t t
16075 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16076 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16077 s,@make_compare_target@,$make_compare_target,;t t
16078 s,@have_mktemp_command@,$have_mktemp_command,;t t
16079 s,@MAKEINFO@,$MAKEINFO,;t t
16080 s,@BUILD_INFO@,$BUILD_INFO,;t t
16081 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16082 s,@FLEX@,$FLEX,;t t
16083 s,@BISON@,$BISON,;t t
16086 s,@stage1_cflags@,$stage1_cflags,;t t
16087 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16088 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16089 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16090 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16091 s,@LIBICONV@,$LIBICONV,;t t
16092 s,@LTLIBICONV@,$LTLIBICONV,;t t
16093 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16094 s,@manext@,$manext,;t t
16095 s,@objext@,$objext,;t t
16096 s,@gthread_flags@,$gthread_flags,;t t
16097 s,@extra_modes_file@,$extra_modes_file,;t t
16098 s,@PACKAGE@,$PACKAGE,;t t
16099 s,@VERSION@,$VERSION,;t t
16100 s,@USE_NLS@,$USE_NLS,;t t
16101 s,@LIBINTL@,$LIBINTL,;t t
16102 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16103 s,@INCINTL@,$INCINTL,;t t
16104 s,@XGETTEXT@,$XGETTEXT,;t t
16105 s,@GMSGFMT@,$GMSGFMT,;t t
16106 s,@POSUB@,$POSUB,;t t
16107 s,@CATALOGS@,$CATALOGS,;t t
16108 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16109 s,@CROSS@,$CROSS,;t t
16111 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16112 s,@inhibit_libc@,$inhibit_libc,;t t
16113 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16114 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16115 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16116 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16117 s,@collect2@,$collect2,;t t
16118 s,@libgcc_visibility@,$libgcc_visibility,;t t
16120 s,@zlibdir@,$zlibdir,;t t
16121 s,@zlibinc@,$zlibinc,;t t
16122 s,@MAINT@,$MAINT,;t t
16123 s,@gcc_tooldir@,$gcc_tooldir,;t t
16124 s,@dollar@,$dollar,;t t
16125 s,@slibdir@,$slibdir,;t t
16126 s,@objdir@,$objdir,;t t
16127 s,@subdirs@,$subdirs,;t t
16128 s,@srcdir@,$srcdir,;t t
16129 s,@all_boot_languages@,$all_boot_languages,;t t
16130 s,@all_compilers@,$all_compilers,;t t
16131 s,@all_gtfiles@,$all_gtfiles,;t t
16132 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16133 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16134 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16135 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16136 s,@all_languages@,$all_languages,;t t
16137 s,@all_stagestuff@,$all_stagestuff,;t t
16138 s,@build_exeext@,$build_exeext,;t t
16139 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16140 s,@build_xm_file_list@,$build_xm_file_list,;t t
16141 s,@build_xm_include_list@,$build_xm_include_list,;t t
16142 s,@build_xm_defines@,$build_xm_defines,;t t
16143 s,@check_languages@,$check_languages,;t t
16144 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16145 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16146 s,@cpp_install_dir@,$cpp_install_dir,;t t
16147 s,@xmake_file@,$xmake_file,;t t
16148 s,@tmake_file@,$tmake_file,;t t
16149 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16150 s,@extra_headers_list@,$extra_headers_list,;t t
16151 s,@extra_objs@,$extra_objs,;t t
16152 s,@extra_parts@,$extra_parts,;t t
16153 s,@extra_passes@,$extra_passes,;t t
16154 s,@extra_programs@,$extra_programs,;t t
16155 s,@float_h_file@,$float_h_file,;t t
16156 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16157 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16158 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16159 s,@host_exeext@,$host_exeext,;t t
16160 s,@host_xm_file_list@,$host_xm_file_list,;t t
16161 s,@host_xm_include_list@,$host_xm_include_list,;t t
16162 s,@host_xm_defines@,$host_xm_defines,;t t
16163 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16164 s,@install@,$install,;t t
16165 s,@lang_opt_files@,$lang_opt_files,;t t
16166 s,@lang_specs_files@,$lang_specs_files,;t t
16167 s,@lang_tree_files@,$lang_tree_files,;t t
16168 s,@local_prefix@,$local_prefix,;t t
16169 s,@md_file@,$md_file,;t t
16170 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16171 s,@out_file@,$out_file,;t t
16172 s,@out_object_file@,$out_object_file,;t t
16173 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16174 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16175 s,@thread_file@,$thread_file,;t t
16176 s,@tm_file_list@,$tm_file_list,;t t
16177 s,@tm_include_list@,$tm_include_list,;t t
16178 s,@tm_defines@,$tm_defines,;t t
16179 s,@tm_p_file_list@,$tm_p_file_list,;t t
16180 s,@tm_p_include_list@,$tm_p_include_list,;t t
16181 s,@xm_file_list@,$xm_file_list,;t t
16182 s,@xm_include_list@,$xm_include_list,;t t
16183 s,@xm_defines@,$xm_defines,;t t
16184 s,@c_target_objs@,$c_target_objs,;t t
16185 s,@cxx_target_objs@,$cxx_target_objs,;t t
16186 s,@target_cpu_default@,$target_cpu_default,;t t
16187 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16188 s,@GMPLIBS@,$GMPLIBS,;t t
16189 s,@GMPINC@,$GMPINC,;t t
16190 s,@LIBOBJS@,$LIBOBJS,;t t
16191 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16192 /@language_hooks@/r $language_hooks
16193 s,@language_hooks@,,;t t
16198 cat >>$CONFIG_STATUS <<\_ACEOF
16199 # Split the substitutions into bite-sized pieces for seds with
16200 # small command number limits, like on Digital OSF/1 and HP-UX.
16201 ac_max_sed_lines
=48
16202 ac_sed_frag
=1 # Number of current file.
16203 ac_beg
=1 # First line for current file.
16204 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16207 while $ac_more_lines; do
16208 if test $ac_beg -gt 1; then
16209 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16211 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16213 if test ! -s $tmp/subs.frag
; then
16214 ac_more_lines
=false
16216 # The purpose of the label and of the branching condition is to
16217 # speed up the sed processing (if there are no `@' at all, there
16218 # is no need to browse any of the substitutions).
16219 # These are the two extra sed commands mentioned above.
16221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16222 if test -z "$ac_sed_cmds"; then
16223 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16225 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16227 ac_sed_frag
=`expr $ac_sed_frag + 1`
16229 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16232 if test -z "$ac_sed_cmds"; then
16235 fi # test -n "$CONFIG_FILES"
16238 cat >>$CONFIG_STATUS <<\_ACEOF
16239 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16242 - |
*:- |
*:-:* ) # input from stdin
16244 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16245 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16246 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16247 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16248 * ) ac_file_in
=$ac_file.
in ;;
16251 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16252 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16254 X"$ac_file" : 'X\(//\)[^/]' \| \
16255 X"$ac_file" : 'X\(//\)$' \| \
16256 X"$ac_file" : 'X\(/\)' \| \
16257 . : '\(.\)' 2>/dev/null ||
16259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16261 /^X\(\/\/\)$/{ s//\1/; q; }
16262 /^X\(\/\).*/{ s//\1/; q; }
16264 { if $as_mkdir_p; then
16269 while test ! -d "$as_dir"; do
16270 as_dirs
="$as_dir $as_dirs"
16271 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16273 X"$as_dir" : 'X\(//\)[^/]' \| \
16274 X"$as_dir" : 'X\(//\)$' \| \
16275 X"$as_dir" : 'X\(/\)' \| \
16276 . : '\(.\)' 2>/dev/null ||
16278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16280 /^X\(\/\/\)$/{ s//\1/; q; }
16281 /^X\(\/\).*/{ s//\1/; q; }
16284 test ! -n "$as_dirs" || mkdir
$as_dirs
16285 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16286 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16287 { (exit 1); exit 1; }; }; }
16291 if test "$ac_dir" != .
; then
16292 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16293 # A "../" for each directory in $ac_dir_suffix.
16294 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16296 ac_dir_suffix
= ac_top_builddir
=
16300 .
) # No --srcdir option. We are building in place.
16302 if test -z "$ac_top_builddir"; then
16305 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16307 [\\/]* | ?
:[\\/]* ) # Absolute path.
16308 ac_srcdir
=$srcdir$ac_dir_suffix;
16309 ac_top_srcdir
=$srcdir ;;
16310 *) # Relative path.
16311 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16312 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16315 # Do not use `cd foo && pwd` to compute absolute paths, because
16316 # the directories may not exist.
16318 .
) ac_abs_builddir
="$ac_dir";;
16321 .
) ac_abs_builddir
=`pwd`;;
16322 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16323 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16326 case $ac_abs_builddir in
16327 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16329 case ${ac_top_builddir}.
in
16330 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16331 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16332 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16335 case $ac_abs_builddir in
16336 .
) ac_abs_srcdir
=$ac_srcdir;;
16339 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16340 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16341 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16344 case $ac_abs_builddir in
16345 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16347 case $ac_top_srcdir in
16348 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16349 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16350 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16356 if test x
"$ac_file" != x-
; then
16357 { echo "$as_me:$LINENO: creating $ac_file" >&5
16358 echo "$as_me: creating $ac_file" >&6;}
16361 # Let's still pretend it is `configure' which instantiates (i.e., don't
16362 # use $as_me), people would be surprised to read:
16363 # /* config.h. Generated by config.status. */
16364 if test x
"$ac_file" = x-
; then
16367 configure_input
="$ac_file. "
16369 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16370 sed 's,.*/,,'` by configure."
16372 # First look for the input files in the build tree, otherwise in the
16374 ac_file_inputs
=`IFS=:
16375 for f in $ac_file_in; do
16377 -) echo $tmp/stdin ;;
16379 # Absolute (can't be DOS-style, as IFS=:)
16380 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16381 echo "$as_me: error: cannot find input file: $f" >&2;}
16382 { (exit 1); exit 1; }; }
16385 if test -f "$f"; then
16388 elif test -f "$srcdir/$f"; then
16393 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16394 echo "$as_me: error: cannot find input file: $f" >&2;}
16395 { (exit 1); exit 1; }; }
16398 done` ||
{ (exit 1); exit 1; }
16400 cat >>$CONFIG_STATUS <<_ACEOF
16404 cat >>$CONFIG_STATUS <<\_ACEOF
16406 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16407 s
,@configure_input@
,$configure_input,;t t
16408 s
,@srcdir@
,$ac_srcdir,;t t
16409 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16410 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16411 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16412 s
,@builddir@
,$ac_builddir,;t t
16413 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16414 s
,@top_builddir@
,$ac_top_builddir,;t t
16415 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16416 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16418 if test x"$ac_file" != x-; then
16419 mv $tmp/out $ac_file
16427 cat >>$CONFIG_STATUS <<\_ACEOF
16430 # CONFIG_HEADER section.
16433 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16434 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16436 # ac_d sets the value in "#define NAME VALUE" lines.
16437 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16438 ac_dB
='[ ].*$,\1#\2'
16441 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16442 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16443 ac_uB
='$,\1#\2define\3'
16447 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16448 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16450 - |
*:- |
*:-:* ) # input from stdin
16452 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16453 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16454 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16455 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16456 * ) ac_file_in
=$ac_file.
in ;;
16459 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16460 echo "$as_me: creating $ac_file" >&6;}
16462 # First look for the input files in the build tree, otherwise in the
16464 ac_file_inputs
=`IFS=:
16465 for f in $ac_file_in; do
16467 -) echo $tmp/stdin ;;
16469 # Absolute (can't be DOS-style, as IFS=:)
16470 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16471 echo "$as_me: error: cannot find input file: $f" >&2;}
16472 { (exit 1); exit 1; }; }
16473 # Do quote $f, to prevent DOS paths from being IFS'd.
16476 if test -f "$f"; then
16479 elif test -f "$srcdir/$f"; then
16484 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16485 echo "$as_me: error: cannot find input file: $f" >&2;}
16486 { (exit 1); exit 1; }; }
16489 done` ||
{ (exit 1); exit 1; }
16490 # Remove the trailing spaces.
16491 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16495 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16496 # `conftest.undefs', that substitutes the proper values into
16497 # config.h.in to produce config.h. The first handles `#define'
16498 # templates, and the second `#undef' templates.
16499 # And first: Protect against being on the right side of a sed subst in
16500 # config.status. Protect against being in an unquoted here document
16501 # in config.status.
16502 rm -f conftest.defines conftest.undefs
16503 # Using a here document instead of a string reduces the quoting nightmare.
16504 # Putting comments in sed scripts is not portable.
16506 # `end' is used to avoid that the second main sed command (meant for
16507 # 0-ary CPP macros) applies to n-ary macro definitions.
16508 # See the Autoconf documentation for `clear'.
16509 cat >confdef2sed.
sed <<\_ACEOF
16514 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16516 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16519 # If some macros were called several times there might be several times
16520 # the same #defines, which is useless. Nevertheless, we may not want to
16521 # sort them, since we want the *last* AC-DEFINE to be honored.
16522 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16523 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16524 rm -f confdef2sed.sed
16526 # This sed command replaces #undef with comments. This is necessary, for
16527 # example, in the case of _POSIX_SOURCE, which is predefined and required
16528 # on some systems where configure will not decide to define it.
16529 cat >>conftest.undefs <<\_ACEOF
16530 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16533 # Break up conftest.defines because some shells have a limit on the size
16534 # of here documents, and old seds have small limits too (100 cmds).
16535 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16536 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16537 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16538 echo ' :' >>$CONFIG_STATUS
16539 rm -f conftest.tail
16540 while grep . conftest.defines >/dev/null
16542 # Write a limited-size here document to $tmp/defines.sed.
16543 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16544 # Speed up: don't consider the non `#define' lines.
16545 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16546 # Work around the forget-to-reset-the-flag bug.
16547 echo 't clr' >>$CONFIG_STATUS
16548 echo ': clr' >>$CONFIG_STATUS
16549 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16551 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16553 mv $tmp/out $tmp/in
16555 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16556 rm -f conftest.defines
16557 mv conftest.
tail conftest.defines
16559 rm -f conftest.defines
16560 echo ' fi # grep' >>$CONFIG_STATUS
16561 echo >>$CONFIG_STATUS
16563 # Break up conftest.undefs because some shells have a limit on the size
16564 # of here documents, and old seds have small limits too (100 cmds).
16565 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16566 rm -f conftest.
tail
16567 while grep . conftest.undefs
>/dev
/null
16569 # Write a limited-size here document to $tmp/undefs.sed.
16570 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16571 # Speed up: don't consider the non
`#undef'
16572 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16573 # Work around the forget-to-reset-the-flag bug.
16574 echo 't clr' >>$CONFIG_STATUS
16575 echo ': clr' >>$CONFIG_STATUS
16576 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16578 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16580 mv $tmp/out $tmp/in
16582 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16583 rm -f conftest.undefs
16584 mv conftest.tail conftest.undefs
16586 rm -f conftest.undefs
16588 cat >>$CONFIG_STATUS <<\_ACEOF
16589 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16590 # use $as_me), people would be surprised to read:
16591 # /* config.h. Generated by config.status. */
16592 if test x
"$ac_file" = x-
; then
16593 echo "/* Generated by configure. */" >$tmp/config.h
16595 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16597 cat $tmp/in >>$tmp/config.h
16599 if test x
"$ac_file" != x-
; then
16600 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16601 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16602 echo "$as_me: $ac_file is unchanged" >&6;}
16604 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16605 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16606 X"$ac_file" : 'X\(//\)[^/]' \| \
16607 X"$ac_file" : 'X\(//\)$' \| \
16608 X"$ac_file" : 'X\(/\)' \| \
16609 . : '\(.\)' 2>/dev/null ||
16611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16613 /^X\(\/\/\)$/{ s//\1/; q; }
16614 /^X\(\/\).*/{ s//\1/; q; }
16616 { if $as_mkdir_p; then
16621 while test ! -d "$as_dir"; do
16622 as_dirs
="$as_dir $as_dirs"
16623 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16625 X"$as_dir" : 'X\(//\)[^/]' \| \
16626 X"$as_dir" : 'X\(//\)$' \| \
16627 X"$as_dir" : 'X\(/\)' \| \
16628 . : '\(.\)' 2>/dev/null ||
16630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16632 /^X\(\/\/\)$/{ s//\1/; q; }
16633 /^X\(\/\).*/{ s//\1/; q; }
16636 test ! -n "$as_dirs" || mkdir
$as_dirs
16637 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16638 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16639 { (exit 1); exit 1; }; }; }
16642 mv $tmp/config.h
$ac_file
16646 rm -f $tmp/config.h
16650 cat >>$CONFIG_STATUS <<\_ACEOF
16653 # CONFIG_COMMANDS section.
16655 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16656 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16657 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16658 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16659 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16660 X"$ac_dest" : 'X\(//\)[^/]' \| \
16661 X"$ac_dest" : 'X\(//\)$' \| \
16662 X"$ac_dest" : 'X\(/\)' \| \
16663 . : '\(.\)' 2>/dev/null ||
16665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16667 /^X\(\/\/\)$/{ s//\1/; q; }
16668 /^X\(\/\).*/{ s//\1/; q; }
16670 { if $as_mkdir_p; then
16675 while test ! -d "$as_dir"; do
16676 as_dirs
="$as_dir $as_dirs"
16677 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16679 X"$as_dir" : 'X\(//\)[^/]' \| \
16680 X"$as_dir" : 'X\(//\)$' \| \
16681 X"$as_dir" : 'X\(/\)' \| \
16682 . : '\(.\)' 2>/dev/null ||
16684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16686 /^X\(\/\/\)$/{ s//\1/; q; }
16687 /^X\(\/\).*/{ s//\1/; q; }
16690 test ! -n "$as_dirs" || mkdir
$as_dirs
16691 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16693 { (exit 1); exit 1; }; }; }
16697 if test "$ac_dir" != .
; then
16698 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16699 # A "../" for each directory in $ac_dir_suffix.
16700 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16702 ac_dir_suffix
= ac_top_builddir
=
16706 .
) # No --srcdir option. We are building in place.
16708 if test -z "$ac_top_builddir"; then
16711 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16713 [\\/]* | ?
:[\\/]* ) # Absolute path.
16714 ac_srcdir
=$srcdir$ac_dir_suffix;
16715 ac_top_srcdir
=$srcdir ;;
16716 *) # Relative path.
16717 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16718 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16721 # Do not use `cd foo && pwd` to compute absolute paths, because
16722 # the directories may not exist.
16724 .
) ac_abs_builddir
="$ac_dir";;
16727 .
) ac_abs_builddir
=`pwd`;;
16728 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16729 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16732 case $ac_abs_builddir in
16733 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16735 case ${ac_top_builddir}.
in
16736 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16737 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16738 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16741 case $ac_abs_builddir in
16742 .
) ac_abs_srcdir
=$ac_srcdir;;
16745 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16746 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16747 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16750 case $ac_abs_builddir in
16751 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16753 case $ac_top_srcdir in
16754 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16755 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16756 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16761 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16762 echo "$as_me: executing $ac_dest commands" >&6;}
16765 case ${CONFIG_HEADERS} in
16766 *auto-host.h
:config.
in*)
16769 # Make sure all the subdirs exist.
16770 for d
in $subdirs doc build
16772 test -d $d || mkdir
$d
16774 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16775 # bootstrapping and the installation procedure can still use
16776 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16777 # FLAGS_TO_PASS has been modified to solve the problem there.
16778 # This is virtually a duplicate of what happens in configure.lang; we do
16779 # an extra check to make sure this only happens if ln -s can be used.
16782 for d
in ${subdirs} ; do
16783 STARTDIR
=`${PWDCMD-pwd}`
16785 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16788 $LN_S ..
/$t $t 2>/dev
/null
16799 cat >>$CONFIG_STATUS <<\_ACEOF
16801 { (exit 0); exit 0; }
16803 chmod +x
$CONFIG_STATUS
16804 ac_clean_files
=$ac_clean_files_save
16807 # configure is writing to config.log, and then calls config.status.
16808 # config.status does its own redirection, appending to config.log.
16809 # Unfortunately, on DOS this fails, as config.log is still kept open
16810 # by configure, so config.status won't be able to write to it; its
16811 # output is simply discarded. So we exec the FD to /dev/null,
16812 # effectively closing config.log, so it can be properly (re)opened and
16813 # appended to by config.status. When coming back to configure, we
16814 # need to make the FD available again.
16815 if test "$no_create" != yes; then
16817 ac_config_status_args
=
16818 test "$silent" = yes &&
16819 ac_config_status_args
="$ac_config_status_args --quiet"
16821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16824 # would make configure fail if this is the last instruction.
16825 $ac_cs_success ||
{ (exit 1); exit 1; }